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
/* RageInput - Starts up InputHandlers, which generate InputEvents. */ #ifndef RAGEINPUT_H #define RAGEINPUT_H #include "Etterna/Models/Misc/Preference.h" #include "RageInputDevice.h" struct lua_State; class InputHandler; class RageInput { public: RageInput(); ~RageInput(); void LoadDrivers(); void Update(); bool DevicesChanged(); void GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const; void WindowReset(); void AddHandler(InputHandler* pHandler); InputHandler* GetHandlerForDevice(InputDevice id); RString GetDeviceSpecificInputString(const DeviceInput& di); RString GetLocalizedInputString(const DeviceInput& di); wchar_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers); InputDeviceState GetInputDeviceState(InputDevice id); RString GetDisplayDevicesString() const; // Lua void PushSelf(lua_State* L); }; extern Preference<RString> g_sInputDrivers; extern RageInput* INPUTMAN; // global and accessible from anywhere in our program #endif
31
31
(translation_unit) " RageInput - Starts up InputHandlers, which generate InputEvents. */\n\n#ifndef RAGEINPUT_H\n#define RAGEINPUT_H\n\n#include "Etterna/Models/Misc/Preference.h"\n#include "RageInputDevice.h"\n\nstruct lua_State;\nclass InputHandler;\n\nclass RageInput\n{\n public:\n RageInput();\n ~RageInput();\n\n void LoadDrivers();\n void Update();\n bool DevicesChanged();\n void GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n void WindowReset();\n void AddHandler(InputHandler* pHandler);\n InputHandler* GetHandlerForDevice(InputDevice id);\n RString GetDeviceSpecificInputString(const DeviceInput& di);\n RString GetLocalizedInputString(const DeviceInput& di);\n wchar_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n InputDeviceState GetInputDeviceState(InputDevice id);\n RString GetDisplayDevicesString() const;\n\n // Lua\n void PushSelf(lua_State* L);\n};\n\nextern Preference<RString> g_sInputDrivers;\n\nextern RageInput*\n INPUTMAN; // global and accessible from anywhere in our program\n\n#endif\n" (comment) " RageInput - Starts up InputHandlers, which generate InputEvents. */\n\n" (preproc_ifdef) "fndef RAGEINPUT_H\n#define RAGEINPUT_H\n\n#include "Etterna/Models/Misc/Preference.h"\n#include "RageInputDevice.h"\n\nstruct lua_State;\nclass InputHandler;\n\nclass RageInput\n{\n public:\n RageInput();\n ~RageInput();\n\n void LoadDrivers();\n void Update();\n bool DevicesChanged();\n void GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n void WindowReset();\n void AddHandler(InputHandler* pHandler);\n InputHandler* GetHandlerForDevice(InputDevice id);\n RString GetDeviceSpecificInputString(const DeviceInput& di);\n RString GetLocalizedInputString(const DeviceInput& di);\n wchar_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n InputDeviceState GetInputDeviceState(InputDevice id);\n RString GetDisplayDevicesString() const;\n\n // Lua\n void PushSelf(lua_State* L);\n};\n\nextern Preference<RString> g_sInputDrivers;\n\nextern RageInput*\n INPUTMAN; // global and accessible from anywhere in our program\n\n#endif\n" (#ifndef) "fndef R" (identifier) "GEINPUT_H\n#" (preproc_def) "efine RAGEINPUT_H\n\n#" (#define) "efine R" (identifier) "GEINPUT_H\n\n" (preproc_include) "nclude "Etterna/Models/Misc/Preference.h"\n#i" (#include) "nclude "" (string_literal) "tterna/Models/Misc/Preference.h"\n#" (") "t" (string_content) "terna/Models/Misc/Preference.h"\n" (") "#" (preproc_include) "nclude "RageInputDevice.h"\n\ns" (#include) "nclude "" (string_literal) "ageInputDevice.h"\n\n" (") "a" (string_content) "geInputDevice.h"\n" (") "\n" (struct_specifier) "ruct lua_State;\n" (struct) "ruct l" (type_identifier) "a_State;\n" (;) "c" (declaration) "ass InputHandler;\n\n" (type_identifier) "ass I" (identifier) "putHandler;\n" (;) "\n" (ERROR) "ass RageInput\n{\n public:\n RageInput();\n ~RageInput();\n\n void LoadDrivers();\n void Update();\n bool DevicesChanged();\n void GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n void WindowReset();\n void AddHandler(InputHandler* pHandler);\n InputHandler* GetHandlerForDevice(InputDevice id);\n RString GetDeviceSpecificInputString(const DeviceInput& di);\n RString GetLocalizedInputString(const DeviceInput& di);\n wchar_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n InputDeviceState GetInputDeviceState(InputDevice id);\n RString GetDisplayDevicesString() const;\n\n // Lua\n void PushSelf(lua_State* L);\n};\n\nextern Preference<RString> g_sInputDrivers;\n\nextern RageInput*\n INPUTMAN; /" (type_identifier) "ass R" (identifier) "geInput\n{" ({) " " (labeled_statement) "blic:\n RageInput();\n " (statement_identifier) "blic:\n" (:) " " (expression_statement) "geInput();\n " (call_expression) "geInput();\n" (identifier) "geInput()" (argument_list) ";\n" (() ";" ()) "\n" (;) " " (expression_statement) "ageInput();\n\n" (unary_expression) "ageInput();\n" (~) "a" (call_expression) "geInput();\n" (identifier) "geInput()" (argument_list) ";\n" (() ";" ()) "\n" (;) "\n" (declaration) "id LoadDrivers();\n " (primitive_type) "id L" (function_declarator) "adDrivers();\n" (identifier) "adDrivers()" (parameter_list) ";\n" (() ";" ()) "\n" (;) " " (declaration) "id Update();\n " (primitive_type) "id U" (function_declarator) "date();\n" (identifier) "date()" (parameter_list) ";\n" (() ";" ()) "\n" (;) " " (declaration) "ol DevicesChanged();\n " (primitive_type) "ol D" (function_declarator) "vicesChanged();\n" (identifier) "vicesChanged()" (parameter_list) ";\n" (() ";" ()) "\n" (;) " " (ERROR) "id GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n" (primitive_type) "id G" (function_declarator) "tDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n" (identifier) "tDevicesAndDescriptions(v" (parameter_list) "ector<InputDeviceInfo>& vOut) c" (() "e" (parameter_declaration) "ctor<InputDeviceInfo>& vOut) " (type_identifier) "ctor<I" (ERROR) "nputDeviceInfo>& v" (<) "n" (identifier) "putDeviceInfo>&" (>) " " (&) "v" (identifier) "ut) " ()) "c" (identifier) "nst;\n" (expression_statement) " " (;) " " (declaration) "id WindowReset();\n " (primitive_type) "id W" (function_declarator) "ndowReset();\n" (identifier) "ndowReset()" (parameter_list) ";\n" (() ";" ()) "\n" (;) " " (declaration) "id AddHandler(InputHandler* pHandler);\n " (primitive_type) "id A" (function_declarator) "dHandler(InputHandler* pHandler);\n" (identifier) "dHandler(I" (parameter_list) "nputHandler* pHandler);\n" (() "n" (parameter_declaration) "putHandler* pHandler);" (type_identifier) "putHandler* " (pointer_declarator) "pHandler);" (*) "p" (identifier) "andler);" ()) "\n" (;) " " (declaration) "putHandler* GetHandlerForDevice(InputDevice id);\n " (type_identifier) "putHandler* " (pointer_declarator) "GetHandlerForDevice(InputDevice id);\n" (*) "G" (function_declarator) "tHandlerForDevice(InputDevice id);\n" (identifier) "tHandlerForDevice(I" (parameter_list) "nputDevice id);\n" (() "n" (parameter_declaration) "putDevice id);" (type_identifier) "putDevice i" (identifier) ");" ()) "\n" (;) " " (declaration) "tring GetDeviceSpecificInputString(const DeviceInput& di);\n " (type_identifier) "tring G" (function_declarator) "tDeviceSpecificInputString(const DeviceInput& di);\n" (identifier) "tDeviceSpecificInputString(c" (parameter_list) "onst DeviceInput& di);\n" (() "o" (parameter_declaration) "nst DeviceInput& di);" (type_qualifier) "nst D" (const) "nst D" (type_identifier) "viceInput& " (ERROR) "d" (&) "d" (identifier) ");" ()) "\n" (;) " " (declaration) "tring GetLocalizedInputString(const DeviceInput& di);\n " (type_identifier) "tring G" (function_declarator) "tLocalizedInputString(const DeviceInput& di);\n" (identifier) "tLocalizedInputString(c" (parameter_list) "onst DeviceInput& di);\n" (() "o" (parameter_declaration) "nst DeviceInput& di);" (type_qualifier) "nst D" (const) "nst D" (type_identifier) "viceInput& " (ERROR) "d" (&) "d" (identifier) ");" ()) "\n" (;) " " (declaration) "har_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n " (type_identifier) "har_t D" (function_declarator) "viceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n" (identifier) "viceInputToChar(D" (parameter_list) "eviceInput di, bool bUseCurrentKeyModifiers);\n" (() "e" (parameter_declaration) "viceInput di, " (type_identifier) "viceInput d" (identifier) ", " (,) "b" (parameter_declaration) "ol bUseCurrentKeyModifiers);" (primitive_type) "ol b" (identifier) "seCurrentKeyModifiers);" ()) "\n" (;) " " (declaration) "putDeviceState GetInputDeviceState(InputDevice id);\n " (type_identifier) "putDeviceState G" (function_declarator) "tInputDeviceState(InputDevice id);\n" (identifier) "tInputDeviceState(I" (parameter_list) "nputDevice id);\n" (() "n" (parameter_declaration) "putDevice id);" (type_identifier) "putDevice i" (identifier) ");" ()) "\n" (;) " " (type_identifier) "tring G" (function_declarator) "tDisplayDevicesString() c" (identifier) "tDisplayDevicesString()" (parameter_list) " c" (() " " ()) "c" (declaration) "nst;\n\n // Lua\n void PushSelf(lua_State* L);\n}" (type_qualifier) "nst;\n" (const) "nst;\n" (ERROR) "\n" (;) "\n" (comment) " Lua\n " (primitive_type) "id P" (function_declarator) "shSelf(lua_State* L);\n" (identifier) "shSelf(l" (parameter_list) "ua_State* L);\n" (() "u" (parameter_declaration) "a_State* L);" (type_identifier) "a_State* " (pointer_declarator) "L);" (*) "L" (identifier) ";" ()) "\n" (;) "}" (ERROR) "\n\n" (}) "\n" (;) "\n" (declaration) "tern Preference<RString> g_sInputDrivers;\n\n" (storage_class_specifier) "tern P" (extern) "tern P" (type_identifier) "eference<R" (ERROR) "String> g" (<) "S" (identifier) "tring> " (>) "g" (identifier) "sInputDrivers;\n" (;) "\n" (declaration) "tern RageInput*\n INPUTMAN; /" (storage_class_specifier) "tern R" (extern) "tern R" (type_identifier) "geInput*\n" (pointer_declarator) " INPUTMAN; " (*) " " (identifier) "PUTMAN; " (;) "/" (comment) " global and accessible from anywhere in our program\n\n" (#endif) "ndif\n"
230
8
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 31.0, "nodes": 152, "errors": 0, "source_hash": "9ed40ea718b80c87feddaa6f25dcf04f0fc89064f4d193def2661ee0e45b4077", "categorized_nodes": 106}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "fndef RAGEINPUT_H\n#define RAGEINPUT_H\n\n#include \"Etterna/Models/Misc/Preference.h\"\n#include \"RageInputDevice.h\"\n\nstruct lua_State;\nclass InputHandler;\n\nclass RageInput\n{\n public:\n\tRageInput();\n\t~RageInput();\n\n\tvoid LoadDrivers();\n\tvoid Update();\n\tbool DevicesChanged();\n\tvoid GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n\tvoid WindowReset();\n\tvoid AddHandler(InputHandler* pHandler);\n\tInputHandler* GetHandlerForDevice(InputDevice id);\n\tRString GetDeviceSpecificInputString(const DeviceInput& di);\n\tRString GetLocalizedInputString(const DeviceInput& di);\n\twchar_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n\tInputDeviceState GetInputDeviceState(InputDevice id);\n\tRString GetDisplayDevicesString() const;\n\n\t// Lua\n\tvoid PushSelf(lua_State* L);\n};\n\nextern Preference<RString> g_sInputDrivers;\n\nextern RageInput*\n INPUTMAN; // global and accessible from anywhere in our program\n\n#endif\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 151], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "fndef R", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 2, "type": "identifier", "text": "GEINPUT_H\n#", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "efine RAGEINPUT_H\n\n#", "parent": 0, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#define", "text": "efine R", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 5, "type": "identifier", "text": "GEINPUT_H\n\n", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "nclude \"Etterna/Models/Misc/Preference.h\"\n#i", "parent": 0, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "nclude \"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "string_literal", "text": "tterna/Models/Misc/Preference.h\"\n#", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 43}}, {"id": 9, "type": "preproc_include", "text": "nclude \"RageInputDevice.h\"\n\ns", "parent": 0, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 10, "type": "#include", "text": "nclude \"", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 11, "type": "string_literal", "text": "ageInputDevice.h\"\n\n", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 28}}, {"id": 12, "type": "struct_specifier", "text": "ruct lua_State;\n", "parent": 0, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 16}}, {"id": 13, "type": "struct", "text": "ruct l", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 14, "type": "type_identifier", "text": "a_State;\n", "parent": 12, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 16}}, {"id": 15, "type": "declaration", "text": "ass InputHandler;\n\n", "parent": 0, "children": [16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 19}}, {"id": 16, "type": "type_identifier", "text": "ass I", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 17, "type": "identifier", "text": "putHandler;\n", "parent": 15, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 18}}, {"id": 18, "type": "ERROR", "text": "ass RageInput\n{\n public:\n\tRageInput();\n\t~RageInput();\n\n\tvoid LoadDrivers();\n\tvoid Update();\n\tbool DevicesChanged();\n\tvoid GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n\tvoid WindowReset();\n\tvoid AddHandler(InputHandler* pHandler);\n\tInputHandler* GetHandlerForDevice(InputDevice id);\n\tRString GetDeviceSpecificInputString(const DeviceInput& di);\n\tRString GetLocalizedInputString(const DeviceInput& di);\n\twchar_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n\tInputDeviceState GetInputDeviceState(InputDevice id);\n\tRString GetDisplayDevicesString() const;\n\n\t// Lua\n\tvoid PushSelf(lua_State* L);\n};\n\nextern Preference<RString> g_sInputDrivers;\n\nextern RageInput*\n INPUTMAN; /", "parent": 0, "children": [19, 20, 21, 29, 33, 37, 41, 55, 59, 69, 79, 90, 101, 111, 119, 120, 123, 134, 135, 144], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 37, "column": 11}}, {"id": 19, "type": "type_identifier", "text": "ass R", "parent": 18, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 20, "type": "identifier", "text": "geInput\n{", "parent": 18, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 15}}, {"id": 21, "type": "labeled_statement", "text": "blic:\n\tRageInput();\n\t", "parent": 18, "children": [22], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 14, "column": 13}}, {"id": 22, "type": "statement_identifier", "text": "blic:\n", "parent": 21, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 23, "type": "call_expression", "text": "geInput();\n", "parent": 21, "children": [24], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 12}}, {"id": 24, "type": "identifier", "text": "geInput()", "parent": 23, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 25, "type": "unary_expression", "text": "ageInput();\n", "parent": 18, "children": [26, 27], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 13}}, {"id": 26, "type": "~", "text": "a", "parent": 25, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 2}}, {"id": 27, "type": "call_expression", "text": "geInput();\n", "parent": 25, "children": [28], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 13}}, {"id": 28, "type": "identifier", "text": "geInput()", "parent": 27, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 11}}, {"id": 29, "type": "declaration", "text": "id LoadDrivers();\n\t", "parent": 18, "children": [30, 31], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 20}}, {"id": 30, "type": "primitive_type", "text": "id L", "parent": 29, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 5}}, {"id": 31, "type": "function_declarator", "text": "adDrivers();\n", "parent": 29, "children": [32], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 19}}, {"id": 32, "type": "identifier", "text": "adDrivers()", "parent": 31, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 17}}, {"id": 33, "type": "declaration", "text": "id Update();\n\t", "parent": 18, "children": [34, 35], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 15}}, {"id": 34, "type": "primitive_type", "text": "id U", "parent": 33, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 35, "type": "function_declarator", "text": "date();\n", "parent": 33, "children": [36], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 14}}, {"id": 36, "type": "identifier", "text": "date()", "parent": 35, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 12}}, {"id": 37, "type": "declaration", "text": "ol DevicesChanged();\n\t", "parent": 18, "children": [38, 39], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 23}}, {"id": 38, "type": "primitive_type", "text": "ol D", "parent": 37, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 5}}, {"id": 39, "type": "function_declarator", "text": "vicesChanged();\n", "parent": 37, "children": [40], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 22}}, {"id": 40, "type": "identifier", "text": "vicesChanged()", "parent": 39, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 20}}, {"id": 41, "type": "ERROR", "text": "id GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n", "parent": 18, "children": [42, 43], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 68}}, {"id": 42, "type": "primitive_type", "text": "id G", "parent": 41, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 43, "type": "function_declarator", "text": "tDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n", "parent": 41, "children": [44, 45, 54], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 68}}, {"id": 44, "type": "identifier", "text": "tDevicesAndDescriptions(v", "parent": 43, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 31}}, {"id": 45, "type": "parameter_list", "text": "ector<InputDeviceInfo>& vOut) c", "parent": 43, "children": [46], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 62}}, {"id": 46, "type": "parameter_declaration", "text": "ctor<InputDeviceInfo>& vOut) ", "parent": 45, "children": [47, 48, 53], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 61}}, {"id": 47, "type": "type_identifier", "text": "ctor<I", "parent": 46, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 38}}, {"id": 48, "type": "ERROR", "text": "nputDeviceInfo>& v", "parent": 46, "children": [49, 50, 51, 52], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 56}}, {"id": 49, "type": "<", "text": "n", "parent": 48, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 39}}, {"id": 50, "type": "identifier", "text": "putDeviceInfo>&", "parent": 48, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 54}}, {"id": 51, "type": ">", "text": " ", "parent": 48, "children": [], "start_point": {"row": 20, "column": 54}, "end_point": {"row": 20, "column": 55}}, {"id": 52, "type": "&", "text": "v", "parent": 48, "children": [], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 56}}, {"id": 53, "type": "identifier", "text": "ut) ", "parent": 46, "children": [], "start_point": {"row": 20, "column": 57}, "end_point": {"row": 20, "column": 61}}, {"id": 54, "type": "identifier", "text": "nst;\n", "parent": 43, "children": [], "start_point": {"row": 20, "column": 63}, "end_point": {"row": 20, "column": 68}}, {"id": 55, "type": "declaration", "text": "id WindowReset();\n\t", "parent": 18, "children": [56, 57], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 20}}, {"id": 56, "type": "primitive_type", "text": "id W", "parent": 55, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 5}}, {"id": 57, "type": "function_declarator", "text": "ndowReset();\n", "parent": 55, "children": [58], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 19}}, {"id": 58, "type": "identifier", "text": "ndowReset()", "parent": 57, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 17}}, {"id": 59, "type": "declaration", "text": "id AddHandler(InputHandler* pHandler);\n\t", "parent": 18, "children": [60, 61], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 41}}, {"id": 60, "type": "primitive_type", "text": "id A", "parent": 59, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 61, "type": "function_declarator", "text": "dHandler(InputHandler* pHandler);\n", "parent": 59, "children": [62, 63], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 40}}, {"id": 62, "type": "identifier", "text": "dHandler(I", "parent": 61, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 16}}, {"id": 63, "type": "parameter_list", "text": "nputHandler* pHandler);\n", "parent": 61, "children": [64], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 40}}, {"id": 64, "type": "parameter_declaration", "text": "putHandler* pHandler);", "parent": 63, "children": [65, 66], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 39}}, {"id": 65, "type": "type_identifier", "text": "putHandler* ", "parent": 64, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 29}}, {"id": 66, "type": "pointer_declarator", "text": "pHandler);", "parent": 64, "children": [67, 68], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 39}}, {"id": 67, "type": "*", "text": "p", "parent": 66, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 68, "type": "identifier", "text": "andler);", "parent": 66, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 39}}, {"id": 69, "type": "declaration", "text": "putHandler* GetHandlerForDevice(InputDevice id);\n\t", "parent": 18, "children": [70, 71], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 51}}, {"id": 70, "type": "type_identifier", "text": "putHandler* ", "parent": 69, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 13}}, {"id": 71, "type": "pointer_declarator", "text": "GetHandlerForDevice(InputDevice id);\n", "parent": 69, "children": [72, 73], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 50}}, {"id": 72, "type": "*", "text": "G", "parent": 71, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 73, "type": "function_declarator", "text": "tHandlerForDevice(InputDevice id);\n", "parent": 71, "children": [74, 75], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 50}}, {"id": 74, "type": "identifier", "text": "tHandlerForDevice(I", "parent": 73, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 34}}, {"id": 75, "type": "parameter_list", "text": "nputDevice id);\n", "parent": 73, "children": [76], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 50}}, {"id": 76, "type": "parameter_declaration", "text": "putDevice id);", "parent": 75, "children": [77, 78], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 49}}, {"id": 77, "type": "type_identifier", "text": "putDevice i", "parent": 76, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 46}}, {"id": 78, "type": "identifier", "text": ");", "parent": 76, "children": [], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 49}}, {"id": 79, "type": "declaration", "text": "tring GetDeviceSpecificInputString(const DeviceInput& di);\n\t", "parent": 18, "children": [80, 81], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 61}}, {"id": 80, "type": "type_identifier", "text": "tring G", "parent": 79, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 8}}, {"id": 81, "type": "function_declarator", "text": "tDeviceSpecificInputString(const DeviceInput& di);\n", "parent": 79, "children": [82, 83], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 60}}, {"id": 82, "type": "identifier", "text": "tDeviceSpecificInputString(c", "parent": 81, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 37}}, {"id": 83, "type": "parameter_list", "text": "onst DeviceInput& di);\n", "parent": 81, "children": [84], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 60}}, {"id": 84, "type": "parameter_declaration", "text": "nst DeviceInput& di);", "parent": 83, "children": [85, 86, 87, 89], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 59}}, {"id": 85, "type": "type_qualifier", "text": "nst D", "parent": 84, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 43}}, {"id": 86, "type": "type_identifier", "text": "viceInput& ", "parent": 84, "children": [], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 55}}, {"id": 87, "type": "ERROR", "text": "d", "parent": 84, "children": [88], "start_point": {"row": 24, "column": 55}, "end_point": {"row": 24, "column": 56}}, {"id": 88, "type": "&", "text": "d", "parent": 87, "children": [], "start_point": {"row": 24, "column": 55}, "end_point": {"row": 24, "column": 56}}, {"id": 89, "type": "identifier", "text": ");", "parent": 84, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 59}}, {"id": 90, "type": "declaration", "text": "tring GetLocalizedInputString(const DeviceInput& di);\n\t", "parent": 18, "children": [91, 92], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 56}}, {"id": 91, "type": "type_identifier", "text": "tring G", "parent": 90, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 8}}, {"id": 92, "type": "function_declarator", "text": "tLocalizedInputString(const DeviceInput& di);\n", "parent": 90, "children": [93, 94], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 55}}, {"id": 93, "type": "identifier", "text": "tLocalizedInputString(c", "parent": 92, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 32}}, {"id": 94, "type": "parameter_list", "text": "onst DeviceInput& di);\n", "parent": 92, "children": [95], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 55}}, {"id": 95, "type": "parameter_declaration", "text": "nst DeviceInput& di);", "parent": 94, "children": [96, 97, 98, 100], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 54}}, {"id": 96, "type": "type_qualifier", "text": "nst D", "parent": 95, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 38}}, {"id": 97, "type": "type_identifier", "text": "viceInput& ", "parent": 95, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 50}}, {"id": 98, "type": "ERROR", "text": "d", "parent": 95, "children": [99], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 51}}, {"id": 99, "type": "&", "text": "d", "parent": 98, "children": [], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 51}}, {"id": 100, "type": "identifier", "text": ");", "parent": 95, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 54}}, {"id": 101, "type": "declaration", "text": "har_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n\t", "parent": 18, "children": [102, 103], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 73}}, {"id": 102, "type": "type_identifier", "text": "har_t D", "parent": 101, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 8}}, {"id": 103, "type": "function_declarator", "text": "viceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n", "parent": 101, "children": [104, 105], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 72}}, {"id": 104, "type": "identifier", "text": "viceInputToChar(D", "parent": 103, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 26}}, {"id": 105, "type": "parameter_list", "text": "eviceInput di, bool bUseCurrentKeyModifiers);\n", "parent": 103, "children": [106, 108], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 72}}, {"id": 106, "type": "parameter_declaration", "text": "viceInput di, ", "parent": 105, "children": [107], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 41}}, {"id": 107, "type": "type_identifier", "text": "viceInput d", "parent": 106, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 38}}, {"id": 108, "type": "parameter_declaration", "text": "ol bUseCurrentKeyModifiers);", "parent": 105, "children": [109, 110], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 71}}, {"id": 109, "type": "primitive_type", "text": "ol b", "parent": 108, "children": [], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 47}}, {"id": 110, "type": "identifier", "text": "seCurrentKeyModifiers);", "parent": 108, "children": [], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 71}}, {"id": 111, "type": "declaration", "text": "putDeviceState GetInputDeviceState(InputDevice id);\n\t", "parent": 18, "children": [112, 113], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 54}}, {"id": 112, "type": "type_identifier", "text": "putDeviceState G", "parent": 111, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 17}}, {"id": 113, "type": "function_declarator", "text": "tInputDeviceState(InputDevice id);\n", "parent": 111, "children": [114, 115], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 53}}, {"id": 114, "type": "identifier", "text": "tInputDeviceState(I", "parent": 113, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 37}}, {"id": 115, "type": "parameter_list", "text": "nputDevice id);\n", "parent": 113, "children": [116], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 53}}, {"id": 116, "type": "parameter_declaration", "text": "putDevice id);", "parent": 115, "children": [117, 118], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 52}}, {"id": 117, "type": "type_identifier", "text": "putDevice i", "parent": 116, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 49}}, {"id": 118, "type": "identifier", "text": ");", "parent": 116, "children": [], "start_point": {"row": 27, "column": 50}, "end_point": {"row": 27, "column": 52}}, {"id": 119, "type": "type_identifier", "text": "tring G", "parent": 18, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 8}}, {"id": 120, "type": "function_declarator", "text": "tDisplayDevicesString() c", "parent": 18, "children": [121, 122], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 34}}, {"id": 121, "type": "identifier", "text": "tDisplayDevicesString()", "parent": 120, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 32}}, {"id": 122, "type": "parameter_list", "text": " c", "parent": 120, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 34}}, {"id": 123, "type": "declaration", "text": "nst;\n\n\t// Lua\n\tvoid PushSelf(lua_State* L);\n}", "parent": 18, "children": [124, 125, 126, 127], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 31, "column": 29}}, {"id": 124, "type": "type_qualifier", "text": "nst;\n", "parent": 123, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 40}}, {"id": 125, "type": "ERROR", "text": "\n", "parent": 123, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 41}}, {"id": 126, "type": "primitive_type", "text": "id P", "parent": 123, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 127, "type": "function_declarator", "text": "shSelf(lua_State* L);\n", "parent": 123, "children": [128, 129], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 28}}, {"id": 128, "type": "identifier", "text": "shSelf(l", "parent": 127, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 14}}, {"id": 129, "type": "parameter_list", "text": "ua_State* L);\n", "parent": 127, "children": [130], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 28}}, {"id": 130, "type": "parameter_declaration", "text": "a_State* L);", "parent": 129, "children": [131, 132], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 27}}, {"id": 131, "type": "type_identifier", "text": "a_State* ", "parent": 130, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 24}}, {"id": 132, "type": "pointer_declarator", "text": "L);", "parent": 130, "children": [133], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 27}}, {"id": 133, "type": "*", "text": "L", "parent": 132, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 25}}, {"id": 134, "type": "ERROR", "text": "\n\n", "parent": 18, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 2}}, {"id": 135, "type": "declaration", "text": "tern Preference<RString> g_sInputDrivers;\n\n", "parent": 18, "children": [136, 138, 139, 143], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 43}}, {"id": 136, "type": "storage_class_specifier", "text": "tern P", "parent": 135, "children": [137], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 137, "type": "extern", "text": "tern P", "parent": 136, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 138, "type": "type_identifier", "text": "eference<R", "parent": 135, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 17}}, {"id": 139, "type": "ERROR", "text": "String> g", "parent": 135, "children": [140, 141, 142], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 26}}, {"id": 140, "type": "<", "text": "S", "parent": 139, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 18}}, {"id": 141, "type": "identifier", "text": "tring> ", "parent": 139, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 25}}, {"id": 142, "type": ">", "text": "g", "parent": 139, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 26}}, {"id": 143, "type": "identifier", "text": "sInputDrivers;\n", "parent": 135, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 42}}, {"id": 144, "type": "declaration", "text": "tern RageInput*\n INPUTMAN; /", "parent": 18, "children": [145, 147, 148], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 11}}, {"id": 145, "type": "storage_class_specifier", "text": "tern R", "parent": 144, "children": [146], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 146, "type": "extern", "text": "tern R", "parent": 145, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 147, "type": "type_identifier", "text": "geInput*\n", "parent": 144, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 16}}, {"id": 148, "type": "pointer_declarator", "text": " INPUTMAN; ", "parent": 144, "children": [149, 150], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 37, "column": 10}}, {"id": 149, "type": "*", "text": " ", "parent": 148, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 17}}, {"id": 150, "type": "identifier", "text": "PUTMAN; ", "parent": 148, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 10}}, {"id": 151, "type": "#endif", "text": "ndif\n", "parent": 0, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}]}, "node_categories": {"declarations": {"functions": [31, 35, 39, 43, 57, 61, 73, 81, 92, 103, 113, 120, 127], "variables": [15, 29, 33, 37, 46, 55, 59, 64, 69, 76, 79, 84, 90, 95, 101, 106, 108, 111, 116, 123, 130, 135, 144], "classes": [12, 13, 136, 145], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [23, 25, 27], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 14, 16, 17, 19, 20, 22, 24, 28, 32, 36, 40, 44, 47, 50, 53, 54, 58, 62, 65, 68, 70, 74, 77, 78, 80, 82, 85, 86, 89, 91, 93, 96, 97, 100, 102, 104, 107, 110, 112, 114, 117, 118, 119, 121, 124, 128, 131, 138, 141, 143, 147, 150, 151], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "adDrivers();\n"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "date();\n"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "vicesChanged();\n"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "tDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "ndowReset();\n"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "dHandler(InputHandler* pHandler);\n"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "tHandlerForDevice(InputDevice id);\n"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "tDeviceSpecificInputString(const DeviceInput& di);\n"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "tLocalizedInputString(const DeviceInput& di);\n"}, {"node_id": 103, "universal_type": "function", "name": "bUseCurrentKeyModifiers);", "text_snippet": "viceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "tInputDeviceState(InputDevice id);\n"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "tDisplayDevicesString() c"}, {"node_id": 127, "universal_type": "function", "name": "unknown", "text_snippet": "shSelf(lua_State* L);\n"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "ruct lua_State;\n"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "ruct l"}, {"node_id": 136, "universal_type": "class", "name": "unknown", "text_snippet": "tern P"}, {"node_id": 145, "universal_type": "class", "name": "unknown", "text_snippet": "tern R"}], "import_statements": [{"node_id": 6, "text": "nclude \"Etterna/Models/Misc/Preference.h\"\n#i"}, {"node_id": 7, "text": "nclude \""}, {"node_id": 9, "text": "nclude \"RageInputDevice.h\"\n\ns"}, {"node_id": 10, "text": "nclude \""}]}, "original_source_code": "\ufeff/* RageInput - Starts up InputHandlers, which generate InputEvents. */\n\n#ifndef RAGEINPUT_H\n#define RAGEINPUT_H\n\n#include \"Etterna/Models/Misc/Preference.h\"\n#include \"RageInputDevice.h\"\n\nstruct lua_State;\nclass InputHandler;\n\nclass RageInput\n{\n public:\n\tRageInput();\n\t~RageInput();\n\n\tvoid LoadDrivers();\n\tvoid Update();\n\tbool DevicesChanged();\n\tvoid GetDevicesAndDescriptions(vector<InputDeviceInfo>& vOut) const;\n\tvoid WindowReset();\n\tvoid AddHandler(InputHandler* pHandler);\n\tInputHandler* GetHandlerForDevice(InputDevice id);\n\tRString GetDeviceSpecificInputString(const DeviceInput& di);\n\tRString GetLocalizedInputString(const DeviceInput& di);\n\twchar_t DeviceInputToChar(DeviceInput di, bool bUseCurrentKeyModifiers);\n\tInputDeviceState GetInputDeviceState(InputDevice id);\n\tRString GetDisplayDevicesString() const;\n\n\t// Lua\n\tvoid PushSelf(lua_State* L);\n};\n\nextern Preference<RString> g_sInputDrivers;\n\nextern RageInput*\n INPUTMAN; // global and accessible from anywhere in our program\n\n#endif\n"}
80,800
c
/* C H A R C L A S S . H * * Based off of OpenBSD's charclass.h v 1.1 2008/10/01 * * Public domain, 2008, <NAME> <<EMAIL>> * * POSIX character class support for fnmatch() and glob(). */ #include "common.h" #include <stdlib.h> #include <ctype.h> #include <string.h> #include "bio.h" /* isblank appears to be obsolete in newer ctype.h files so use * fnblank instead when looking for the "blank" character class. */ static inline int fnblank(int c) { #ifdef isblank return isblank(c); #else return c == ' ' || c == '\t'; #endif } static inline int fnalnum(int c) { return isalnum(c); } static inline int fnalpha(int c) { return isalpha(c); } static inline int fncntrl(int c) { return iscntrl(c); } static inline int fndigit(int c) { return isdigit(c); } static inline int fngraph(int c) { return isgraph(c); } static inline int fnlower(int c) { return islower(c); } static inline int fnprint(int c) { return isprint(c); } static inline int fnpunct(int c) { return ispunct(c); } static inline int fnspace(int c) { return isspace(c); } static inline int fnupper(int c) { return isupper(c); } static inline int fnxdigit(int c) { return isxdigit(c); } typedef struct _charclass { const char *idstring; /* identifying string */ int (*checkfun)(int); /* testing function */ } CHARCLASS; static const struct cclass { const char *name; int (*isctype)(int); } cclasses[] = { { "alnum", fnalnum }, { "alpha", fnalpha }, { "blank", fnblank }, { "cntrl", fncntrl }, { "digit", fndigit }, { "graph", fngraph }, { "lower", fnlower }, { "print", fnprint }, { "punct", fnpunct }, { "space", fnspace }, { "upper", fnupper }, { "xdigit", fnxdigit }, { NULL, NULL } }; #define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1) /* * Local Variables: * tab-width: 8 * mode: C * indent-tabs-mode: t * c-file-style: "stroustrup" * End: * ex: shiftwidth=4 tabstop=8 */
14.9
124
(translation_unit) "/* C H A R C L A S S . H\n *\n * Based off of OpenBSD's charclass.h v 1.1 2008/10/01\n *\n * Public domain, 2008, <NAME> <<EMAIL>>\n *\n * POSIX character class support for fnmatch() and glob().\n */\n\n#include "common.h"\n\n#include <stdlib.h>\n#include <ctype.h>\n#include <string.h>\n#include "bio.h"\n\n/* isblank appears to be obsolete in newer ctype.h files so use\n * fnblank instead when looking for the "blank" character class.\n */\nstatic inline int\nfnblank(int c)\n{\n#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' || c == '\t';\n#endif\n}\n\n\nstatic inline int\nfnalnum(int c)\n{\n return isalnum(c);\n}\n\n\nstatic inline int\nfnalpha(int c)\n{\n return isalpha(c);\n}\n\n\nstatic inline int\nfncntrl(int c)\n{\n return iscntrl(c);\n}\n\n\nstatic inline int\nfndigit(int c)\n{\n return isdigit(c);\n}\n\n\nstatic inline int\nfngraph(int c)\n{\n return isgraph(c);\n}\n\n\nstatic inline int\nfnlower(int c)\n{\n return islower(c);\n}\n\n\nstatic inline int\nfnprint(int c)\n{\n return isprint(c);\n}\n\n\nstatic inline int\nfnpunct(int c)\n{\n return ispunct(c);\n}\n\n\nstatic inline int\nfnspace(int c)\n{\n return isspace(c);\n}\n\n\nstatic inline int\nfnupper(int c)\n{\n return isupper(c);\n}\n\n\nstatic inline int\nfnxdigit(int c)\n{\n return isxdigit(c);\n}\n\n\ntypedef struct _charclass {\n const char *idstring; /* identifying string */\n int (*checkfun)(int); /* testing function */\n} CHARCLASS;\n\nstatic const struct cclass {\n const char *name;\n int (*isctype)(int);\n} cclasses[] = {\n { "alnum", fnalnum },\n { "alpha", fnalpha },\n { "blank", fnblank },\n { "cntrl", fncntrl },\n { "digit", fndigit },\n { "graph", fngraph },\n { "lower", fnlower },\n { "print", fnprint },\n { "punct", fnpunct },\n { "space", fnspace },\n { "upper", fnupper },\n { "xdigit", fnxdigit },\n { NULL, NULL }\n};\n\n#define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)\n\n/*\n * Local Variables:\n * tab-width: 8\n * mode: C\n * indent-tabs-mode: t\n * c-file-style: "stroustrup"\n * End:\n * ex: shiftwidth=4 tabstop=8\n */\n" (comment) "/* C H A R C L A S S . H\n *\n * Based off of OpenBSD's charclass.h v 1.1 2008/10/01\n *\n * Public domain, 2008, <NAME> <<EMAIL>>\n *\n * POSIX character class support for fnmatch() and glob().\n */" (preproc_include) "#include "common.h"\n" (#include) "#include" (string_literal) ""common.h"" (") """ (string_content) "common.h" (") """ (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include "bio.h"\n" (#include) "#include" (string_literal) ""bio.h"" (") """ (string_content) "bio.h" (") """ (comment) "/* isblank appears to be obsolete in newer ctype.h files so use\n * fnblank instead when looking for the "blank" character class.\n */" (function_definition) "static inline int\nfnblank(int c)\n{\n#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' || c == '\t';\n#endif\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnblank(int c)" (identifier) "fnblank" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' || c == '\t';\n#endif\n}" ({) "{" (preproc_ifdef) "#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' || c == '\t';\n#endif" (#ifdef) "#ifdef" (identifier) "isblank" (return_statement) "return isblank(c);" (return) "return" (call_expression) "isblank(c)" (identifier) "isblank" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (preproc_else) "#else\n return c == ' ' || c == '\t';" (#else) "#else" (return_statement) "return c == ' ' || c == '\t';" (return) "return" (binary_expression) "c == ' ' || c == '\t'" (binary_expression) "c == ' '" (identifier) "c" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" (||) "||" (binary_expression) "c == '\t'" (identifier) "c" (==) "==" (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" (;) ";" (#endif) "#endif" (}) "}" (function_definition) "static inline int\nfnalnum(int c)\n{\n return isalnum(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnalnum(int c)" (identifier) "fnalnum" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isalnum(c);\n}" ({) "{" (return_statement) "return isalnum(c);" (return) "return" (call_expression) "isalnum(c)" (identifier) "isalnum" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfnalpha(int c)\n{\n return isalpha(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnalpha(int c)" (identifier) "fnalpha" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isalpha(c);\n}" ({) "{" (return_statement) "return isalpha(c);" (return) "return" (call_expression) "isalpha(c)" (identifier) "isalpha" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfncntrl(int c)\n{\n return iscntrl(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fncntrl(int c)" (identifier) "fncntrl" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return iscntrl(c);\n}" ({) "{" (return_statement) "return iscntrl(c);" (return) "return" (call_expression) "iscntrl(c)" (identifier) "iscntrl" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfndigit(int c)\n{\n return isdigit(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fndigit(int c)" (identifier) "fndigit" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isdigit(c);\n}" ({) "{" (return_statement) "return isdigit(c);" (return) "return" (call_expression) "isdigit(c)" (identifier) "isdigit" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfngraph(int c)\n{\n return isgraph(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fngraph(int c)" (identifier) "fngraph" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isgraph(c);\n}" ({) "{" (return_statement) "return isgraph(c);" (return) "return" (call_expression) "isgraph(c)" (identifier) "isgraph" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfnlower(int c)\n{\n return islower(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnlower(int c)" (identifier) "fnlower" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return islower(c);\n}" ({) "{" (return_statement) "return islower(c);" (return) "return" (call_expression) "islower(c)" (identifier) "islower" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfnprint(int c)\n{\n return isprint(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnprint(int c)" (identifier) "fnprint" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isprint(c);\n}" ({) "{" (return_statement) "return isprint(c);" (return) "return" (call_expression) "isprint(c)" (identifier) "isprint" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfnpunct(int c)\n{\n return ispunct(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnpunct(int c)" (identifier) "fnpunct" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return ispunct(c);\n}" ({) "{" (return_statement) "return ispunct(c);" (return) "return" (call_expression) "ispunct(c)" (identifier) "ispunct" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfnspace(int c)\n{\n return isspace(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnspace(int c)" (identifier) "fnspace" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isspace(c);\n}" ({) "{" (return_statement) "return isspace(c);" (return) "return" (call_expression) "isspace(c)" (identifier) "isspace" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfnupper(int c)\n{\n return isupper(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnupper(int c)" (identifier) "fnupper" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isupper(c);\n}" ({) "{" (return_statement) "return isupper(c);" (return) "return" (call_expression) "isupper(c)" (identifier) "isupper" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (function_definition) "static inline int\nfnxdigit(int c)\n{\n return isxdigit(c);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "fnxdigit(int c)" (identifier) "fnxdigit" (parameter_list) "(int c)" (() "(" (parameter_declaration) "int c" (primitive_type) "int" (identifier) "c" ()) ")" (compound_statement) "{\n return isxdigit(c);\n}" ({) "{" (return_statement) "return isxdigit(c);" (return) "return" (call_expression) "isxdigit(c)" (identifier) "isxdigit" (argument_list) "(c)" (() "(" (identifier) "c" ()) ")" (;) ";" (}) "}" (type_definition) "typedef struct _charclass {\n const char *idstring; /* identifying string */\n int (*checkfun)(int); /* testing function */\n} CHARCLASS;" (typedef) "typedef" (struct_specifier) "struct _charclass {\n const char *idstring; /* identifying string */\n int (*checkfun)(int); /* testing function */\n}" (struct) "struct" (type_identifier) "_charclass" (field_declaration_list) "{\n const char *idstring; /* identifying string */\n int (*checkfun)(int); /* testing function */\n}" ({) "{" (field_declaration) "const char *idstring;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*idstring" (*) "*" (field_identifier) "idstring" (;) ";" (comment) "/* identifying string */" (field_declaration) "int (*checkfun)(int);" (primitive_type) "int" (function_declarator) "(*checkfun)(int)" (parenthesized_declarator) "(*checkfun)" (() "(" (pointer_declarator) "*checkfun" (*) "*" (field_identifier) "checkfun" ()) ")" (parameter_list) "(int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (comment) "/* testing function */" (}) "}" (type_identifier) "CHARCLASS" (;) ";" (declaration) "static const struct cclass {\n const char *name;\n int (*isctype)(int);\n} cclasses[] = {\n { "alnum", fnalnum },\n { "alpha", fnalpha },\n { "blank", fnblank },\n { "cntrl", fncntrl },\n { "digit", fndigit },\n { "graph", fngraph },\n { "lower", fnlower },\n { "print", fnprint },\n { "punct", fnpunct },\n { "space", fnspace },\n { "upper", fnupper },\n { "xdigit", fnxdigit },\n { NULL, NULL }\n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (struct_specifier) "struct cclass {\n const char *name;\n int (*isctype)(int);\n}" (struct) "struct" (type_identifier) "cclass" (field_declaration_list) "{\n const char *name;\n int (*isctype)(int);\n}" ({) "{" (field_declaration) "const char *name;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (field_declaration) "int (*isctype)(int);" (primitive_type) "int" (function_declarator) "(*isctype)(int)" (parenthesized_declarator) "(*isctype)" (() "(" (pointer_declarator) "*isctype" (*) "*" (field_identifier) "isctype" ()) ")" (parameter_list) "(int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (}) "}" (init_declarator) "cclasses[] = {\n { "alnum", fnalnum },\n { "alpha", fnalpha },\n { "blank", fnblank },\n { "cntrl", fncntrl },\n { "digit", fndigit },\n { "graph", fngraph },\n { "lower", fnlower },\n { "print", fnprint },\n { "punct", fnpunct },\n { "space", fnspace },\n { "upper", fnupper },\n { "xdigit", fnxdigit },\n { NULL, NULL }\n}" (array_declarator) "cclasses[]" (identifier) "cclasses" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n { "alnum", fnalnum },\n { "alpha", fnalpha },\n { "blank", fnblank },\n { "cntrl", fncntrl },\n { "digit", fndigit },\n { "graph", fngraph },\n { "lower", fnlower },\n { "print", fnprint },\n { "punct", fnpunct },\n { "space", fnspace },\n { "upper", fnupper },\n { "xdigit", fnxdigit },\n { NULL, NULL }\n}" ({) "{" (initializer_list) "{ "alnum", fnalnum }" ({) "{" (string_literal) ""alnum"" (") """ (string_content) "alnum" (") """ (,) "," (identifier) "fnalnum" (}) "}" (,) "," (initializer_list) "{ "alpha", fnalpha }" ({) "{" (string_literal) ""alpha"" (") """ (string_content) "alpha" (") """ (,) "," (identifier) "fnalpha" (}) "}" (,) "," (initializer_list) "{ "blank", fnblank }" ({) "{" (string_literal) ""blank"" (") """ (string_content) "blank" (") """ (,) "," (identifier) "fnblank" (}) "}" (,) "," (initializer_list) "{ "cntrl", fncntrl }" ({) "{" (string_literal) ""cntrl"" (") """ (string_content) "cntrl" (") """ (,) "," (identifier) "fncntrl" (}) "}" (,) "," (initializer_list) "{ "digit", fndigit }" ({) "{" (string_literal) ""digit"" (") """ (string_content) "digit" (") """ (,) "," (identifier) "fndigit" (}) "}" (,) "," (initializer_list) "{ "graph", fngraph }" ({) "{" (string_literal) ""graph"" (") """ (string_content) "graph" (") """ (,) "," (identifier) "fngraph" (}) "}" (,) "," (initializer_list) "{ "lower", fnlower }" ({) "{" (string_literal) ""lower"" (") """ (string_content) "lower" (") """ (,) "," (identifier) "fnlower" (}) "}" (,) "," (initializer_list) "{ "print", fnprint }" ({) "{" (string_literal) ""print"" (") """ (string_content) "print" (") """ (,) "," (identifier) "fnprint" (}) "}" (,) "," (initializer_list) "{ "punct", fnpunct }" ({) "{" (string_literal) ""punct"" (") """ (string_content) "punct" (") """ (,) "," (identifier) "fnpunct" (}) "}" (,) "," (initializer_list) "{ "space", fnspace }" ({) "{" (string_literal) ""space"" (") """ (string_content) "space" (") """ (,) "," (identifier) "fnspace" (}) "}" (,) "," (initializer_list) "{ "upper", fnupper }" ({) "{" (string_literal) ""upper"" (") """ (string_content) "upper" (") """ (,) "," (identifier) "fnupper" (}) "}" (,) "," (initializer_list) "{ "xdigit", fnxdigit }" ({) "{" (string_literal) ""xdigit"" (") """ (string_content) "xdigit" (") """ (,) "," (identifier) "fnxdigit" (}) "}" (,) "," (initializer_list) "{ NULL, NULL }" ({) "{" (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (}) "}" (}) "}" (;) ";" (preproc_def) "#define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)\n" (#define) "#define" (identifier) "NCCLASSES" (preproc_arg) "(sizeof(cclasses) / sizeof(cclasses[0]) - 1)" (comment) "/*\n * Local Variables:\n * tab-width: 8\n * mode: C\n * indent-tabs-mode: t\n * c-file-style: "stroustrup"\n * End:\n * ex: shiftwidth=4 tabstop=8\n */"
573
0
{"language": "c", "success": true, "metadata": {"lines": 124, "avg_line_length": 14.9, "nodes": 308, "errors": 0, "source_hash": "d9674fdfb3dc1b7158c2b09a7c390ebcd161d8a0a9115587c7bf9aed890b2c3c", "categorized_nodes": 194}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"common.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"common.h\"", "parent": 0, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.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": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <ctype.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": "<ctype.h>", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <string.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": "<string.h>", "parent": 9, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"bio.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": "string_literal", "text": "\"bio.h\"", "parent": 12, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 16}}, {"id": 15, "type": "function_definition", "text": "static inline int\nfnblank(int c)\n{\n#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' || c == '\\t';\n#endif\n}", "parent": null, "children": [16, 18, 19], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 16, "type": "storage_class_specifier", "text": "inline", "parent": 15, "children": [17], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 13}}, {"id": 17, "type": "inline", "text": "inline", "parent": 16, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 13}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 17}}, {"id": 19, "type": "function_declarator", "text": "fnblank(int c)", "parent": 15, "children": [20, 21], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 14}}, {"id": 20, "type": "identifier", "text": "fnblank", "parent": 19, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 21, "type": "parameter_list", "text": "(int c)", "parent": 19, "children": [22], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 14}}, {"id": 22, "type": "parameter_declaration", "text": "int c", "parent": 21, "children": [23, 24], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 11}}, {"id": 24, "type": "identifier", "text": "c", "parent": 22, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 25, "type": "preproc_ifdef", "text": "#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' || c == '\\t';\n#endif", "parent": 15, "children": [26, 27, 28, 33, 52], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 26, "type": "#ifdef", "text": "#ifdef", "parent": 25, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 27, "type": "identifier", "text": "isblank", "parent": 25, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 14}}, {"id": 28, "type": "return_statement", "text": "return isblank(c);", "parent": 25, "children": [29], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 22}}, {"id": 29, "type": "call_expression", "text": "isblank(c)", "parent": 28, "children": [30, 31], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 21}}, {"id": 30, "type": "identifier", "text": "isblank", "parent": 29, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 18}}, {"id": 31, "type": "argument_list", "text": "(c)", "parent": 29, "children": [32], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 21}}, {"id": 32, "type": "identifier", "text": "c", "parent": 31, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 33, "type": "preproc_else", "text": "#else\n return c == ' ' || c == '\\t';", "parent": 25, "children": [34, 35], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 33}}, {"id": 34, "type": "#else", "text": "#else", "parent": 33, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 5}}, {"id": 35, "type": "return_statement", "text": "return c == ' ' || c == '\\t';", "parent": 33, "children": [36], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 33}}, {"id": 36, "type": "binary_expression", "text": "c == ' ' || c == '\\t'", "parent": 35, "children": [37, 44, 45], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 32}}, {"id": 37, "type": "binary_expression", "text": "c == ' '", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 19}}, {"id": 38, "type": "identifier", "text": "c", "parent": 37, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 39, "type": "==", "text": "==", "parent": 37, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 15}}, {"id": 40, "type": "char_literal", "text": "' '", "parent": 37, "children": [41, 42, 43], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 19}}, {"id": 41, "type": "'", "text": "'", "parent": 40, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 17}}, {"id": 42, "type": "character", "text": " ", "parent": 40, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 18}}, {"id": 43, "type": "'", "text": "'", "parent": 40, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 19}}, {"id": 44, "type": "||", "text": "||", "parent": 36, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 22}}, {"id": 45, "type": "binary_expression", "text": "c == '\\t'", "parent": 36, "children": [46, 47, 48], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 32}}, {"id": 46, "type": "identifier", "text": "c", "parent": 45, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 24}}, {"id": 47, "type": "==", "text": "==", "parent": 45, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 27}}, {"id": 48, "type": "char_literal", "text": "'\\t'", "parent": 45, "children": [49, 50, 51], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 49, "type": "'", "text": "'", "parent": 48, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 29}}, {"id": 50, "type": "escape_sequence", "text": "\\t", "parent": 48, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 31}}, {"id": 51, "type": "'", "text": "'", "parent": 48, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 32}}, {"id": 52, "type": "#endif", "text": "#endif", "parent": 25, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 53, "type": "function_definition", "text": "static inline int\nfnalnum(int c)\n{\n return isalnum(c);\n}", "parent": null, "children": [54, 56, 57], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 54, "type": "storage_class_specifier", "text": "inline", "parent": 53, "children": [55], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 13}}, {"id": 55, "type": "inline", "text": "inline", "parent": 54, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 13}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 17}}, {"id": 57, "type": "function_declarator", "text": "fnalnum(int c)", "parent": 53, "children": [58, 59], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 14}}, {"id": 58, "type": "identifier", "text": "fnalnum", "parent": 57, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 59, "type": "parameter_list", "text": "(int c)", "parent": 57, "children": [60], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 14}}, {"id": 60, "type": "parameter_declaration", "text": "int c", "parent": 59, "children": [61, 62], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 13}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 11}}, {"id": 62, "type": "identifier", "text": "c", "parent": 60, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 13}}, {"id": 63, "type": "return_statement", "text": "return isalnum(c);", "parent": 53, "children": [64], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 22}}, {"id": 64, "type": "call_expression", "text": "isalnum(c)", "parent": 63, "children": [65, 66], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 21}}, {"id": 65, "type": "identifier", "text": "isalnum", "parent": 64, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 18}}, {"id": 66, "type": "argument_list", "text": "(c)", "parent": 64, "children": [67], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 21}}, {"id": 67, "type": "identifier", "text": "c", "parent": 66, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 68, "type": "function_definition", "text": "static inline int\nfnalpha(int c)\n{\n return isalpha(c);\n}", "parent": null, "children": [69, 71, 72], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 69, "type": "storage_class_specifier", "text": "inline", "parent": 68, "children": [70], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 13}}, {"id": 70, "type": "inline", "text": "inline", "parent": 69, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 13}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 17}}, {"id": 72, "type": "function_declarator", "text": "fnalpha(int c)", "parent": 68, "children": [73, 74], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 14}}, {"id": 73, "type": "identifier", "text": "fnalpha", "parent": 72, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 74, "type": "parameter_list", "text": "(int c)", "parent": 72, "children": [75], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 14}}, {"id": 75, "type": "parameter_declaration", "text": "int c", "parent": 74, "children": [76, 77], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 13}}, {"id": 76, "type": "primitive_type", "text": "int", "parent": 75, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 11}}, {"id": 77, "type": "identifier", "text": "c", "parent": 75, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 78, "type": "return_statement", "text": "return isalpha(c);", "parent": 68, "children": [79], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 22}}, {"id": 79, "type": "call_expression", "text": "isalpha(c)", "parent": 78, "children": [80, 81], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 21}}, {"id": 80, "type": "identifier", "text": "isalpha", "parent": 79, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 18}}, {"id": 81, "type": "argument_list", "text": "(c)", "parent": 79, "children": [82], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 21}}, {"id": 82, "type": "identifier", "text": "c", "parent": 81, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 20}}, {"id": 83, "type": "function_definition", "text": "static inline int\nfncntrl(int c)\n{\n return iscntrl(c);\n}", "parent": null, "children": [84, 86, 87], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 84, "type": "storage_class_specifier", "text": "inline", "parent": 83, "children": [85], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 13}}, {"id": 85, "type": "inline", "text": "inline", "parent": 84, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 13}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 17}}, {"id": 87, "type": "function_declarator", "text": "fncntrl(int c)", "parent": 83, "children": [88, 89], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 14}}, {"id": 88, "type": "identifier", "text": "fncntrl", "parent": 87, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 89, "type": "parameter_list", "text": "(int c)", "parent": 87, "children": [90], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 14}}, {"id": 90, "type": "parameter_declaration", "text": "int c", "parent": 89, "children": [91, 92], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 13}}, {"id": 91, "type": "primitive_type", "text": "int", "parent": 90, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 11}}, {"id": 92, "type": "identifier", "text": "c", "parent": 90, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 93, "type": "return_statement", "text": "return iscntrl(c);", "parent": 83, "children": [94], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 22}}, {"id": 94, "type": "call_expression", "text": "iscntrl(c)", "parent": 93, "children": [95, 96], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 21}}, {"id": 95, "type": "identifier", "text": "iscntrl", "parent": 94, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 18}}, {"id": 96, "type": "argument_list", "text": "(c)", "parent": 94, "children": [97], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 21}}, {"id": 97, "type": "identifier", "text": "c", "parent": 96, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 98, "type": "function_definition", "text": "static inline int\nfndigit(int c)\n{\n return isdigit(c);\n}", "parent": null, "children": [99, 101, 102], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 99, "type": "storage_class_specifier", "text": "inline", "parent": 98, "children": [100], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 13}}, {"id": 100, "type": "inline", "text": "inline", "parent": 99, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 13}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 98, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 17}}, {"id": 102, "type": "function_declarator", "text": "fndigit(int c)", "parent": 98, "children": [103, 104], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 14}}, {"id": 103, "type": "identifier", "text": "fndigit", "parent": 102, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 104, "type": "parameter_list", "text": "(int c)", "parent": 102, "children": [105], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 14}}, {"id": 105, "type": "parameter_declaration", "text": "int c", "parent": 104, "children": [106, 107], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 13}}, {"id": 106, "type": "primitive_type", "text": "int", "parent": 105, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 11}}, {"id": 107, "type": "identifier", "text": "c", "parent": 105, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 13}}, {"id": 108, "type": "return_statement", "text": "return isdigit(c);", "parent": 98, "children": [109], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 22}}, {"id": 109, "type": "call_expression", "text": "isdigit(c)", "parent": 108, "children": [110, 111], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 21}}, {"id": 110, "type": "identifier", "text": "isdigit", "parent": 109, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 18}}, {"id": 111, "type": "argument_list", "text": "(c)", "parent": 109, "children": [112], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 21}}, {"id": 112, "type": "identifier", "text": "c", "parent": 111, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 20}}, {"id": 113, "type": "function_definition", "text": "static inline int\nfngraph(int c)\n{\n return isgraph(c);\n}", "parent": null, "children": [114, 116, 117], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 114, "type": "storage_class_specifier", "text": "inline", "parent": 113, "children": [115], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 13}}, {"id": 115, "type": "inline", "text": "inline", "parent": 114, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 13}}, {"id": 116, "type": "primitive_type", "text": "int", "parent": 113, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 17}}, {"id": 117, "type": "function_declarator", "text": "fngraph(int c)", "parent": 113, "children": [118, 119], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 14}}, {"id": 118, "type": "identifier", "text": "fngraph", "parent": 117, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 119, "type": "parameter_list", "text": "(int c)", "parent": 117, "children": [120], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 14}}, {"id": 120, "type": "parameter_declaration", "text": "int c", "parent": 119, "children": [121, 122], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 13}}, {"id": 121, "type": "primitive_type", "text": "int", "parent": 120, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 11}}, {"id": 122, "type": "identifier", "text": "c", "parent": 120, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 13}}, {"id": 123, "type": "return_statement", "text": "return isgraph(c);", "parent": 113, "children": [124], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 22}}, {"id": 124, "type": "call_expression", "text": "isgraph(c)", "parent": 123, "children": [125, 126], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 21}}, {"id": 125, "type": "identifier", "text": "isgraph", "parent": 124, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 18}}, {"id": 126, "type": "argument_list", "text": "(c)", "parent": 124, "children": [127], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 21}}, {"id": 127, "type": "identifier", "text": "c", "parent": 126, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 128, "type": "function_definition", "text": "static inline int\nfnlower(int c)\n{\n return islower(c);\n}", "parent": null, "children": [129, 131, 132], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 129, "type": "storage_class_specifier", "text": "inline", "parent": 128, "children": [130], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 13}}, {"id": 130, "type": "inline", "text": "inline", "parent": 129, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 13}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 17}}, {"id": 132, "type": "function_declarator", "text": "fnlower(int c)", "parent": 128, "children": [133, 134], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 14}}, {"id": 133, "type": "identifier", "text": "fnlower", "parent": 132, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 134, "type": "parameter_list", "text": "(int c)", "parent": 132, "children": [135], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 14}}, {"id": 135, "type": "parameter_declaration", "text": "int c", "parent": 134, "children": [136, 137], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 13}}, {"id": 136, "type": "primitive_type", "text": "int", "parent": 135, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 11}}, {"id": 137, "type": "identifier", "text": "c", "parent": 135, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 138, "type": "return_statement", "text": "return islower(c);", "parent": 128, "children": [139], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 22}}, {"id": 139, "type": "call_expression", "text": "islower(c)", "parent": 138, "children": [140, 141], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 21}}, {"id": 140, "type": "identifier", "text": "islower", "parent": 139, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 18}}, {"id": 141, "type": "argument_list", "text": "(c)", "parent": 139, "children": [142], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 21}}, {"id": 142, "type": "identifier", "text": "c", "parent": 141, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 20}}, {"id": 143, "type": "function_definition", "text": "static inline int\nfnprint(int c)\n{\n return isprint(c);\n}", "parent": null, "children": [144, 146, 147], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 144, "type": "storage_class_specifier", "text": "inline", "parent": 143, "children": [145], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 13}}, {"id": 145, "type": "inline", "text": "inline", "parent": 144, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 13}}, {"id": 146, "type": "primitive_type", "text": "int", "parent": 143, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 17}}, {"id": 147, "type": "function_declarator", "text": "fnprint(int c)", "parent": 143, "children": [148, 149], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 14}}, {"id": 148, "type": "identifier", "text": "fnprint", "parent": 147, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 7}}, {"id": 149, "type": "parameter_list", "text": "(int c)", "parent": 147, "children": [150], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 14}}, {"id": 150, "type": "parameter_declaration", "text": "int c", "parent": 149, "children": [151, 152], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 13}}, {"id": 151, "type": "primitive_type", "text": "int", "parent": 150, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 11}}, {"id": 152, "type": "identifier", "text": "c", "parent": 150, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 13}}, {"id": 153, "type": "return_statement", "text": "return isprint(c);", "parent": 143, "children": [154], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 22}}, {"id": 154, "type": "call_expression", "text": "isprint(c)", "parent": 153, "children": [155, 156], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 21}}, {"id": 155, "type": "identifier", "text": "isprint", "parent": 154, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 18}}, {"id": 156, "type": "argument_list", "text": "(c)", "parent": 154, "children": [157], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 21}}, {"id": 157, "type": "identifier", "text": "c", "parent": 156, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 20}}, {"id": 158, "type": "function_definition", "text": "static inline int\nfnpunct(int c)\n{\n return ispunct(c);\n}", "parent": null, "children": [159, 161, 162], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 159, "type": "storage_class_specifier", "text": "inline", "parent": 158, "children": [160], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 13}}, {"id": 160, "type": "inline", "text": "inline", "parent": 159, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 13}}, {"id": 161, "type": "primitive_type", "text": "int", "parent": 158, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 17}}, {"id": 162, "type": "function_declarator", "text": "fnpunct(int c)", "parent": 158, "children": [163, 164], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 14}}, {"id": 163, "type": "identifier", "text": "fnpunct", "parent": 162, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 7}}, {"id": 164, "type": "parameter_list", "text": "(int c)", "parent": 162, "children": [165], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 14}}, {"id": 165, "type": "parameter_declaration", "text": "int c", "parent": 164, "children": [166, 167], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 13}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 165, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 11}}, {"id": 167, "type": "identifier", "text": "c", "parent": 165, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 13}}, {"id": 168, "type": "return_statement", "text": "return ispunct(c);", "parent": 158, "children": [169], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 22}}, {"id": 169, "type": "call_expression", "text": "ispunct(c)", "parent": 168, "children": [170, 171], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 21}}, {"id": 170, "type": "identifier", "text": "ispunct", "parent": 169, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 18}}, {"id": 171, "type": "argument_list", "text": "(c)", "parent": 169, "children": [172], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 21}}, {"id": 172, "type": "identifier", "text": "c", "parent": 171, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 20}}, {"id": 173, "type": "function_definition", "text": "static inline int\nfnspace(int c)\n{\n return isspace(c);\n}", "parent": null, "children": [174, 176, 177], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 90, "column": 1}}, {"id": 174, "type": "storage_class_specifier", "text": "inline", "parent": 173, "children": [175], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 13}}, {"id": 175, "type": "inline", "text": "inline", "parent": 174, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 13}}, {"id": 176, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 17}}, {"id": 177, "type": "function_declarator", "text": "fnspace(int c)", "parent": 173, "children": [178, 179], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 14}}, {"id": 178, "type": "identifier", "text": "fnspace", "parent": 177, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 7}}, {"id": 179, "type": "parameter_list", "text": "(int c)", "parent": 177, "children": [180], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 14}}, {"id": 180, "type": "parameter_declaration", "text": "int c", "parent": 179, "children": [181, 182], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 13}}, {"id": 181, "type": "primitive_type", "text": "int", "parent": 180, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 11}}, {"id": 182, "type": "identifier", "text": "c", "parent": 180, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 13}}, {"id": 183, "type": "return_statement", "text": "return isspace(c);", "parent": 173, "children": [184], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 22}}, {"id": 184, "type": "call_expression", "text": "isspace(c)", "parent": 183, "children": [185, 186], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 21}}, {"id": 185, "type": "identifier", "text": "isspace", "parent": 184, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 18}}, {"id": 186, "type": "argument_list", "text": "(c)", "parent": 184, "children": [187], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 21}}, {"id": 187, "type": "identifier", "text": "c", "parent": 186, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 188, "type": "function_definition", "text": "static inline int\nfnupper(int c)\n{\n return isupper(c);\n}", "parent": null, "children": [189, 191, 192], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 97, "column": 1}}, {"id": 189, "type": "storage_class_specifier", "text": "inline", "parent": 188, "children": [190], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 13}}, {"id": 190, "type": "inline", "text": "inline", "parent": 189, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 13}}, {"id": 191, "type": "primitive_type", "text": "int", "parent": 188, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 17}}, {"id": 192, "type": "function_declarator", "text": "fnupper(int c)", "parent": 188, "children": [193, 194], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 14}}, {"id": 193, "type": "identifier", "text": "fnupper", "parent": 192, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 7}}, {"id": 194, "type": "parameter_list", "text": "(int c)", "parent": 192, "children": [195], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 14}}, {"id": 195, "type": "parameter_declaration", "text": "int c", "parent": 194, "children": [196, 197], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 13}}, {"id": 196, "type": "primitive_type", "text": "int", "parent": 195, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 11}}, {"id": 197, "type": "identifier", "text": "c", "parent": 195, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 13}}, {"id": 198, "type": "return_statement", "text": "return isupper(c);", "parent": 188, "children": [199], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 22}}, {"id": 199, "type": "call_expression", "text": "isupper(c)", "parent": 198, "children": [200, 201], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 21}}, {"id": 200, "type": "identifier", "text": "isupper", "parent": 199, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 18}}, {"id": 201, "type": "argument_list", "text": "(c)", "parent": 199, "children": [202], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 21}}, {"id": 202, "type": "identifier", "text": "c", "parent": 201, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 203, "type": "function_definition", "text": "static inline int\nfnxdigit(int c)\n{\n return isxdigit(c);\n}", "parent": null, "children": [204, 206, 207], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 104, "column": 1}}, {"id": 204, "type": "storage_class_specifier", "text": "inline", "parent": 203, "children": [205], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 13}}, {"id": 205, "type": "inline", "text": "inline", "parent": 204, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 13}}, {"id": 206, "type": "primitive_type", "text": "int", "parent": 203, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 17}}, {"id": 207, "type": "function_declarator", "text": "fnxdigit(int c)", "parent": 203, "children": [208, 209], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 15}}, {"id": 208, "type": "identifier", "text": "fnxdigit", "parent": 207, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 8}}, {"id": 209, "type": "parameter_list", "text": "(int c)", "parent": 207, "children": [210], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 15}}, {"id": 210, "type": "parameter_declaration", "text": "int c", "parent": 209, "children": [211, 212], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 14}}, {"id": 211, "type": "primitive_type", "text": "int", "parent": 210, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 12}}, {"id": 212, "type": "identifier", "text": "c", "parent": 210, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 14}}, {"id": 213, "type": "return_statement", "text": "return isxdigit(c);", "parent": 203, "children": [214], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 23}}, {"id": 214, "type": "call_expression", "text": "isxdigit(c)", "parent": 213, "children": [215, 216], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 22}}, {"id": 215, "type": "identifier", "text": "isxdigit", "parent": 214, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 19}}, {"id": 216, "type": "argument_list", "text": "(c)", "parent": 214, "children": [217], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 22}}, {"id": 217, "type": "identifier", "text": "c", "parent": 216, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 21}}, {"id": 218, "type": "type_definition", "text": "typedef struct _charclass {\n const char *idstring;\t/* identifying string */\n int (*checkfun)(int);\t/* testing function */\n} CHARCLASS;", "parent": null, "children": [219, 220, 238], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 110, "column": 12}}, {"id": 219, "type": "typedef", "text": "typedef", "parent": 218, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 7}}, {"id": 220, "type": "struct_specifier", "text": "struct _charclass {\n const char *idstring;\t/* identifying string */\n int (*checkfun)(int);\t/* testing function */\n}", "parent": 218, "children": [221, 222], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 110, "column": 1}}, {"id": 221, "type": "struct", "text": "struct", "parent": 220, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 14}}, {"id": 222, "type": "type_identifier", "text": "_charclass", "parent": 220, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 25}}, {"id": 223, "type": "field_declaration", "text": "const char *idstring;", "parent": 220, "children": [224, 225], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 25}}, {"id": 224, "type": "primitive_type", "text": "char", "parent": 223, "children": [], "start_point": {"row": 108, "column": 10}, "end_point": {"row": 108, "column": 14}}, {"id": 225, "type": "pointer_declarator", "text": "*idstring", "parent": 223, "children": [226, 227], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 24}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 16}}, {"id": 227, "type": "field_identifier", "text": "idstring", "parent": 225, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 24}}, {"id": 228, "type": "field_declaration", "text": "int (*checkfun)(int);", "parent": 220, "children": [229, 230], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 25}}, {"id": 229, "type": "primitive_type", "text": "int", "parent": 228, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 7}}, {"id": 230, "type": "function_declarator", "text": "(*checkfun)(int)", "parent": 228, "children": [231, 235], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 24}}, {"id": 231, "type": "parenthesized_declarator", "text": "(*checkfun)", "parent": 230, "children": [232], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 19}}, {"id": 232, "type": "pointer_declarator", "text": "*checkfun", "parent": 231, "children": [233, 234], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 18}}, {"id": 233, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 10}}, {"id": 234, "type": "field_identifier", "text": "checkfun", "parent": 232, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 18}}, {"id": 235, "type": "parameter_list", "text": "(int)", "parent": 230, "children": [236], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 24}}, {"id": 236, "type": "parameter_declaration", "text": "int", "parent": 235, "children": [237], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 23}}, {"id": 237, "type": "primitive_type", "text": "int", "parent": 236, "children": [], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 23}}, {"id": 238, "type": "type_identifier", "text": "CHARCLASS", "parent": 218, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 11}}, {"id": 239, "type": "declaration", "text": "static const struct cclass {\n\tconst char *name;\n\tint (*isctype)(int);\n} cclasses[] = {\n\t{ \"alnum\",\tfnalnum },\n\t{ \"alpha\",\tfnalpha },\n\t{ \"blank\",\tfnblank },\n\t{ \"cntrl\",\tfncntrl },\n\t{ \"digit\",\tfndigit },\n\t{ \"graph\",\tfngraph },\n\t{ \"lower\",\tfnlower },\n\t{ \"print\",\tfnprint },\n\t{ \"punct\",\tfnpunct },\n\t{ \"space\",\tfnspace },\n\t{ \"upper\",\tfnupper },\n\t{ \"xdigit\",\tfnxdigit },\n\t{ NULL,\t\tNULL }\n};", "parent": null, "children": [240, 258], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 129, "column": 2}}, {"id": 240, "type": "struct_specifier", "text": "struct cclass {\n\tconst char *name;\n\tint (*isctype)(int);\n}", "parent": 239, "children": [241, 242], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 115, "column": 1}}, {"id": 241, "type": "struct", "text": "struct", "parent": 240, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 19}}, {"id": 242, "type": "type_identifier", "text": "cclass", "parent": 240, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 26}}, {"id": 243, "type": "field_declaration", "text": "const char *name;", "parent": 240, "children": [244, 245], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 18}}, {"id": 244, "type": "primitive_type", "text": "char", "parent": 243, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 11}}, {"id": 245, "type": "pointer_declarator", "text": "*name", "parent": 243, "children": [246, 247], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 17}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 13}}, {"id": 247, "type": "field_identifier", "text": "name", "parent": 245, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 17}}, {"id": 248, "type": "field_declaration", "text": "int (*isctype)(int);", "parent": 240, "children": [249, 250], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 21}}, {"id": 249, "type": "primitive_type", "text": "int", "parent": 248, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 4}}, {"id": 250, "type": "function_declarator", "text": "(*isctype)(int)", "parent": 248, "children": [251, 255], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 20}}, {"id": 251, "type": "parenthesized_declarator", "text": "(*isctype)", "parent": 250, "children": [252], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 15}}, {"id": 252, "type": "pointer_declarator", "text": "*isctype", "parent": 251, "children": [253, 254], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 14}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 7}}, {"id": 254, "type": "field_identifier", "text": "isctype", "parent": 252, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 14}}, {"id": 255, "type": "parameter_list", "text": "(int)", "parent": 250, "children": [256], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 20}}, {"id": 256, "type": "parameter_declaration", "text": "int", "parent": 255, "children": [257], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 19}}, {"id": 257, "type": "primitive_type", "text": "int", "parent": 256, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 19}}, {"id": 258, "type": "init_declarator", "text": "cclasses[] = {\n\t{ \"alnum\",\tfnalnum },\n\t{ \"alpha\",\tfnalpha },\n\t{ \"blank\",\tfnblank },\n\t{ \"cntrl\",\tfncntrl },\n\t{ \"digit\",\tfndigit },\n\t{ \"graph\",\tfngraph },\n\t{ \"lower\",\tfnlower },\n\t{ \"print\",\tfnprint },\n\t{ \"punct\",\tfnpunct },\n\t{ \"space\",\tfnspace },\n\t{ \"upper\",\tfnupper },\n\t{ \"xdigit\",\tfnxdigit },\n\t{ NULL,\t\tNULL }\n}", "parent": 239, "children": [259, 261, 262], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 129, "column": 1}}, {"id": 259, "type": "array_declarator", "text": "cclasses[]", "parent": 258, "children": [260], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 12}}, {"id": 260, "type": "identifier", "text": "cclasses", "parent": 259, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 10}}, {"id": 261, "type": "=", "text": "=", "parent": 258, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 14}}, {"id": 262, "type": "initializer_list", "text": "{\n\t{ \"alnum\",\tfnalnum },\n\t{ \"alpha\",\tfnalpha },\n\t{ \"blank\",\tfnblank },\n\t{ \"cntrl\",\tfncntrl },\n\t{ \"digit\",\tfndigit },\n\t{ \"graph\",\tfngraph },\n\t{ \"lower\",\tfnlower },\n\t{ \"print\",\tfnprint },\n\t{ \"punct\",\tfnpunct },\n\t{ \"space\",\tfnspace },\n\t{ \"upper\",\tfnupper },\n\t{ \"xdigit\",\tfnxdigit },\n\t{ NULL,\t\tNULL }\n}", "parent": 258, "children": [263, 266, 269, 272, 275, 278, 281, 284, 287, 290, 293, 296, 299], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 129, "column": 1}}, {"id": 263, "type": "initializer_list", "text": "{ \"alnum\",\tfnalnum }", "parent": 262, "children": [264, 265], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 21}}, {"id": 264, "type": "string_literal", "text": "\"alnum\"", "parent": 263, "children": [], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 10}}, {"id": 265, "type": "identifier", "text": "fnalnum", "parent": 263, "children": [], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 19}}, {"id": 266, "type": "initializer_list", "text": "{ \"alpha\",\tfnalpha }", "parent": 262, "children": [267, 268], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 21}}, {"id": 267, "type": "string_literal", "text": "\"alpha\"", "parent": 266, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 10}}, {"id": 268, "type": "identifier", "text": "fnalpha", "parent": 266, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 19}}, {"id": 269, "type": "initializer_list", "text": "{ \"blank\",\tfnblank }", "parent": 262, "children": [270, 271], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 21}}, {"id": 270, "type": "string_literal", "text": "\"blank\"", "parent": 269, "children": [], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 10}}, {"id": 271, "type": "identifier", "text": "fnblank", "parent": 269, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 19}}, {"id": 272, "type": "initializer_list", "text": "{ \"cntrl\",\tfncntrl }", "parent": 262, "children": [273, 274], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 21}}, {"id": 273, "type": "string_literal", "text": "\"cntrl\"", "parent": 272, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 10}}, {"id": 274, "type": "identifier", "text": "fncntrl", "parent": 272, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 19}}, {"id": 275, "type": "initializer_list", "text": "{ \"digit\",\tfndigit }", "parent": 262, "children": [276, 277], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 21}}, {"id": 276, "type": "string_literal", "text": "\"digit\"", "parent": 275, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 10}}, {"id": 277, "type": "identifier", "text": "fndigit", "parent": 275, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 19}}, {"id": 278, "type": "initializer_list", "text": "{ \"graph\",\tfngraph }", "parent": 262, "children": [279, 280], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 21}}, {"id": 279, "type": "string_literal", "text": "\"graph\"", "parent": 278, "children": [], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 10}}, {"id": 280, "type": "identifier", "text": "fngraph", "parent": 278, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 19}}, {"id": 281, "type": "initializer_list", "text": "{ \"lower\",\tfnlower }", "parent": 262, "children": [282, 283], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 21}}, {"id": 282, "type": "string_literal", "text": "\"lower\"", "parent": 281, "children": [], "start_point": {"row": 122, "column": 3}, "end_point": {"row": 122, "column": 10}}, {"id": 283, "type": "identifier", "text": "fnlower", "parent": 281, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 19}}, {"id": 284, "type": "initializer_list", "text": "{ \"print\",\tfnprint }", "parent": 262, "children": [285, 286], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 21}}, {"id": 285, "type": "string_literal", "text": "\"print\"", "parent": 284, "children": [], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 10}}, {"id": 286, "type": "identifier", "text": "fnprint", "parent": 284, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 19}}, {"id": 287, "type": "initializer_list", "text": "{ \"punct\",\tfnpunct }", "parent": 262, "children": [288, 289], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 21}}, {"id": 288, "type": "string_literal", "text": "\"punct\"", "parent": 287, "children": [], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 10}}, {"id": 289, "type": "identifier", "text": "fnpunct", "parent": 287, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 19}}, {"id": 290, "type": "initializer_list", "text": "{ \"space\",\tfnspace }", "parent": 262, "children": [291, 292], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 21}}, {"id": 291, "type": "string_literal", "text": "\"space\"", "parent": 290, "children": [], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 10}}, {"id": 292, "type": "identifier", "text": "fnspace", "parent": 290, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 19}}, {"id": 293, "type": "initializer_list", "text": "{ \"upper\",\tfnupper }", "parent": 262, "children": [294, 295], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 21}}, {"id": 294, "type": "string_literal", "text": "\"upper\"", "parent": 293, "children": [], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 10}}, {"id": 295, "type": "identifier", "text": "fnupper", "parent": 293, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 19}}, {"id": 296, "type": "initializer_list", "text": "{ \"xdigit\",\tfnxdigit }", "parent": 262, "children": [297, 298], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 23}}, {"id": 297, "type": "string_literal", "text": "\"xdigit\"", "parent": 296, "children": [], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 11}}, {"id": 298, "type": "identifier", "text": "fnxdigit", "parent": 296, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 21}}, {"id": 299, "type": "initializer_list", "text": "{ NULL,\t\tNULL }", "parent": 262, "children": [300, 302], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 16}}, {"id": 300, "type": "null", "text": "NULL", "parent": 299, "children": [301], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 301, "type": "NULL", "text": "NULL", "parent": 300, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 302, "type": "null", "text": "NULL", "parent": 299, "children": [303], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 14}}, {"id": 303, "type": "NULL", "text": "NULL", "parent": 302, "children": [], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 14}}, {"id": 304, "type": "preproc_def", "text": "#define NCCLASSES\t(sizeof(cclasses) / sizeof(cclasses[0]) - 1)\n", "parent": null, "children": [305, 306, 307], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 0}}, {"id": 305, "type": "#define", "text": "#define", "parent": 304, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 7}}, {"id": 306, "type": "identifier", "text": "NCCLASSES", "parent": 304, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 17}}, {"id": 307, "type": "preproc_arg", "text": "(sizeof(cclasses) / sizeof(cclasses[0]) - 1)", "parent": 304, "children": [], "start_point": {"row": 131, "column": 18}, "end_point": {"row": 131, "column": 62}}]}, "node_categories": {"declarations": {"functions": [15, 19, 53, 57, 68, 72, 83, 87, 98, 102, 113, 117, 128, 132, 143, 147, 158, 162, 173, 177, 188, 192, 203, 207, 230, 250], "variables": [22, 60, 75, 90, 105, 120, 135, 150, 165, 180, 195, 210, 218, 223, 228, 236, 239, 243, 248, 256], "classes": [16, 54, 69, 84, 99, 114, 129, 144, 159, 174, 189, 204, 220, 221, 240, 241], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [29, 36, 37, 45, 64, 79, 94, 109, 124, 139, 154, 169, 184, 199, 214], "assignments": [], "loops": [], "conditionals": [20, 24, 25, 26, 27, 30, 32, 38, 46, 52, 58, 62, 65, 67, 73, 77, 80, 82, 88, 92, 95, 97, 103, 107, 110, 112, 118, 122, 125, 127, 133, 137, 140, 142, 148, 152, 155, 157, 163, 167, 170, 172, 178, 182, 185, 187, 193, 197, 200, 202, 208, 212, 215, 217, 222, 227, 234, 238, 242, 247, 254, 260, 265, 268, 271, 274, 277, 280, 283, 286, 289, 292, 295, 298, 306], "returns": [28, 35, 63, 78, 93, 108, 123, 138, 153, 168, 183, 198, 213], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 40, 48, 264, 267, 270, 273, 276, 279, 282, 285, 288, 291, 294, 297], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "fnblank", "text_snippet": "static inline int\nfnblank(int c)\n{\n#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' |"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "fnblank(int c)"}, {"node_id": 53, "universal_type": "function", "name": "fnalnum", "text_snippet": "static inline int\nfnalnum(int c)\n{\n return isalnum(c);\n}"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "fnalnum(int c)"}, {"node_id": 68, "universal_type": "function", "name": "fnalpha", "text_snippet": "static inline int\nfnalpha(int c)\n{\n return isalpha(c);\n}"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "fnalpha(int c)"}, {"node_id": 83, "universal_type": "function", "name": "fncntrl", "text_snippet": "static inline int\nfncntrl(int c)\n{\n return iscntrl(c);\n}"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "fncntrl(int c)"}, {"node_id": 98, "universal_type": "function", "name": "fndigit", "text_snippet": "static inline int\nfndigit(int c)\n{\n return isdigit(c);\n}"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "fndigit(int c)"}, {"node_id": 113, "universal_type": "function", "name": "fngraph", "text_snippet": "static inline int\nfngraph(int c)\n{\n return isgraph(c);\n}"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "fngraph(int c)"}, {"node_id": 128, "universal_type": "function", "name": "fnlower", "text_snippet": "static inline int\nfnlower(int c)\n{\n return islower(c);\n}"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "fnlower(int c)"}, {"node_id": 143, "universal_type": "function", "name": "fnprint", "text_snippet": "static inline int\nfnprint(int c)\n{\n return isprint(c);\n}"}, {"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "fnprint(int c)"}, {"node_id": 158, "universal_type": "function", "name": "fnpunct", "text_snippet": "static inline int\nfnpunct(int c)\n{\n return ispunct(c);\n}"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "fnpunct(int c)"}, {"node_id": 173, "universal_type": "function", "name": "fnspace", "text_snippet": "static inline int\nfnspace(int c)\n{\n return isspace(c);\n}"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "fnspace(int c)"}, {"node_id": 188, "universal_type": "function", "name": "fnupper", "text_snippet": "static inline int\nfnupper(int c)\n{\n return isupper(c);\n}"}, {"node_id": 192, "universal_type": "function", "name": "unknown", "text_snippet": "fnupper(int c)"}, {"node_id": 203, "universal_type": "function", "name": "fnxdigit", "text_snippet": "static inline int\nfnxdigit(int c)\n{\n return isxdigit(c);\n}"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "fnxdigit(int c)"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "(*checkfun)(int)"}, {"node_id": 250, "universal_type": "function", "name": "unknown", "text_snippet": "(*isctype)(int)"}], "class_declarations": [{"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 69, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 84, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 114, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 129, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 144, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 159, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 174, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 189, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 204, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 220, "universal_type": "class", "name": "_charclass", "text_snippet": "struct _charclass {\n const char *idstring;\t/* identifying string */\n int (*checkfun)(int);\t/* "}, {"node_id": 221, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 240, "universal_type": "class", "name": "cclass", "text_snippet": "struct cclass {\n\tconst char *name;\n\tint (*isctype)(int);\n}"}, {"node_id": 241, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"common.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <ctype.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <string.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"bio.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/* C H A R C L A S S . H\n *\n * Based off of OpenBSD's charclass.h v 1.1 2008/10/01\n *\n * Public domain, 2008, <NAME> <<EMAIL>>\n *\n * POSIX character class support for fnmatch() and glob().\n */\n\n#include \"common.h\"\n\n#include <stdlib.h>\n#include <ctype.h>\n#include <string.h>\n#include \"bio.h\"\n\n/* isblank appears to be obsolete in newer ctype.h files so use\n * fnblank instead when looking for the \"blank\" character class.\n */\nstatic inline int\nfnblank(int c)\n{\n#ifdef isblank\n return isblank(c);\n#else\n return c == ' ' || c == '\\t';\n#endif\n}\n\n\nstatic inline int\nfnalnum(int c)\n{\n return isalnum(c);\n}\n\n\nstatic inline int\nfnalpha(int c)\n{\n return isalpha(c);\n}\n\n\nstatic inline int\nfncntrl(int c)\n{\n return iscntrl(c);\n}\n\n\nstatic inline int\nfndigit(int c)\n{\n return isdigit(c);\n}\n\n\nstatic inline int\nfngraph(int c)\n{\n return isgraph(c);\n}\n\n\nstatic inline int\nfnlower(int c)\n{\n return islower(c);\n}\n\n\nstatic inline int\nfnprint(int c)\n{\n return isprint(c);\n}\n\n\nstatic inline int\nfnpunct(int c)\n{\n return ispunct(c);\n}\n\n\nstatic inline int\nfnspace(int c)\n{\n return isspace(c);\n}\n\n\nstatic inline int\nfnupper(int c)\n{\n return isupper(c);\n}\n\n\nstatic inline int\nfnxdigit(int c)\n{\n return isxdigit(c);\n}\n\n\ntypedef struct _charclass {\n const char *idstring;\t/* identifying string */\n int (*checkfun)(int);\t/* testing function */\n} CHARCLASS;\n\nstatic const struct cclass {\n\tconst char *name;\n\tint (*isctype)(int);\n} cclasses[] = {\n\t{ \"alnum\",\tfnalnum },\n\t{ \"alpha\",\tfnalpha },\n\t{ \"blank\",\tfnblank },\n\t{ \"cntrl\",\tfncntrl },\n\t{ \"digit\",\tfndigit },\n\t{ \"graph\",\tfngraph },\n\t{ \"lower\",\tfnlower },\n\t{ \"print\",\tfnprint },\n\t{ \"punct\",\tfnpunct },\n\t{ \"space\",\tfnspace },\n\t{ \"upper\",\tfnupper },\n\t{ \"xdigit\",\tfnxdigit },\n\t{ NULL,\t\tNULL }\n};\n\n#define NCCLASSES\t(sizeof(cclasses) / sizeof(cclasses[0]) - 1)\n\n/*\n * Local Variables:\n * tab-width: 8\n * mode: C\n * indent-tabs-mode: t\n * c-file-style: \"stroustrup\"\n * End:\n * ex: shiftwidth=4 tabstop=8\n */\n"}
80,801
c
// // LTScheduleAddViewController.h // Lights // // Created by <NAME> on 12/18/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "LTGroupedTableViewController.h" @interface LTScheduleAddViewController : LTGroupedTableViewController @end
24.7
10
(translation_unit) "//\n// LTScheduleAddViewController.h\n// Lights\n//\n// Created by <NAME> on 12/18/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import "LTGroupedTableViewController.h"\n\n@interface LTScheduleAddViewController : LTGroupedTableViewController\n\n@end\n" (comment) "//" (comment) "// LTScheduleAddViewController.h" (comment) "// Lights" (comment) "//" (comment) "// Created by <NAME> on 12/18/13." (comment) "// Copyright (c) 2013 <NAME>. All rights reserved." (comment) "//" (preproc_call) "#import "LTGroupedTableViewController.h"\n" (preproc_directive) "#import" (preproc_arg) ""LTGroupedTableViewController.h"" (ERROR) "@" (ERROR) "@" (declaration) "interface LTScheduleAddViewController : LTGroupedTableViewController\n\n@end" (type_identifier) "interface" (ERROR) "LTScheduleAddViewController : LTGroupedTableViewController\n\n@" (identifier) "LTScheduleAddViewController" (:) ":" (identifier) "LTGroupedTableViewController" (ERROR) "@" (identifier) "end" (;) ""
22
4
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.7, "nodes": 11, "errors": 0, "source_hash": "b50f2019c74198d82d41a814ce2ac962e17c8edd4ee81dac0f6830bee6a53253", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"LTGroupedTableViewController.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": "\"LTGroupedTableViewController.h\"", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 40}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "declaration", "text": "interface LTScheduleAddViewController : LTGroupedTableViewController\n\n@end", "parent": null, "children": [6, 7], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 12, "column": 4}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 7, "type": "ERROR", "text": "LTScheduleAddViewController : LTGroupedTableViewController\n\n@", "parent": 5, "children": [8, 9, 10], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 12, "column": 1}}, {"id": 8, "type": "identifier", "text": "LTScheduleAddViewController", "parent": 7, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 38}}, {"id": 9, "type": "identifier", "text": "LTGroupedTableViewController", "parent": 7, "children": [], "start_point": {"row": 10, "column": 41}, "end_point": {"row": 10, "column": 69}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [5], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 8, 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// LTScheduleAddViewController.h\n// Lights\n//\n// Created by <NAME> on 12/18/13.\n// Copyright (c) 2013 <NAME>. All rights reserved.\n//\n\n#import \"LTGroupedTableViewController.h\"\n\n@interface LTScheduleAddViewController : LTGroupedTableViewController\n\n@end\n"}
80,802
c
#pragma once #include "TestUtils.hpp" #include <catch2/catch.hpp> PartOne& GetPartOne(); TEST_CASE("Whiterun cow 0x10ebaf exists", "[NpcExists]") { auto& partOne = GetPartOne(); auto& cow = partOne.worldState.GetFormAt<MpActor>(0x10ebaf); } TEST_CASE("Whiterun cow 0x10ebaf is visible to players", "[NpcExists]") { auto& partOne = GetPartOne(); DoConnect(partOne, 0); partOne.CreateActor(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f); partOne.SetUserActor(0, 0xff000000); auto messages = partOne.Messages(); { auto it = std::find_if( messages.begin(), messages.end(), [&](PartOne::Message msg) { return msg.j["refrId"] == 0x10010ebaf; }); REQUIRE(it != messages.end()); } { auto it = std::find_if(messages.begin(), messages.end(), [&](PartOne::Message msg) { return msg.j["refrId"] == 0x10010ebaf && (msg.j["isHostedByOther"] == false || msg.j["isHostedByOther"] == nullptr); }); REQUIRE(it != messages.end()); } }
33.81
32
(translation_unit) "#pragma once\n#include "TestUtils.hpp"\n#include <catch2/catch.hpp>\n\nPartOne& GetPartOne();\n\nTEST_CASE("Whiterun cow 0x10ebaf exists", "[NpcExists]")\n{\n auto& partOne = GetPartOne();\n\n auto& cow = partOne.worldState.GetFormAt<MpActor>(0x10ebaf);\n}\n\nTEST_CASE("Whiterun cow 0x10ebaf is visible to players", "[NpcExists]")\n{\n auto& partOne = GetPartOne();\n\n DoConnect(partOne, 0);\n partOne.CreateActor(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f);\n\n partOne.SetUserActor(0, 0xff000000);\n\n auto messages = partOne.Messages();\n\n {\n auto it = std::find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg) { return msg.j["refrId"] == 0x10010ebaf; });\n\n REQUIRE(it != messages.end());\n }\n\n {\n auto it = std::find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg) {\n return msg.j["refrId"] == 0x10010ebaf &&\n (msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr);\n });\n\n REQUIRE(it != messages.end());\n }\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "TestUtils.hpp"\n" (#include) "#include" (string_literal) ""TestUtils.hpp"" (") """ (string_content) "TestUtils.hpp" (") """ (preproc_include) "#include <catch2/catch.hpp>\n" (#include) "#include" (system_lib_string) "<catch2/catch.hpp>" (expression_statement) "PartOne& GetPartOne();" (update_expression) "PartOne& GetPartOne()" (binary_expression) "PartOne& GetPartOne()" (identifier) "PartOne" (&) "&" (call_expression) "GetPartOne()" (identifier) "GetPartOne" (argument_list) "()" (() "(" ()) ")" (--) "" (;) ";" (expression_statement) "TEST_CASE("Whiterun cow 0x10ebaf exists", "[NpcExists]")" (call_expression) "TEST_CASE("Whiterun cow 0x10ebaf exists", "[NpcExists]")" (identifier) "TEST_CASE" (argument_list) "("Whiterun cow 0x10ebaf exists", "[NpcExists]")" (() "(" (string_literal) ""Whiterun cow 0x10ebaf exists"" (") """ (string_content) "Whiterun cow 0x10ebaf exists" (") """ (,) "," (string_literal) ""[NpcExists]"" (") """ (string_content) "[NpcExists]" (") """ ()) ")" (;) "" (compound_statement) "{\n auto& partOne = GetPartOne();\n\n auto& cow = partOne.worldState.GetFormAt<MpActor>(0x10ebaf);\n}" ({) "{" (ERROR) "auto" (storage_class_specifier) "auto" (auto) "auto" (expression_statement) "& partOne = GetPartOne();" (assignment_expression) "& partOne = GetPartOne()" (pointer_expression) "& partOne" (&) "&" (identifier) "partOne" (=) "=" (call_expression) "GetPartOne()" (identifier) "GetPartOne" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "auto" (storage_class_specifier) "auto" (auto) "auto" (expression_statement) "& cow = partOne.worldState.GetFormAt<MpActor>(0x10ebaf);" (assignment_expression) "& cow = partOne.worldState.GetFormAt<MpActor>(0x10ebaf)" (pointer_expression) "& cow" (&) "&" (identifier) "cow" (=) "=" (binary_expression) "partOne.worldState.GetFormAt<MpActor>(0x10ebaf)" (binary_expression) "partOne.worldState.GetFormAt<MpActor" (field_expression) "partOne.worldState.GetFormAt" (field_expression) "partOne.worldState" (identifier) "partOne" (.) "." (field_identifier) "worldState" (.) "." (field_identifier) "GetFormAt" (<) "<" (identifier) "MpActor" (>) ">" (parenthesized_expression) "(0x10ebaf)" (() "(" (number_literal) "0x10ebaf" ()) ")" (;) ";" (}) "}" (expression_statement) "TEST_CASE("Whiterun cow 0x10ebaf is visible to players", "[NpcExists]")" (call_expression) "TEST_CASE("Whiterun cow 0x10ebaf is visible to players", "[NpcExists]")" (identifier) "TEST_CASE" (argument_list) "("Whiterun cow 0x10ebaf is visible to players", "[NpcExists]")" (() "(" (string_literal) ""Whiterun cow 0x10ebaf is visible to players"" (") """ (string_content) "Whiterun cow 0x10ebaf is visible to players" (") """ (,) "," (string_literal) ""[NpcExists]"" (") """ (string_content) "[NpcExists]" (") """ ()) ")" (;) "" (compound_statement) "{\n auto& partOne = GetPartOne();\n\n DoConnect(partOne, 0);\n partOne.CreateActor(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f);\n\n partOne.SetUserActor(0, 0xff000000);\n\n auto messages = partOne.Messages();\n\n {\n auto it = std::find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg) { return msg.j["refrId"] == 0x10010ebaf; });\n\n REQUIRE(it != messages.end());\n }\n\n {\n auto it = std::find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg) {\n return msg.j["refrId"] == 0x10010ebaf &&\n (msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr);\n });\n\n REQUIRE(it != messages.end());\n }\n}" ({) "{" (ERROR) "auto" (storage_class_specifier) "auto" (auto) "auto" (expression_statement) "& partOne = GetPartOne();" (assignment_expression) "& partOne = GetPartOne()" (pointer_expression) "& partOne" (&) "&" (identifier) "partOne" (=) "=" (call_expression) "GetPartOne()" (identifier) "GetPartOne" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "DoConnect(partOne, 0);" (call_expression) "DoConnect(partOne, 0)" (identifier) "DoConnect" (argument_list) "(partOne, 0)" (() "(" (identifier) "partOne" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "partOne.CreateActor(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f);" (call_expression) "partOne.CreateActor(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f)" (field_expression) "partOne.CreateActor" (identifier) "partOne" (.) "." (field_identifier) "CreateActor" (argument_list) "(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f)" (() "(" (number_literal) "0xff000000" (,) "," (compound_statement) "{ 24132, -5049, -3004 }" ({) "{" (expression_statement) "24132, -5049, -3004" (comma_expression) "24132, -5049, -3004" (number_literal) "24132" (,) "," (comma_expression) "-5049, -3004" (number_literal) "-5049" (,) "," (number_literal) "-3004" (;) "" (}) "}" (,) "," (number_literal) "0" (,) "," (number_literal) "0x1a26f" ()) ")" (;) ";" (expression_statement) "partOne.SetUserActor(0, 0xff000000);" (call_expression) "partOne.SetUserActor(0, 0xff000000)" (field_expression) "partOne.SetUserActor" (identifier) "partOne" (.) "." (field_identifier) "SetUserActor" (argument_list) "(0, 0xff000000)" (() "(" (number_literal) "0" (,) "," (number_literal) "0xff000000" ()) ")" (;) ";" (declaration) "auto messages = partOne.Messages();" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "messages" (init_declarator) " = partOne.Messages()" (identifier) "" (=) "=" (call_expression) "partOne.Messages()" (field_expression) "partOne.Messages" (identifier) "partOne" (.) "." (field_identifier) "Messages" (argument_list) "()" (() "(" ()) ")" (;) ";" (compound_statement) "{\n auto it = std::find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg) { return msg.j["refrId"] == 0x10010ebaf; });\n\n REQUIRE(it != messages.end());\n }" ({) "{" (function_definition) "auto it = std::find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg) { return msg.j["refrId"] == 0x10010ebaf; }" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "it" (ERROR) "= std::" (=) "=" (identifier) "std" (:) ":" (:) ":" (function_declarator) "find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg)" (identifier) "find_if" (parameter_list) "(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg)" (() "(" (parameter_declaration) "messages.begin()" (type_identifier) "messages" (ERROR) "." (.) "." (function_declarator) "begin()" (identifier) "begin" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "messages.end()" (type_identifier) "messages" (ERROR) "." (.) "." (function_declarator) "end()" (identifier) "end" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "\n [&](PartOne::Message msg)" (type_identifier) "" (abstract_function_declarator) "[&](PartOne::Message msg)" (abstract_array_declarator) "[&]" ([) "[" (ERROR) "&" (&) "&" (]) "]" (parameter_list) "(PartOne::Message msg)" (() "(" (parameter_declaration) "PartOne::Message msg" (type_identifier) "PartOne" (ERROR) "::Message" (:) ":" (:) ":" (identifier) "Message" (identifier) "msg" ()) ")" ()) "" (compound_statement) "{ return msg.j["refrId"] == 0x10010ebaf; }" ({) "{" (return_statement) "return msg.j["refrId"] == 0x10010ebaf;" (return) "return" (binary_expression) "msg.j["refrId"] == 0x10010ebaf" (subscript_expression) "msg.j["refrId"]" (field_expression) "msg.j" (identifier) "msg" (.) "." (field_identifier) "j" ([) "[" (string_literal) ""refrId"" (") """ (string_content) "refrId" (") """ (]) "]" (==) "==" (number_literal) "0x10010ebaf" (;) ";" (}) "}" (ERROR) ")" ()) ")" (expression_statement) ";" (;) ";" (expression_statement) "REQUIRE(it != messages.end());" (call_expression) "REQUIRE(it != messages.end())" (identifier) "REQUIRE" (argument_list) "(it != messages.end())" (() "(" (binary_expression) "it != messages.end()" (identifier) "it" (!=) "!=" (call_expression) "messages.end()" (field_expression) "messages.end" (identifier) "messages" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (compound_statement) "{\n auto it = std::find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg) {\n return msg.j["refrId"] == 0x10010ebaf &&\n (msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr);\n });\n\n REQUIRE(it != messages.end());\n }" ({) "{" (function_definition) "auto it = std::find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg) {\n return msg.j["refrId"] == 0x10010ebaf &&\n (msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr);\n }" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "it" (ERROR) "= std::" (=) "=" (identifier) "std" (:) ":" (:) ":" (function_declarator) "find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg)" (identifier) "find_if" (parameter_list) "(messages.begin(), messages.end(),\n [&](PartOne::Message msg)" (() "(" (parameter_declaration) "messages.begin()" (type_identifier) "messages" (ERROR) "." (.) "." (function_declarator) "begin()" (identifier) "begin" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "messages.end()" (type_identifier) "messages" (ERROR) "." (.) "." (function_declarator) "end()" (identifier) "end" (parameter_list) "()" (() "(" ()) ")" (,) "," (parameter_declaration) "\n [&](PartOne::Message msg)" (type_identifier) "" (abstract_function_declarator) "[&](PartOne::Message msg)" (abstract_array_declarator) "[&]" ([) "[" (ERROR) "&" (&) "&" (]) "]" (parameter_list) "(PartOne::Message msg)" (() "(" (parameter_declaration) "PartOne::Message msg" (type_identifier) "PartOne" (ERROR) "::Message" (:) ":" (:) ":" (identifier) "Message" (identifier) "msg" ()) ")" ()) "" (compound_statement) "{\n return msg.j["refrId"] == 0x10010ebaf &&\n (msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr);\n }" ({) "{" (return_statement) "return msg.j["refrId"] == 0x10010ebaf &&\n (msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr);" (return) "return" (binary_expression) "msg.j["refrId"] == 0x10010ebaf &&\n (msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr)" (binary_expression) "msg.j["refrId"] == 0x10010ebaf" (subscript_expression) "msg.j["refrId"]" (field_expression) "msg.j" (identifier) "msg" (.) "." (field_identifier) "j" ([) "[" (string_literal) ""refrId"" (") """ (string_content) "refrId" (") """ (]) "]" (==) "==" (number_literal) "0x10010ebaf" (&&) "&&" (parenthesized_expression) "(msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr)" (() "(" (binary_expression) "msg.j["isHostedByOther"] == false ||\n msg.j["isHostedByOther"] == nullptr" (binary_expression) "msg.j["isHostedByOther"] == false" (subscript_expression) "msg.j["isHostedByOther"]" (field_expression) "msg.j" (identifier) "msg" (.) "." (field_identifier) "j" ([) "[" (string_literal) ""isHostedByOther"" (") """ (string_content) "isHostedByOther" (") """ (]) "]" (==) "==" (false) "false" (||) "||" (binary_expression) "msg.j["isHostedByOther"] == nullptr" (subscript_expression) "msg.j["isHostedByOther"]" (field_expression) "msg.j" (identifier) "msg" (.) "." (field_identifier) "j" ([) "[" (string_literal) ""isHostedByOther"" (") """ (string_content) "isHostedByOther" (") """ (]) "]" (==) "==" (null) "nullptr" (nullptr) "nullptr" ()) ")" (;) ";" (}) "}" (ERROR) ")" ()) ")" (expression_statement) ";" (;) ";" (expression_statement) "REQUIRE(it != messages.end());" (call_expression) "REQUIRE(it != messages.end())" (identifier) "REQUIRE" (argument_list) "(it != messages.end())" (() "(" (binary_expression) "it != messages.end()" (identifier) "it" (!=) "!=" (call_expression) "messages.end()" (field_expression) "messages.end" (identifier) "messages" (.) "." (field_identifier) "end" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}"
416
15
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 33.81, "nodes": 218, "errors": 0, "source_hash": "1435c4b5cd2c7fa606f7778745cf7f7802c441c8a9c9c5881305be40fbf9c563", "categorized_nodes": 159}, "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 \"TestUtils.hpp\"\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": "\"TestUtils.hpp\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <catch2/catch.hpp>\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": "<catch2/catch.hpp>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 27}}, {"id": 9, "type": "update_expression", "text": "PartOne& GetPartOne()", "parent": null, "children": [10, 15], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 21}}, {"id": 10, "type": "binary_expression", "text": "PartOne& GetPartOne()", "parent": 9, "children": [11, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 21}}, {"id": 11, "type": "identifier", "text": "PartOne", "parent": 10, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 12, "type": "call_expression", "text": "GetPartOne()", "parent": 10, "children": [13, 14], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 21}}, {"id": 13, "type": "identifier", "text": "GetPartOne", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 14, "type": "argument_list", "text": "()", "parent": 12, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 21}}, {"id": 15, "type": "--", "text": "", "parent": 9, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 21}}, {"id": 16, "type": "call_expression", "text": "TEST_CASE(\"Whiterun cow 0x10ebaf exists\", \"[NpcExists]\")", "parent": null, "children": [17, 18], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 56}}, {"id": 17, "type": "identifier", "text": "TEST_CASE", "parent": 16, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 18, "type": "argument_list", "text": "(\"Whiterun cow 0x10ebaf exists\", \"[NpcExists]\")", "parent": 16, "children": [19, 20], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 56}}, {"id": 19, "type": "string_literal", "text": "\"Whiterun cow 0x10ebaf exists\"", "parent": 18, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 40}}, {"id": 20, "type": "string_literal", "text": "\"[NpcExists]\"", "parent": 18, "children": [], "start_point": {"row": 6, "column": 42}, "end_point": {"row": 6, "column": 55}}, {"id": 21, "type": "ERROR", "text": "auto", "parent": null, "children": [22], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 6}}, {"id": 22, "type": "storage_class_specifier", "text": "auto", "parent": 21, "children": [23], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 6}}, {"id": 23, "type": "auto", "text": "auto", "parent": 22, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 6}}, {"id": 24, "type": "assignment_expression", "text": "& partOne = GetPartOne()", "parent": null, "children": [25, 27, 28], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 30}}, {"id": 25, "type": "pointer_expression", "text": "& partOne", "parent": 24, "children": [26], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 15}}, {"id": 26, "type": "identifier", "text": "partOne", "parent": 25, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 15}}, {"id": 27, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 17}}, {"id": 28, "type": "call_expression", "text": "GetPartOne()", "parent": 24, "children": [29, 30], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 30}}, {"id": 29, "type": "identifier", "text": "GetPartOne", "parent": 28, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 28}}, {"id": 30, "type": "argument_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 30}}, {"id": 31, "type": "ERROR", "text": "auto", "parent": null, "children": [32], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 6}}, {"id": 32, "type": "storage_class_specifier", "text": "auto", "parent": 31, "children": [33], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 6}}, {"id": 33, "type": "auto", "text": "auto", "parent": 32, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 6}}, {"id": 34, "type": "assignment_expression", "text": "& cow = partOne.worldState.GetFormAt<MpActor>(0x10ebaf)", "parent": null, "children": [35, 37, 38], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 61}}, {"id": 35, "type": "pointer_expression", "text": "& cow", "parent": 34, "children": [36], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 11}}, {"id": 36, "type": "identifier", "text": "cow", "parent": 35, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 11}}, {"id": 37, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 38, "type": "binary_expression", "text": "partOne.worldState.GetFormAt<MpActor>(0x10ebaf)", "parent": 34, "children": [39, 47, 48], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 61}}, {"id": 39, "type": "binary_expression", "text": "partOne.worldState.GetFormAt<MpActor", "parent": 38, "children": [40, 45, 46], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 50}}, {"id": 40, "type": "field_expression", "text": "partOne.worldState.GetFormAt", "parent": 39, "children": [41, 44], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 42}}, {"id": 41, "type": "field_expression", "text": "partOne.worldState", "parent": 40, "children": [42, 43], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 32}}, {"id": 42, "type": "identifier", "text": "partOne", "parent": 41, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 21}}, {"id": 43, "type": "field_identifier", "text": "worldState", "parent": 41, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 32}}, {"id": 44, "type": "field_identifier", "text": "GetFormAt", "parent": 40, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 42}}, {"id": 45, "type": "<", "text": "<", "parent": 39, "children": [], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 43}}, {"id": 46, "type": "identifier", "text": "MpActor", "parent": 39, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 50}}, {"id": 47, "type": ">", "text": ">", "parent": 38, "children": [], "start_point": {"row": 10, "column": 50}, "end_point": {"row": 10, "column": 51}}, {"id": 48, "type": "parenthesized_expression", "text": "(0x10ebaf)", "parent": 38, "children": [49], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 61}}, {"id": 49, "type": "number_literal", "text": "0x10ebaf", "parent": 48, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 60}}, {"id": 50, "type": "call_expression", "text": "TEST_CASE(\"Whiterun cow 0x10ebaf is visible to players\", \"[NpcExists]\")", "parent": null, "children": [51, 52], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 71}}, {"id": 51, "type": "identifier", "text": "TEST_CASE", "parent": 50, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 52, "type": "argument_list", "text": "(\"Whiterun cow 0x10ebaf is visible to players\", \"[NpcExists]\")", "parent": 50, "children": [53, 54], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 71}}, {"id": 53, "type": "string_literal", "text": "\"Whiterun cow 0x10ebaf is visible to players\"", "parent": 52, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 55}}, {"id": 54, "type": "string_literal", "text": "\"[NpcExists]\"", "parent": 52, "children": [], "start_point": {"row": 13, "column": 57}, "end_point": {"row": 13, "column": 70}}, {"id": 55, "type": "ERROR", "text": "auto", "parent": null, "children": [56], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 56, "type": "storage_class_specifier", "text": "auto", "parent": 55, "children": [57], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 57, "type": "auto", "text": "auto", "parent": 56, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 6}}, {"id": 58, "type": "assignment_expression", "text": "& partOne = GetPartOne()", "parent": null, "children": [59, 61, 62], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 30}}, {"id": 59, "type": "pointer_expression", "text": "& partOne", "parent": 58, "children": [60], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 15}}, {"id": 60, "type": "identifier", "text": "partOne", "parent": 59, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 15}}, {"id": 61, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 17}}, {"id": 62, "type": "call_expression", "text": "GetPartOne()", "parent": 58, "children": [63, 64], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 30}}, {"id": 63, "type": "identifier", "text": "GetPartOne", "parent": 62, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 28}}, {"id": 64, "type": "argument_list", "text": "()", "parent": 62, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 30}}, {"id": 65, "type": "call_expression", "text": "DoConnect(partOne, 0)", "parent": null, "children": [66, 67], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 23}}, {"id": 66, "type": "identifier", "text": "DoConnect", "parent": 65, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 11}}, {"id": 67, "type": "argument_list", "text": "(partOne, 0)", "parent": 65, "children": [68, 69], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 23}}, {"id": 68, "type": "identifier", "text": "partOne", "parent": 67, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 19}}, {"id": 69, "type": "number_literal", "text": "0", "parent": 67, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 22}}, {"id": 70, "type": "call_expression", "text": "partOne.CreateActor(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f)", "parent": null, "children": [71, 74], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 70}}, {"id": 71, "type": "field_expression", "text": "partOne.CreateActor", "parent": 70, "children": [72, 73], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 21}}, {"id": 72, "type": "identifier", "text": "partOne", "parent": 71, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 9}}, {"id": 73, "type": "field_identifier", "text": "CreateActor", "parent": 71, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 21}}, {"id": 74, "type": "argument_list", "text": "(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f)", "parent": 70, "children": [75, 81, 82], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 70}}, {"id": 75, "type": "number_literal", "text": "0xff000000", "parent": 74, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 32}}, {"id": 76, "type": "comma_expression", "text": "24132, -5049, -3004", "parent": 74, "children": [77, 78], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 55}}, {"id": 77, "type": "number_literal", "text": "24132", "parent": 76, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 41}}, {"id": 78, "type": "comma_expression", "text": "-5049, -3004", "parent": 76, "children": [79, 80], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 55}}, {"id": 79, "type": "number_literal", "text": "-5049", "parent": 78, "children": [], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 48}}, {"id": 80, "type": "number_literal", "text": "-3004", "parent": 78, "children": [], "start_point": {"row": 18, "column": 50}, "end_point": {"row": 18, "column": 55}}, {"id": 81, "type": "number_literal", "text": "0", "parent": 74, "children": [], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 18, "column": 60}}, {"id": 82, "type": "number_literal", "text": "0x1a26f", "parent": 74, "children": [], "start_point": {"row": 18, "column": 62}, "end_point": {"row": 18, "column": 69}}, {"id": 83, "type": "call_expression", "text": "partOne.SetUserActor(0, 0xff000000)", "parent": null, "children": [84, 87], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 37}}, {"id": 84, "type": "field_expression", "text": "partOne.SetUserActor", "parent": 83, "children": [85, 86], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 22}}, {"id": 85, "type": "identifier", "text": "partOne", "parent": 84, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 9}}, {"id": 86, "type": "field_identifier", "text": "SetUserActor", "parent": 84, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 22}}, {"id": 87, "type": "argument_list", "text": "(0, 0xff000000)", "parent": 83, "children": [88, 89], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 37}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 87, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 24}}, {"id": 89, "type": "number_literal", "text": "0xff000000", "parent": 87, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 36}}, {"id": 90, "type": "declaration", "text": "auto messages = partOne.Messages();", "parent": null, "children": [91, 93, 94], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 37}}, {"id": 91, "type": "storage_class_specifier", "text": "auto", "parent": 90, "children": [92], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 92, "type": "auto", "text": "auto", "parent": 91, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 93, "type": "type_identifier", "text": "messages", "parent": 90, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 15}}, {"id": 94, "type": "init_declarator", "text": " = partOne.Messages()", "parent": 90, "children": [95, 96, 97], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 36}}, {"id": 95, "type": "identifier", "text": "", "parent": 94, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 15}}, {"id": 96, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 17}}, {"id": 97, "type": "call_expression", "text": "partOne.Messages()", "parent": 94, "children": [98, 101], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 36}}, {"id": 98, "type": "field_expression", "text": "partOne.Messages", "parent": 97, "children": [99, 100], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 34}}, {"id": 99, "type": "identifier", "text": "partOne", "parent": 98, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 25}}, {"id": 100, "type": "field_identifier", "text": "Messages", "parent": 98, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 34}}, {"id": 101, "type": "argument_list", "text": "()", "parent": 97, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 36}}, {"id": 102, "type": "function_definition", "text": "auto it = std::find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg) { return msg.j[\"refrId\"] == 0x10010ebaf; }", "parent": null, "children": [103, 105, 106, 109], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 27, "column": 74}}, {"id": 103, "type": "storage_class_specifier", "text": "auto", "parent": 102, "children": [104], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 104, "type": "auto", "text": "auto", "parent": 103, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 105, "type": "type_identifier", "text": "it", "parent": 102, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 11}}, {"id": 106, "type": "ERROR", "text": "= std::", "parent": 102, "children": [107, 108], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 19}}, {"id": 107, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 108, "type": "identifier", "text": "std", "parent": 106, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 17}}, {"id": 109, "type": "function_declarator", "text": "find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg)", "parent": 102, "children": [110, 111], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 27, "column": 31}}, {"id": 110, "type": "identifier", "text": "find_if", "parent": 109, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 26}}, {"id": 111, "type": "parameter_list", "text": "(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg)", "parent": 109, "children": [112, 116, 120], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 27, "column": 31}}, {"id": 112, "type": "parameter_declaration", "text": "messages.begin()", "parent": 111, "children": [113, 114], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 22}}, {"id": 113, "type": "type_identifier", "text": "messages", "parent": 112, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 14}}, {"id": 114, "type": "function_declarator", "text": "begin()", "parent": 112, "children": [115], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 22}}, {"id": 115, "type": "parameter_list", "text": "()", "parent": 114, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 22}}, {"id": 116, "type": "parameter_declaration", "text": "messages.end()", "parent": 111, "children": [117, 118], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 38}}, {"id": 117, "type": "type_identifier", "text": "messages", "parent": 116, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 32}}, {"id": 118, "type": "function_declarator", "text": "end()", "parent": 116, "children": [119], "start_point": {"row": 26, "column": 33}, "end_point": {"row": 26, "column": 38}}, {"id": 119, "type": "parameter_list", "text": "()", "parent": 118, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 38}}, {"id": 120, "type": "parameter_declaration", "text": "\n [&](PartOne::Message msg)", "parent": 111, "children": [121, 122], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 27, "column": 31}}, {"id": 121, "type": "type_identifier", "text": "", "parent": 120, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 39}}, {"id": 122, "type": "abstract_function_declarator", "text": "[&](PartOne::Message msg)", "parent": 120, "children": [123, 124], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 31}}, {"id": 123, "type": "abstract_array_declarator", "text": "[&]", "parent": 122, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 9}}, {"id": 124, "type": "parameter_list", "text": "(PartOne::Message msg)", "parent": 122, "children": [125], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 31}}, {"id": 125, "type": "parameter_declaration", "text": "PartOne::Message msg", "parent": 124, "children": [126, 127, 129], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 30}}, {"id": 126, "type": "type_identifier", "text": "PartOne", "parent": 125, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 17}}, {"id": 127, "type": "ERROR", "text": "::Message", "parent": 125, "children": [128], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 26}}, {"id": 128, "type": "identifier", "text": "Message", "parent": 127, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 26}}, {"id": 129, "type": "identifier", "text": "msg", "parent": 125, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 30}}, {"id": 130, "type": "return_statement", "text": "return msg.j[\"refrId\"] == 0x10010ebaf;", "parent": 102, "children": [131], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 72}}, {"id": 131, "type": "binary_expression", "text": "msg.j[\"refrId\"] == 0x10010ebaf", "parent": 130, "children": [132, 137, 138], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 71}}, {"id": 132, "type": "subscript_expression", "text": "msg.j[\"refrId\"]", "parent": 131, "children": [133, 136], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 56}}, {"id": 133, "type": "field_expression", "text": "msg.j", "parent": 132, "children": [134, 135], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 46}}, {"id": 134, "type": "identifier", "text": "msg", "parent": 133, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 44}}, {"id": 135, "type": "field_identifier", "text": "j", "parent": 133, "children": [], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 46}}, {"id": 136, "type": "string_literal", "text": "\"refrId\"", "parent": 132, "children": [], "start_point": {"row": 27, "column": 47}, "end_point": {"row": 27, "column": 55}}, {"id": 137, "type": "==", "text": "==", "parent": 131, "children": [], "start_point": {"row": 27, "column": 57}, "end_point": {"row": 27, "column": 59}}, {"id": 138, "type": "number_literal", "text": "0x10010ebaf", "parent": 131, "children": [], "start_point": {"row": 27, "column": 60}, "end_point": {"row": 27, "column": 71}}, {"id": 139, "type": "call_expression", "text": "REQUIRE(it != messages.end())", "parent": null, "children": [140, 141], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 33}}, {"id": 140, "type": "identifier", "text": "REQUIRE", "parent": 139, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 141, "type": "argument_list", "text": "(it != messages.end())", "parent": 139, "children": [142], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 33}}, {"id": 142, "type": "binary_expression", "text": "it != messages.end()", "parent": 141, "children": [143, 144, 145], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 32}}, {"id": 143, "type": "identifier", "text": "it", "parent": 142, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 14}}, {"id": 144, "type": "!=", "text": "!=", "parent": 142, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 17}}, {"id": 145, "type": "call_expression", "text": "messages.end()", "parent": 142, "children": [146, 148], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 32}}, {"id": 146, "type": "field_expression", "text": "messages.end", "parent": 145, "children": [147], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 30}}, {"id": 147, "type": "identifier", "text": "messages", "parent": 146, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 26}}, {"id": 148, "type": "argument_list", "text": "()", "parent": 145, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 32}}, {"id": 149, "type": "function_definition", "text": "auto it = std::find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg) {\n return msg.j[\"refrId\"] == 0x10010ebaf &&\n (msg.j[\"isHostedByOther\"] == false ||\n msg.j[\"isHostedByOther\"] == nullptr);\n }", "parent": null, "children": [150, 152, 153, 156], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 38, "column": 28}}, {"id": 150, "type": "storage_class_specifier", "text": "auto", "parent": 149, "children": [151], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 151, "type": "auto", "text": "auto", "parent": 150, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 152, "type": "type_identifier", "text": "it", "parent": 149, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 11}}, {"id": 153, "type": "ERROR", "text": "= std::", "parent": 149, "children": [154, 155], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 19}}, {"id": 154, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 155, "type": "identifier", "text": "std", "parent": 153, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 17}}, {"id": 156, "type": "function_declarator", "text": "find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg)", "parent": 149, "children": [157, 158], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 34, "column": 52}}, {"id": 157, "type": "identifier", "text": "find_if", "parent": 156, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 26}}, {"id": 158, "type": "parameter_list", "text": "(messages.begin(), messages.end(),\n [&](PartOne::Message msg)", "parent": 156, "children": [159, 163, 167], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 34, "column": 52}}, {"id": 159, "type": "parameter_declaration", "text": "messages.begin()", "parent": 158, "children": [160, 161], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 43}}, {"id": 160, "type": "type_identifier", "text": "messages", "parent": 159, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 35}}, {"id": 161, "type": "function_declarator", "text": "begin()", "parent": 159, "children": [162], "start_point": {"row": 33, "column": 36}, "end_point": {"row": 33, "column": 43}}, {"id": 162, "type": "parameter_list", "text": "()", "parent": 161, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 43}}, {"id": 163, "type": "parameter_declaration", "text": "messages.end()", "parent": 158, "children": [164, 165], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 59}}, {"id": 164, "type": "type_identifier", "text": "messages", "parent": 163, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 53}}, {"id": 165, "type": "function_declarator", "text": "end()", "parent": 163, "children": [166], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 59}}, {"id": 166, "type": "parameter_list", "text": "()", "parent": 165, "children": [], "start_point": {"row": 33, "column": 57}, "end_point": {"row": 33, "column": 59}}, {"id": 167, "type": "parameter_declaration", "text": "\n [&](PartOne::Message msg)", "parent": 158, "children": [168, 169], "start_point": {"row": 33, "column": 60}, "end_point": {"row": 34, "column": 52}}, {"id": 168, "type": "type_identifier", "text": "", "parent": 167, "children": [], "start_point": {"row": 33, "column": 60}, "end_point": {"row": 33, "column": 60}}, {"id": 169, "type": "abstract_function_declarator", "text": "[&](PartOne::Message msg)", "parent": 167, "children": [170, 171], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 52}}, {"id": 170, "type": "abstract_array_declarator", "text": "[&]", "parent": 169, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 30}}, {"id": 171, "type": "parameter_list", "text": "(PartOne::Message msg)", "parent": 169, "children": [172], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 52}}, {"id": 172, "type": "parameter_declaration", "text": "PartOne::Message msg", "parent": 171, "children": [173, 174, 176], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 51}}, {"id": 173, "type": "type_identifier", "text": "PartOne", "parent": 172, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 38}}, {"id": 174, "type": "ERROR", "text": "::Message", "parent": 172, "children": [175], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 47}}, {"id": 175, "type": "identifier", "text": "Message", "parent": 174, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 47}}, {"id": 176, "type": "identifier", "text": "msg", "parent": 172, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 51}}, {"id": 177, "type": "return_statement", "text": "return msg.j[\"refrId\"] == 0x10010ebaf &&\n (msg.j[\"isHostedByOther\"] == false ||\n msg.j[\"isHostedByOther\"] == nullptr);", "parent": 149, "children": [178], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 37, "column": 69}}, {"id": 178, "type": "binary_expression", "text": "msg.j[\"refrId\"] == 0x10010ebaf &&\n (msg.j[\"isHostedByOther\"] == false ||\n msg.j[\"isHostedByOther\"] == nullptr)", "parent": 177, "children": [179, 187, 188], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 37, "column": 68}}, {"id": 179, "type": "binary_expression", "text": "msg.j[\"refrId\"] == 0x10010ebaf", "parent": 178, "children": [180, 185, 186], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 66}}, {"id": 180, "type": "subscript_expression", "text": "msg.j[\"refrId\"]", "parent": 179, "children": [181, 184], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 51}}, {"id": 181, "type": "field_expression", "text": "msg.j", "parent": 180, "children": [182, 183], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 41}}, {"id": 182, "type": "identifier", "text": "msg", "parent": 181, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 39}}, {"id": 183, "type": "field_identifier", "text": "j", "parent": 181, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 41}}, {"id": 184, "type": "string_literal", "text": "\"refrId\"", "parent": 180, "children": [], "start_point": {"row": 35, "column": 42}, "end_point": {"row": 35, "column": 50}}, {"id": 185, "type": "==", "text": "==", "parent": 179, "children": [], "start_point": {"row": 35, "column": 52}, "end_point": {"row": 35, "column": 54}}, {"id": 186, "type": "number_literal", "text": "0x10010ebaf", "parent": 179, "children": [], "start_point": {"row": 35, "column": 55}, "end_point": {"row": 35, "column": 66}}, {"id": 187, "type": "&&", "text": "&&", "parent": 178, "children": [], "start_point": {"row": 35, "column": 67}, "end_point": {"row": 35, "column": 69}}, {"id": 188, "type": "parenthesized_expression", "text": "(msg.j[\"isHostedByOther\"] == false ||\n msg.j[\"isHostedByOther\"] == nullptr)", "parent": 178, "children": [189], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 37, "column": 68}}, {"id": 189, "type": "binary_expression", "text": "msg.j[\"isHostedByOther\"] == false ||\n msg.j[\"isHostedByOther\"] == nullptr", "parent": 188, "children": [190, 198, 199], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 37, "column": 67}}, {"id": 190, "type": "binary_expression", "text": "msg.j[\"isHostedByOther\"] == false", "parent": 189, "children": [191, 196, 197], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 65}}, {"id": 191, "type": "subscript_expression", "text": "msg.j[\"isHostedByOther\"]", "parent": 190, "children": [192, 195], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 56}}, {"id": 192, "type": "field_expression", "text": "msg.j", "parent": 191, "children": [193, 194], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 37}}, {"id": 193, "type": "identifier", "text": "msg", "parent": 192, "children": [], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 35}}, {"id": 194, "type": "field_identifier", "text": "j", "parent": 192, "children": [], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 37}}, {"id": 195, "type": "string_literal", "text": "\"isHostedByOther\"", "parent": 191, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 55}}, {"id": 196, "type": "==", "text": "==", "parent": 190, "children": [], "start_point": {"row": 36, "column": 57}, "end_point": {"row": 36, "column": 59}}, {"id": 197, "type": "false", "text": "false", "parent": 190, "children": [], "start_point": {"row": 36, "column": 60}, "end_point": {"row": 36, "column": 65}}, {"id": 198, "type": "||", "text": "||", "parent": 189, "children": [], "start_point": {"row": 36, "column": 66}, "end_point": {"row": 36, "column": 68}}, {"id": 199, "type": "binary_expression", "text": "msg.j[\"isHostedByOther\"] == nullptr", "parent": 189, "children": [200, 205, 206], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 67}}, {"id": 200, "type": "subscript_expression", "text": "msg.j[\"isHostedByOther\"]", "parent": 199, "children": [201, 204], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 56}}, {"id": 201, "type": "field_expression", "text": "msg.j", "parent": 200, "children": [202, 203], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 37}}, {"id": 202, "type": "identifier", "text": "msg", "parent": 201, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 35}}, {"id": 203, "type": "field_identifier", "text": "j", "parent": 201, "children": [], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 37}}, {"id": 204, "type": "string_literal", "text": "\"isHostedByOther\"", "parent": 200, "children": [], "start_point": {"row": 37, "column": 38}, "end_point": {"row": 37, "column": 55}}, {"id": 205, "type": "==", "text": "==", "parent": 199, "children": [], "start_point": {"row": 37, "column": 57}, "end_point": {"row": 37, "column": 59}}, {"id": 206, "type": "null", "text": "nullptr", "parent": 199, "children": [207], "start_point": {"row": 37, "column": 60}, "end_point": {"row": 37, "column": 67}}, {"id": 207, "type": "nullptr", "text": "nullptr", "parent": 206, "children": [], "start_point": {"row": 37, "column": 60}, "end_point": {"row": 37, "column": 67}}, {"id": 208, "type": "call_expression", "text": "REQUIRE(it != messages.end())", "parent": null, "children": [209, 210], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 33}}, {"id": 209, "type": "identifier", "text": "REQUIRE", "parent": 208, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 11}}, {"id": 210, "type": "argument_list", "text": "(it != messages.end())", "parent": 208, "children": [211], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 33}}, {"id": 211, "type": "binary_expression", "text": "it != messages.end()", "parent": 210, "children": [212, 213, 214], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 32}}, {"id": 212, "type": "identifier", "text": "it", "parent": 211, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 14}}, {"id": 213, "type": "!=", "text": "!=", "parent": 211, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 17}}, {"id": 214, "type": "call_expression", "text": "messages.end()", "parent": 211, "children": [215, 217], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 32}}, {"id": 215, "type": "field_expression", "text": "messages.end", "parent": 214, "children": [216], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 30}}, {"id": 216, "type": "identifier", "text": "messages", "parent": 215, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 26}}, {"id": 217, "type": "argument_list", "text": "()", "parent": 214, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 32}}]}, "node_categories": {"declarations": {"functions": [102, 109, 114, 118, 122, 149, 156, 161, 165, 169], "variables": [90, 112, 116, 120, 125, 159, 163, 167, 172], "classes": [22, 32, 56, 91, 103, 150], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [9, 10, 12, 16, 25, 28, 35, 38, 39, 40, 41, 48, 50, 59, 62, 65, 70, 71, 76, 78, 83, 84, 97, 98, 131, 132, 133, 139, 142, 145, 146, 178, 179, 180, 181, 188, 189, 190, 191, 192, 199, 200, 201, 208, 211, 214, 215], "assignments": [24, 34, 58], "loops": [], "conditionals": [11, 13, 17, 26, 29, 36, 42, 43, 44, 46, 51, 60, 63, 66, 68, 72, 73, 85, 86, 93, 95, 99, 100, 105, 108, 110, 113, 117, 121, 126, 128, 129, 134, 135, 140, 143, 147, 152, 155, 157, 160, 164, 168, 173, 175, 176, 182, 183, 193, 194, 202, 203, 209, 212, 216], "returns": [130, 177], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 19, 20, 49, 53, 54, 69, 75, 77, 79, 80, 81, 82, 88, 89, 136, 138, 184, 186, 195, 204], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "auto it = std::find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg) { re"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg)"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "begin()"}, {"node_id": 118, "universal_type": "function", "name": "unknown", "text_snippet": "end()"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "[&](PartOne::Message msg)"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "auto it = std::find_if(messages.begin(), messages.end(),\n [&](PartOne::Mes"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg)"}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": "begin()"}, {"node_id": 165, "universal_type": "function", "name": "unknown", "text_snippet": "end()"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "[&](PartOne::Message msg)"}], "class_declarations": [{"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 56, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 91, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 103, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 150, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 3, "text": "#include \"TestUtils.hpp\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <catch2/catch.hpp>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"TestUtils.hpp\"\n#include <catch2/catch.hpp>\n\nPartOne& GetPartOne();\n\nTEST_CASE(\"Whiterun cow 0x10ebaf exists\", \"[NpcExists]\")\n{\n auto& partOne = GetPartOne();\n\n auto& cow = partOne.worldState.GetFormAt<MpActor>(0x10ebaf);\n}\n\nTEST_CASE(\"Whiterun cow 0x10ebaf is visible to players\", \"[NpcExists]\")\n{\n auto& partOne = GetPartOne();\n\n DoConnect(partOne, 0);\n partOne.CreateActor(0xff000000, { 24132, -5049, -3004 }, 0, 0x1a26f);\n\n partOne.SetUserActor(0, 0xff000000);\n\n auto messages = partOne.Messages();\n\n {\n auto it = std::find_if(\n messages.begin(), messages.end(),\n [&](PartOne::Message msg) { return msg.j[\"refrId\"] == 0x10010ebaf; });\n\n REQUIRE(it != messages.end());\n }\n\n {\n auto it = std::find_if(messages.begin(), messages.end(),\n [&](PartOne::Message msg) {\n return msg.j[\"refrId\"] == 0x10010ebaf &&\n (msg.j[\"isHostedByOther\"] == false ||\n msg.j[\"isHostedByOther\"] == nullptr);\n });\n\n REQUIRE(it != messages.end());\n }\n}"}
80,803
c
#pragma once #include "cslang/predef.h" #include <string> namespace cslang { #undef VOID #undef CONST enum { #define TYPE(type, size, name) type, #include "cslang/type_cfg.h" #undef TYPE }; enum { CONST = 0x1, VOLATILE = 0x2 }; enum { I1, U1, I2, U2, I4, U4, F4, F8, V, B }; struct Type { int categ : 8; int qual : 8; int align : 16; int size : 24; int b_categ : 8; }; struct Field { int offset; std::string id; int bits; int pos; Type ty; std::shared_ptr<Field> next = nullptr; }; struct RecordType : public Type { std::string id; Field flds; std::shared_ptr<Field> tail = nullptr; int hasConstFld : 16; int hasFlexArray : 16; }; // RecordType struct EnumType : public Type { std::string id; }; // EnumType struct Signature { int hasProto : 16; int hasEllipse : 16; // Vector params; }; struct FunctionType : public Type { Signature sig; }; // FunctionType #define T(categ) (Types[categ]) int TypeCode(const Type& ty); const Type* Unqual(const Type& ty); std::unique_ptr<Type> ArrayOf(int len, const Type& ty); std::string TypeToString(const Type& ty); void SetupTypeSystem(void); extern Type WCharType; extern Type Types[VOID - CHAR + 1]; #define IsIntegType(ty) (ty->categ <= ENUM) }
18.97
64
(translation_unit) "#pragma once\n\n#include "cslang/predef.h"\n\n#include <string>\n\nnamespace cslang\n{\n\n#undef VOID\n#undef CONST\n\nenum\n{\n#define TYPE(type, size, name) type,\n#include "cslang/type_cfg.h"\n#undef TYPE\n};\n\nenum { CONST = 0x1, VOLATILE = 0x2 };\n\nenum { I1, U1, I2, U2, I4, U4, F4, F8, V, B };\n\nstruct Type\n{\n int categ : 8;\n int qual : 8;\n int align : 16;\n int size : 24;\n\n int b_categ : 8;\n};\n\nstruct Field\n{\n int offset;\n std::string id;\n int bits;\n int pos;\n Type ty;\n std::shared_ptr<Field> next = nullptr;\n};\n\nstruct RecordType : public Type\n{\n std::string id;\n Field flds;\n std::shared_ptr<Field> tail = nullptr;\n int hasConstFld : 16;\n int hasFlexArray : 16;\n\n}; // RecordType\n\nstruct EnumType : public Type\n{\n std::string id;\n\n}; // EnumType\n\nstruct Signature\n{\n int hasProto : 16;\n int hasEllipse : 16;\n// Vector params;\n};\n\nstruct FunctionType : public Type\n{\n Signature sig;\n\n}; // FunctionType\n\n#define T(categ) (Types[categ])\n\nint TypeCode(const Type& ty);\nconst Type* Unqual(const Type& ty);\nstd::unique_ptr<Type> ArrayOf(int len, const Type& ty);\n\nstd::string TypeToString(const Type& ty);\n\nvoid SetupTypeSystem(void);\n\nextern Type WCharType;\nextern Type Types[VOID - CHAR + 1];\n\n#define IsIntegType(ty) (ty->categ <= ENUM)\n\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "cslang/predef.h"\n" (#include) "#include" (string_literal) ""cslang/predef.h"" (") """ (string_content) "cslang/predef.h" (") """ (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (function_definition) "namespace cslang\n{\n\n#undef VOID\n#undef CONST\n\nenum\n{\n#define TYPE(type, size, name) type,\n#include "cslang/type_cfg.h"\n#undef TYPE\n}" (type_identifier) "namespace" (identifier) "cslang" (compound_statement) "{\n\n#undef VOID\n#undef CONST\n\nenum\n{\n#define TYPE(type, size, name) type,\n#include "cslang/type_cfg.h"\n#undef TYPE\n}" ({) "{" (preproc_call) "#undef VOID\n" (preproc_directive) "#undef" (preproc_arg) "VOID" (preproc_call) "#undef CONST\n" (preproc_directive) "#undef" (preproc_arg) "CONST" (ERROR) "enum\n{\n#define TYPE(type, size, name) type,\n" (enum) "enum" ({) "{" (preproc_call) "#define TYPE(type, size, name) type,\n" (preproc_directive) "#define" (preproc_arg) "TYPE(type, size, name) type," (preproc_include) "#include "cslang/type_cfg.h"\n" (#include) "#include" (string_literal) ""cslang/type_cfg.h"" (") """ (string_content) "cslang/type_cfg.h" (") """ (preproc_call) "#undef TYPE\n" (preproc_directive) "#undef" (preproc_arg) "TYPE" (}) "}" (expression_statement) ";" (;) ";" (enum_specifier) "enum { CONST = 0x1, VOLATILE = 0x2 }" (enum) "enum" (enumerator_list) "{ CONST = 0x1, VOLATILE = 0x2 }" ({) "{" (enumerator) "CONST = 0x1" (identifier) "CONST" (=) "=" (number_literal) "0x1" (,) "," (enumerator) "VOLATILE = 0x2" (identifier) "VOLATILE" (=) "=" (number_literal) "0x2" (}) "}" (;) ";" (enum_specifier) "enum { I1, U1, I2, U2, I4, U4, F4, F8, V, B }" (enum) "enum" (enumerator_list) "{ I1, U1, I2, U2, I4, U4, F4, F8, V, B }" ({) "{" (enumerator) "I1" (identifier) "I1" (,) "," (enumerator) "U1" (identifier) "U1" (,) "," (enumerator) "I2" (identifier) "I2" (,) "," (enumerator) "U2" (identifier) "U2" (,) "," (enumerator) "I4" (identifier) "I4" (,) "," (enumerator) "U4" (identifier) "U4" (,) "," (enumerator) "F4" (identifier) "F4" (,) "," (enumerator) "F8" (identifier) "F8" (,) "," (enumerator) "V" (identifier) "V" (,) "," (enumerator) "B" (identifier) "B" (}) "}" (;) ";" (struct_specifier) "struct Type\n{\n int categ : 8;\n int qual : 8;\n int align : 16;\n int size : 24;\n\n int b_categ : 8;\n}" (struct) "struct" (type_identifier) "Type" (field_declaration_list) "{\n int categ : 8;\n int qual : 8;\n int align : 16;\n int size : 24;\n\n int b_categ : 8;\n}" ({) "{" (field_declaration) "int categ : 8;" (primitive_type) "int" (field_identifier) "categ" (bitfield_clause) ": 8" (:) ":" (number_literal) "8" (;) ";" (field_declaration) "int qual : 8;" (primitive_type) "int" (field_identifier) "qual" (bitfield_clause) ": 8" (:) ":" (number_literal) "8" (;) ";" (field_declaration) "int align : 16;" (primitive_type) "int" (field_identifier) "align" (bitfield_clause) ": 16" (:) ":" (number_literal) "16" (;) ";" (field_declaration) "int size : 24;" (primitive_type) "int" (field_identifier) "size" (bitfield_clause) ": 24" (:) ":" (number_literal) "24" (;) ";" (field_declaration) "int b_categ : 8;" (primitive_type) "int" (field_identifier) "b_categ" (bitfield_clause) ": 8" (:) ":" (number_literal) "8" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct Field\n{\n int offset;\n std::string id;\n int bits;\n int pos;\n Type ty;\n std::shared_ptr<Field> next = nullptr;\n}" (struct) "struct" (type_identifier) "Field" (field_declaration_list) "{\n int offset;\n std::string id;\n int bits;\n int pos;\n Type ty;\n std::shared_ptr<Field> next = nullptr;\n}" ({) "{" (field_declaration) "int offset;" (primitive_type) "int" (field_identifier) "offset" (;) ";" (field_declaration) "std::string id;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "id" (;) ";" (field_declaration) "int bits;" (primitive_type) "int" (field_identifier) "bits" (;) ";" (field_declaration) "int pos;" (primitive_type) "int" (field_identifier) "pos" (;) ";" (field_declaration) "Type ty;" (type_identifier) "Type" (field_identifier) "ty" (;) ";" (field_declaration) "std::shared_ptr<Field> next = nullptr;" (type_identifier) "std" (ERROR) "::shared_ptr<Field>" (:) ":" (:) ":" (field_identifier) "shared_ptr" (<) "<" (field_identifier) "Field" (>) ">" (field_identifier) "next" (ERROR) "= nullptr" (=) "=" (nullptr) "nullptr" (;) ";" (}) "}" (;) ";" (function_definition) "struct RecordType : public Type\n{\n std::string id;\n Field flds;\n std::shared_ptr<Field> tail = nullptr;\n int hasConstFld : 16;\n int hasFlexArray : 16;\n\n}" (struct_specifier) "struct RecordType" (struct) "struct" (type_identifier) "RecordType" (ERROR) ": public" (:) ":" (identifier) "public" (identifier) "Type" (compound_statement) "{\n std::string id;\n Field flds;\n std::shared_ptr<Field> tail = nullptr;\n int hasConstFld : 16;\n int hasFlexArray : 16;\n\n}" ({) "{" (labeled_statement) "std::string id;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string id;" (type_identifier) "string" (identifier) "id" (;) ";" (declaration) "Field flds;" (type_identifier) "Field" (identifier) "flds" (;) ";" (labeled_statement) "std::shared_ptr<Field> tail = nullptr;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "shared_ptr<Field> tail = nullptr;" (binary_expression) "shared_ptr<Field> tail = nullptr" (binary_expression) "shared_ptr<Field" (identifier) "shared_ptr" (<) "<" (identifier) "Field" (>) ">" (assignment_expression) "tail = nullptr" (identifier) "tail" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "int hasConstFld : 16;" (primitive_type) "int" (identifier) "hasConstFld" (ERROR) ": 16" (:) ":" (number_literal) "16" (;) ";" (declaration) "int hasFlexArray : 16;" (primitive_type) "int" (identifier) "hasFlexArray" (ERROR) ": 16" (:) ":" (number_literal) "16" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// RecordType" (function_definition) "struct EnumType : public Type\n{\n std::string id;\n\n}" (struct_specifier) "struct EnumType" (struct) "struct" (type_identifier) "EnumType" (ERROR) ": public" (:) ":" (identifier) "public" (identifier) "Type" (compound_statement) "{\n std::string id;\n\n}" ({) "{" (labeled_statement) "std::string id;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string id;" (type_identifier) "string" (identifier) "id" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// EnumType" (struct_specifier) "struct Signature\n{\n int hasProto : 16;\n int hasEllipse : 16;\n// Vector params;\n}" (struct) "struct" (type_identifier) "Signature" (field_declaration_list) "{\n int hasProto : 16;\n int hasEllipse : 16;\n// Vector params;\n}" ({) "{" (field_declaration) "int hasProto : 16;" (primitive_type) "int" (field_identifier) "hasProto" (bitfield_clause) ": 16" (:) ":" (number_literal) "16" (;) ";" (field_declaration) "int hasEllipse : 16;" (primitive_type) "int" (field_identifier) "hasEllipse" (bitfield_clause) ": 16" (:) ":" (number_literal) "16" (;) ";" (comment) "// Vector params;" (}) "}" (;) ";" (function_definition) "struct FunctionType : public Type\n{\n Signature sig;\n\n}" (struct_specifier) "struct FunctionType" (struct) "struct" (type_identifier) "FunctionType" (ERROR) ": public" (:) ":" (identifier) "public" (identifier) "Type" (compound_statement) "{\n Signature sig;\n\n}" ({) "{" (declaration) "Signature sig;" (type_identifier) "Signature" (identifier) "sig" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// FunctionType" (preproc_function_def) "#define T(categ) (Types[categ])\n" (#define) "#define" (identifier) "T" (preproc_params) "(categ)" (() "(" (identifier) "categ" ()) ")" (preproc_arg) "(Types[categ])" (declaration) "int TypeCode(const Type& ty);" (primitive_type) "int" (function_declarator) "TypeCode(const Type& ty)" (identifier) "TypeCode" (parameter_list) "(const Type& ty)" (() "(" (parameter_declaration) "const Type& ty" (type_qualifier) "const" (const) "const" (type_identifier) "Type" (ERROR) "&" (&) "&" (identifier) "ty" ()) ")" (;) ";" (declaration) "const Type* Unqual(const Type& ty);" (type_qualifier) "const" (const) "const" (type_identifier) "Type" (pointer_declarator) "* Unqual(const Type& ty)" (*) "*" (function_declarator) "Unqual(const Type& ty)" (identifier) "Unqual" (parameter_list) "(const Type& ty)" (() "(" (parameter_declaration) "const Type& ty" (type_qualifier) "const" (const) "const" (type_identifier) "Type" (ERROR) "&" (&) "&" (identifier) "ty" ()) ")" (;) ";" (labeled_statement) "std::unique_ptr<Type> ArrayOf(int len, const Type& ty);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "unique_ptr<Type> ArrayOf(int len, const Type& ty);" (binary_expression) "unique_ptr<Type> ArrayOf(int len, const Type& ty)" (binary_expression) "unique_ptr<Type" (identifier) "unique_ptr" (<) "<" (identifier) "Type" (>) ">" (call_expression) "ArrayOf(int len, const Type& ty)" (identifier) "ArrayOf" (argument_list) "(int len, const Type& ty)" (() "(" (identifier) "int" (ERROR) "len" (identifier) "len" (,) "," (binary_expression) "const Type& ty" (identifier) "const" (ERROR) "Type" (identifier) "Type" (&) "&" (identifier) "ty" ()) ")" (;) ";" (labeled_statement) "std::string TypeToString(const Type& ty);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string TypeToString(const Type& ty);" (type_identifier) "string" (function_declarator) "TypeToString(const Type& ty)" (identifier) "TypeToString" (parameter_list) "(const Type& ty)" (() "(" (parameter_declaration) "const Type& ty" (type_qualifier) "const" (const) "const" (type_identifier) "Type" (ERROR) "&" (&) "&" (identifier) "ty" ()) ")" (;) ";" (declaration) "void SetupTypeSystem(void);" (primitive_type) "void" (function_declarator) "SetupTypeSystem(void)" (identifier) "SetupTypeSystem" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "extern Type WCharType;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "Type" (identifier) "WCharType" (;) ";" (declaration) "extern Type Types[VOID - CHAR + 1];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "Type" (array_declarator) "Types[VOID - CHAR + 1]" (identifier) "Types" ([) "[" (binary_expression) "VOID - CHAR + 1" (binary_expression) "VOID - CHAR" (identifier) "VOID" (-) "-" (identifier) "CHAR" (+) "+" (number_literal) "1" (]) "]" (;) ";" (preproc_function_def) "#define IsIntegType(ty) (ty->categ <= ENUM)\n" (#define) "#define" (identifier) "IsIntegType" (preproc_params) "(ty)" (() "(" (identifier) "ty" ()) ")" (preproc_arg) "(ty->categ <= ENUM)" (ERROR) "}" (}) "}"
433
20
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 18.97, "nodes": 275, "errors": 0, "source_hash": "d20db8940db504753f6672273e13438da7664c706090db9d70ae8934ab05480f", "categorized_nodes": 203}, "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 \"cslang/predef.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": "\"cslang/predef.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 9, "type": "function_definition", "text": "namespace cslang\n{\n\n#undef VOID\n#undef CONST\n\nenum\n{\n#define TYPE(type, size, name) type,\n#include \"cslang/type_cfg.h\"\n#undef TYPE\n}", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 11, "type": "identifier", "text": "cslang", "parent": 9, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 16}}, {"id": 12, "type": "preproc_call", "text": "#undef VOID\n", "parent": 9, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#undef", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 14, "type": "preproc_arg", "text": "VOID", "parent": 12, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 11}}, {"id": 15, "type": "preproc_call", "text": "#undef CONST\n", "parent": 9, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 16, "type": "preproc_directive", "text": "#undef", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 17, "type": "preproc_arg", "text": "CONST", "parent": 15, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 12}}, {"id": 18, "type": "ERROR", "text": "enum\n{\n#define TYPE(type, size, name) type,\n", "parent": 9, "children": [19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 19, "type": "enum", "text": "enum", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 20, "type": "preproc_call", "text": "#define TYPE(type, size, name) type,\n", "parent": 18, "children": [21, 22], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 21, "type": "preproc_directive", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 22, "type": "preproc_arg", "text": "TYPE(type, size, name) type,", "parent": 20, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 36}}, {"id": 23, "type": "preproc_include", "text": "#include \"cslang/type_cfg.h\"\n", "parent": 9, "children": [24, 25], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 25, "type": "string_literal", "text": "\"cslang/type_cfg.h\"", "parent": 23, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 28}}, {"id": 26, "type": "preproc_call", "text": "#undef TYPE\n", "parent": 9, "children": [27, 28], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 27, "type": "preproc_directive", "text": "#undef", "parent": 26, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 28, "type": "preproc_arg", "text": "TYPE", "parent": 26, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 11}}, {"id": 29, "type": "enum_specifier", "text": "enum { CONST = 0x1, VOLATILE = 0x2 }", "parent": null, "children": [30, 31], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 36}}, {"id": 30, "type": "enum", "text": "enum", "parent": 29, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 31, "type": "enumerator_list", "text": "{ CONST = 0x1, VOLATILE = 0x2 }", "parent": 29, "children": [32, 36], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 36}}, {"id": 32, "type": "enumerator", "text": "CONST = 0x1", "parent": 31, "children": [33, 34, 35], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 18}}, {"id": 33, "type": "identifier", "text": "CONST", "parent": 32, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 12}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 35, "type": "number_literal", "text": "0x1", "parent": 32, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 18}}, {"id": 36, "type": "enumerator", "text": "VOLATILE = 0x2", "parent": 31, "children": [37, 38, 39], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 34}}, {"id": 37, "type": "identifier", "text": "VOLATILE", "parent": 36, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 28}}, {"id": 38, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 30}}, {"id": 39, "type": "number_literal", "text": "0x2", "parent": 36, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 34}}, {"id": 40, "type": "enum_specifier", "text": "enum { I1, U1, I2, U2, I4, U4, F4, F8, V, B }", "parent": null, "children": [41, 42], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 45}}, {"id": 41, "type": "enum", "text": "enum", "parent": 40, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 42, "type": "enumerator_list", "text": "{ I1, U1, I2, U2, I4, U4, F4, F8, V, B }", "parent": 40, "children": [43, 45, 47, 49, 51, 53, 55, 57, 59, 61], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 45}}, {"id": 43, "type": "enumerator", "text": "I1", "parent": 42, "children": [44], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 9}}, {"id": 44, "type": "identifier", "text": "I1", "parent": 43, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 9}}, {"id": 45, "type": "enumerator", "text": "U1", "parent": 42, "children": [46], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 13}}, {"id": 46, "type": "identifier", "text": "U1", "parent": 45, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 13}}, {"id": 47, "type": "enumerator", "text": "I2", "parent": 42, "children": [48], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 17}}, {"id": 48, "type": "identifier", "text": "I2", "parent": 47, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 17}}, {"id": 49, "type": "enumerator", "text": "U2", "parent": 42, "children": [50], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 21}}, {"id": 50, "type": "identifier", "text": "U2", "parent": 49, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 21}}, {"id": 51, "type": "enumerator", "text": "I4", "parent": 42, "children": [52], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 25}}, {"id": 52, "type": "identifier", "text": "I4", "parent": 51, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 25}}, {"id": 53, "type": "enumerator", "text": "U4", "parent": 42, "children": [54], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 29}}, {"id": 54, "type": "identifier", "text": "U4", "parent": 53, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 29}}, {"id": 55, "type": "enumerator", "text": "F4", "parent": 42, "children": [56], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 33}}, {"id": 56, "type": "identifier", "text": "F4", "parent": 55, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 33}}, {"id": 57, "type": "enumerator", "text": "F8", "parent": 42, "children": [58], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 37}}, {"id": 58, "type": "identifier", "text": "F8", "parent": 57, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 37}}, {"id": 59, "type": "enumerator", "text": "V", "parent": 42, "children": [60], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 40}}, {"id": 60, "type": "identifier", "text": "V", "parent": 59, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 40}}, {"id": 61, "type": "enumerator", "text": "B", "parent": 42, "children": [62], "start_point": {"row": 21, "column": 42}, "end_point": {"row": 21, "column": 43}}, {"id": 62, "type": "identifier", "text": "B", "parent": 61, "children": [], "start_point": {"row": 21, "column": 42}, "end_point": {"row": 21, "column": 43}}, {"id": 63, "type": "struct_specifier", "text": "struct Type\n{\n int categ : 8;\n int qual : 8;\n int align : 16;\n int size : 24;\n\n int b_categ : 8;\n}", "parent": null, "children": [64, 65], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 64, "type": "struct", "text": "struct", "parent": 63, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 65, "type": "type_identifier", "text": "Type", "parent": 63, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 11}}, {"id": 66, "type": "field_declaration", "text": "int categ : 8;", "parent": 63, "children": [67, 68, 69], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 18}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 68, "type": "field_identifier", "text": "categ", "parent": 66, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 13}}, {"id": 69, "type": "bitfield_clause", "text": ": 8", "parent": 66, "children": [70], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 17}}, {"id": 70, "type": "number_literal", "text": "8", "parent": 69, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 17}}, {"id": 71, "type": "field_declaration", "text": "int qual : 8;", "parent": 63, "children": [72, 73, 74], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 18}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 73, "type": "field_identifier", "text": "qual", "parent": 71, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 12}}, {"id": 74, "type": "bitfield_clause", "text": ": 8", "parent": 71, "children": [75], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 17}}, {"id": 75, "type": "number_literal", "text": "8", "parent": 74, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 76, "type": "field_declaration", "text": "int align : 16;", "parent": 63, "children": [77, 78, 79], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 19}}, {"id": 77, "type": "primitive_type", "text": "int", "parent": 76, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 7}}, {"id": 78, "type": "field_identifier", "text": "align", "parent": 76, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 13}}, {"id": 79, "type": "bitfield_clause", "text": ": 16", "parent": 76, "children": [80], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 18}}, {"id": 80, "type": "number_literal", "text": "16", "parent": 79, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 18}}, {"id": 81, "type": "field_declaration", "text": "int size : 24;", "parent": 63, "children": [82, 83, 84], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 19}}, {"id": 82, "type": "primitive_type", "text": "int", "parent": 81, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 83, "type": "field_identifier", "text": "size", "parent": 81, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 12}}, {"id": 84, "type": "bitfield_clause", "text": ": 24", "parent": 81, "children": [85], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 18}}, {"id": 85, "type": "number_literal", "text": "24", "parent": 84, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 18}}, {"id": 86, "type": "field_declaration", "text": "int b_categ : 8;", "parent": 63, "children": [87, 88, 89], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 20}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 7}}, {"id": 88, "type": "field_identifier", "text": "b_categ", "parent": 86, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 15}}, {"id": 89, "type": "bitfield_clause", "text": ": 8", "parent": 86, "children": [90], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 19}}, {"id": 90, "type": "number_literal", "text": "8", "parent": 89, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 19}}, {"id": 91, "type": "struct_specifier", "text": "struct Field\n{\n int offset;\n std::string id;\n int bits;\n int pos;\n Type ty;\n std::shared_ptr<Field> next = nullptr;\n}", "parent": null, "children": [92, 93], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 92, "type": "struct", "text": "struct", "parent": 91, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 93, "type": "type_identifier", "text": "Field", "parent": 91, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 12}}, {"id": 94, "type": "field_declaration", "text": "int offset;", "parent": 91, "children": [95, 96], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 15}}, {"id": 95, "type": "primitive_type", "text": "int", "parent": 94, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 96, "type": "field_identifier", "text": "offset", "parent": 94, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 14}}, {"id": 97, "type": "field_declaration", "text": "std::string id;", "parent": 91, "children": [98, 99, 101], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 19}}, {"id": 98, "type": "type_identifier", "text": "std", "parent": 97, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 7}}, {"id": 99, "type": "ERROR", "text": "::string", "parent": 97, "children": [100], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 15}}, {"id": 100, "type": "field_identifier", "text": "string", "parent": 99, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 15}}, {"id": 101, "type": "field_identifier", "text": "id", "parent": 97, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 18}}, {"id": 102, "type": "field_declaration", "text": "int bits;", "parent": 91, "children": [103, 104], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 13}}, {"id": 103, "type": "primitive_type", "text": "int", "parent": 102, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 7}}, {"id": 104, "type": "field_identifier", "text": "bits", "parent": 102, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 12}}, {"id": 105, "type": "field_declaration", "text": "int pos;", "parent": 91, "children": [106, 107], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 12}}, {"id": 106, "type": "primitive_type", "text": "int", "parent": 105, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 7}}, {"id": 107, "type": "field_identifier", "text": "pos", "parent": 105, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 11}}, {"id": 108, "type": "field_declaration", "text": "Type ty;", "parent": 91, "children": [109, 110], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 12}}, {"id": 109, "type": "type_identifier", "text": "Type", "parent": 108, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 110, "type": "field_identifier", "text": "ty", "parent": 108, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 11}}, {"id": 111, "type": "field_declaration", "text": "std::shared_ptr<Field> next = nullptr;", "parent": 91, "children": [112, 113, 118, 119], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 42}}, {"id": 112, "type": "type_identifier", "text": "std", "parent": 111, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 7}}, {"id": 113, "type": "ERROR", "text": "::shared_ptr<Field>", "parent": 111, "children": [114, 115, 116, 117], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 26}}, {"id": 114, "type": "field_identifier", "text": "shared_ptr", "parent": 113, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 19}}, {"id": 115, "type": "<", "text": "<", "parent": 113, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 20}}, {"id": 116, "type": "field_identifier", "text": "Field", "parent": 113, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 25}}, {"id": 117, "type": ">", "text": ">", "parent": 113, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 26}}, {"id": 118, "type": "field_identifier", "text": "next", "parent": 111, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 31}}, {"id": 119, "type": "ERROR", "text": "= nullptr", "parent": 111, "children": [120, 121], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 41}}, {"id": 120, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 33}}, {"id": 121, "type": "nullptr", "text": "nullptr", "parent": 119, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 41}}, {"id": 122, "type": "function_definition", "text": "struct RecordType : public Type\n{\n std::string id;\n Field flds;\n std::shared_ptr<Field> tail = nullptr;\n int hasConstFld : 16;\n int hasFlexArray : 16;\n\n}", "parent": null, "children": [123, 126, 127], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 123, "type": "struct_specifier", "text": "struct RecordType", "parent": 122, "children": [124, 125], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 17}}, {"id": 124, "type": "struct", "text": "struct", "parent": 123, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 125, "type": "type_identifier", "text": "RecordType", "parent": 123, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 17}}, {"id": 126, "type": "ERROR", "text": ": public", "parent": 122, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 26}}, {"id": 127, "type": "identifier", "text": "Type", "parent": 122, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 31}}, {"id": 128, "type": "labeled_statement", "text": "std::string id;", "parent": 122, "children": [129, 130], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 19}}, {"id": 129, "type": "statement_identifier", "text": "std", "parent": 128, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 7}}, {"id": 130, "type": "declaration", "text": "string id;", "parent": 128, "children": [131, 132], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 19}}, {"id": 131, "type": "type_identifier", "text": "string", "parent": 130, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 15}}, {"id": 132, "type": "identifier", "text": "id", "parent": 130, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 18}}, {"id": 133, "type": "declaration", "text": "Field flds;", "parent": 122, "children": [134, 135], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 15}}, {"id": 134, "type": "type_identifier", "text": "Field", "parent": 133, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 9}}, {"id": 135, "type": "identifier", "text": "flds", "parent": 133, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 14}}, {"id": 136, "type": "labeled_statement", "text": "std::shared_ptr<Field> tail = nullptr;", "parent": 122, "children": [137], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 42}}, {"id": 137, "type": "statement_identifier", "text": "std", "parent": 136, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 7}}, {"id": 138, "type": "binary_expression", "text": "shared_ptr<Field> tail = nullptr", "parent": 136, "children": [139, 143, 144], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 41}}, {"id": 139, "type": "binary_expression", "text": "shared_ptr<Field", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 25}}, {"id": 140, "type": "identifier", "text": "shared_ptr", "parent": 139, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 19}}, {"id": 141, "type": "<", "text": "<", "parent": 139, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 142, "type": "identifier", "text": "Field", "parent": 139, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 25}}, {"id": 143, "type": ">", "text": ">", "parent": 138, "children": [], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 26}}, {"id": 144, "type": "assignment_expression", "text": "tail = nullptr", "parent": 138, "children": [145, 146, 147], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 41}}, {"id": 145, "type": "identifier", "text": "tail", "parent": 144, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 31}}, {"id": 146, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 33}}, {"id": 147, "type": "null", "text": "nullptr", "parent": 144, "children": [148], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 41}}, {"id": 148, "type": "nullptr", "text": "nullptr", "parent": 147, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 41}}, {"id": 149, "type": "declaration", "text": "int hasConstFld : 16;", "parent": 122, "children": [150, 151, 152], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 26}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 7}}, {"id": 151, "type": "identifier", "text": "hasConstFld", "parent": 149, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 19}}, {"id": 152, "type": "ERROR", "text": ": 16", "parent": 149, "children": [153], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 25}}, {"id": 153, "type": "number_literal", "text": "16", "parent": 152, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 25}}, {"id": 154, "type": "declaration", "text": "int hasFlexArray : 16;", "parent": 122, "children": [155, 156, 157], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 26}}, {"id": 155, "type": "primitive_type", "text": "int", "parent": 154, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 7}}, {"id": 156, "type": "identifier", "text": "hasFlexArray", "parent": 154, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 20}}, {"id": 157, "type": "ERROR", "text": ": 16", "parent": 154, "children": [158], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 25}}, {"id": 158, "type": "number_literal", "text": "16", "parent": 157, "children": [], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 25}}, {"id": 159, "type": "function_definition", "text": "struct EnumType : public Type\n{\n std::string id;\n\n}", "parent": null, "children": [160, 163, 164], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 160, "type": "struct_specifier", "text": "struct EnumType", "parent": 159, "children": [161, 162], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 15}}, {"id": 161, "type": "struct", "text": "struct", "parent": 160, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 162, "type": "type_identifier", "text": "EnumType", "parent": 160, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 15}}, {"id": 163, "type": "ERROR", "text": ": public", "parent": 159, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 24}}, {"id": 164, "type": "identifier", "text": "Type", "parent": 159, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 29}}, {"id": 165, "type": "labeled_statement", "text": "std::string id;", "parent": 159, "children": [166, 167], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 19}}, {"id": 166, "type": "statement_identifier", "text": "std", "parent": 165, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 7}}, {"id": 167, "type": "declaration", "text": "string id;", "parent": 165, "children": [168, 169], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 19}}, {"id": 168, "type": "type_identifier", "text": "string", "parent": 167, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 15}}, {"id": 169, "type": "identifier", "text": "id", "parent": 167, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 18}}, {"id": 170, "type": "struct_specifier", "text": "struct Signature\n{\n int hasProto : 16;\n int hasEllipse : 16;\n// Vector params;\n}", "parent": null, "children": [171, 172], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 171, "type": "struct", "text": "struct", "parent": 170, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}, {"id": 172, "type": "type_identifier", "text": "Signature", "parent": 170, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 16}}, {"id": 173, "type": "field_declaration", "text": "int hasProto : 16;", "parent": 170, "children": [174, 175, 176], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 24}}, {"id": 174, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 7}}, {"id": 175, "type": "field_identifier", "text": "hasProto", "parent": 173, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 16}}, {"id": 176, "type": "bitfield_clause", "text": ": 16", "parent": 173, "children": [177], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 23}}, {"id": 177, "type": "number_literal", "text": "16", "parent": 176, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 23}}, {"id": 178, "type": "field_declaration", "text": "int hasEllipse : 16;", "parent": 170, "children": [179, 180, 181], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 24}}, {"id": 179, "type": "primitive_type", "text": "int", "parent": 178, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 7}}, {"id": 180, "type": "field_identifier", "text": "hasEllipse", "parent": 178, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 18}}, {"id": 181, "type": "bitfield_clause", "text": ": 16", "parent": 178, "children": [182], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 23}}, {"id": 182, "type": "number_literal", "text": "16", "parent": 181, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 23}}, {"id": 183, "type": "function_definition", "text": "struct FunctionType : public Type\n{\n Signature sig;\n\n}", "parent": null, "children": [184, 187, 188], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 184, "type": "struct_specifier", "text": "struct FunctionType", "parent": 183, "children": [185, 186], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 19}}, {"id": 185, "type": "struct", "text": "struct", "parent": 184, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 186, "type": "type_identifier", "text": "FunctionType", "parent": 184, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 19}}, {"id": 187, "type": "ERROR", "text": ": public", "parent": 183, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 28}}, {"id": 188, "type": "identifier", "text": "Type", "parent": 183, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 33}}, {"id": 189, "type": "declaration", "text": "Signature sig;", "parent": 183, "children": [190, 191], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 18}}, {"id": 190, "type": "type_identifier", "text": "Signature", "parent": 189, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 13}}, {"id": 191, "type": "identifier", "text": "sig", "parent": 189, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 17}}, {"id": 192, "type": "preproc_function_def", "text": "#define T(categ) (Types[categ])\n", "parent": null, "children": [193, 194, 195, 197], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 73, "column": 0}}, {"id": 193, "type": "#define", "text": "#define", "parent": 192, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 7}}, {"id": 194, "type": "identifier", "text": "T", "parent": 192, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 195, "type": "preproc_params", "text": "(categ)", "parent": 192, "children": [196], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 16}}, {"id": 196, "type": "identifier", "text": "categ", "parent": 195, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 15}}, {"id": 197, "type": "preproc_arg", "text": "(Types[categ])", "parent": 192, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 31}}, {"id": 198, "type": "declaration", "text": "int TypeCode(const Type& ty);", "parent": null, "children": [199, 200], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 29}}, {"id": 199, "type": "primitive_type", "text": "int", "parent": 198, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 3}}, {"id": 200, "type": "function_declarator", "text": "TypeCode(const Type& ty)", "parent": 198, "children": [201, 202], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 28}}, {"id": 201, "type": "identifier", "text": "TypeCode", "parent": 200, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 12}}, {"id": 202, "type": "parameter_list", "text": "(const Type& ty)", "parent": 200, "children": [203], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 28}}, {"id": 203, "type": "parameter_declaration", "text": "const Type& ty", "parent": 202, "children": [204, 205], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 27}}, {"id": 204, "type": "type_identifier", "text": "Type", "parent": 203, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 23}}, {"id": 205, "type": "identifier", "text": "ty", "parent": 203, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 27}}, {"id": 206, "type": "declaration", "text": "const Type* Unqual(const Type& ty);", "parent": null, "children": [207, 208], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 35}}, {"id": 207, "type": "type_identifier", "text": "Type", "parent": 206, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 10}}, {"id": 208, "type": "pointer_declarator", "text": "* Unqual(const Type& ty)", "parent": 206, "children": [209, 210], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 34}}, {"id": 209, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 11}}, {"id": 210, "type": "function_declarator", "text": "Unqual(const Type& ty)", "parent": 208, "children": [211, 212], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 34}}, {"id": 211, "type": "identifier", "text": "Unqual", "parent": 210, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 18}}, {"id": 212, "type": "parameter_list", "text": "(const Type& ty)", "parent": 210, "children": [213], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 34}}, {"id": 213, "type": "parameter_declaration", "text": "const Type& ty", "parent": 212, "children": [214, 215], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 33}}, {"id": 214, "type": "type_identifier", "text": "Type", "parent": 213, "children": [], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 29}}, {"id": 215, "type": "identifier", "text": "ty", "parent": 213, "children": [], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 33}}, {"id": 216, "type": "labeled_statement", "text": "std::unique_ptr<Type> ArrayOf(int len, const Type& ty);", "parent": null, "children": [217], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 55}}, {"id": 217, "type": "statement_identifier", "text": "std", "parent": 216, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 3}}, {"id": 218, "type": "binary_expression", "text": "unique_ptr<Type> ArrayOf(int len, const Type& ty)", "parent": 216, "children": [219, 223, 224], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 54}}, {"id": 219, "type": "binary_expression", "text": "unique_ptr<Type", "parent": 218, "children": [220, 221, 222], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 20}}, {"id": 220, "type": "identifier", "text": "unique_ptr", "parent": 219, "children": [], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 15}}, {"id": 221, "type": "<", "text": "<", "parent": 219, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 16}}, {"id": 222, "type": "identifier", "text": "Type", "parent": 219, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 20}}, {"id": 223, "type": ">", "text": ">", "parent": 218, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 21}}, {"id": 224, "type": "call_expression", "text": "ArrayOf(int len, const Type& ty)", "parent": 218, "children": [225, 226], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 54}}, {"id": 225, "type": "identifier", "text": "ArrayOf", "parent": 224, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 29}}, {"id": 226, "type": "argument_list", "text": "(int len, const Type& ty)", "parent": 224, "children": [227, 228, 230], "start_point": {"row": 76, "column": 29}, "end_point": {"row": 76, "column": 54}}, {"id": 227, "type": "identifier", "text": "int", "parent": 226, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 33}}, {"id": 228, "type": "ERROR", "text": "len", "parent": 226, "children": [229], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 37}}, {"id": 229, "type": "identifier", "text": "len", "parent": 228, "children": [], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 37}}, {"id": 230, "type": "binary_expression", "text": "const Type& ty", "parent": 226, "children": [231, 233], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 53}}, {"id": 231, "type": "ERROR", "text": "Type", "parent": 230, "children": [232], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 49}}, {"id": 232, "type": "identifier", "text": "Type", "parent": 231, "children": [], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 49}}, {"id": 233, "type": "identifier", "text": "ty", "parent": 230, "children": [], "start_point": {"row": 76, "column": 51}, "end_point": {"row": 76, "column": 53}}, {"id": 234, "type": "labeled_statement", "text": "std::string TypeToString(const Type& ty);", "parent": null, "children": [235, 236], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 41}}, {"id": 235, "type": "statement_identifier", "text": "std", "parent": 234, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 3}}, {"id": 236, "type": "declaration", "text": "string TypeToString(const Type& ty);", "parent": 234, "children": [237, 238], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 41}}, {"id": 237, "type": "type_identifier", "text": "string", "parent": 236, "children": [], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 11}}, {"id": 238, "type": "function_declarator", "text": "TypeToString(const Type& ty)", "parent": 236, "children": [239, 240], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 40}}, {"id": 239, "type": "identifier", "text": "TypeToString", "parent": 238, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 24}}, {"id": 240, "type": "parameter_list", "text": "(const Type& ty)", "parent": 238, "children": [241], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 40}}, {"id": 241, "type": "parameter_declaration", "text": "const Type& ty", "parent": 240, "children": [242, 243], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 39}}, {"id": 242, "type": "type_identifier", "text": "Type", "parent": 241, "children": [], "start_point": {"row": 78, "column": 31}, "end_point": {"row": 78, "column": 35}}, {"id": 243, "type": "identifier", "text": "ty", "parent": 241, "children": [], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 39}}, {"id": 244, "type": "declaration", "text": "void SetupTypeSystem(void);", "parent": null, "children": [245, 246], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 27}}, {"id": 245, "type": "primitive_type", "text": "void", "parent": 244, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 4}}, {"id": 246, "type": "function_declarator", "text": "SetupTypeSystem(void)", "parent": 244, "children": [247, 248], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 26}}, {"id": 247, "type": "identifier", "text": "SetupTypeSystem", "parent": 246, "children": [], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 20}}, {"id": 248, "type": "parameter_list", "text": "(void)", "parent": 246, "children": [249], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 26}}, {"id": 249, "type": "parameter_declaration", "text": "void", "parent": 248, "children": [250], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 25}}, {"id": 250, "type": "primitive_type", "text": "void", "parent": 249, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 25}}, {"id": 251, "type": "declaration", "text": "extern Type WCharType;", "parent": null, "children": [252, 254, 255], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 22}}, {"id": 252, "type": "storage_class_specifier", "text": "extern", "parent": 251, "children": [253], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 6}}, {"id": 253, "type": "extern", "text": "extern", "parent": 252, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 6}}, {"id": 254, "type": "type_identifier", "text": "Type", "parent": 251, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 11}}, {"id": 255, "type": "identifier", "text": "WCharType", "parent": 251, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 21}}, {"id": 256, "type": "declaration", "text": "extern Type Types[VOID - CHAR + 1];", "parent": null, "children": [257, 259, 260], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 35}}, {"id": 257, "type": "storage_class_specifier", "text": "extern", "parent": 256, "children": [258], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 6}}, {"id": 258, "type": "extern", "text": "extern", "parent": 257, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 6}}, {"id": 259, "type": "type_identifier", "text": "Type", "parent": 256, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 11}}, {"id": 260, "type": "array_declarator", "text": "Types[VOID - CHAR + 1]", "parent": 256, "children": [261, 262], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 34}}, {"id": 261, "type": "identifier", "text": "Types", "parent": 260, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 17}}, {"id": 262, "type": "binary_expression", "text": "VOID - CHAR + 1", "parent": 260, "children": [263, 267, 268], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 33}}, {"id": 263, "type": "binary_expression", "text": "VOID - CHAR", "parent": 262, "children": [264, 265, 266], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 29}}, {"id": 264, "type": "identifier", "text": "VOID", "parent": 263, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 22}}, {"id": 265, "type": "-", "text": "-", "parent": 263, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 24}}, {"id": 266, "type": "identifier", "text": "CHAR", "parent": 263, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 29}}, {"id": 267, "type": "+", "text": "+", "parent": 262, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 31}}, {"id": 268, "type": "number_literal", "text": "1", "parent": 262, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 33}}, {"id": 269, "type": "preproc_function_def", "text": "#define IsIntegType(ty) (ty->categ <= ENUM)\n", "parent": null, "children": [270, 271, 272, 274], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 86, "column": 0}}, {"id": 270, "type": "#define", "text": "#define", "parent": 269, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 7}}, {"id": 271, "type": "identifier", "text": "IsIntegType", "parent": 269, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 19}}, {"id": 272, "type": "preproc_params", "text": "(ty)", "parent": 269, "children": [273], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 23}}, {"id": 273, "type": "identifier", "text": "ty", "parent": 272, "children": [], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 22}}, {"id": 274, "type": "preproc_arg", "text": "(ty->categ <= ENUM)", "parent": 269, "children": [], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 46}}]}, "node_categories": {"declarations": {"functions": [9, 122, 159, 183, 192, 200, 210, 238, 246, 269], "variables": [66, 71, 76, 81, 86, 94, 97, 102, 105, 108, 111, 130, 133, 149, 154, 167, 173, 178, 189, 198, 203, 206, 213, 236, 241, 244, 249, 251, 256], "classes": [63, 64, 91, 92, 123, 124, 160, 161, 170, 171, 184, 185, 252, 257], "imports": [3, 4, 6, 7, 23, 24], "modules": [], "enums": [19, 29, 30, 31, 32, 36, 40, 41, 42, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61]}, "statements": {"expressions": [138, 139, 218, 219, 224, 230, 262, 263], "assignments": [144], "loops": [], "conditionals": [10, 11, 33, 37, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 65, 68, 73, 78, 83, 88, 93, 96, 98, 100, 101, 104, 107, 109, 110, 112, 114, 116, 118, 125, 127, 129, 131, 132, 134, 135, 137, 140, 142, 145, 151, 156, 162, 164, 166, 168, 169, 172, 175, 180, 186, 188, 190, 191, 194, 196, 201, 204, 205, 207, 211, 214, 215, 217, 220, 222, 225, 227, 229, 232, 233, 235, 237, 239, 242, 243, 247, 254, 255, 259, 261, 264, 266, 271, 273], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 12, 15, 20, 26], "literals": [5, 8, 25, 35, 39, 70, 75, 80, 85, 90, 153, 158, 177, 182, 268], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [69, 74, 79, 84, 89, 176, 181]}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "namespace cslang\n{\n\n#undef VOID\n#undef CONST\n\nenum\n{\n#define TYPE(type, size, name) type,\n#include \""}, {"node_id": 122, "universal_type": "function", "name": "RecordType", "text_snippet": "struct RecordType : public Type\n{\n std::string id;\n Field flds;\n std::shared_ptr<Field> tai"}, {"node_id": 159, "universal_type": "function", "name": "EnumType", "text_snippet": "struct EnumType : public Type\n{\n std::string id;\n\n}"}, {"node_id": 183, "universal_type": "function", "name": "FunctionType", "text_snippet": "struct FunctionType : public Type\n{\n Signature sig;\n\n}"}, {"node_id": 192, "universal_type": "function", "name": "unknown", "text_snippet": "#define T(categ) (Types[categ])\n"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "TypeCode(const Type& ty)"}, {"node_id": 210, "universal_type": "function", "name": "unknown", "text_snippet": "Unqual(const Type& ty)"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "TypeToString(const Type& ty)"}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": "SetupTypeSystem(void)"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "#define IsIntegType(ty) (ty->categ <= ENUM)\n"}], "class_declarations": [{"node_id": 63, "universal_type": "class", "name": "Type", "text_snippet": "struct Type\n{\n int categ : 8;\n int qual : 8;\n int align : 16;\n int size : 24;\n\n int"}, {"node_id": 64, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 91, "universal_type": "class", "name": "Field", "text_snippet": "struct Field\n{\n int offset;\n std::string id;\n int bits;\n int pos;\n Type ty;\n std::"}, {"node_id": 92, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 123, "universal_type": "class", "name": "RecordType", "text_snippet": "struct RecordType"}, {"node_id": 124, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 160, "universal_type": "class", "name": "EnumType", "text_snippet": "struct EnumType"}, {"node_id": 161, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 170, "universal_type": "class", "name": "Signature", "text_snippet": "struct Signature\n{\n int hasProto : 16;\n int hasEllipse : 16;\n// Vector params;\n}"}, {"node_id": 171, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 184, "universal_type": "class", "name": "FunctionType", "text_snippet": "struct FunctionType"}, {"node_id": 185, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 252, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 257, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 3, "text": "#include \"cslang/predef.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 23, "text": "#include \"cslang/type_cfg.h\"\n"}, {"node_id": 24, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"cslang/predef.h\"\n\n#include <string>\n\nnamespace cslang\n{\n\n#undef VOID\n#undef CONST\n\nenum\n{\n#define TYPE(type, size, name) type,\n#include \"cslang/type_cfg.h\"\n#undef TYPE\n};\n\nenum { CONST = 0x1, VOLATILE = 0x2 };\n\nenum { I1, U1, I2, U2, I4, U4, F4, F8, V, B };\n\nstruct Type\n{\n int categ : 8;\n int qual : 8;\n int align : 16;\n int size : 24;\n\n int b_categ : 8;\n};\n\nstruct Field\n{\n int offset;\n std::string id;\n int bits;\n int pos;\n Type ty;\n std::shared_ptr<Field> next = nullptr;\n};\n\nstruct RecordType : public Type\n{\n std::string id;\n Field flds;\n std::shared_ptr<Field> tail = nullptr;\n int hasConstFld : 16;\n int hasFlexArray : 16;\n\n}; // RecordType\n\nstruct EnumType : public Type\n{\n std::string id;\n\n}; // EnumType\n\nstruct Signature\n{\n int hasProto : 16;\n int hasEllipse : 16;\n// Vector params;\n};\n\nstruct FunctionType : public Type\n{\n Signature sig;\n\n}; // FunctionType\n\n#define T(categ) (Types[categ])\n\nint TypeCode(const Type& ty);\nconst Type* Unqual(const Type& ty);\nstd::unique_ptr<Type> ArrayOf(int len, const Type& ty);\n\nstd::string TypeToString(const Type& ty);\n\nvoid SetupTypeSystem(void);\n\nextern Type WCharType;\nextern Type Types[VOID - CHAR + 1];\n\n#define IsIntegType(ty) (ty->categ <= ENUM)\n\n}"}
80,804
c
#include <unistd.h> //#define checkMemoryLeak #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> #include <math.h> #include "DeqByArray.h" ////////////////////////////////////////////////// void test(void); Element_t *createElement(int value); bool destroyElement(Element_t *element); ////////////////////////////////////////////////// int main(int argc, const char * argv[]) { #ifdef checkMemoryLeak while (true) { test(); sleep(1); } #else test(); #endif return EXIT_SUCCESS; } void test() { int testCount = 10; int capacity = 10; int numOfValues = 15; Deq_t *deq = createDeq(capacity); for (int r=0; r<testCount; r++) { printf("*** [Test #%d] ***\n", r+1); Element_t *element = NULL; bool check = false; switch (r) { case 0: for (int i=0; i<numOfValues; i++) { element = createElement(i); check = enqueueDeq(deq, element); if (check) { printf("enqueue : %10d\n", element->value); } else { printf("error [%s] : could not enqueue value %d.\n", __func__, element->value); destroyElement(element); } } printf("\n"); while (!isEmptyDeq(deq)) { element = dequeueDeq(deq); printf("dequeue : %10d\n", element->value); destroyElement(element); } break; case 1: for (int i=0; i<numOfValues; i++) { element = createElement(i); check = enqueueHeadOnDeq(deq, element); if (check) { printf("enqueue head : %10d\n", element->value); } else { printf("error [%s] : could not enqueue value %d.\n", __func__, element->value); destroyElement(element); } } printf("\n"); while (!isEmptyDeq(deq)) { element = dequeueHeadOnDeq(deq); printf("dequeue head : %10d\n", element->value); destroyElement(element); } break; case 2: for (int i=0; i<numOfValues; i++) { element = createElement(i); check = enqueueHeadOnDeq(deq, element); if (check) { printf("enqueue head : %10d\n", element->value); } else { printf("error [%s] : could not enqueue value %d.\n", __func__, element->value); destroyElement(element); } } printf("\n"); while (!isEmptyDeq(deq)) { element = dequeueTailOnDeq(deq); printf("dequeue tail : %10d\n", element->value); destroyElement(element); } break; case 3: for (int i=0; i<numOfValues; i++) { element = createElement(i); check = enqueueTailOnDeq(deq, element); if (check) { printf("enqueue tail : %10d\n", element->value); } else { printf("error [%s] : could not enqueue value %d.\n", __func__, element->value); destroyElement(element); } } printf("\n"); while (!isEmptyDeq(deq)) { element = dequeueHeadOnDeq(deq); printf("dequeue head : %10d\n", element->value); destroyElement(element); } break; case 4: for (int i=0; i<numOfValues; i++) { element = createElement(i); check = enqueueTailOnDeq(deq, element); if (check) { printf("enqueue tail : %10d\n", element->value); } else { printf("error [%s] : could not enqueue value %d.\n", __func__, element->value); destroyElement(element); } } printf("\n"); while (!isEmptyDeq(deq)) { Element_t *element = dequeueTailOnDeq(deq); printf("dequeue tail : %10d\n", element->value); destroyElement(element); } // ************************************* r = INT_MAX - 1; // stop loop. // ************************************* break; default: break; } } destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT); } Element_t *createElement(int value) { Element_t *e = malloc(sizeof(Element_t)); if (e == NULL) return NULL; e->value = value; return e; } bool destroyElement(Element_t *element) { // Block illegal parameters. if (element == NULL) return false; free(element); return true; }
33.87
158
(translation_unit) "#include <unistd.h>\n//#define checkMemoryLeak\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <limits.h>\n#include <math.h>\n#include "DeqByArray.h"\n\n//////////////////////////////////////////////////\nvoid test(void);\nElement_t *createElement(int value);\nbool destroyElement(Element_t *element);\n\n//////////////////////////////////////////////////\nint main(int argc, const char * argv[]) {\n \n#ifdef checkMemoryLeak\n while (true) {\n test();\n sleep(1);\n }\n#else\n test();\n#endif\n \n return EXIT_SUCCESS;\n}\n\nvoid test() {\n int testCount = 10;\n \n int capacity = 10;\n int numOfValues = 15;\n \n Deq_t *deq = createDeq(capacity);\n \n for (int r=0; r<testCount; r++) {\n printf("*** [Test #%d] ***\n", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }\n \n destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT);\n}\n\nElement_t *createElement(int value) {\n Element_t *e = malloc(sizeof(Element_t));\n if (e == NULL) return NULL;\n e->value = value;\n return e;\n}\n\nbool destroyElement(Element_t *element) {\n // Block illegal parameters.\n if (element == NULL) return false;\n free(element);\n return true;\n}\n" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (comment) "//#define checkMemoryLeak" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <limits.h>\n" (#include) "#include" (system_lib_string) "<limits.h>" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (preproc_include) "#include "DeqByArray.h"\n" (#include) "#include" (string_literal) ""DeqByArray.h"" (") """ (string_content) "DeqByArray.h" (") """ (comment) "//////////////////////////////////////////////////" (declaration) "void test(void);" (primitive_type) "void" (function_declarator) "test(void)" (identifier) "test" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "Element_t *createElement(int value);" (type_identifier) "Element_t" (pointer_declarator) "*createElement(int value)" (*) "*" (function_declarator) "createElement(int value)" (identifier) "createElement" (parameter_list) "(int value)" (() "(" (parameter_declaration) "int value" (primitive_type) "int" (identifier) "value" ()) ")" (;) ";" (declaration) "bool destroyElement(Element_t *element);" (primitive_type) "bool" (function_declarator) "destroyElement(Element_t *element)" (identifier) "destroyElement" (parameter_list) "(Element_t *element)" (() "(" (parameter_declaration) "Element_t *element" (type_identifier) "Element_t" (pointer_declarator) "*element" (*) "*" (identifier) "element" ()) ")" (;) ";" (comment) "//////////////////////////////////////////////////" (function_definition) "int main(int argc, const char * argv[]) {\n \n#ifdef checkMemoryLeak\n while (true) {\n test();\n sleep(1);\n }\n#else\n test();\n#endif\n \n return EXIT_SUCCESS;\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[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n \n#ifdef checkMemoryLeak\n while (true) {\n test();\n sleep(1);\n }\n#else\n test();\n#endif\n \n return EXIT_SUCCESS;\n}" ({) "{" (preproc_ifdef) "#ifdef checkMemoryLeak\n while (true) {\n test();\n sleep(1);\n }\n#else\n test();\n#endif" (#ifdef) "#ifdef" (identifier) "checkMemoryLeak" (while_statement) "while (true) {\n test();\n sleep(1);\n }" (while) "while" (parenthesized_expression) "(true)" (() "(" (true) "true" ()) ")" (compound_statement) "{\n test();\n sleep(1);\n }" ({) "{" (expression_statement) "test();" (call_expression) "test()" (identifier) "test" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "sleep(1);" (call_expression) "sleep(1)" (identifier) "sleep" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (preproc_else) "#else\n test();" (#else) "#else" (expression_statement) "test();" (call_expression) "test()" (identifier) "test" (argument_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (return_statement) "return EXIT_SUCCESS;" (return) "return" (identifier) "EXIT_SUCCESS" (;) ";" (}) "}" (function_definition) "void test() {\n int testCount = 10;\n \n int capacity = 10;\n int numOfValues = 15;\n \n Deq_t *deq = createDeq(capacity);\n \n for (int r=0; r<testCount; r++) {\n printf("*** [Test #%d] ***\n", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }\n \n destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT);\n}" (primitive_type) "void" (function_declarator) "test()" (identifier) "test" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int testCount = 10;\n \n int capacity = 10;\n int numOfValues = 15;\n \n Deq_t *deq = createDeq(capacity);\n \n for (int r=0; r<testCount; r++) {\n printf("*** [Test #%d] ***\n", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }\n \n destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT);\n}" ({) "{" (declaration) "int testCount = 10;" (primitive_type) "int" (init_declarator) "testCount = 10" (identifier) "testCount" (=) "=" (number_literal) "10" (;) ";" (declaration) "int capacity = 10;" (primitive_type) "int" (init_declarator) "capacity = 10" (identifier) "capacity" (=) "=" (number_literal) "10" (;) ";" (declaration) "int numOfValues = 15;" (primitive_type) "int" (init_declarator) "numOfValues = 15" (identifier) "numOfValues" (=) "=" (number_literal) "15" (;) ";" (declaration) "Deq_t *deq = createDeq(capacity);" (type_identifier) "Deq_t" (init_declarator) "*deq = createDeq(capacity)" (pointer_declarator) "*deq" (*) "*" (identifier) "deq" (=) "=" (call_expression) "createDeq(capacity)" (identifier) "createDeq" (argument_list) "(capacity)" (() "(" (identifier) "capacity" ()) ")" (;) ";" (for_statement) "for (int r=0; r<testCount; r++) {\n printf("*** [Test #%d] ***\n", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }" (for) "for" (() "(" (declaration) "int r=0;" (primitive_type) "int" (init_declarator) "r=0" (identifier) "r" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "r<testCount" (identifier) "r" (<) "<" (identifier) "testCount" (;) ";" (update_expression) "r++" (identifier) "r" (++) "++" ()) ")" (compound_statement) "{\n printf("*** [Test #%d] ***\n", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }" ({) "{" (expression_statement) "printf("*** [Test #%d] ***\n", r+1);" (call_expression) "printf("*** [Test #%d] ***\n", r+1)" (identifier) "printf" (argument_list) "("*** [Test #%d] ***\n", r+1)" (() "(" (string_literal) ""*** [Test #%d] ***\n"" (") """ (string_content) "*** [Test #%d] ***" (escape_sequence) "\n" (") """ (,) "," (binary_expression) "r+1" (identifier) "r" (+) "+" (number_literal) "1" ()) ")" (;) ";" (declaration) "Element_t *element = NULL;" (type_identifier) "Element_t" (init_declarator) "*element = NULL" (pointer_declarator) "*element" (*) "*" (identifier) "element" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "bool check = false;" (primitive_type) "bool" (init_declarator) "check = false" (identifier) "check" (=) "=" (false) "false" (;) ";" (switch_statement) "switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }" (switch) "switch" (parenthesized_expression) "(r)" (() "(" (identifier) "r" ()) ")" (compound_statement) "{\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }" ({) "{" (case_statement) "case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }\n break;" (case) "case" (number_literal) "0" (:) ":" (for_statement) "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" (for) "for" (() "(" (declaration) "int i=0;" (primitive_type) "int" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<numOfValues" (identifier) "i" (<) "<" (identifier) "numOfValues" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" ({) "{" (expression_statement) "element = createElement(i);" (assignment_expression) "element = createElement(i)" (identifier) "element" (=) "=" (call_expression) "createElement(i)" (identifier) "createElement" (argument_list) "(i)" (() "(" (identifier) "i" ()) ")" (;) ";" (expression_statement) "check = enqueueDeq(deq, element);" (assignment_expression) "check = enqueueDeq(deq, element)" (identifier) "check" (=) "=" (call_expression) "enqueueDeq(deq, element)" (identifier) "enqueueDeq" (argument_list) "(deq, element)" (() "(" (identifier) "deq" (,) "," (identifier) "element" ()) ")" (;) ";" (if_statement) "if (check) {\n printf("enqueue : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (if) "if" (parenthesized_expression) "(check)" (() "(" (identifier) "check" ()) ")" (compound_statement) "{\n printf("enqueue : %10d\n", element->value);\n }" ({) "{" (expression_statement) "printf("enqueue : %10d\n", element->value);" (call_expression) "printf("enqueue : %10d\n", element->value)" (identifier) "printf" (argument_list) "("enqueue : %10d\n", element->value)" (() "(" (string_literal) ""enqueue : %10d\n"" (") """ (string_content) "enqueue : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (else) "else" (compound_statement) "{\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);" (call_expression) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (identifier) "printf" (argument_list) "("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (() "(" (string_literal) ""error [%s] : could not enqueue value %d.\n"" (") """ (string_content) "error [%s] : could not enqueue value %d." (escape_sequence) "\n" (") """ (,) "," (identifier) "__func__" (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }" (while) "while" (parenthesized_expression) "(!isEmptyDeq(deq))" (() "(" (unary_expression) "!isEmptyDeq(deq)" (!) "!" (call_expression) "isEmptyDeq(deq)" (identifier) "isEmptyDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" ()) ")" (compound_statement) "{\n element = dequeueDeq(deq);\n printf("dequeue : %10d\n", element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "element = dequeueDeq(deq);" (assignment_expression) "element = dequeueDeq(deq)" (identifier) "element" (=) "=" (call_expression) "dequeueDeq(deq)" (identifier) "dequeueDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" (;) ";" (expression_statement) "printf("dequeue : %10d\n", element->value);" (call_expression) "printf("dequeue : %10d\n", element->value)" (identifier) "printf" (argument_list) "("dequeue : %10d\n", element->value)" (() "(" (string_literal) ""dequeue : %10d\n"" (") """ (string_content) "dequeue : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;" (case) "case" (number_literal) "1" (:) ":" (for_statement) "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" (for) "for" (() "(" (declaration) "int i=0;" (primitive_type) "int" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<numOfValues" (identifier) "i" (<) "<" (identifier) "numOfValues" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" ({) "{" (expression_statement) "element = createElement(i);" (assignment_expression) "element = createElement(i)" (identifier) "element" (=) "=" (call_expression) "createElement(i)" (identifier) "createElement" (argument_list) "(i)" (() "(" (identifier) "i" ()) ")" (;) ";" (expression_statement) "check = enqueueHeadOnDeq(deq, element);" (assignment_expression) "check = enqueueHeadOnDeq(deq, element)" (identifier) "check" (=) "=" (call_expression) "enqueueHeadOnDeq(deq, element)" (identifier) "enqueueHeadOnDeq" (argument_list) "(deq, element)" (() "(" (identifier) "deq" (,) "," (identifier) "element" ()) ")" (;) ";" (if_statement) "if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (if) "if" (parenthesized_expression) "(check)" (() "(" (identifier) "check" ()) ")" (compound_statement) "{\n printf("enqueue head : %10d\n", element->value);\n }" ({) "{" (expression_statement) "printf("enqueue head : %10d\n", element->value);" (call_expression) "printf("enqueue head : %10d\n", element->value)" (identifier) "printf" (argument_list) "("enqueue head : %10d\n", element->value)" (() "(" (string_literal) ""enqueue head : %10d\n"" (") """ (string_content) "enqueue head : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (else) "else" (compound_statement) "{\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);" (call_expression) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (identifier) "printf" (argument_list) "("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (() "(" (string_literal) ""error [%s] : could not enqueue value %d.\n"" (") """ (string_content) "error [%s] : could not enqueue value %d." (escape_sequence) "\n" (") """ (,) "," (identifier) "__func__" (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }" (while) "while" (parenthesized_expression) "(!isEmptyDeq(deq))" (() "(" (unary_expression) "!isEmptyDeq(deq)" (!) "!" (call_expression) "isEmptyDeq(deq)" (identifier) "isEmptyDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" ()) ")" (compound_statement) "{\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "element = dequeueHeadOnDeq(deq);" (assignment_expression) "element = dequeueHeadOnDeq(deq)" (identifier) "element" (=) "=" (call_expression) "dequeueHeadOnDeq(deq)" (identifier) "dequeueHeadOnDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" (;) ";" (expression_statement) "printf("dequeue head : %10d\n", element->value);" (call_expression) "printf("dequeue head : %10d\n", element->value)" (identifier) "printf" (argument_list) "("dequeue head : %10d\n", element->value)" (() "(" (string_literal) ""dequeue head : %10d\n"" (") """ (string_content) "dequeue head : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }\n break;" (case) "case" (number_literal) "2" (:) ":" (for_statement) "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" (for) "for" (() "(" (declaration) "int i=0;" (primitive_type) "int" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<numOfValues" (identifier) "i" (<) "<" (identifier) "numOfValues" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" ({) "{" (expression_statement) "element = createElement(i);" (assignment_expression) "element = createElement(i)" (identifier) "element" (=) "=" (call_expression) "createElement(i)" (identifier) "createElement" (argument_list) "(i)" (() "(" (identifier) "i" ()) ")" (;) ";" (expression_statement) "check = enqueueHeadOnDeq(deq, element);" (assignment_expression) "check = enqueueHeadOnDeq(deq, element)" (identifier) "check" (=) "=" (call_expression) "enqueueHeadOnDeq(deq, element)" (identifier) "enqueueHeadOnDeq" (argument_list) "(deq, element)" (() "(" (identifier) "deq" (,) "," (identifier) "element" ()) ")" (;) ";" (if_statement) "if (check) {\n printf("enqueue head : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (if) "if" (parenthesized_expression) "(check)" (() "(" (identifier) "check" ()) ")" (compound_statement) "{\n printf("enqueue head : %10d\n", element->value);\n }" ({) "{" (expression_statement) "printf("enqueue head : %10d\n", element->value);" (call_expression) "printf("enqueue head : %10d\n", element->value)" (identifier) "printf" (argument_list) "("enqueue head : %10d\n", element->value)" (() "(" (string_literal) ""enqueue head : %10d\n"" (") """ (string_content) "enqueue head : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (else) "else" (compound_statement) "{\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);" (call_expression) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (identifier) "printf" (argument_list) "("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (() "(" (string_literal) ""error [%s] : could not enqueue value %d.\n"" (") """ (string_content) "error [%s] : could not enqueue value %d." (escape_sequence) "\n" (") """ (,) "," (identifier) "__func__" (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }" (while) "while" (parenthesized_expression) "(!isEmptyDeq(deq))" (() "(" (unary_expression) "!isEmptyDeq(deq)" (!) "!" (call_expression) "isEmptyDeq(deq)" (identifier) "isEmptyDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" ()) ")" (compound_statement) "{\n element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "element = dequeueTailOnDeq(deq);" (assignment_expression) "element = dequeueTailOnDeq(deq)" (identifier) "element" (=) "=" (call_expression) "dequeueTailOnDeq(deq)" (identifier) "dequeueTailOnDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" (;) ";" (expression_statement) "printf("dequeue tail : %10d\n", element->value);" (call_expression) "printf("dequeue tail : %10d\n", element->value)" (identifier) "printf" (argument_list) "("dequeue tail : %10d\n", element->value)" (() "(" (string_literal) ""dequeue tail : %10d\n"" (") """ (string_content) "dequeue tail : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }\n break;" (case) "case" (number_literal) "3" (:) ":" (for_statement) "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" (for) "for" (() "(" (declaration) "int i=0;" (primitive_type) "int" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<numOfValues" (identifier) "i" (<) "<" (identifier) "numOfValues" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" ({) "{" (expression_statement) "element = createElement(i);" (assignment_expression) "element = createElement(i)" (identifier) "element" (=) "=" (call_expression) "createElement(i)" (identifier) "createElement" (argument_list) "(i)" (() "(" (identifier) "i" ()) ")" (;) ";" (expression_statement) "check = enqueueTailOnDeq(deq, element);" (assignment_expression) "check = enqueueTailOnDeq(deq, element)" (identifier) "check" (=) "=" (call_expression) "enqueueTailOnDeq(deq, element)" (identifier) "enqueueTailOnDeq" (argument_list) "(deq, element)" (() "(" (identifier) "deq" (,) "," (identifier) "element" ()) ")" (;) ";" (if_statement) "if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (if) "if" (parenthesized_expression) "(check)" (() "(" (identifier) "check" ()) ")" (compound_statement) "{\n printf("enqueue tail : %10d\n", element->value);\n }" ({) "{" (expression_statement) "printf("enqueue tail : %10d\n", element->value);" (call_expression) "printf("enqueue tail : %10d\n", element->value)" (identifier) "printf" (argument_list) "("enqueue tail : %10d\n", element->value)" (() "(" (string_literal) ""enqueue tail : %10d\n"" (") """ (string_content) "enqueue tail : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (else) "else" (compound_statement) "{\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);" (call_expression) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (identifier) "printf" (argument_list) "("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (() "(" (string_literal) ""error [%s] : could not enqueue value %d.\n"" (") """ (string_content) "error [%s] : could not enqueue value %d." (escape_sequence) "\n" (") """ (,) "," (identifier) "__func__" (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }" (while) "while" (parenthesized_expression) "(!isEmptyDeq(deq))" (() "(" (unary_expression) "!isEmptyDeq(deq)" (!) "!" (call_expression) "isEmptyDeq(deq)" (identifier) "isEmptyDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" ()) ")" (compound_statement) "{\n element = dequeueHeadOnDeq(deq);\n printf("dequeue head : %10d\n", element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "element = dequeueHeadOnDeq(deq);" (assignment_expression) "element = dequeueHeadOnDeq(deq)" (identifier) "element" (=) "=" (call_expression) "dequeueHeadOnDeq(deq)" (identifier) "dequeueHeadOnDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" (;) ";" (expression_statement) "printf("dequeue head : %10d\n", element->value);" (call_expression) "printf("dequeue head : %10d\n", element->value)" (identifier) "printf" (argument_list) "("dequeue head : %10d\n", element->value)" (() "(" (string_literal) ""dequeue head : %10d\n"" (") """ (string_content) "dequeue head : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }\n printf("\n");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;" (case) "case" (number_literal) "4" (:) ":" (for_statement) "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" (for) "for" (() "(" (declaration) "int i=0;" (primitive_type) "int" (init_declarator) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<numOfValues" (identifier) "i" (<) "<" (identifier) "numOfValues" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }\n }" ({) "{" (expression_statement) "element = createElement(i);" (assignment_expression) "element = createElement(i)" (identifier) "element" (=) "=" (call_expression) "createElement(i)" (identifier) "createElement" (argument_list) "(i)" (() "(" (identifier) "i" ()) ")" (;) ";" (expression_statement) "check = enqueueTailOnDeq(deq, element);" (assignment_expression) "check = enqueueTailOnDeq(deq, element)" (identifier) "check" (=) "=" (call_expression) "enqueueTailOnDeq(deq, element)" (identifier) "enqueueTailOnDeq" (argument_list) "(deq, element)" (() "(" (identifier) "deq" (,) "," (identifier) "element" ()) ")" (;) ";" (if_statement) "if (check) {\n printf("enqueue tail : %10d\n", element->value);\n }\n else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (if) "if" (parenthesized_expression) "(check)" (() "(" (identifier) "check" ()) ")" (compound_statement) "{\n printf("enqueue tail : %10d\n", element->value);\n }" ({) "{" (expression_statement) "printf("enqueue tail : %10d\n", element->value);" (call_expression) "printf("enqueue tail : %10d\n", element->value)" (identifier) "printf" (argument_list) "("enqueue tail : %10d\n", element->value)" (() "(" (string_literal) ""enqueue tail : %10d\n"" (") """ (string_content) "enqueue tail : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" (else) "else" (compound_statement) "{\n printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);\n destroyElement(element);\n }" ({) "{" (expression_statement) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value);" (call_expression) "printf("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (identifier) "printf" (argument_list) "("error [%s] : could not enqueue value %d.\n", __func__, element->value)" (() "(" (string_literal) ""error [%s] : could not enqueue value %d.\n"" (") """ (string_content) "error [%s] : could not enqueue value %d." (escape_sequence) "\n" (") """ (,) "," (identifier) "__func__" (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }" (while) "while" (parenthesized_expression) "(!isEmptyDeq(deq))" (() "(" (unary_expression) "!isEmptyDeq(deq)" (!) "!" (call_expression) "isEmptyDeq(deq)" (identifier) "isEmptyDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" ()) ")" (compound_statement) "{\n Element_t *element = dequeueTailOnDeq(deq);\n printf("dequeue tail : %10d\n", element->value);\n destroyElement(element);\n \n }" ({) "{" (declaration) "Element_t *element = dequeueTailOnDeq(deq);" (type_identifier) "Element_t" (init_declarator) "*element = dequeueTailOnDeq(deq)" (pointer_declarator) "*element" (*) "*" (identifier) "element" (=) "=" (call_expression) "dequeueTailOnDeq(deq)" (identifier) "dequeueTailOnDeq" (argument_list) "(deq)" (() "(" (identifier) "deq" ()) ")" (;) ";" (expression_statement) "printf("dequeue tail : %10d\n", element->value);" (call_expression) "printf("dequeue tail : %10d\n", element->value)" (identifier) "printf" (argument_list) "("dequeue tail : %10d\n", element->value)" (() "(" (string_literal) ""dequeue tail : %10d\n"" (") """ (string_content) "dequeue tail : %10d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "element->value" (identifier) "element" (->) "->" (field_identifier) "value" ()) ")" (;) ";" (expression_statement) "destroyElement(element);" (call_expression) "destroyElement(element)" (identifier) "destroyElement" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (}) "}" (comment) "// *************************************" (expression_statement) "r = INT_MAX - 1;" (assignment_expression) "r = INT_MAX - 1" (identifier) "r" (=) "=" (binary_expression) "INT_MAX - 1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" (;) ";" (comment) "// stop loop." (comment) "// *************************************" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n break;" (default) "default" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (expression_statement) "destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT);" (call_expression) "destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT)" (identifier) "destroyDeq" (argument_list) "(deq, DEQ_OPTION_WITH_ELEMENT)" (() "(" (identifier) "deq" (,) "," (identifier) "DEQ_OPTION_WITH_ELEMENT" ()) ")" (;) ";" (}) "}" (function_definition) "Element_t *createElement(int value) {\n Element_t *e = malloc(sizeof(Element_t));\n if (e == NULL) return NULL;\n e->value = value;\n return e;\n}" (type_identifier) "Element_t" (pointer_declarator) "*createElement(int value)" (*) "*" (function_declarator) "createElement(int value)" (identifier) "createElement" (parameter_list) "(int value)" (() "(" (parameter_declaration) "int value" (primitive_type) "int" (identifier) "value" ()) ")" (compound_statement) "{\n Element_t *e = malloc(sizeof(Element_t));\n if (e == NULL) return NULL;\n e->value = value;\n return e;\n}" ({) "{" (declaration) "Element_t *e = malloc(sizeof(Element_t));" (type_identifier) "Element_t" (init_declarator) "*e = malloc(sizeof(Element_t))" (pointer_declarator) "*e" (*) "*" (identifier) "e" (=) "=" (call_expression) "malloc(sizeof(Element_t))" (identifier) "malloc" (argument_list) "(sizeof(Element_t))" (() "(" (sizeof_expression) "sizeof(Element_t)" (sizeof) "sizeof" (parenthesized_expression) "(Element_t)" (() "(" (identifier) "Element_t" ()) ")" ()) ")" (;) ";" (if_statement) "if (e == NULL) return NULL;" (if) "if" (parenthesized_expression) "(e == NULL)" (() "(" (binary_expression) "e == NULL" (identifier) "e" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "e->value = value;" (assignment_expression) "e->value = value" (field_expression) "e->value" (identifier) "e" (->) "->" (field_identifier) "value" (=) "=" (identifier) "value" (;) ";" (return_statement) "return e;" (return) "return" (identifier) "e" (;) ";" (}) "}" (function_definition) "bool destroyElement(Element_t *element) {\n // Block illegal parameters.\n if (element == NULL) return false;\n free(element);\n return true;\n}" (primitive_type) "bool" (function_declarator) "destroyElement(Element_t *element)" (identifier) "destroyElement" (parameter_list) "(Element_t *element)" (() "(" (parameter_declaration) "Element_t *element" (type_identifier) "Element_t" (pointer_declarator) "*element" (*) "*" (identifier) "element" ()) ")" (compound_statement) "{\n // Block illegal parameters.\n if (element == NULL) return false;\n free(element);\n return true;\n}" ({) "{" (comment) "// Block illegal parameters." (if_statement) "if (element == NULL) return false;" (if) "if" (parenthesized_expression) "(element == NULL)" (() "(" (binary_expression) "element == NULL" (identifier) "element" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (expression_statement) "free(element);" (call_expression) "free(element)" (identifier) "free" (argument_list) "(element)" (() "(" (identifier) "element" ()) ")" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}"
1,244
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 33.87, "nodes": 700, "errors": 0, "source_hash": "6796f14e48059aafcd6005b04bf480f7eaa5397f9e8dd9ce08b3291e24dbf1f2", "categorized_nodes": 478}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<unistd.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 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": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <stdlib.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": "system_lib_string", "text": "<stdlib.h>", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "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 <limits.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": "<limits.h>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <math.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": "<math.h>", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include \"DeqByArray.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"DeqByArray.h\"", "parent": 18, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 23}}, {"id": 21, "type": "declaration", "text": "void test(void);", "parent": null, "children": [22, 23], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 16}}, {"id": 22, "type": "primitive_type", "text": "void", "parent": 21, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 23, "type": "function_declarator", "text": "test(void)", "parent": 21, "children": [24, 25], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 15}}, {"id": 24, "type": "identifier", "text": "test", "parent": 23, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 9}}, {"id": 25, "type": "parameter_list", "text": "(void)", "parent": 23, "children": [26], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 15}}, {"id": 26, "type": "parameter_declaration", "text": "void", "parent": 25, "children": [27], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 28, "type": "declaration", "text": "Element_t *createElement(int value);", "parent": null, "children": [29, 30], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 36}}, {"id": 29, "type": "type_identifier", "text": "Element_t", "parent": 28, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 30, "type": "pointer_declarator", "text": "*createElement(int value)", "parent": 28, "children": [31, 32], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 35}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 11}}, {"id": 32, "type": "function_declarator", "text": "createElement(int value)", "parent": 30, "children": [33, 34], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 35}}, {"id": 33, "type": "identifier", "text": "createElement", "parent": 32, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 24}}, {"id": 34, "type": "parameter_list", "text": "(int value)", "parent": 32, "children": [35], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 35}}, {"id": 35, "type": "parameter_declaration", "text": "int value", "parent": 34, "children": [36, 37], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 34}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 28}}, {"id": 37, "type": "identifier", "text": "value", "parent": 35, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 34}}, {"id": 38, "type": "declaration", "text": "bool destroyElement(Element_t *element);", "parent": null, "children": [39, 40], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 40}}, {"id": 39, "type": "primitive_type", "text": "bool", "parent": 38, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 40, "type": "function_declarator", "text": "destroyElement(Element_t *element)", "parent": 38, "children": [41, 42], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 39}}, {"id": 41, "type": "identifier", "text": "destroyElement", "parent": 40, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 19}}, {"id": 42, "type": "parameter_list", "text": "(Element_t *element)", "parent": 40, "children": [43], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 39}}, {"id": 43, "type": "parameter_declaration", "text": "Element_t *element", "parent": 42, "children": [44, 45], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 38}}, {"id": 44, "type": "type_identifier", "text": "Element_t", "parent": 43, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 29}}, {"id": 45, "type": "pointer_declarator", "text": "*element", "parent": 43, "children": [46, 47], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 38}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 31}}, {"id": 47, "type": "identifier", "text": "element", "parent": 45, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 38}}, {"id": 48, "type": "function_definition", "text": "int main(int argc, const char * argv[]) {\n \n#ifdef checkMemoryLeak\n while (true) {\n test();\n sleep(1);\n }\n#else\n test();\n#endif\n \n return EXIT_SUCCESS;\n}", "parent": null, "children": [49, 50], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 48, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 3}}, {"id": 50, "type": "function_declarator", "text": "main(int argc, const char * argv[])", "parent": 48, "children": [51, 52], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 39}}, {"id": 51, "type": "identifier", "text": "main", "parent": 50, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 52, "type": "parameter_list", "text": "(int argc, const char * argv[])", "parent": 50, "children": [53, 56], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 39}}, {"id": 53, "type": "parameter_declaration", "text": "int argc", "parent": 52, "children": [54, 55], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 17}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 12}}, {"id": 55, "type": "identifier", "text": "argc", "parent": 53, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 17}}, {"id": 56, "type": "parameter_declaration", "text": "const char * argv[]", "parent": 52, "children": [57, 58], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 38}}, {"id": 57, "type": "primitive_type", "text": "char", "parent": 56, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 29}}, {"id": 58, "type": "pointer_declarator", "text": "* argv[]", "parent": 56, "children": [59, 60], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 38}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 31}}, {"id": 60, "type": "array_declarator", "text": "argv[]", "parent": 58, "children": [61], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 38}}, {"id": 61, "type": "identifier", "text": "argv", "parent": 60, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 36}}, {"id": 62, "type": "preproc_ifdef", "text": "#ifdef checkMemoryLeak\n while (true) {\n test();\n sleep(1);\n }\n#else\n test();\n#endif", "parent": 48, "children": [63, 64, 65, 75, 80], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 63, "type": "#ifdef", "text": "#ifdef", "parent": 62, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 64, "type": "identifier", "text": "checkMemoryLeak", "parent": 62, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 22}}, {"id": 65, "type": "while_statement", "text": "while (true) {\n test();\n sleep(1);\n }", "parent": 62, "children": [66], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 22, "column": 5}}, {"id": 66, "type": "parenthesized_expression", "text": "(true)", "parent": 65, "children": [67], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 16}}, {"id": 67, "type": "true", "text": "true", "parent": 66, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 15}}, {"id": 68, "type": "call_expression", "text": "test()", "parent": 65, "children": [69, 70], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 14}}, {"id": 69, "type": "identifier", "text": "test", "parent": 68, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 70, "type": "argument_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 14}}, {"id": 71, "type": "call_expression", "text": "sleep(1)", "parent": 65, "children": [72, 73], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 16}}, {"id": 72, "type": "identifier", "text": "sleep", "parent": 71, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 13}}, {"id": 73, "type": "argument_list", "text": "(1)", "parent": 71, "children": [74], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 16}}, {"id": 74, "type": "number_literal", "text": "1", "parent": 73, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 15}}, {"id": 75, "type": "preproc_else", "text": "#else\n test();", "parent": 62, "children": [76], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 11}}, {"id": 76, "type": "#else", "text": "#else", "parent": 75, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 5}}, {"id": 77, "type": "call_expression", "text": "test()", "parent": 75, "children": [78, 79], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 78, "type": "identifier", "text": "test", "parent": 77, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 79, "type": "argument_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 10}}, {"id": 80, "type": "#endif", "text": "#endif", "parent": 62, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 81, "type": "return_statement", "text": "return EXIT_SUCCESS;", "parent": 48, "children": [82], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 24}}, {"id": 82, "type": "identifier", "text": "EXIT_SUCCESS", "parent": 81, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 23}}, {"id": 83, "type": "function_definition", "text": "void test() {\n int testCount = 10;\n \n int capacity = 10;\n int numOfValues = 15;\n \n Deq_t *deq = createDeq(capacity);\n \n for (int r=0; r<testCount; r++) {\n printf(\"*** [Test #%d] ***\\n\", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf(\"enqueue : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf(\"dequeue : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }\n \n destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT);\n}", "parent": null, "children": [84, 85], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 149, "column": 1}}, {"id": 84, "type": "primitive_type", "text": "void", "parent": 83, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 4}}, {"id": 85, "type": "function_declarator", "text": "test()", "parent": 83, "children": [86, 87], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 11}}, {"id": 86, "type": "identifier", "text": "test", "parent": 85, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 9}}, {"id": 87, "type": "parameter_list", "text": "()", "parent": 85, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 11}}, {"id": 88, "type": "declaration", "text": "int testCount = 10;", "parent": 83, "children": [89, 90], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 23}}, {"id": 89, "type": "primitive_type", "text": "int", "parent": 88, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 7}}, {"id": 90, "type": "init_declarator", "text": "testCount = 10", "parent": 88, "children": [91, 92, 93], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 22}}, {"id": 91, "type": "identifier", "text": "testCount", "parent": 90, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 17}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 19}}, {"id": 93, "type": "number_literal", "text": "10", "parent": 90, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 22}}, {"id": 94, "type": "declaration", "text": "int capacity = 10;", "parent": 83, "children": [95, 96], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 22}}, {"id": 95, "type": "primitive_type", "text": "int", "parent": 94, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 7}}, {"id": 96, "type": "init_declarator", "text": "capacity = 10", "parent": 94, "children": [97, 98, 99], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 21}}, {"id": 97, "type": "identifier", "text": "capacity", "parent": 96, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 16}}, {"id": 98, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 18}}, {"id": 99, "type": "number_literal", "text": "10", "parent": 96, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 21}}, {"id": 100, "type": "declaration", "text": "int numOfValues = 15;", "parent": 83, "children": [101, 102], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 25}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 7}}, {"id": 102, "type": "init_declarator", "text": "numOfValues = 15", "parent": 100, "children": [103, 104, 105], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 24}}, {"id": 103, "type": "identifier", "text": "numOfValues", "parent": 102, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 19}}, {"id": 104, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 105, "type": "number_literal", "text": "15", "parent": 102, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 24}}, {"id": 106, "type": "declaration", "text": "Deq_t *deq = createDeq(capacity);", "parent": 83, "children": [107, 108], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 37}}, {"id": 107, "type": "type_identifier", "text": "Deq_t", "parent": 106, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 9}}, {"id": 108, "type": "init_declarator", "text": "*deq = createDeq(capacity)", "parent": 106, "children": [109, 112, 113], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 36}}, {"id": 109, "type": "pointer_declarator", "text": "*deq", "parent": 108, "children": [110, 111], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 14}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 11}}, {"id": 111, "type": "identifier", "text": "deq", "parent": 109, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 14}}, {"id": 112, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 113, "type": "call_expression", "text": "createDeq(capacity)", "parent": 108, "children": [114, 115], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 36}}, {"id": 114, "type": "identifier", "text": "createDeq", "parent": 113, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 26}}, {"id": 115, "type": "argument_list", "text": "(capacity)", "parent": 113, "children": [116], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 36}}, {"id": 116, "type": "identifier", "text": "capacity", "parent": 115, "children": [], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 35}}, {"id": 117, "type": "for_statement", "text": "for (int r=0; r<testCount; r++) {\n printf(\"*** [Test #%d] ***\\n\", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf(\"enqueue : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf(\"dequeue : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }", "parent": 83, "children": [118, 124, 128], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 146, "column": 5}}, {"id": 118, "type": "declaration", "text": "int r=0;", "parent": 117, "children": [119, 120], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 17}}, {"id": 119, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 12}}, {"id": 120, "type": "init_declarator", "text": "r=0", "parent": 118, "children": [121, 122, 123], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 16}}, {"id": 121, "type": "identifier", "text": "r", "parent": 120, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 14}}, {"id": 122, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 15}}, {"id": 123, "type": "number_literal", "text": "0", "parent": 120, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 16}}, {"id": 124, "type": "binary_expression", "text": "r<testCount", "parent": 117, "children": [125, 126, 127], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 29}}, {"id": 125, "type": "identifier", "text": "r", "parent": 124, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 126, "type": "<", "text": "<", "parent": 124, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 20}}, {"id": 127, "type": "identifier", "text": "testCount", "parent": 124, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 29}}, {"id": 128, "type": "update_expression", "text": "r++", "parent": 117, "children": [129, 130], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 34}}, {"id": 129, "type": "identifier", "text": "r", "parent": 128, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 32}}, {"id": 130, "type": "++", "text": "++", "parent": 128, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 34}}, {"id": 131, "type": "call_expression", "text": "printf(\"*** [Test #%d] ***\\n\", r+1)", "parent": 117, "children": [132, 133], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 43}}, {"id": 132, "type": "identifier", "text": "printf", "parent": 131, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 133, "type": "argument_list", "text": "(\"*** [Test #%d] ***\\n\", r+1)", "parent": 131, "children": [134, 136], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 43}}, {"id": 134, "type": "string_literal", "text": "\"*** [Test #%d] ***\\n\"", "parent": 133, "children": [135], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 37}}, {"id": 135, "type": "escape_sequence", "text": "\\n", "parent": 134, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 36}}, {"id": 136, "type": "binary_expression", "text": "r+1", "parent": 133, "children": [137, 138, 139], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 42}}, {"id": 137, "type": "identifier", "text": "r", "parent": 136, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 40}}, {"id": 138, "type": "+", "text": "+", "parent": 136, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 41}}, {"id": 139, "type": "number_literal", "text": "1", "parent": 136, "children": [], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 42}}, {"id": 140, "type": "declaration", "text": "Element_t *element = NULL;", "parent": 117, "children": [141, 142], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 34}}, {"id": 141, "type": "type_identifier", "text": "Element_t", "parent": 140, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 17}}, {"id": 142, "type": "init_declarator", "text": "*element = NULL", "parent": 140, "children": [143, 146, 147], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 33}}, {"id": 143, "type": "pointer_declarator", "text": "*element", "parent": 142, "children": [144, 145], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 26}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 145, "type": "identifier", "text": "element", "parent": 143, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 26}}, {"id": 146, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 28}}, {"id": 147, "type": "null", "text": "NULL", "parent": 142, "children": [148], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 33}}, {"id": 148, "type": "NULL", "text": "NULL", "parent": 147, "children": [], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 33}}, {"id": 149, "type": "declaration", "text": "bool check = false;", "parent": 117, "children": [150, 151], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 27}}, {"id": 150, "type": "primitive_type", "text": "bool", "parent": 149, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 151, "type": "init_declarator", "text": "check = false", "parent": 149, "children": [152, 153, 154], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 26}}, {"id": 152, "type": "identifier", "text": "check", "parent": 151, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 18}}, {"id": 153, "type": "=", "text": "=", "parent": 151, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 20}}, {"id": 154, "type": "false", "text": "false", "parent": 151, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 26}}, {"id": 155, "type": "switch_statement", "text": "switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf(\"enqueue : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf(\"dequeue : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }", "parent": 117, "children": [156, 157], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 145, "column": 9}}, {"id": 156, "type": "switch", "text": "switch", "parent": 155, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 14}}, {"id": 157, "type": "parenthesized_expression", "text": "(r)", "parent": 155, "children": [158], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 18}}, {"id": 158, "type": "identifier", "text": "r", "parent": 157, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 17}}, {"id": 159, "type": "case_statement", "text": "case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf(\"enqueue : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf(\"dequeue : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;", "parent": 155, "children": [160, 161, 162, 221, 248], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 62, "column": 22}}, {"id": 160, "type": "case", "text": "case", "parent": 159, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 16}}, {"id": 161, "type": "number_literal", "text": "0", "parent": 159, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 162, "type": "for_statement", "text": "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf(\"enqueue : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }", "parent": 159, "children": [163, 169, 173], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 55, "column": 17}}, {"id": 163, "type": "declaration", "text": "int i=0;", "parent": 162, "children": [164, 165], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 29}}, {"id": 164, "type": "primitive_type", "text": "int", "parent": 163, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 24}}, {"id": 165, "type": "init_declarator", "text": "i=0", "parent": 163, "children": [166, 167, 168], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 28}}, {"id": 166, "type": "identifier", "text": "i", "parent": 165, "children": [], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 26}}, {"id": 167, "type": "=", "text": "=", "parent": 165, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 27}}, {"id": 168, "type": "number_literal", "text": "0", "parent": 165, "children": [], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 28}}, {"id": 169, "type": "binary_expression", "text": "i<numOfValues", "parent": 162, "children": [170, 171, 172], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 43}}, {"id": 170, "type": "identifier", "text": "i", "parent": 169, "children": [], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 31}}, {"id": 171, "type": "<", "text": "<", "parent": 169, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 32}}, {"id": 172, "type": "identifier", "text": "numOfValues", "parent": 169, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 43}}, {"id": 173, "type": "update_expression", "text": "i++", "parent": 162, "children": [174, 175], "start_point": {"row": 45, "column": 45}, "end_point": {"row": 45, "column": 48}}, {"id": 174, "type": "identifier", "text": "i", "parent": 173, "children": [], "start_point": {"row": 45, "column": 45}, "end_point": {"row": 45, "column": 46}}, {"id": 175, "type": "++", "text": "++", "parent": 173, "children": [], "start_point": {"row": 45, "column": 46}, "end_point": {"row": 45, "column": 48}}, {"id": 176, "type": "assignment_expression", "text": "element = createElement(i)", "parent": 162, "children": [177, 178, 179], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 46}}, {"id": 177, "type": "identifier", "text": "element", "parent": 176, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 27}}, {"id": 178, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 29}}, {"id": 179, "type": "call_expression", "text": "createElement(i)", "parent": 176, "children": [180, 181], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 46}}, {"id": 180, "type": "identifier", "text": "createElement", "parent": 179, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 43}}, {"id": 181, "type": "argument_list", "text": "(i)", "parent": 179, "children": [182], "start_point": {"row": 46, "column": 43}, "end_point": {"row": 46, "column": 46}}, {"id": 182, "type": "identifier", "text": "i", "parent": 181, "children": [], "start_point": {"row": 46, "column": 44}, "end_point": {"row": 46, "column": 45}}, {"id": 183, "type": "assignment_expression", "text": "check = enqueueDeq(deq, element)", "parent": 162, "children": [184, 185, 186], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 52}}, {"id": 184, "type": "identifier", "text": "check", "parent": 183, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 25}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 27}}, {"id": 186, "type": "call_expression", "text": "enqueueDeq(deq, element)", "parent": 183, "children": [187, 188], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 52}}, {"id": 187, "type": "identifier", "text": "enqueueDeq", "parent": 186, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 38}}, {"id": 188, "type": "argument_list", "text": "(deq, element)", "parent": 186, "children": [189, 190], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 52}}, {"id": 189, "type": "identifier", "text": "deq", "parent": 188, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 42}}, {"id": 190, "type": "identifier", "text": "element", "parent": 188, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 51}}, {"id": 191, "type": "if_statement", "text": "if (check) {\n printf(\"enqueue : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 162, "children": [192, 202], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 54, "column": 21}}, {"id": 192, "type": "parenthesized_expression", "text": "(check)", "parent": 191, "children": [193], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 30}}, {"id": 193, "type": "identifier", "text": "check", "parent": 192, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 29}}, {"id": 194, "type": "call_expression", "text": "printf(\"enqueue : %10d\\n\", element->value)", "parent": 191, "children": [195, 196], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 66}}, {"id": 195, "type": "identifier", "text": "printf", "parent": 194, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 30}}, {"id": 196, "type": "argument_list", "text": "(\"enqueue : %10d\\n\", element->value)", "parent": 194, "children": [197, 199], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 66}}, {"id": 197, "type": "string_literal", "text": "\"enqueue : %10d\\n\"", "parent": 196, "children": [198], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 49}}, {"id": 198, "type": "escape_sequence", "text": "\\n", "parent": 197, "children": [], "start_point": {"row": 49, "column": 46}, "end_point": {"row": 49, "column": 48}}, {"id": 199, "type": "field_expression", "text": "element->value", "parent": 196, "children": [200, 201], "start_point": {"row": 49, "column": 51}, "end_point": {"row": 49, "column": 65}}, {"id": 200, "type": "identifier", "text": "element", "parent": 199, "children": [], "start_point": {"row": 49, "column": 51}, "end_point": {"row": 49, "column": 58}}, {"id": 201, "type": "field_identifier", "text": "value", "parent": 199, "children": [], "start_point": {"row": 49, "column": 60}, "end_point": {"row": 49, "column": 65}}, {"id": 202, "type": "else_clause", "text": "else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 191, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 54, "column": 21}}, {"id": 203, "type": "call_expression", "text": "printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 202, "children": [204, 205], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 102}}, {"id": 204, "type": "identifier", "text": "printf", "parent": 203, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 30}}, {"id": 205, "type": "argument_list", "text": "(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 203, "children": [206, 208, 209], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 102}}, {"id": 206, "type": "string_literal", "text": "\"error [%s] : could not enqueue value %d.\\n\"", "parent": 205, "children": [207], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 75}}, {"id": 207, "type": "escape_sequence", "text": "\\n", "parent": 206, "children": [], "start_point": {"row": 52, "column": 72}, "end_point": {"row": 52, "column": 74}}, {"id": 208, "type": "identifier", "text": "__func__", "parent": 205, "children": [], "start_point": {"row": 52, "column": 77}, "end_point": {"row": 52, "column": 85}}, {"id": 209, "type": "field_expression", "text": "element->value", "parent": 205, "children": [210, 211], "start_point": {"row": 52, "column": 87}, "end_point": {"row": 52, "column": 101}}, {"id": 210, "type": "identifier", "text": "element", "parent": 209, "children": [], "start_point": {"row": 52, "column": 87}, "end_point": {"row": 52, "column": 94}}, {"id": 211, "type": "field_identifier", "text": "value", "parent": 209, "children": [], "start_point": {"row": 52, "column": 96}, "end_point": {"row": 52, "column": 101}}, {"id": 212, "type": "call_expression", "text": "destroyElement(element)", "parent": 202, "children": [213, 214], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 47}}, {"id": 213, "type": "identifier", "text": "destroyElement", "parent": 212, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 38}}, {"id": 214, "type": "argument_list", "text": "(element)", "parent": 212, "children": [215], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 47}}, {"id": 215, "type": "identifier", "text": "element", "parent": 214, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 46}}, {"id": 216, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 159, "children": [217, 218], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 28}}, {"id": 217, "type": "identifier", "text": "printf", "parent": 216, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 22}}, {"id": 218, "type": "argument_list", "text": "(\"\\n\")", "parent": 216, "children": [219], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 28}}, {"id": 219, "type": "string_literal", "text": "\"\\n\"", "parent": 218, "children": [220], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 27}}, {"id": 220, "type": "escape_sequence", "text": "\\n", "parent": 219, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 26}}, {"id": 221, "type": "while_statement", "text": "while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf(\"dequeue : %10d\\n\", element->value);\n destroyElement(element);\n }", "parent": 159, "children": [222], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 222, "type": "parenthesized_expression", "text": "(!isEmptyDeq(deq))", "parent": 221, "children": [223], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 40}}, {"id": 223, "type": "unary_expression", "text": "!isEmptyDeq(deq)", "parent": 222, "children": [224, 225], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 39}}, {"id": 224, "type": "!", "text": "!", "parent": 223, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 24}}, {"id": 225, "type": "call_expression", "text": "isEmptyDeq(deq)", "parent": 223, "children": [226, 227], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 39}}, {"id": 226, "type": "identifier", "text": "isEmptyDeq", "parent": 225, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 34}}, {"id": 227, "type": "argument_list", "text": "(deq)", "parent": 225, "children": [228], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 39}}, {"id": 228, "type": "identifier", "text": "deq", "parent": 227, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 38}}, {"id": 229, "type": "assignment_expression", "text": "element = dequeueDeq(deq)", "parent": 221, "children": [230, 231, 232], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 45}}, {"id": 230, "type": "identifier", "text": "element", "parent": 229, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 27}}, {"id": 231, "type": "=", "text": "=", "parent": 229, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 29}}, {"id": 232, "type": "call_expression", "text": "dequeueDeq(deq)", "parent": 229, "children": [233, 234], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 45}}, {"id": 233, "type": "identifier", "text": "dequeueDeq", "parent": 232, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 40}}, {"id": 234, "type": "argument_list", "text": "(deq)", "parent": 232, "children": [235], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 45}}, {"id": 235, "type": "identifier", "text": "deq", "parent": 234, "children": [], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 44}}, {"id": 236, "type": "call_expression", "text": "printf(\"dequeue : %10d\\n\", element->value)", "parent": 221, "children": [237, 238], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 62}}, {"id": 237, "type": "identifier", "text": "printf", "parent": 236, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 26}}, {"id": 238, "type": "argument_list", "text": "(\"dequeue : %10d\\n\", element->value)", "parent": 236, "children": [239, 241], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 62}}, {"id": 239, "type": "string_literal", "text": "\"dequeue : %10d\\n\"", "parent": 238, "children": [240], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 45}}, {"id": 240, "type": "escape_sequence", "text": "\\n", "parent": 239, "children": [], "start_point": {"row": 59, "column": 42}, "end_point": {"row": 59, "column": 44}}, {"id": 241, "type": "field_expression", "text": "element->value", "parent": 238, "children": [242, 243], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 61}}, {"id": 242, "type": "identifier", "text": "element", "parent": 241, "children": [], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 54}}, {"id": 243, "type": "field_identifier", "text": "value", "parent": 241, "children": [], "start_point": {"row": 59, "column": 56}, "end_point": {"row": 59, "column": 61}}, {"id": 244, "type": "call_expression", "text": "destroyElement(element)", "parent": 221, "children": [245, 246], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 43}}, {"id": 245, "type": "identifier", "text": "destroyElement", "parent": 244, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 34}}, {"id": 246, "type": "argument_list", "text": "(element)", "parent": 244, "children": [247], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 43}}, {"id": 247, "type": "identifier", "text": "element", "parent": 246, "children": [], "start_point": {"row": 60, "column": 35}, "end_point": {"row": 60, "column": 42}}, {"id": 248, "type": "break_statement", "text": "break;", "parent": 159, "children": [249], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 22}}, {"id": 249, "type": "break", "text": "break", "parent": 248, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 21}}, {"id": 250, "type": "case_statement", "text": "case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;", "parent": 155, "children": [251, 252, 253, 312, 339], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 81, "column": 22}}, {"id": 251, "type": "case", "text": "case", "parent": 250, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 16}}, {"id": 252, "type": "number_literal", "text": "1", "parent": 250, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 18}}, {"id": 253, "type": "for_statement", "text": "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }", "parent": 250, "children": [254, 260, 264], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 74, "column": 17}}, {"id": 254, "type": "declaration", "text": "int i=0;", "parent": 253, "children": [255, 256], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 29}}, {"id": 255, "type": "primitive_type", "text": "int", "parent": 254, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 24}}, {"id": 256, "type": "init_declarator", "text": "i=0", "parent": 254, "children": [257, 258, 259], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 28}}, {"id": 257, "type": "identifier", "text": "i", "parent": 256, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 26}}, {"id": 258, "type": "=", "text": "=", "parent": 256, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 27}}, {"id": 259, "type": "number_literal", "text": "0", "parent": 256, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 28}}, {"id": 260, "type": "binary_expression", "text": "i<numOfValues", "parent": 253, "children": [261, 262, 263], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 43}}, {"id": 261, "type": "identifier", "text": "i", "parent": 260, "children": [], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 31}}, {"id": 262, "type": "<", "text": "<", "parent": 260, "children": [], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 32}}, {"id": 263, "type": "identifier", "text": "numOfValues", "parent": 260, "children": [], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 43}}, {"id": 264, "type": "update_expression", "text": "i++", "parent": 253, "children": [265, 266], "start_point": {"row": 64, "column": 45}, "end_point": {"row": 64, "column": 48}}, {"id": 265, "type": "identifier", "text": "i", "parent": 264, "children": [], "start_point": {"row": 64, "column": 45}, "end_point": {"row": 64, "column": 46}}, {"id": 266, "type": "++", "text": "++", "parent": 264, "children": [], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 48}}, {"id": 267, "type": "assignment_expression", "text": "element = createElement(i)", "parent": 253, "children": [268, 269, 270], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 46}}, {"id": 268, "type": "identifier", "text": "element", "parent": 267, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 27}}, {"id": 269, "type": "=", "text": "=", "parent": 267, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 29}}, {"id": 270, "type": "call_expression", "text": "createElement(i)", "parent": 267, "children": [271, 272], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 46}}, {"id": 271, "type": "identifier", "text": "createElement", "parent": 270, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 43}}, {"id": 272, "type": "argument_list", "text": "(i)", "parent": 270, "children": [273], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 46}}, {"id": 273, "type": "identifier", "text": "i", "parent": 272, "children": [], "start_point": {"row": 65, "column": 44}, "end_point": {"row": 65, "column": 45}}, {"id": 274, "type": "assignment_expression", "text": "check = enqueueHeadOnDeq(deq, element)", "parent": 253, "children": [275, 276, 277], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 58}}, {"id": 275, "type": "identifier", "text": "check", "parent": 274, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 25}}, {"id": 276, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 27}}, {"id": 277, "type": "call_expression", "text": "enqueueHeadOnDeq(deq, element)", "parent": 274, "children": [278, 279], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 58}}, {"id": 278, "type": "identifier", "text": "enqueueHeadOnDeq", "parent": 277, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 44}}, {"id": 279, "type": "argument_list", "text": "(deq, element)", "parent": 277, "children": [280, 281], "start_point": {"row": 66, "column": 44}, "end_point": {"row": 66, "column": 58}}, {"id": 280, "type": "identifier", "text": "deq", "parent": 279, "children": [], "start_point": {"row": 66, "column": 45}, "end_point": {"row": 66, "column": 48}}, {"id": 281, "type": "identifier", "text": "element", "parent": 279, "children": [], "start_point": {"row": 66, "column": 50}, "end_point": {"row": 66, "column": 57}}, {"id": 282, "type": "if_statement", "text": "if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 253, "children": [283, 293], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 73, "column": 21}}, {"id": 283, "type": "parenthesized_expression", "text": "(check)", "parent": 282, "children": [284], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 30}}, {"id": 284, "type": "identifier", "text": "check", "parent": 283, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 29}}, {"id": 285, "type": "call_expression", "text": "printf(\"enqueue head : %10d\\n\", element->value)", "parent": 282, "children": [286, 287], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 71}}, {"id": 286, "type": "identifier", "text": "printf", "parent": 285, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 30}}, {"id": 287, "type": "argument_list", "text": "(\"enqueue head : %10d\\n\", element->value)", "parent": 285, "children": [288, 290], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 71}}, {"id": 288, "type": "string_literal", "text": "\"enqueue head : %10d\\n\"", "parent": 287, "children": [289], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 54}}, {"id": 289, "type": "escape_sequence", "text": "\\n", "parent": 288, "children": [], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 53}}, {"id": 290, "type": "field_expression", "text": "element->value", "parent": 287, "children": [291, 292], "start_point": {"row": 68, "column": 56}, "end_point": {"row": 68, "column": 70}}, {"id": 291, "type": "identifier", "text": "element", "parent": 290, "children": [], "start_point": {"row": 68, "column": 56}, "end_point": {"row": 68, "column": 63}}, {"id": 292, "type": "field_identifier", "text": "value", "parent": 290, "children": [], "start_point": {"row": 68, "column": 65}, "end_point": {"row": 68, "column": 70}}, {"id": 293, "type": "else_clause", "text": "else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 282, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 73, "column": 21}}, {"id": 294, "type": "call_expression", "text": "printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 293, "children": [295, 296], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 102}}, {"id": 295, "type": "identifier", "text": "printf", "parent": 294, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 30}}, {"id": 296, "type": "argument_list", "text": "(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 294, "children": [297, 299, 300], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 102}}, {"id": 297, "type": "string_literal", "text": "\"error [%s] : could not enqueue value %d.\\n\"", "parent": 296, "children": [298], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 75}}, {"id": 298, "type": "escape_sequence", "text": "\\n", "parent": 297, "children": [], "start_point": {"row": 71, "column": 72}, "end_point": {"row": 71, "column": 74}}, {"id": 299, "type": "identifier", "text": "__func__", "parent": 296, "children": [], "start_point": {"row": 71, "column": 77}, "end_point": {"row": 71, "column": 85}}, {"id": 300, "type": "field_expression", "text": "element->value", "parent": 296, "children": [301, 302], "start_point": {"row": 71, "column": 87}, "end_point": {"row": 71, "column": 101}}, {"id": 301, "type": "identifier", "text": "element", "parent": 300, "children": [], "start_point": {"row": 71, "column": 87}, "end_point": {"row": 71, "column": 94}}, {"id": 302, "type": "field_identifier", "text": "value", "parent": 300, "children": [], "start_point": {"row": 71, "column": 96}, "end_point": {"row": 71, "column": 101}}, {"id": 303, "type": "call_expression", "text": "destroyElement(element)", "parent": 293, "children": [304, 305], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 47}}, {"id": 304, "type": "identifier", "text": "destroyElement", "parent": 303, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 38}}, {"id": 305, "type": "argument_list", "text": "(element)", "parent": 303, "children": [306], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 47}}, {"id": 306, "type": "identifier", "text": "element", "parent": 305, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 46}}, {"id": 307, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 250, "children": [308, 309], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 28}}, {"id": 308, "type": "identifier", "text": "printf", "parent": 307, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 22}}, {"id": 309, "type": "argument_list", "text": "(\"\\n\")", "parent": 307, "children": [310], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 28}}, {"id": 310, "type": "string_literal", "text": "\"\\n\"", "parent": 309, "children": [311], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 27}}, {"id": 311, "type": "escape_sequence", "text": "\\n", "parent": 310, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 26}}, {"id": 312, "type": "while_statement", "text": "while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }", "parent": 250, "children": [313], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 80, "column": 17}}, {"id": 313, "type": "parenthesized_expression", "text": "(!isEmptyDeq(deq))", "parent": 312, "children": [314], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 40}}, {"id": 314, "type": "unary_expression", "text": "!isEmptyDeq(deq)", "parent": 313, "children": [315, 316], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 39}}, {"id": 315, "type": "!", "text": "!", "parent": 314, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 24}}, {"id": 316, "type": "call_expression", "text": "isEmptyDeq(deq)", "parent": 314, "children": [317, 318], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 39}}, {"id": 317, "type": "identifier", "text": "isEmptyDeq", "parent": 316, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 34}}, {"id": 318, "type": "argument_list", "text": "(deq)", "parent": 316, "children": [319], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 39}}, {"id": 319, "type": "identifier", "text": "deq", "parent": 318, "children": [], "start_point": {"row": 76, "column": 35}, "end_point": {"row": 76, "column": 38}}, {"id": 320, "type": "assignment_expression", "text": "element = dequeueHeadOnDeq(deq)", "parent": 312, "children": [321, 322, 323], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 51}}, {"id": 321, "type": "identifier", "text": "element", "parent": 320, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 27}}, {"id": 322, "type": "=", "text": "=", "parent": 320, "children": [], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 29}}, {"id": 323, "type": "call_expression", "text": "dequeueHeadOnDeq(deq)", "parent": 320, "children": [324, 325], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 51}}, {"id": 324, "type": "identifier", "text": "dequeueHeadOnDeq", "parent": 323, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 46}}, {"id": 325, "type": "argument_list", "text": "(deq)", "parent": 323, "children": [326], "start_point": {"row": 77, "column": 46}, "end_point": {"row": 77, "column": 51}}, {"id": 326, "type": "identifier", "text": "deq", "parent": 325, "children": [], "start_point": {"row": 77, "column": 47}, "end_point": {"row": 77, "column": 50}}, {"id": 327, "type": "call_expression", "text": "printf(\"dequeue head : %10d\\n\", element->value)", "parent": 312, "children": [328, 329], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 67}}, {"id": 328, "type": "identifier", "text": "printf", "parent": 327, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 26}}, {"id": 329, "type": "argument_list", "text": "(\"dequeue head : %10d\\n\", element->value)", "parent": 327, "children": [330, 332], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 67}}, {"id": 330, "type": "string_literal", "text": "\"dequeue head : %10d\\n\"", "parent": 329, "children": [331], "start_point": {"row": 78, "column": 27}, "end_point": {"row": 78, "column": 50}}, {"id": 331, "type": "escape_sequence", "text": "\\n", "parent": 330, "children": [], "start_point": {"row": 78, "column": 47}, "end_point": {"row": 78, "column": 49}}, {"id": 332, "type": "field_expression", "text": "element->value", "parent": 329, "children": [333, 334], "start_point": {"row": 78, "column": 52}, "end_point": {"row": 78, "column": 66}}, {"id": 333, "type": "identifier", "text": "element", "parent": 332, "children": [], "start_point": {"row": 78, "column": 52}, "end_point": {"row": 78, "column": 59}}, {"id": 334, "type": "field_identifier", "text": "value", "parent": 332, "children": [], "start_point": {"row": 78, "column": 61}, "end_point": {"row": 78, "column": 66}}, {"id": 335, "type": "call_expression", "text": "destroyElement(element)", "parent": 312, "children": [336, 337], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 43}}, {"id": 336, "type": "identifier", "text": "destroyElement", "parent": 335, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 34}}, {"id": 337, "type": "argument_list", "text": "(element)", "parent": 335, "children": [338], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 43}}, {"id": 338, "type": "identifier", "text": "element", "parent": 337, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 42}}, {"id": 339, "type": "break_statement", "text": "break;", "parent": 250, "children": [340], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 22}}, {"id": 340, "type": "break", "text": "break", "parent": 339, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 21}}, {"id": 341, "type": "case_statement", "text": "case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;", "parent": 155, "children": [342, 343, 344, 403, 430], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 100, "column": 22}}, {"id": 342, "type": "case", "text": "case", "parent": 341, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 16}}, {"id": 343, "type": "number_literal", "text": "2", "parent": 341, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 18}}, {"id": 344, "type": "for_statement", "text": "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }", "parent": 341, "children": [345, 351, 355], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 93, "column": 17}}, {"id": 345, "type": "declaration", "text": "int i=0;", "parent": 344, "children": [346, 347], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 29}}, {"id": 346, "type": "primitive_type", "text": "int", "parent": 345, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 24}}, {"id": 347, "type": "init_declarator", "text": "i=0", "parent": 345, "children": [348, 349, 350], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 28}}, {"id": 348, "type": "identifier", "text": "i", "parent": 347, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 26}}, {"id": 349, "type": "=", "text": "=", "parent": 347, "children": [], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 27}}, {"id": 350, "type": "number_literal", "text": "0", "parent": 347, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 28}}, {"id": 351, "type": "binary_expression", "text": "i<numOfValues", "parent": 344, "children": [352, 353, 354], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 43}}, {"id": 352, "type": "identifier", "text": "i", "parent": 351, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 31}}, {"id": 353, "type": "<", "text": "<", "parent": 351, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 32}}, {"id": 354, "type": "identifier", "text": "numOfValues", "parent": 351, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 43}}, {"id": 355, "type": "update_expression", "text": "i++", "parent": 344, "children": [356, 357], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 48}}, {"id": 356, "type": "identifier", "text": "i", "parent": 355, "children": [], "start_point": {"row": 83, "column": 45}, "end_point": {"row": 83, "column": 46}}, {"id": 357, "type": "++", "text": "++", "parent": 355, "children": [], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 48}}, {"id": 358, "type": "assignment_expression", "text": "element = createElement(i)", "parent": 344, "children": [359, 360, 361], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 46}}, {"id": 359, "type": "identifier", "text": "element", "parent": 358, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 27}}, {"id": 360, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 29}}, {"id": 361, "type": "call_expression", "text": "createElement(i)", "parent": 358, "children": [362, 363], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 46}}, {"id": 362, "type": "identifier", "text": "createElement", "parent": 361, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 43}}, {"id": 363, "type": "argument_list", "text": "(i)", "parent": 361, "children": [364], "start_point": {"row": 84, "column": 43}, "end_point": {"row": 84, "column": 46}}, {"id": 364, "type": "identifier", "text": "i", "parent": 363, "children": [], "start_point": {"row": 84, "column": 44}, "end_point": {"row": 84, "column": 45}}, {"id": 365, "type": "assignment_expression", "text": "check = enqueueHeadOnDeq(deq, element)", "parent": 344, "children": [366, 367, 368], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 58}}, {"id": 366, "type": "identifier", "text": "check", "parent": 365, "children": [], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 25}}, {"id": 367, "type": "=", "text": "=", "parent": 365, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 27}}, {"id": 368, "type": "call_expression", "text": "enqueueHeadOnDeq(deq, element)", "parent": 365, "children": [369, 370], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 58}}, {"id": 369, "type": "identifier", "text": "enqueueHeadOnDeq", "parent": 368, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 44}}, {"id": 370, "type": "argument_list", "text": "(deq, element)", "parent": 368, "children": [371, 372], "start_point": {"row": 85, "column": 44}, "end_point": {"row": 85, "column": 58}}, {"id": 371, "type": "identifier", "text": "deq", "parent": 370, "children": [], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 48}}, {"id": 372, "type": "identifier", "text": "element", "parent": 370, "children": [], "start_point": {"row": 85, "column": 50}, "end_point": {"row": 85, "column": 57}}, {"id": 373, "type": "if_statement", "text": "if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 344, "children": [374, 384], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 92, "column": 21}}, {"id": 374, "type": "parenthesized_expression", "text": "(check)", "parent": 373, "children": [375], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 30}}, {"id": 375, "type": "identifier", "text": "check", "parent": 374, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 29}}, {"id": 376, "type": "call_expression", "text": "printf(\"enqueue head : %10d\\n\", element->value)", "parent": 373, "children": [377, 378], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 71}}, {"id": 377, "type": "identifier", "text": "printf", "parent": 376, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 30}}, {"id": 378, "type": "argument_list", "text": "(\"enqueue head : %10d\\n\", element->value)", "parent": 376, "children": [379, 381], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 71}}, {"id": 379, "type": "string_literal", "text": "\"enqueue head : %10d\\n\"", "parent": 378, "children": [380], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 54}}, {"id": 380, "type": "escape_sequence", "text": "\\n", "parent": 379, "children": [], "start_point": {"row": 87, "column": 51}, "end_point": {"row": 87, "column": 53}}, {"id": 381, "type": "field_expression", "text": "element->value", "parent": 378, "children": [382, 383], "start_point": {"row": 87, "column": 56}, "end_point": {"row": 87, "column": 70}}, {"id": 382, "type": "identifier", "text": "element", "parent": 381, "children": [], "start_point": {"row": 87, "column": 56}, "end_point": {"row": 87, "column": 63}}, {"id": 383, "type": "field_identifier", "text": "value", "parent": 381, "children": [], "start_point": {"row": 87, "column": 65}, "end_point": {"row": 87, "column": 70}}, {"id": 384, "type": "else_clause", "text": "else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 373, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 92, "column": 21}}, {"id": 385, "type": "call_expression", "text": "printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 384, "children": [386, 387], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 102}}, {"id": 386, "type": "identifier", "text": "printf", "parent": 385, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 30}}, {"id": 387, "type": "argument_list", "text": "(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 385, "children": [388, 390, 391], "start_point": {"row": 90, "column": 30}, "end_point": {"row": 90, "column": 102}}, {"id": 388, "type": "string_literal", "text": "\"error [%s] : could not enqueue value %d.\\n\"", "parent": 387, "children": [389], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 75}}, {"id": 389, "type": "escape_sequence", "text": "\\n", "parent": 388, "children": [], "start_point": {"row": 90, "column": 72}, "end_point": {"row": 90, "column": 74}}, {"id": 390, "type": "identifier", "text": "__func__", "parent": 387, "children": [], "start_point": {"row": 90, "column": 77}, "end_point": {"row": 90, "column": 85}}, {"id": 391, "type": "field_expression", "text": "element->value", "parent": 387, "children": [392, 393], "start_point": {"row": 90, "column": 87}, "end_point": {"row": 90, "column": 101}}, {"id": 392, "type": "identifier", "text": "element", "parent": 391, "children": [], "start_point": {"row": 90, "column": 87}, "end_point": {"row": 90, "column": 94}}, {"id": 393, "type": "field_identifier", "text": "value", "parent": 391, "children": [], "start_point": {"row": 90, "column": 96}, "end_point": {"row": 90, "column": 101}}, {"id": 394, "type": "call_expression", "text": "destroyElement(element)", "parent": 384, "children": [395, 396], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 47}}, {"id": 395, "type": "identifier", "text": "destroyElement", "parent": 394, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 38}}, {"id": 396, "type": "argument_list", "text": "(element)", "parent": 394, "children": [397], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 47}}, {"id": 397, "type": "identifier", "text": "element", "parent": 396, "children": [], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 46}}, {"id": 398, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 341, "children": [399, 400], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 28}}, {"id": 399, "type": "identifier", "text": "printf", "parent": 398, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 22}}, {"id": 400, "type": "argument_list", "text": "(\"\\n\")", "parent": 398, "children": [401], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 28}}, {"id": 401, "type": "string_literal", "text": "\"\\n\"", "parent": 400, "children": [402], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 27}}, {"id": 402, "type": "escape_sequence", "text": "\\n", "parent": 401, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 26}}, {"id": 403, "type": "while_statement", "text": "while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n }", "parent": 341, "children": [404], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 99, "column": 17}}, {"id": 404, "type": "parenthesized_expression", "text": "(!isEmptyDeq(deq))", "parent": 403, "children": [405], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 40}}, {"id": 405, "type": "unary_expression", "text": "!isEmptyDeq(deq)", "parent": 404, "children": [406, 407], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 39}}, {"id": 406, "type": "!", "text": "!", "parent": 405, "children": [], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 24}}, {"id": 407, "type": "call_expression", "text": "isEmptyDeq(deq)", "parent": 405, "children": [408, 409], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 39}}, {"id": 408, "type": "identifier", "text": "isEmptyDeq", "parent": 407, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 34}}, {"id": 409, "type": "argument_list", "text": "(deq)", "parent": 407, "children": [410], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 39}}, {"id": 410, "type": "identifier", "text": "deq", "parent": 409, "children": [], "start_point": {"row": 95, "column": 35}, "end_point": {"row": 95, "column": 38}}, {"id": 411, "type": "assignment_expression", "text": "element = dequeueTailOnDeq(deq)", "parent": 403, "children": [412, 413, 414], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 51}}, {"id": 412, "type": "identifier", "text": "element", "parent": 411, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 27}}, {"id": 413, "type": "=", "text": "=", "parent": 411, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 29}}, {"id": 414, "type": "call_expression", "text": "dequeueTailOnDeq(deq)", "parent": 411, "children": [415, 416], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 51}}, {"id": 415, "type": "identifier", "text": "dequeueTailOnDeq", "parent": 414, "children": [], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 46}}, {"id": 416, "type": "argument_list", "text": "(deq)", "parent": 414, "children": [417], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 51}}, {"id": 417, "type": "identifier", "text": "deq", "parent": 416, "children": [], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 50}}, {"id": 418, "type": "call_expression", "text": "printf(\"dequeue tail : %10d\\n\", element->value)", "parent": 403, "children": [419, 420], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 67}}, {"id": 419, "type": "identifier", "text": "printf", "parent": 418, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 26}}, {"id": 420, "type": "argument_list", "text": "(\"dequeue tail : %10d\\n\", element->value)", "parent": 418, "children": [421, 423], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 67}}, {"id": 421, "type": "string_literal", "text": "\"dequeue tail : %10d\\n\"", "parent": 420, "children": [422], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 50}}, {"id": 422, "type": "escape_sequence", "text": "\\n", "parent": 421, "children": [], "start_point": {"row": 97, "column": 47}, "end_point": {"row": 97, "column": 49}}, {"id": 423, "type": "field_expression", "text": "element->value", "parent": 420, "children": [424, 425], "start_point": {"row": 97, "column": 52}, "end_point": {"row": 97, "column": 66}}, {"id": 424, "type": "identifier", "text": "element", "parent": 423, "children": [], "start_point": {"row": 97, "column": 52}, "end_point": {"row": 97, "column": 59}}, {"id": 425, "type": "field_identifier", "text": "value", "parent": 423, "children": [], "start_point": {"row": 97, "column": 61}, "end_point": {"row": 97, "column": 66}}, {"id": 426, "type": "call_expression", "text": "destroyElement(element)", "parent": 403, "children": [427, 428], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 43}}, {"id": 427, "type": "identifier", "text": "destroyElement", "parent": 426, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 34}}, {"id": 428, "type": "argument_list", "text": "(element)", "parent": 426, "children": [429], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 43}}, {"id": 429, "type": "identifier", "text": "element", "parent": 428, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 42}}, {"id": 430, "type": "break_statement", "text": "break;", "parent": 341, "children": [431], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 22}}, {"id": 431, "type": "break", "text": "break", "parent": 430, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 21}}, {"id": 432, "type": "case_statement", "text": "case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;", "parent": 155, "children": [433, 434, 435, 494, 521], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 119, "column": 22}}, {"id": 433, "type": "case", "text": "case", "parent": 432, "children": [], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 16}}, {"id": 434, "type": "number_literal", "text": "3", "parent": 432, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 18}}, {"id": 435, "type": "for_statement", "text": "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }", "parent": 432, "children": [436, 442, 446], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 112, "column": 17}}, {"id": 436, "type": "declaration", "text": "int i=0;", "parent": 435, "children": [437, 438], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 29}}, {"id": 437, "type": "primitive_type", "text": "int", "parent": 436, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 24}}, {"id": 438, "type": "init_declarator", "text": "i=0", "parent": 436, "children": [439, 440, 441], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 28}}, {"id": 439, "type": "identifier", "text": "i", "parent": 438, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 26}}, {"id": 440, "type": "=", "text": "=", "parent": 438, "children": [], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 27}}, {"id": 441, "type": "number_literal", "text": "0", "parent": 438, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 28}}, {"id": 442, "type": "binary_expression", "text": "i<numOfValues", "parent": 435, "children": [443, 444, 445], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 43}}, {"id": 443, "type": "identifier", "text": "i", "parent": 442, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 31}}, {"id": 444, "type": "<", "text": "<", "parent": 442, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 32}}, {"id": 445, "type": "identifier", "text": "numOfValues", "parent": 442, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 43}}, {"id": 446, "type": "update_expression", "text": "i++", "parent": 435, "children": [447, 448], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 48}}, {"id": 447, "type": "identifier", "text": "i", "parent": 446, "children": [], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 46}}, {"id": 448, "type": "++", "text": "++", "parent": 446, "children": [], "start_point": {"row": 102, "column": 46}, "end_point": {"row": 102, "column": 48}}, {"id": 449, "type": "assignment_expression", "text": "element = createElement(i)", "parent": 435, "children": [450, 451, 452], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 46}}, {"id": 450, "type": "identifier", "text": "element", "parent": 449, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 27}}, {"id": 451, "type": "=", "text": "=", "parent": 449, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 29}}, {"id": 452, "type": "call_expression", "text": "createElement(i)", "parent": 449, "children": [453, 454], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 46}}, {"id": 453, "type": "identifier", "text": "createElement", "parent": 452, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 43}}, {"id": 454, "type": "argument_list", "text": "(i)", "parent": 452, "children": [455], "start_point": {"row": 103, "column": 43}, "end_point": {"row": 103, "column": 46}}, {"id": 455, "type": "identifier", "text": "i", "parent": 454, "children": [], "start_point": {"row": 103, "column": 44}, "end_point": {"row": 103, "column": 45}}, {"id": 456, "type": "assignment_expression", "text": "check = enqueueTailOnDeq(deq, element)", "parent": 435, "children": [457, 458, 459], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 58}}, {"id": 457, "type": "identifier", "text": "check", "parent": 456, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 25}}, {"id": 458, "type": "=", "text": "=", "parent": 456, "children": [], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 27}}, {"id": 459, "type": "call_expression", "text": "enqueueTailOnDeq(deq, element)", "parent": 456, "children": [460, 461], "start_point": {"row": 104, "column": 28}, "end_point": {"row": 104, "column": 58}}, {"id": 460, "type": "identifier", "text": "enqueueTailOnDeq", "parent": 459, "children": [], "start_point": {"row": 104, "column": 28}, "end_point": {"row": 104, "column": 44}}, {"id": 461, "type": "argument_list", "text": "(deq, element)", "parent": 459, "children": [462, 463], "start_point": {"row": 104, "column": 44}, "end_point": {"row": 104, "column": 58}}, {"id": 462, "type": "identifier", "text": "deq", "parent": 461, "children": [], "start_point": {"row": 104, "column": 45}, "end_point": {"row": 104, "column": 48}}, {"id": 463, "type": "identifier", "text": "element", "parent": 461, "children": [], "start_point": {"row": 104, "column": 50}, "end_point": {"row": 104, "column": 57}}, {"id": 464, "type": "if_statement", "text": "if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 435, "children": [465, 475], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 111, "column": 21}}, {"id": 465, "type": "parenthesized_expression", "text": "(check)", "parent": 464, "children": [466], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 30}}, {"id": 466, "type": "identifier", "text": "check", "parent": 465, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 29}}, {"id": 467, "type": "call_expression", "text": "printf(\"enqueue tail : %10d\\n\", element->value)", "parent": 464, "children": [468, 469], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 71}}, {"id": 468, "type": "identifier", "text": "printf", "parent": 467, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 30}}, {"id": 469, "type": "argument_list", "text": "(\"enqueue tail : %10d\\n\", element->value)", "parent": 467, "children": [470, 472], "start_point": {"row": 106, "column": 30}, "end_point": {"row": 106, "column": 71}}, {"id": 470, "type": "string_literal", "text": "\"enqueue tail : %10d\\n\"", "parent": 469, "children": [471], "start_point": {"row": 106, "column": 31}, "end_point": {"row": 106, "column": 54}}, {"id": 471, "type": "escape_sequence", "text": "\\n", "parent": 470, "children": [], "start_point": {"row": 106, "column": 51}, "end_point": {"row": 106, "column": 53}}, {"id": 472, "type": "field_expression", "text": "element->value", "parent": 469, "children": [473, 474], "start_point": {"row": 106, "column": 56}, "end_point": {"row": 106, "column": 70}}, {"id": 473, "type": "identifier", "text": "element", "parent": 472, "children": [], "start_point": {"row": 106, "column": 56}, "end_point": {"row": 106, "column": 63}}, {"id": 474, "type": "field_identifier", "text": "value", "parent": 472, "children": [], "start_point": {"row": 106, "column": 65}, "end_point": {"row": 106, "column": 70}}, {"id": 475, "type": "else_clause", "text": "else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 464, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 111, "column": 21}}, {"id": 476, "type": "call_expression", "text": "printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 475, "children": [477, 478], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 102}}, {"id": 477, "type": "identifier", "text": "printf", "parent": 476, "children": [], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 30}}, {"id": 478, "type": "argument_list", "text": "(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 476, "children": [479, 481, 482], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 102}}, {"id": 479, "type": "string_literal", "text": "\"error [%s] : could not enqueue value %d.\\n\"", "parent": 478, "children": [480], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 75}}, {"id": 480, "type": "escape_sequence", "text": "\\n", "parent": 479, "children": [], "start_point": {"row": 109, "column": 72}, "end_point": {"row": 109, "column": 74}}, {"id": 481, "type": "identifier", "text": "__func__", "parent": 478, "children": [], "start_point": {"row": 109, "column": 77}, "end_point": {"row": 109, "column": 85}}, {"id": 482, "type": "field_expression", "text": "element->value", "parent": 478, "children": [483, 484], "start_point": {"row": 109, "column": 87}, "end_point": {"row": 109, "column": 101}}, {"id": 483, "type": "identifier", "text": "element", "parent": 482, "children": [], "start_point": {"row": 109, "column": 87}, "end_point": {"row": 109, "column": 94}}, {"id": 484, "type": "field_identifier", "text": "value", "parent": 482, "children": [], "start_point": {"row": 109, "column": 96}, "end_point": {"row": 109, "column": 101}}, {"id": 485, "type": "call_expression", "text": "destroyElement(element)", "parent": 475, "children": [486, 487], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 47}}, {"id": 486, "type": "identifier", "text": "destroyElement", "parent": 485, "children": [], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 38}}, {"id": 487, "type": "argument_list", "text": "(element)", "parent": 485, "children": [488], "start_point": {"row": 110, "column": 38}, "end_point": {"row": 110, "column": 47}}, {"id": 488, "type": "identifier", "text": "element", "parent": 487, "children": [], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 46}}, {"id": 489, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 432, "children": [490, 491], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 28}}, {"id": 490, "type": "identifier", "text": "printf", "parent": 489, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 22}}, {"id": 491, "type": "argument_list", "text": "(\"\\n\")", "parent": 489, "children": [492], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 28}}, {"id": 492, "type": "string_literal", "text": "\"\\n\"", "parent": 491, "children": [493], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 27}}, {"id": 493, "type": "escape_sequence", "text": "\\n", "parent": 492, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 26}}, {"id": 494, "type": "while_statement", "text": "while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }", "parent": 432, "children": [495], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 118, "column": 17}}, {"id": 495, "type": "parenthesized_expression", "text": "(!isEmptyDeq(deq))", "parent": 494, "children": [496], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 40}}, {"id": 496, "type": "unary_expression", "text": "!isEmptyDeq(deq)", "parent": 495, "children": [497, 498], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 39}}, {"id": 497, "type": "!", "text": "!", "parent": 496, "children": [], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 24}}, {"id": 498, "type": "call_expression", "text": "isEmptyDeq(deq)", "parent": 496, "children": [499, 500], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 39}}, {"id": 499, "type": "identifier", "text": "isEmptyDeq", "parent": 498, "children": [], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 34}}, {"id": 500, "type": "argument_list", "text": "(deq)", "parent": 498, "children": [501], "start_point": {"row": 114, "column": 34}, "end_point": {"row": 114, "column": 39}}, {"id": 501, "type": "identifier", "text": "deq", "parent": 500, "children": [], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 38}}, {"id": 502, "type": "assignment_expression", "text": "element = dequeueHeadOnDeq(deq)", "parent": 494, "children": [503, 504, 505], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 51}}, {"id": 503, "type": "identifier", "text": "element", "parent": 502, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 27}}, {"id": 504, "type": "=", "text": "=", "parent": 502, "children": [], "start_point": {"row": 115, "column": 28}, "end_point": {"row": 115, "column": 29}}, {"id": 505, "type": "call_expression", "text": "dequeueHeadOnDeq(deq)", "parent": 502, "children": [506, 507], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 51}}, {"id": 506, "type": "identifier", "text": "dequeueHeadOnDeq", "parent": 505, "children": [], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 46}}, {"id": 507, "type": "argument_list", "text": "(deq)", "parent": 505, "children": [508], "start_point": {"row": 115, "column": 46}, "end_point": {"row": 115, "column": 51}}, {"id": 508, "type": "identifier", "text": "deq", "parent": 507, "children": [], "start_point": {"row": 115, "column": 47}, "end_point": {"row": 115, "column": 50}}, {"id": 509, "type": "call_expression", "text": "printf(\"dequeue head : %10d\\n\", element->value)", "parent": 494, "children": [510, 511], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 67}}, {"id": 510, "type": "identifier", "text": "printf", "parent": 509, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 26}}, {"id": 511, "type": "argument_list", "text": "(\"dequeue head : %10d\\n\", element->value)", "parent": 509, "children": [512, 514], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 67}}, {"id": 512, "type": "string_literal", "text": "\"dequeue head : %10d\\n\"", "parent": 511, "children": [513], "start_point": {"row": 116, "column": 27}, "end_point": {"row": 116, "column": 50}}, {"id": 513, "type": "escape_sequence", "text": "\\n", "parent": 512, "children": [], "start_point": {"row": 116, "column": 47}, "end_point": {"row": 116, "column": 49}}, {"id": 514, "type": "field_expression", "text": "element->value", "parent": 511, "children": [515, 516], "start_point": {"row": 116, "column": 52}, "end_point": {"row": 116, "column": 66}}, {"id": 515, "type": "identifier", "text": "element", "parent": 514, "children": [], "start_point": {"row": 116, "column": 52}, "end_point": {"row": 116, "column": 59}}, {"id": 516, "type": "field_identifier", "text": "value", "parent": 514, "children": [], "start_point": {"row": 116, "column": 61}, "end_point": {"row": 116, "column": 66}}, {"id": 517, "type": "call_expression", "text": "destroyElement(element)", "parent": 494, "children": [518, 519], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 43}}, {"id": 518, "type": "identifier", "text": "destroyElement", "parent": 517, "children": [], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 34}}, {"id": 519, "type": "argument_list", "text": "(element)", "parent": 517, "children": [520], "start_point": {"row": 117, "column": 34}, "end_point": {"row": 117, "column": 43}}, {"id": 520, "type": "identifier", "text": "element", "parent": 519, "children": [], "start_point": {"row": 117, "column": 35}, "end_point": {"row": 117, "column": 42}}, {"id": 521, "type": "break_statement", "text": "break;", "parent": 432, "children": [522], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 22}}, {"id": 522, "type": "break", "text": "break", "parent": 521, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 21}}, {"id": 523, "type": "case_statement", "text": "case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;", "parent": 155, "children": [524, 525, 526, 585, 623], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 142, "column": 22}}, {"id": 524, "type": "case", "text": "case", "parent": 523, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 16}}, {"id": 525, "type": "number_literal", "text": "4", "parent": 523, "children": [], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 18}}, {"id": 526, "type": "for_statement", "text": "for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }", "parent": 523, "children": [527, 533, 537], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 131, "column": 17}}, {"id": 527, "type": "declaration", "text": "int i=0;", "parent": 526, "children": [528, 529], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 29}}, {"id": 528, "type": "primitive_type", "text": "int", "parent": 527, "children": [], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 24}}, {"id": 529, "type": "init_declarator", "text": "i=0", "parent": 527, "children": [530, 531, 532], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 28}}, {"id": 530, "type": "identifier", "text": "i", "parent": 529, "children": [], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 26}}, {"id": 531, "type": "=", "text": "=", "parent": 529, "children": [], "start_point": {"row": 121, "column": 26}, "end_point": {"row": 121, "column": 27}}, {"id": 532, "type": "number_literal", "text": "0", "parent": 529, "children": [], "start_point": {"row": 121, "column": 27}, "end_point": {"row": 121, "column": 28}}, {"id": 533, "type": "binary_expression", "text": "i<numOfValues", "parent": 526, "children": [534, 535, 536], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 43}}, {"id": 534, "type": "identifier", "text": "i", "parent": 533, "children": [], "start_point": {"row": 121, "column": 30}, "end_point": {"row": 121, "column": 31}}, {"id": 535, "type": "<", "text": "<", "parent": 533, "children": [], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 32}}, {"id": 536, "type": "identifier", "text": "numOfValues", "parent": 533, "children": [], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 43}}, {"id": 537, "type": "update_expression", "text": "i++", "parent": 526, "children": [538, 539], "start_point": {"row": 121, "column": 45}, "end_point": {"row": 121, "column": 48}}, {"id": 538, "type": "identifier", "text": "i", "parent": 537, "children": [], "start_point": {"row": 121, "column": 45}, "end_point": {"row": 121, "column": 46}}, {"id": 539, "type": "++", "text": "++", "parent": 537, "children": [], "start_point": {"row": 121, "column": 46}, "end_point": {"row": 121, "column": 48}}, {"id": 540, "type": "assignment_expression", "text": "element = createElement(i)", "parent": 526, "children": [541, 542, 543], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 46}}, {"id": 541, "type": "identifier", "text": "element", "parent": 540, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 27}}, {"id": 542, "type": "=", "text": "=", "parent": 540, "children": [], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 29}}, {"id": 543, "type": "call_expression", "text": "createElement(i)", "parent": 540, "children": [544, 545], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 46}}, {"id": 544, "type": "identifier", "text": "createElement", "parent": 543, "children": [], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 43}}, {"id": 545, "type": "argument_list", "text": "(i)", "parent": 543, "children": [546], "start_point": {"row": 122, "column": 43}, "end_point": {"row": 122, "column": 46}}, {"id": 546, "type": "identifier", "text": "i", "parent": 545, "children": [], "start_point": {"row": 122, "column": 44}, "end_point": {"row": 122, "column": 45}}, {"id": 547, "type": "assignment_expression", "text": "check = enqueueTailOnDeq(deq, element)", "parent": 526, "children": [548, 549, 550], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 58}}, {"id": 548, "type": "identifier", "text": "check", "parent": 547, "children": [], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 25}}, {"id": 549, "type": "=", "text": "=", "parent": 547, "children": [], "start_point": {"row": 123, "column": 26}, "end_point": {"row": 123, "column": 27}}, {"id": 550, "type": "call_expression", "text": "enqueueTailOnDeq(deq, element)", "parent": 547, "children": [551, 552], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 58}}, {"id": 551, "type": "identifier", "text": "enqueueTailOnDeq", "parent": 550, "children": [], "start_point": {"row": 123, "column": 28}, "end_point": {"row": 123, "column": 44}}, {"id": 552, "type": "argument_list", "text": "(deq, element)", "parent": 550, "children": [553, 554], "start_point": {"row": 123, "column": 44}, "end_point": {"row": 123, "column": 58}}, {"id": 553, "type": "identifier", "text": "deq", "parent": 552, "children": [], "start_point": {"row": 123, "column": 45}, "end_point": {"row": 123, "column": 48}}, {"id": 554, "type": "identifier", "text": "element", "parent": 552, "children": [], "start_point": {"row": 123, "column": 50}, "end_point": {"row": 123, "column": 57}}, {"id": 555, "type": "if_statement", "text": "if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 526, "children": [556, 566], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 130, "column": 21}}, {"id": 556, "type": "parenthesized_expression", "text": "(check)", "parent": 555, "children": [557], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 30}}, {"id": 557, "type": "identifier", "text": "check", "parent": 556, "children": [], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 29}}, {"id": 558, "type": "call_expression", "text": "printf(\"enqueue tail : %10d\\n\", element->value)", "parent": 555, "children": [559, 560], "start_point": {"row": 125, "column": 24}, "end_point": {"row": 125, "column": 71}}, {"id": 559, "type": "identifier", "text": "printf", "parent": 558, "children": [], "start_point": {"row": 125, "column": 24}, "end_point": {"row": 125, "column": 30}}, {"id": 560, "type": "argument_list", "text": "(\"enqueue tail : %10d\\n\", element->value)", "parent": 558, "children": [561, 563], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 71}}, {"id": 561, "type": "string_literal", "text": "\"enqueue tail : %10d\\n\"", "parent": 560, "children": [562], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 54}}, {"id": 562, "type": "escape_sequence", "text": "\\n", "parent": 561, "children": [], "start_point": {"row": 125, "column": 51}, "end_point": {"row": 125, "column": 53}}, {"id": 563, "type": "field_expression", "text": "element->value", "parent": 560, "children": [564, 565], "start_point": {"row": 125, "column": 56}, "end_point": {"row": 125, "column": 70}}, {"id": 564, "type": "identifier", "text": "element", "parent": 563, "children": [], "start_point": {"row": 125, "column": 56}, "end_point": {"row": 125, "column": 63}}, {"id": 565, "type": "field_identifier", "text": "value", "parent": 563, "children": [], "start_point": {"row": 125, "column": 65}, "end_point": {"row": 125, "column": 70}}, {"id": 566, "type": "else_clause", "text": "else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }", "parent": 555, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 130, "column": 21}}, {"id": 567, "type": "call_expression", "text": "printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 566, "children": [568, 569], "start_point": {"row": 128, "column": 24}, "end_point": {"row": 128, "column": 102}}, {"id": 568, "type": "identifier", "text": "printf", "parent": 567, "children": [], "start_point": {"row": 128, "column": 24}, "end_point": {"row": 128, "column": 30}}, {"id": 569, "type": "argument_list", "text": "(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value)", "parent": 567, "children": [570, 572, 573], "start_point": {"row": 128, "column": 30}, "end_point": {"row": 128, "column": 102}}, {"id": 570, "type": "string_literal", "text": "\"error [%s] : could not enqueue value %d.\\n\"", "parent": 569, "children": [571], "start_point": {"row": 128, "column": 31}, "end_point": {"row": 128, "column": 75}}, {"id": 571, "type": "escape_sequence", "text": "\\n", "parent": 570, "children": [], "start_point": {"row": 128, "column": 72}, "end_point": {"row": 128, "column": 74}}, {"id": 572, "type": "identifier", "text": "__func__", "parent": 569, "children": [], "start_point": {"row": 128, "column": 77}, "end_point": {"row": 128, "column": 85}}, {"id": 573, "type": "field_expression", "text": "element->value", "parent": 569, "children": [574, 575], "start_point": {"row": 128, "column": 87}, "end_point": {"row": 128, "column": 101}}, {"id": 574, "type": "identifier", "text": "element", "parent": 573, "children": [], "start_point": {"row": 128, "column": 87}, "end_point": {"row": 128, "column": 94}}, {"id": 575, "type": "field_identifier", "text": "value", "parent": 573, "children": [], "start_point": {"row": 128, "column": 96}, "end_point": {"row": 128, "column": 101}}, {"id": 576, "type": "call_expression", "text": "destroyElement(element)", "parent": 566, "children": [577, 578], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 47}}, {"id": 577, "type": "identifier", "text": "destroyElement", "parent": 576, "children": [], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 38}}, {"id": 578, "type": "argument_list", "text": "(element)", "parent": 576, "children": [579], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 47}}, {"id": 579, "type": "identifier", "text": "element", "parent": 578, "children": [], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 46}}, {"id": 580, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 523, "children": [581, 582], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 28}}, {"id": 581, "type": "identifier", "text": "printf", "parent": 580, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 22}}, {"id": 582, "type": "argument_list", "text": "(\"\\n\")", "parent": 580, "children": [583], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 28}}, {"id": 583, "type": "string_literal", "text": "\"\\n\"", "parent": 582, "children": [584], "start_point": {"row": 132, "column": 23}, "end_point": {"row": 132, "column": 27}}, {"id": 584, "type": "escape_sequence", "text": "\\n", "parent": 583, "children": [], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 26}}, {"id": 585, "type": "while_statement", "text": "while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n \n }", "parent": 523, "children": [586], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 138, "column": 17}}, {"id": 586, "type": "parenthesized_expression", "text": "(!isEmptyDeq(deq))", "parent": 585, "children": [587], "start_point": {"row": 133, "column": 22}, "end_point": {"row": 133, "column": 40}}, {"id": 587, "type": "unary_expression", "text": "!isEmptyDeq(deq)", "parent": 586, "children": [588, 589], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 39}}, {"id": 588, "type": "!", "text": "!", "parent": 587, "children": [], "start_point": {"row": 133, "column": 23}, "end_point": {"row": 133, "column": 24}}, {"id": 589, "type": "call_expression", "text": "isEmptyDeq(deq)", "parent": 587, "children": [590, 591], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 39}}, {"id": 590, "type": "identifier", "text": "isEmptyDeq", "parent": 589, "children": [], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 34}}, {"id": 591, "type": "argument_list", "text": "(deq)", "parent": 589, "children": [592], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 39}}, {"id": 592, "type": "identifier", "text": "deq", "parent": 591, "children": [], "start_point": {"row": 133, "column": 35}, "end_point": {"row": 133, "column": 38}}, {"id": 593, "type": "declaration", "text": "Element_t *element = dequeueTailOnDeq(deq);", "parent": 585, "children": [594, 595], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 63}}, {"id": 594, "type": "type_identifier", "text": "Element_t", "parent": 593, "children": [], "start_point": {"row": 134, "column": 20}, "end_point": {"row": 134, "column": 29}}, {"id": 595, "type": "init_declarator", "text": "*element = dequeueTailOnDeq(deq)", "parent": 593, "children": [596, 599, 600], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 62}}, {"id": 596, "type": "pointer_declarator", "text": "*element", "parent": 595, "children": [597, 598], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 38}}, {"id": 597, "type": "*", "text": "*", "parent": 596, "children": [], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 31}}, {"id": 598, "type": "identifier", "text": "element", "parent": 596, "children": [], "start_point": {"row": 134, "column": 31}, "end_point": {"row": 134, "column": 38}}, {"id": 599, "type": "=", "text": "=", "parent": 595, "children": [], "start_point": {"row": 134, "column": 39}, "end_point": {"row": 134, "column": 40}}, {"id": 600, "type": "call_expression", "text": "dequeueTailOnDeq(deq)", "parent": 595, "children": [601, 602], "start_point": {"row": 134, "column": 41}, "end_point": {"row": 134, "column": 62}}, {"id": 601, "type": "identifier", "text": "dequeueTailOnDeq", "parent": 600, "children": [], "start_point": {"row": 134, "column": 41}, "end_point": {"row": 134, "column": 57}}, {"id": 602, "type": "argument_list", "text": "(deq)", "parent": 600, "children": [603], "start_point": {"row": 134, "column": 57}, "end_point": {"row": 134, "column": 62}}, {"id": 603, "type": "identifier", "text": "deq", "parent": 602, "children": [], "start_point": {"row": 134, "column": 58}, "end_point": {"row": 134, "column": 61}}, {"id": 604, "type": "call_expression", "text": "printf(\"dequeue tail : %10d\\n\", element->value)", "parent": 585, "children": [605, 606], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 67}}, {"id": 605, "type": "identifier", "text": "printf", "parent": 604, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 26}}, {"id": 606, "type": "argument_list", "text": "(\"dequeue tail : %10d\\n\", element->value)", "parent": 604, "children": [607, 609], "start_point": {"row": 135, "column": 26}, "end_point": {"row": 135, "column": 67}}, {"id": 607, "type": "string_literal", "text": "\"dequeue tail : %10d\\n\"", "parent": 606, "children": [608], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 50}}, {"id": 608, "type": "escape_sequence", "text": "\\n", "parent": 607, "children": [], "start_point": {"row": 135, "column": 47}, "end_point": {"row": 135, "column": 49}}, {"id": 609, "type": "field_expression", "text": "element->value", "parent": 606, "children": [610, 611], "start_point": {"row": 135, "column": 52}, "end_point": {"row": 135, "column": 66}}, {"id": 610, "type": "identifier", "text": "element", "parent": 609, "children": [], "start_point": {"row": 135, "column": 52}, "end_point": {"row": 135, "column": 59}}, {"id": 611, "type": "field_identifier", "text": "value", "parent": 609, "children": [], "start_point": {"row": 135, "column": 61}, "end_point": {"row": 135, "column": 66}}, {"id": 612, "type": "call_expression", "text": "destroyElement(element)", "parent": 585, "children": [613, 614], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 43}}, {"id": 613, "type": "identifier", "text": "destroyElement", "parent": 612, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 34}}, {"id": 614, "type": "argument_list", "text": "(element)", "parent": 612, "children": [615], "start_point": {"row": 136, "column": 34}, "end_point": {"row": 136, "column": 43}}, {"id": 615, "type": "identifier", "text": "element", "parent": 614, "children": [], "start_point": {"row": 136, "column": 35}, "end_point": {"row": 136, "column": 42}}, {"id": 616, "type": "assignment_expression", "text": "r = INT_MAX - 1", "parent": 523, "children": [617, 618, 619], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 31}}, {"id": 617, "type": "identifier", "text": "r", "parent": 616, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 17}}, {"id": 618, "type": "=", "text": "=", "parent": 616, "children": [], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 19}}, {"id": 619, "type": "binary_expression", "text": "INT_MAX - 1", "parent": 616, "children": [620, 621, 622], "start_point": {"row": 140, "column": 20}, "end_point": {"row": 140, "column": 31}}, {"id": 620, "type": "identifier", "text": "INT_MAX", "parent": 619, "children": [], "start_point": {"row": 140, "column": 20}, "end_point": {"row": 140, "column": 27}}, {"id": 621, "type": "-", "text": "-", "parent": 619, "children": [], "start_point": {"row": 140, "column": 28}, "end_point": {"row": 140, "column": 29}}, {"id": 622, "type": "number_literal", "text": "1", "parent": 619, "children": [], "start_point": {"row": 140, "column": 30}, "end_point": {"row": 140, "column": 31}}, {"id": 623, "type": "break_statement", "text": "break;", "parent": 523, "children": [624], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 22}}, {"id": 624, "type": "break", "text": "break", "parent": 623, "children": [], "start_point": {"row": 142, "column": 16}, "end_point": {"row": 142, "column": 21}}, {"id": 625, "type": "case_statement", "text": "default:\n break;", "parent": 155, "children": [626, 627], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 144, "column": 22}}, {"id": 626, "type": "default", "text": "default", "parent": 625, "children": [], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 19}}, {"id": 627, "type": "break_statement", "text": "break;", "parent": 625, "children": [628], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 22}}, {"id": 628, "type": "break", "text": "break", "parent": 627, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 21}}, {"id": 629, "type": "call_expression", "text": "destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT)", "parent": 83, "children": [630, 631], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 44}}, {"id": 630, "type": "identifier", "text": "destroyDeq", "parent": 629, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 14}}, {"id": 631, "type": "argument_list", "text": "(deq, DEQ_OPTION_WITH_ELEMENT)", "parent": 629, "children": [632, 633], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 44}}, {"id": 632, "type": "identifier", "text": "deq", "parent": 631, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 18}}, {"id": 633, "type": "identifier", "text": "DEQ_OPTION_WITH_ELEMENT", "parent": 631, "children": [], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 43}}, {"id": 634, "type": "function_definition", "text": "Element_t *createElement(int value) {\n Element_t *e = malloc(sizeof(Element_t));\n if (e == NULL) return NULL;\n e->value = value;\n return e;\n}", "parent": null, "children": [635, 636], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 156, "column": 1}}, {"id": 635, "type": "type_identifier", "text": "Element_t", "parent": 634, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 9}}, {"id": 636, "type": "pointer_declarator", "text": "*createElement(int value)", "parent": 634, "children": [637, 638], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 35}}, {"id": 637, "type": "*", "text": "*", "parent": 636, "children": [], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 11}}, {"id": 638, "type": "function_declarator", "text": "createElement(int value)", "parent": 636, "children": [639, 640], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 35}}, {"id": 639, "type": "identifier", "text": "createElement", "parent": 638, "children": [], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 24}}, {"id": 640, "type": "parameter_list", "text": "(int value)", "parent": 638, "children": [641], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 35}}, {"id": 641, "type": "parameter_declaration", "text": "int value", "parent": 640, "children": [642, 643], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 34}}, {"id": 642, "type": "primitive_type", "text": "int", "parent": 641, "children": [], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 28}}, {"id": 643, "type": "identifier", "text": "value", "parent": 641, "children": [], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 34}}, {"id": 644, "type": "declaration", "text": "Element_t *e = malloc(sizeof(Element_t));", "parent": 634, "children": [645, 646], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 45}}, {"id": 645, "type": "type_identifier", "text": "Element_t", "parent": 644, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 13}}, {"id": 646, "type": "init_declarator", "text": "*e = malloc(sizeof(Element_t))", "parent": 644, "children": [647, 650, 651], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 44}}, {"id": 647, "type": "pointer_declarator", "text": "*e", "parent": 646, "children": [648, 649], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 16}}, {"id": 648, "type": "*", "text": "*", "parent": 647, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 15}}, {"id": 649, "type": "identifier", "text": "e", "parent": 647, "children": [], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 16}}, {"id": 650, "type": "=", "text": "=", "parent": 646, "children": [], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 18}}, {"id": 651, "type": "call_expression", "text": "malloc(sizeof(Element_t))", "parent": 646, "children": [652, 653], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 44}}, {"id": 652, "type": "identifier", "text": "malloc", "parent": 651, "children": [], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 25}}, {"id": 653, "type": "argument_list", "text": "(sizeof(Element_t))", "parent": 651, "children": [654], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 44}}, {"id": 654, "type": "sizeof_expression", "text": "sizeof(Element_t)", "parent": 653, "children": [655], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 43}}, {"id": 655, "type": "parenthesized_expression", "text": "(Element_t)", "parent": 654, "children": [656], "start_point": {"row": 152, "column": 32}, "end_point": {"row": 152, "column": 43}}, {"id": 656, "type": "identifier", "text": "Element_t", "parent": 655, "children": [], "start_point": {"row": 152, "column": 33}, "end_point": {"row": 152, "column": 42}}, {"id": 657, "type": "if_statement", "text": "if (e == NULL) return NULL;", "parent": 634, "children": [658, 664], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 31}}, {"id": 658, "type": "parenthesized_expression", "text": "(e == NULL)", "parent": 657, "children": [659], "start_point": {"row": 153, "column": 7}, "end_point": {"row": 153, "column": 18}}, {"id": 659, "type": "binary_expression", "text": "e == NULL", "parent": 658, "children": [660, 661, 662], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 17}}, {"id": 660, "type": "identifier", "text": "e", "parent": 659, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 9}}, {"id": 661, "type": "==", "text": "==", "parent": 659, "children": [], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 12}}, {"id": 662, "type": "null", "text": "NULL", "parent": 659, "children": [663], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 17}}, {"id": 663, "type": "NULL", "text": "NULL", "parent": 662, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 17}}, {"id": 664, "type": "return_statement", "text": "return NULL;", "parent": 657, "children": [665], "start_point": {"row": 153, "column": 19}, "end_point": {"row": 153, "column": 31}}, {"id": 665, "type": "null", "text": "NULL", "parent": 664, "children": [666], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 30}}, {"id": 666, "type": "NULL", "text": "NULL", "parent": 665, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 30}}, {"id": 667, "type": "assignment_expression", "text": "e->value = value", "parent": 634, "children": [668, 671, 672], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 20}}, {"id": 668, "type": "field_expression", "text": "e->value", "parent": 667, "children": [669, 670], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 12}}, {"id": 669, "type": "identifier", "text": "e", "parent": 668, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 5}}, {"id": 670, "type": "field_identifier", "text": "value", "parent": 668, "children": [], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 12}}, {"id": 671, "type": "=", "text": "=", "parent": 667, "children": [], "start_point": {"row": 154, "column": 13}, "end_point": {"row": 154, "column": 14}}, {"id": 672, "type": "identifier", "text": "value", "parent": 667, "children": [], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 20}}, {"id": 673, "type": "return_statement", "text": "return e;", "parent": 634, "children": [674], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 13}}, {"id": 674, "type": "identifier", "text": "e", "parent": 673, "children": [], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 12}}, {"id": 675, "type": "function_definition", "text": "bool destroyElement(Element_t *element) {\n // Block illegal parameters.\n if (element == NULL) return false;\n free(element);\n return true;\n}", "parent": null, "children": [676, 677], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 163, "column": 1}}, {"id": 676, "type": "primitive_type", "text": "bool", "parent": 675, "children": [], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 4}}, {"id": 677, "type": "function_declarator", "text": "destroyElement(Element_t *element)", "parent": 675, "children": [678, 679], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 39}}, {"id": 678, "type": "identifier", "text": "destroyElement", "parent": 677, "children": [], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 19}}, {"id": 679, "type": "parameter_list", "text": "(Element_t *element)", "parent": 677, "children": [680], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 39}}, {"id": 680, "type": "parameter_declaration", "text": "Element_t *element", "parent": 679, "children": [681, 682], "start_point": {"row": 158, "column": 20}, "end_point": {"row": 158, "column": 38}}, {"id": 681, "type": "type_identifier", "text": "Element_t", "parent": 680, "children": [], "start_point": {"row": 158, "column": 20}, "end_point": {"row": 158, "column": 29}}, {"id": 682, "type": "pointer_declarator", "text": "*element", "parent": 680, "children": [683, 684], "start_point": {"row": 158, "column": 30}, "end_point": {"row": 158, "column": 38}}, {"id": 683, "type": "*", "text": "*", "parent": 682, "children": [], "start_point": {"row": 158, "column": 30}, "end_point": {"row": 158, "column": 31}}, {"id": 684, "type": "identifier", "text": "element", "parent": 682, "children": [], "start_point": {"row": 158, "column": 31}, "end_point": {"row": 158, "column": 38}}, {"id": 685, "type": "if_statement", "text": "if (element == NULL) return false;", "parent": 675, "children": [686, 692], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 38}}, {"id": 686, "type": "parenthesized_expression", "text": "(element == NULL)", "parent": 685, "children": [687], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 24}}, {"id": 687, "type": "binary_expression", "text": "element == NULL", "parent": 686, "children": [688, 689, 690], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 23}}, {"id": 688, "type": "identifier", "text": "element", "parent": 687, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 15}}, {"id": 689, "type": "==", "text": "==", "parent": 687, "children": [], "start_point": {"row": 160, "column": 16}, "end_point": {"row": 160, "column": 18}}, {"id": 690, "type": "null", "text": "NULL", "parent": 687, "children": [691], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 23}}, {"id": 691, "type": "NULL", "text": "NULL", "parent": 690, "children": [], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 23}}, {"id": 692, "type": "return_statement", "text": "return false;", "parent": 685, "children": [693], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 38}}, {"id": 693, "type": "false", "text": "false", "parent": 692, "children": [], "start_point": {"row": 160, "column": 32}, "end_point": {"row": 160, "column": 37}}, {"id": 694, "type": "call_expression", "text": "free(element)", "parent": 675, "children": [695, 696], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 17}}, {"id": 695, "type": "identifier", "text": "free", "parent": 694, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 8}}, {"id": 696, "type": "argument_list", "text": "(element)", "parent": 694, "children": [697], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 17}}, {"id": 697, "type": "identifier", "text": "element", "parent": 696, "children": [], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 16}}, {"id": 698, "type": "return_statement", "text": "return true;", "parent": 675, "children": [699], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 16}}, {"id": 699, "type": "true", "text": "true", "parent": 698, "children": [], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 15}}]}, "node_categories": {"declarations": {"functions": [23, 32, 40, 48, 50, 83, 85, 634, 638, 675, 677], "variables": [21, 26, 28, 35, 38, 43, 53, 56, 88, 94, 100, 106, 118, 140, 149, 163, 254, 345, 436, 527, 593, 641, 644, 680], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [66, 68, 71, 77, 113, 124, 128, 131, 136, 157, 169, 173, 179, 186, 192, 194, 199, 203, 209, 212, 216, 222, 223, 225, 232, 236, 241, 244, 260, 264, 270, 277, 283, 285, 290, 294, 300, 303, 307, 313, 314, 316, 323, 327, 332, 335, 351, 355, 361, 368, 374, 376, 381, 385, 391, 394, 398, 404, 405, 407, 414, 418, 423, 426, 442, 446, 452, 459, 465, 467, 472, 476, 482, 485, 489, 495, 496, 498, 505, 509, 514, 517, 533, 537, 543, 550, 556, 558, 563, 567, 573, 576, 580, 586, 587, 589, 600, 604, 609, 612, 619, 629, 651, 654, 655, 658, 659, 668, 686, 687, 694], "assignments": [176, 183, 229, 267, 274, 320, 358, 365, 411, 449, 456, 502, 540, 547, 616, 667], "loops": [65, 117, 162, 221, 253, 312, 344, 403, 435, 494, 526, 585], "conditionals": [24, 29, 33, 37, 41, 44, 47, 51, 55, 61, 62, 63, 64, 69, 72, 78, 80, 82, 86, 91, 97, 103, 107, 111, 114, 116, 121, 125, 127, 129, 132, 137, 141, 145, 152, 155, 156, 158, 159, 160, 166, 170, 172, 174, 177, 180, 182, 184, 187, 189, 190, 191, 193, 195, 200, 201, 204, 208, 210, 211, 213, 215, 217, 226, 228, 230, 233, 235, 237, 242, 243, 245, 247, 250, 251, 257, 261, 263, 265, 268, 271, 273, 275, 278, 280, 281, 282, 284, 286, 291, 292, 295, 299, 301, 302, 304, 306, 308, 317, 319, 321, 324, 326, 328, 333, 334, 336, 338, 341, 342, 348, 352, 354, 356, 359, 362, 364, 366, 369, 371, 372, 373, 375, 377, 382, 383, 386, 390, 392, 393, 395, 397, 399, 408, 410, 412, 415, 417, 419, 424, 425, 427, 429, 432, 433, 439, 443, 445, 447, 450, 453, 455, 457, 460, 462, 463, 464, 466, 468, 473, 474, 477, 481, 483, 484, 486, 488, 490, 499, 501, 503, 506, 508, 510, 515, 516, 518, 520, 523, 524, 530, 534, 536, 538, 541, 544, 546, 548, 551, 553, 554, 555, 557, 559, 564, 565, 568, 572, 574, 575, 577, 579, 581, 590, 592, 594, 598, 601, 603, 605, 610, 611, 613, 615, 617, 620, 625, 630, 632, 633, 635, 639, 643, 645, 649, 652, 656, 657, 660, 669, 670, 672, 674, 678, 681, 684, 685, 688, 695, 697], "returns": [81, 664, 673, 692, 698], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 74, 93, 99, 105, 123, 134, 139, 161, 168, 197, 206, 219, 239, 252, 259, 288, 297, 310, 330, 343, 350, 379, 388, 401, 421, 434, 441, 470, 479, 492, 512, 525, 532, 561, 570, 583, 607, 622], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "test(void)"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "createElement(int value)"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "destroyElement(Element_t *element)"}, {"node_id": 48, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, const char * argv[]) {\n \n#ifdef checkMemoryLeak\n while (true) {\n tes"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, const char * argv[])"}, {"node_id": 83, "universal_type": "function", "name": "test", "text_snippet": "void test() {\n int testCount = 10;\n \n int capacity = 10;\n int numOfValues = 15;\n \n "}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "test()"}, {"node_id": 634, "universal_type": "function", "name": "unknown", "text_snippet": "Element_t *createElement(int value) {\n Element_t *e = malloc(sizeof(Element_t));\n if (e == NUL"}, {"node_id": 638, "universal_type": "function", "name": "unknown", "text_snippet": "createElement(int value)"}, {"node_id": 675, "universal_type": "function", "name": "destroyElement", "text_snippet": "bool destroyElement(Element_t *element) {\n // Block illegal parameters.\n if (element == NULL) "}, {"node_id": 677, "universal_type": "function", "name": "unknown", "text_snippet": "destroyElement(Element_t *element)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <unistd.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdio.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdlib.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdbool.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <limits.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <math.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"DeqByArray.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "#include <unistd.h>\n//#define checkMemoryLeak\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <limits.h>\n#include <math.h>\n#include \"DeqByArray.h\"\n\n//////////////////////////////////////////////////\nvoid test(void);\nElement_t *createElement(int value);\nbool destroyElement(Element_t *element);\n\n//////////////////////////////////////////////////\nint main(int argc, const char * argv[]) {\n \n#ifdef checkMemoryLeak\n while (true) {\n test();\n sleep(1);\n }\n#else\n test();\n#endif\n \n return EXIT_SUCCESS;\n}\n\nvoid test() {\n int testCount = 10;\n \n int capacity = 10;\n int numOfValues = 15;\n \n Deq_t *deq = createDeq(capacity);\n \n for (int r=0; r<testCount; r++) {\n printf(\"*** [Test #%d] ***\\n\", r+1);\n \n Element_t *element = NULL;\n bool check = false;\n switch (r) {\n case 0:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueDeq(deq, element);\n if (check) {\n printf(\"enqueue : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueDeq(deq);\n printf(\"dequeue : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 1:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 2:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueHeadOnDeq(deq, element);\n if (check) {\n printf(\"enqueue head : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 3:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n element = dequeueHeadOnDeq(deq);\n printf(\"dequeue head : %10d\\n\", element->value);\n destroyElement(element);\n }\n break;\n case 4:\n for (int i=0; i<numOfValues; i++) {\n element = createElement(i);\n check = enqueueTailOnDeq(deq, element);\n if (check) {\n printf(\"enqueue tail : %10d\\n\", element->value);\n }\n else {\n printf(\"error [%s] : could not enqueue value %d.\\n\", __func__, element->value);\n destroyElement(element);\n }\n }\n printf(\"\\n\");\n while (!isEmptyDeq(deq)) {\n Element_t *element = dequeueTailOnDeq(deq);\n printf(\"dequeue tail : %10d\\n\", element->value);\n destroyElement(element);\n \n }\n // *************************************\n r = INT_MAX - 1; // stop loop.\n // *************************************\n break;\n default:\n break;\n }\n }\n \n destroyDeq(deq, DEQ_OPTION_WITH_ELEMENT);\n}\n\nElement_t *createElement(int value) {\n Element_t *e = malloc(sizeof(Element_t));\n if (e == NULL) return NULL;\n e->value = value;\n return e;\n}\n\nbool destroyElement(Element_t *element) {\n // Block illegal parameters.\n if (element == NULL) return false;\n free(element);\n return true;\n}\n"}
80,805
c
/******************************************************************** * * * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * * * * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2010 * * by the Xiph.Org Foundation and contributors http://www.xiph.org/ * * * ******************************************************************** CPU capability detection for ARM processors. function: last mod: $Id: cpu.c 17344 2010-07-21 01:42:18Z tterribe $ ********************************************************************/ #include "armcpu.h" #if !defined(OC_ARM_ASM)|| \ !defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \ !defined(OC_ARM_ASM_NEON) ogg_uint32_t oc_cpu_flags_get(void){ return 0; } #elif defined(_MSC_VER) /*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/ # define WIN32_LEAN_AND_MEAN # define WIN32_EXTRA_LEAN # include <windows.h> ogg_uint32_t oc_cpu_flags_get(void){ ogg_uint32_t flags; flags=0; /*MSVC has no inline __asm support for ARM, but it does let you __emit instructions via their assembled hex code. All of these instructions should be essentially nops.*/ # if defined(OC_ARM_ASM_EDSP) __try{ /*PLD [r13]*/ __emit(0xF5DDF000); flags|=OC_CPU_ARM_EDSP; } __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){ /*Ignore exception.*/ } # if defined(OC_ARM_ASM_MEDIA) __try{ /*SHADD8 r3,r3,r3*/ __emit(0xE6333F93); flags|=OC_CPU_ARM_MEDIA; } __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){ /*Ignore exception.*/ } # if defined(OC_ARM_ASM_NEON) __try{ /*VORR q0,q0,q0*/ __emit(0xF2200150); flags|=OC_CPU_ARM_NEON; } __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){ /*Ignore exception.*/ } # endif # endif # endif return flags; } #elif defined(__linux__) # include <stdio.h> # include <stdlib.h> # include <string.h> ogg_uint32_t oc_cpu_flags_get(void){ ogg_uint32_t flags; FILE *fin; flags=0; /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on Android. This also means that detection will fail in Scratchbox.*/ fin=fopen("/proc/cpuinfo","r"); if(fin!=NULL){ /*512 should be enough for anybody (it's even enough for all the flags that x86 has accumulated... so far).*/ char buf[512]; while(fgets(buf,511,fin)!=NULL){ if(memcmp(buf,"Features",8)==0){ char *p; p=strstr(buf," edsp"); if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP; p=strstr(buf," neon"); if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON; } if(memcmp(buf,"CPU architecture:",17)==0){ int version; version=atoi(buf+17); if(version>=6)flags|=OC_CPU_ARM_MEDIA; } } fclose(fin); } return flags; } #elif defined(_IOS) ogg_uint32_t oc_cpu_flags_get(void){ ogg_uint32_t flags; flags=0; flags|=OC_CPU_ARM_EDSP; flags|=OC_CPU_ARM_MEDIA; flags|=OC_CPU_ARM_NEON; return flags; } #else /*The feature registers which can tell us what the processor supports are accessible in priveleged modes only, so we can't have a general user-space detection method like on x86.*/ # error "Configured to use ARM asm but no CPU detection method available for " \ "your platform. Reconfigure with --disable-asm (or send patches)." #endif
33.19
113
(translation_unit) "/********************************************************************\n * *\n * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *\n * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *\n * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *\n * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *\n * *\n * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2010 *\n * by the Xiph.Org Foundation and contributors http://www.xiph.org/ *\n * *\n ********************************************************************\n\n CPU capability detection for ARM processors.\n\n function:\n last mod: $Id: cpu.c 17344 2010-07-21 01:42:18Z tterribe $\n\n ********************************************************************/\n\n#include "armcpu.h"\n\n#if !defined(OC_ARM_ASM)|| \\n !defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\n !defined(OC_ARM_ASM_NEON)\nogg_uint32_t oc_cpu_flags_get(void){\n return 0;\n}\n\n#elif defined(_MSC_VER)\n/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/\n# define WIN32_LEAN_AND_MEAN\n# define WIN32_EXTRA_LEAN\n# include <windows.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}\n\n#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen("/proc/cpuinfo","r");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n flags|=OC_CPU_ARM_EDSP;\n flags|=OC_CPU_ARM_MEDIA;\n flags|=OC_CPU_ARM_NEON;\n return flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error "Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."\n#endif\n" (comment) "/********************************************************************\n * *\n * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *\n * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *\n * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *\n * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *\n * *\n * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2010 *\n * by the Xiph.Org Foundation and contributors http://www.xiph.org/ *\n * *\n ********************************************************************\n\n CPU capability detection for ARM processors.\n\n function:\n last mod: $Id: cpu.c 17344 2010-07-21 01:42:18Z tterribe $\n\n ********************************************************************/" (preproc_include) "#include "armcpu.h"\n" (#include) "#include" (string_literal) ""armcpu.h"" (") """ (string_content) "armcpu.h" (") """ (preproc_if) "#if !defined(OC_ARM_ASM)|| \\n !defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\n !defined(OC_ARM_ASM_NEON)\nogg_uint32_t oc_cpu_flags_get(void){\n return 0;\n}\n\n#elif defined(_MSC_VER)\n/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/\n# define WIN32_LEAN_AND_MEAN\n# define WIN32_EXTRA_LEAN\n# include <windows.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}\n\n#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen("/proc/cpuinfo","r");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n flags|=OC_CPU_ARM_EDSP;\n flags|=OC_CPU_ARM_MEDIA;\n flags|=OC_CPU_ARM_NEON;\n return flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error "Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."\n#endif" (#if) "#if" (binary_expression) "!defined(OC_ARM_ASM)|| \\n !defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\n !defined(OC_ARM_ASM_NEON)" (unary_expression) "!defined(OC_ARM_ASM)" (!) "!" (preproc_defined) "defined(OC_ARM_ASM)" (defined) "defined" (() "(" (identifier) "OC_ARM_ASM" ()) ")" (||) "||" (binary_expression) "!defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\n !defined(OC_ARM_ASM_NEON)" (binary_expression) "!defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)" (unary_expression) "!defined(OC_ARM_ASM_EDSP)" (!) "!" (preproc_defined) "defined(OC_ARM_ASM_EDSP)" (defined) "defined" (() "(" (identifier) "OC_ARM_ASM_EDSP" ()) ")" (&&) "&&" (unary_expression) "!defined(OC_ARM_ASM_MEDIA)" (!) "!" (preproc_defined) "defined(OC_ARM_ASM_MEDIA)" (defined) "defined" (() "(" (identifier) "OC_ARM_ASM_MEDIA" ()) ")" (&&) "&&" (unary_expression) "!defined(OC_ARM_ASM_NEON)" (!) "!" (preproc_defined) "defined(OC_ARM_ASM_NEON)" (defined) "defined" (() "(" (identifier) "OC_ARM_ASM_NEON" ()) ")" ( ) "\n" (function_definition) "ogg_uint32_t oc_cpu_flags_get(void){\n return 0;\n}" (type_identifier) "ogg_uint32_t" (function_declarator) "oc_cpu_flags_get(void)" (identifier) "oc_cpu_flags_get" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (preproc_elif) "#elif defined(_MSC_VER)\n/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/\n# define WIN32_LEAN_AND_MEAN\n# define WIN32_EXTRA_LEAN\n# include <windows.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}\n\n#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen("/proc/cpuinfo","r");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n flags|=OC_CPU_ARM_EDSP;\n flags|=OC_CPU_ARM_MEDIA;\n flags|=OC_CPU_ARM_NEON;\n return flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error "Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."\n" (#elif) "#elif" (preproc_defined) "defined(_MSC_VER)" (defined) "defined" (() "(" (identifier) "_MSC_VER" ()) ")" ( ) "\n" (comment) "/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/" (preproc_def) "# define WIN32_LEAN_AND_MEAN\n" (#define) "# define" (identifier) "WIN32_LEAN_AND_MEAN" (preproc_def) "# define WIN32_EXTRA_LEAN\n" (#define) "# define" (identifier) "WIN32_EXTRA_LEAN" (preproc_include) "# include <windows.h>\n" (#include) "# include" (system_lib_string) "<windows.h>" (function_definition) "ogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}" (type_identifier) "ogg_uint32_t" (function_declarator) "oc_cpu_flags_get(void)" (identifier) "oc_cpu_flags_get" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}" ({) "{" (declaration) "ogg_uint32_t flags;" (type_identifier) "ogg_uint32_t" (identifier) "flags" (;) ";" (expression_statement) "flags=0;" (assignment_expression) "flags=0" (identifier) "flags" (=) "=" (number_literal) "0" (;) ";" (comment) "/*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/" (preproc_if) "# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif" (#if) "# if" (preproc_defined) "defined(OC_ARM_ASM_EDSP)" (defined) "defined" (() "(" (identifier) "OC_ARM_ASM_EDSP" ()) ")" ( ) "\n" (seh_try_statement) "__try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }" (__try) "__try" (compound_statement) "{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }" ({) "{" (comment) "/*PLD [r13]*/" (expression_statement) "__emit(0xF5DDF000);" (call_expression) "__emit(0xF5DDF000)" (identifier) "__emit" (argument_list) "(0xF5DDF000)" (() "(" (number_literal) "0xF5DDF000" ()) ")" (;) ";" (expression_statement) "flags|=OC_CPU_ARM_EDSP;" (assignment_expression) "flags|=OC_CPU_ARM_EDSP" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_EDSP" (;) ";" (}) "}" (seh_except_clause) "__except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }" (__except) "__except" (parenthesized_expression) "(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION)" (() "(" (binary_expression) "GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION" (call_expression) "GetExceptionCode()" (identifier) "GetExceptionCode" (argument_list) "()" (() "(" ()) ")" (==) "==" (identifier) "EXCEPTION_ILLEGAL_INSTRUCTION" ()) ")" (compound_statement) "{\n /*Ignore exception.*/\n }" ({) "{" (comment) "/*Ignore exception.*/" (}) "}" (preproc_if) "# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif" (#if) "# if" (preproc_defined) "defined(OC_ARM_ASM_MEDIA)" (defined) "defined" (() "(" (identifier) "OC_ARM_ASM_MEDIA" ()) ")" ( ) "\n" (seh_try_statement) "__try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }" (__try) "__try" (compound_statement) "{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }" ({) "{" (comment) "/*SHADD8 r3,r3,r3*/" (expression_statement) "__emit(0xE6333F93);" (call_expression) "__emit(0xE6333F93)" (identifier) "__emit" (argument_list) "(0xE6333F93)" (() "(" (number_literal) "0xE6333F93" ()) ")" (;) ";" (expression_statement) "flags|=OC_CPU_ARM_MEDIA;" (assignment_expression) "flags|=OC_CPU_ARM_MEDIA" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_MEDIA" (;) ";" (}) "}" (seh_except_clause) "__except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }" (__except) "__except" (parenthesized_expression) "(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION)" (() "(" (binary_expression) "GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION" (call_expression) "GetExceptionCode()" (identifier) "GetExceptionCode" (argument_list) "()" (() "(" ()) ")" (==) "==" (identifier) "EXCEPTION_ILLEGAL_INSTRUCTION" ()) ")" (compound_statement) "{\n /*Ignore exception.*/\n }" ({) "{" (comment) "/*Ignore exception.*/" (}) "}" (preproc_if) "# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif" (#if) "# if" (preproc_defined) "defined(OC_ARM_ASM_NEON)" (defined) "defined" (() "(" (identifier) "OC_ARM_ASM_NEON" ()) ")" ( ) "\n" (seh_try_statement) "__try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }" (__try) "__try" (compound_statement) "{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }" ({) "{" (comment) "/*VORR q0,q0,q0*/" (expression_statement) "__emit(0xF2200150);" (call_expression) "__emit(0xF2200150)" (identifier) "__emit" (argument_list) "(0xF2200150)" (() "(" (number_literal) "0xF2200150" ()) ")" (;) ";" (expression_statement) "flags|=OC_CPU_ARM_NEON;" (assignment_expression) "flags|=OC_CPU_ARM_NEON" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_NEON" (;) ";" (}) "}" (seh_except_clause) "__except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }" (__except) "__except" (parenthesized_expression) "(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION)" (() "(" (binary_expression) "GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION" (call_expression) "GetExceptionCode()" (identifier) "GetExceptionCode" (argument_list) "()" (() "(" ()) ")" (==) "==" (identifier) "EXCEPTION_ILLEGAL_INSTRUCTION" ()) ")" (compound_statement) "{\n /*Ignore exception.*/\n }" ({) "{" (comment) "/*Ignore exception.*/" (}) "}" (#endif) "# endif" (#endif) "# endif" (#endif) "# endif" (return_statement) "return flags;" (return) "return" (identifier) "flags" (;) ";" (}) "}" (preproc_elif) "#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen("/proc/cpuinfo","r");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n flags|=OC_CPU_ARM_EDSP;\n flags|=OC_CPU_ARM_MEDIA;\n flags|=OC_CPU_ARM_NEON;\n return flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error "Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."\n" (#elif) "#elif" (preproc_defined) "defined(__linux__)" (defined) "defined" (() "(" (identifier) "__linux__" ()) ")" ( ) "\n" (preproc_include) "# include <stdio.h>\n" (#include) "# include" (system_lib_string) "<stdio.h>" (preproc_include) "# include <stdlib.h>\n" (#include) "# include" (system_lib_string) "<stdlib.h>" (preproc_include) "# include <string.h>\n" (#include) "# include" (system_lib_string) "<string.h>" (function_definition) "ogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen("/proc/cpuinfo","r");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}" (type_identifier) "ogg_uint32_t" (function_declarator) "oc_cpu_flags_get(void)" (identifier) "oc_cpu_flags_get" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen("/proc/cpuinfo","r");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}" ({) "{" (declaration) "ogg_uint32_t flags;" (type_identifier) "ogg_uint32_t" (identifier) "flags" (;) ";" (declaration) "FILE *fin;" (type_identifier) "FILE" (pointer_declarator) "*fin" (*) "*" (identifier) "fin" (;) ";" (expression_statement) "flags=0;" (assignment_expression) "flags=0" (identifier) "flags" (=) "=" (number_literal) "0" (;) ";" (comment) "/*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/" (expression_statement) "fin=fopen("/proc/cpuinfo","r");" (assignment_expression) "fin=fopen("/proc/cpuinfo","r")" (identifier) "fin" (=) "=" (call_expression) "fopen("/proc/cpuinfo","r")" (identifier) "fopen" (argument_list) "("/proc/cpuinfo","r")" (() "(" (string_literal) ""/proc/cpuinfo"" (") """ (string_content) "/proc/cpuinfo" (") """ (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (if_statement) "if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }" (if) "if" (parenthesized_expression) "(fin!=NULL)" (() "(" (binary_expression) "fin!=NULL" (identifier) "fin" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }" ({) "{" (comment) "/*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/" (declaration) "char buf[512];" (primitive_type) "char" (array_declarator) "buf[512]" (identifier) "buf" ([) "[" (number_literal) "512" (]) "]" (;) ";" (while_statement) "while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }" (while) "while" (parenthesized_expression) "(fgets(buf,511,fin)!=NULL)" (() "(" (binary_expression) "fgets(buf,511,fin)!=NULL" (call_expression) "fgets(buf,511,fin)" (identifier) "fgets" (argument_list) "(buf,511,fin)" (() "(" (identifier) "buf" (,) "," (number_literal) "511" (,) "," (identifier) "fin" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }" ({) "{" (if_statement) "if(memcmp(buf,"Features",8)==0){\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }" (if) "if" (parenthesized_expression) "(memcmp(buf,"Features",8)==0)" (() "(" (binary_expression) "memcmp(buf,"Features",8)==0" (call_expression) "memcmp(buf,"Features",8)" (identifier) "memcmp" (argument_list) "(buf,"Features",8)" (() "(" (identifier) "buf" (,) "," (string_literal) ""Features"" (") """ (string_content) "Features" (") """ (,) "," (number_literal) "8" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n char *p;\n p=strstr(buf," edsp");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf," neon");\n if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;\n }" ({) "{" (declaration) "char *p;" (primitive_type) "char" (pointer_declarator) "*p" (*) "*" (identifier) "p" (;) ";" (expression_statement) "p=strstr(buf," edsp");" (assignment_expression) "p=strstr(buf," edsp")" (identifier) "p" (=) "=" (call_expression) "strstr(buf," edsp")" (identifier) "strstr" (argument_list) "(buf," edsp")" (() "(" (identifier) "buf" (,) "," (string_literal) "" edsp"" (") """ (string_content) " edsp" (") """ ()) ")" (;) ";" (if_statement) "if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_EDSP;" (if) "if" (parenthesized_expression) "(p!=NULL&&(p[5]==' '||p[5]=='\n'))" (() "(" (binary_expression) "p!=NULL&&(p[5]==' '||p[5]=='\n')" (binary_expression) "p!=NULL" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (parenthesized_expression) "(p[5]==' '||p[5]=='\n')" (() "(" (binary_expression) "p[5]==' '||p[5]=='\n'" (binary_expression) "p[5]==' '" (subscript_expression) "p[5]" (identifier) "p" ([) "[" (number_literal) "5" (]) "]" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" (||) "||" (binary_expression) "p[5]=='\n'" (subscript_expression) "p[5]" (identifier) "p" ([) "[" (number_literal) "5" (]) "]" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" ()) ")" (expression_statement) "flags|=OC_CPU_ARM_EDSP;" (assignment_expression) "flags|=OC_CPU_ARM_EDSP" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_EDSP" (;) ";" (expression_statement) "p=strstr(buf," neon");" (assignment_expression) "p=strstr(buf," neon")" (identifier) "p" (=) "=" (call_expression) "strstr(buf," neon")" (identifier) "strstr" (argument_list) "(buf," neon")" (() "(" (identifier) "buf" (,) "," (string_literal) "" neon"" (") """ (string_content) " neon" (") """ ()) ")" (;) ";" (if_statement) "if(p!=NULL&&(p[5]==' '||p[5]=='\n'))flags|=OC_CPU_ARM_NEON;" (if) "if" (parenthesized_expression) "(p!=NULL&&(p[5]==' '||p[5]=='\n'))" (() "(" (binary_expression) "p!=NULL&&(p[5]==' '||p[5]=='\n')" (binary_expression) "p!=NULL" (identifier) "p" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (parenthesized_expression) "(p[5]==' '||p[5]=='\n')" (() "(" (binary_expression) "p[5]==' '||p[5]=='\n'" (binary_expression) "p[5]==' '" (subscript_expression) "p[5]" (identifier) "p" ([) "[" (number_literal) "5" (]) "]" (==) "==" (char_literal) "' '" (') "'" (character) " " (') "'" (||) "||" (binary_expression) "p[5]=='\n'" (subscript_expression) "p[5]" (identifier) "p" ([) "[" (number_literal) "5" (]) "]" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" ()) ")" (expression_statement) "flags|=OC_CPU_ARM_NEON;" (assignment_expression) "flags|=OC_CPU_ARM_NEON" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_NEON" (;) ";" (}) "}" (if_statement) "if(memcmp(buf,"CPU architecture:",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }" (if) "if" (parenthesized_expression) "(memcmp(buf,"CPU architecture:",17)==0)" (() "(" (binary_expression) "memcmp(buf,"CPU architecture:",17)==0" (call_expression) "memcmp(buf,"CPU architecture:",17)" (identifier) "memcmp" (argument_list) "(buf,"CPU architecture:",17)" (() "(" (identifier) "buf" (,) "," (string_literal) ""CPU architecture:"" (") """ (string_content) "CPU architecture:" (") """ (,) "," (number_literal) "17" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }" ({) "{" (declaration) "int version;" (primitive_type) "int" (identifier) "version" (;) ";" (expression_statement) "version=atoi(buf+17);" (assignment_expression) "version=atoi(buf+17)" (identifier) "version" (=) "=" (call_expression) "atoi(buf+17)" (identifier) "atoi" (argument_list) "(buf+17)" (() "(" (binary_expression) "buf+17" (identifier) "buf" (+) "+" (number_literal) "17" ()) ")" (;) ";" (if_statement) "if(version>=6)flags|=OC_CPU_ARM_MEDIA;" (if) "if" (parenthesized_expression) "(version>=6)" (() "(" (binary_expression) "version>=6" (identifier) "version" (>=) ">=" (number_literal) "6" ()) ")" (expression_statement) "flags|=OC_CPU_ARM_MEDIA;" (assignment_expression) "flags|=OC_CPU_ARM_MEDIA" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_MEDIA" (;) ";" (}) "}" (}) "}" (expression_statement) "fclose(fin);" (call_expression) "fclose(fin)" (identifier) "fclose" (argument_list) "(fin)" (() "(" (identifier) "fin" ()) ")" (;) ";" (}) "}" (return_statement) "return flags;" (return) "return" (identifier) "flags" (;) ";" (}) "}" (preproc_elif) "#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n flags|=OC_CPU_ARM_EDSP;\n flags|=OC_CPU_ARM_MEDIA;\n flags|=OC_CPU_ARM_NEON;\n return flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error "Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."\n" (#elif) "#elif" (preproc_defined) "defined(_IOS)" (defined) "defined" (() "(" (identifier) "_IOS" ()) ")" ( ) "\n\n" (function_definition) "ogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n flags|=OC_CPU_ARM_EDSP;\n flags|=OC_CPU_ARM_MEDIA;\n flags|=OC_CPU_ARM_NEON;\n return flags;\n}" (type_identifier) "ogg_uint32_t" (function_declarator) "oc_cpu_flags_get(void)" (identifier) "oc_cpu_flags_get" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n ogg_uint32_t flags;\n flags=0;\n flags|=OC_CPU_ARM_EDSP;\n flags|=OC_CPU_ARM_MEDIA;\n flags|=OC_CPU_ARM_NEON;\n return flags;\n}" ({) "{" (declaration) "ogg_uint32_t flags;" (type_identifier) "ogg_uint32_t" (identifier) "flags" (;) ";" (expression_statement) "flags=0;" (assignment_expression) "flags=0" (identifier) "flags" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "flags|=OC_CPU_ARM_EDSP;" (assignment_expression) "flags|=OC_CPU_ARM_EDSP" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_EDSP" (;) ";" (expression_statement) "flags|=OC_CPU_ARM_MEDIA;" (assignment_expression) "flags|=OC_CPU_ARM_MEDIA" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_MEDIA" (;) ";" (expression_statement) "flags|=OC_CPU_ARM_NEON;" (assignment_expression) "flags|=OC_CPU_ARM_NEON" (identifier) "flags" (|=) "|=" (identifier) "OC_CPU_ARM_NEON" (;) ";" (return_statement) "return flags;" (return) "return" (identifier) "flags" (;) ";" (}) "}" (preproc_else) "#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error "Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."\n" (#else) "#else" (comment) "/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/" (preproc_call) "# error "Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."\n" (preproc_directive) "# error" (preproc_arg) ""Configured to use ARM asm but no CPU detection method available for " \\n "your platform. Reconfigure with --disable-asm (or send patches)."" (#endif) "#endif"
633
0
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 33.19, "nodes": 396, "errors": 0, "source_hash": "084987cbd37fb8bc013f1ef67b922158af10b5edba64e3656949dc4a13b8540c", "categorized_nodes": 269}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"armcpu.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"armcpu.h\"", "parent": 0, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 19}}, {"id": 3, "type": "preproc_if", "text": "#if !defined(OC_ARM_ASM)|| \\\n !defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\\n !defined(OC_ARM_ASM_NEON)\nogg_uint32_t oc_cpu_flags_get(void){\n return 0;\n}\n\n#elif defined(_MSC_VER)\n/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/\n# define WIN32_LEAN_AND_MEAN\n# define WIN32_EXTRA_LEAN\n# include <windows.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}\n\n#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen(\"/proc/cpuinfo\",\"r\");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n\togg_uint32_t flags;\n\tflags=0;\n\tflags|=OC_CPU_ARM_EDSP;\n\tflags|=OC_CPU_ARM_MEDIA;\n\tflags|=OC_CPU_ARM_NEON;\n\treturn flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error \"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"\n#endif", "parent": null, "children": [4, 5, 31, 32, 41, 395], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 126, "column": 6}}, {"id": 4, "type": "#if", "text": "#if", "parent": 3, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 5, "type": "binary_expression", "text": "!defined(OC_ARM_ASM)|| \\\n !defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\\n !defined(OC_ARM_ASM_NEON)", "parent": 3, "children": [6, 11, 12], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 23, "column": 26}}, {"id": 6, "type": "unary_expression", "text": "!defined(OC_ARM_ASM)", "parent": 5, "children": [7, 8], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 24}}, {"id": 7, "type": "!", "text": "!", "parent": 6, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 5}}, {"id": 8, "type": "preproc_defined", "text": "defined(OC_ARM_ASM)", "parent": 6, "children": [9, 10], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 24}}, {"id": 9, "type": "defined", "text": "defined", "parent": 8, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 12}}, {"id": 10, "type": "identifier", "text": "OC_ARM_ASM", "parent": 8, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 23}}, {"id": 11, "type": "||", "text": "||", "parent": 5, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 26}}, {"id": 12, "type": "binary_expression", "text": "!defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\\n !defined(OC_ARM_ASM_NEON)", "parent": 5, "children": [13, 25, 26], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 23, "column": 26}}, {"id": 13, "type": "binary_expression", "text": "!defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)", "parent": 12, "children": [14, 19, 20], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 54}}, {"id": 14, "type": "unary_expression", "text": "!defined(OC_ARM_ASM_EDSP)", "parent": 13, "children": [15, 16], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 26}}, {"id": 15, "type": "!", "text": "!", "parent": 14, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 2}}, {"id": 16, "type": "preproc_defined", "text": "defined(OC_ARM_ASM_EDSP)", "parent": 14, "children": [17, 18], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 26}}, {"id": 17, "type": "defined", "text": "defined", "parent": 16, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 18, "type": "identifier", "text": "OC_ARM_ASM_EDSP", "parent": 16, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 25}}, {"id": 19, "type": "&&", "text": "&&", "parent": 13, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 28}}, {"id": 20, "type": "unary_expression", "text": "!defined(OC_ARM_ASM_MEDIA)", "parent": 13, "children": [21, 22], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 54}}, {"id": 21, "type": "!", "text": "!", "parent": 20, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 29}}, {"id": 22, "type": "preproc_defined", "text": "defined(OC_ARM_ASM_MEDIA)", "parent": 20, "children": [23, 24], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 54}}, {"id": 23, "type": "defined", "text": "defined", "parent": 22, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 36}}, {"id": 24, "type": "identifier", "text": "OC_ARM_ASM_MEDIA", "parent": 22, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 53}}, {"id": 25, "type": "&&", "text": "&&", "parent": 12, "children": [], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 22, "column": 56}}, {"id": 26, "type": "unary_expression", "text": "!defined(OC_ARM_ASM_NEON)", "parent": 12, "children": [27, 28], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 26}}, {"id": 27, "type": "!", "text": "!", "parent": 26, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 2}}, {"id": 28, "type": "preproc_defined", "text": "defined(OC_ARM_ASM_NEON)", "parent": 26, "children": [29, 30], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 26}}, {"id": 29, "type": "defined", "text": "defined", "parent": 28, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 9}}, {"id": 30, "type": "identifier", "text": "OC_ARM_ASM_NEON", "parent": 28, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 25}}, {"id": 31, "type": "\n", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 24, "column": 0}}, {"id": 32, "type": "function_definition", "text": "ogg_uint32_t oc_cpu_flags_get(void){\n return 0;\n}", "parent": 3, "children": [33, 34], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 33, "type": "type_identifier", "text": "ogg_uint32_t", "parent": 32, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 12}}, {"id": 34, "type": "function_declarator", "text": "oc_cpu_flags_get(void)", "parent": 32, "children": [35, 36], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 35}}, {"id": 35, "type": "identifier", "text": "oc_cpu_flags_get", "parent": 34, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 29}}, {"id": 36, "type": "parameter_list", "text": "(void)", "parent": 34, "children": [37], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 35}}, {"id": 37, "type": "parameter_declaration", "text": "void", "parent": 36, "children": [38], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 34}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 34}}, {"id": 39, "type": "return_statement", "text": "return 0;", "parent": 32, "children": [40], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 11}}, {"id": 40, "type": "number_literal", "text": "0", "parent": 39, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 10}}, {"id": 41, "type": "preproc_elif", "text": "#elif defined(_MSC_VER)\n/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/\n# define WIN32_LEAN_AND_MEAN\n# define WIN32_EXTRA_LEAN\n# include <windows.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}\n\n#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen(\"/proc/cpuinfo\",\"r\");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n\togg_uint32_t flags;\n\tflags=0;\n\tflags|=OC_CPU_ARM_EDSP;\n\tflags|=OC_CPU_ARM_MEDIA;\n\tflags|=OC_CPU_ARM_NEON;\n\treturn flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error \"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"\n", "parent": 3, "children": [42, 43, 46, 47, 50, 53, 56, 150], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 42, "type": "#elif", "text": "#elif", "parent": 41, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 5}}, {"id": 43, "type": "preproc_defined", "text": "defined(_MSC_VER)", "parent": 41, "children": [44, 45], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 23}}, {"id": 44, "type": "defined", "text": "defined", "parent": 43, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 13}}, {"id": 45, "type": "identifier", "text": "_MSC_VER", "parent": 43, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 22}}, {"id": 46, "type": "\n", "text": "\n", "parent": 41, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 29, "column": 0}}, {"id": 47, "type": "preproc_def", "text": "# define WIN32_LEAN_AND_MEAN\n", "parent": 41, "children": [48, 49], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 48, "type": "#define", "text": "# define", "parent": 47, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 49, "type": "identifier", "text": "WIN32_LEAN_AND_MEAN", "parent": 47, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 28}}, {"id": 50, "type": "preproc_def", "text": "# define WIN32_EXTRA_LEAN\n", "parent": 41, "children": [51, 52], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 51, "type": "#define", "text": "# define", "parent": 50, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 52, "type": "identifier", "text": "WIN32_EXTRA_LEAN", "parent": 50, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 25}}, {"id": 53, "type": "preproc_include", "text": "# include <windows.h>\n", "parent": 41, "children": [54, 55], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 54, "type": "#include", "text": "# include", "parent": 53, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 9}}, {"id": 55, "type": "system_lib_string", "text": "<windows.h>", "parent": 53, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 21}}, {"id": 56, "type": "function_definition", "text": "ogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}", "parent": 41, "children": [57, 58], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 57, "type": "type_identifier", "text": "ogg_uint32_t", "parent": 56, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 12}}, {"id": 58, "type": "function_declarator", "text": "oc_cpu_flags_get(void)", "parent": 56, "children": [59, 60], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 35}}, {"id": 59, "type": "identifier", "text": "oc_cpu_flags_get", "parent": 58, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 29}}, {"id": 60, "type": "parameter_list", "text": "(void)", "parent": 58, "children": [61], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 35}}, {"id": 61, "type": "parameter_declaration", "text": "void", "parent": 60, "children": [62], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 34}}, {"id": 62, "type": "primitive_type", "text": "void", "parent": 61, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 34}}, {"id": 63, "type": "declaration", "text": "ogg_uint32_t flags;", "parent": 56, "children": [64, 65], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 21}}, {"id": 64, "type": "type_identifier", "text": "ogg_uint32_t", "parent": 63, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 14}}, {"id": 65, "type": "identifier", "text": "flags", "parent": 63, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 20}}, {"id": 66, "type": "assignment_expression", "text": "flags=0", "parent": 56, "children": [67, 68, 69], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 67, "type": "identifier", "text": "flags", "parent": 66, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 7}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 8}}, {"id": 69, "type": "number_literal", "text": "0", "parent": 66, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 9}}, {"id": 70, "type": "preproc_if", "text": "# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif", "parent": 56, "children": [71, 72, 75, 76, 95, 147], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 69, "column": 7}}, {"id": 71, "type": "#if", "text": "# if", "parent": 70, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 72, "type": "preproc_defined", "text": "defined(OC_ARM_ASM_EDSP)", "parent": 70, "children": [73, 74], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 29}}, {"id": 73, "type": "defined", "text": "defined", "parent": 72, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 12}}, {"id": 74, "type": "identifier", "text": "OC_ARM_ASM_EDSP", "parent": 72, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 28}}, {"id": 75, "type": "\n", "text": "\n", "parent": 70, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 41, "column": 0}}, {"id": 76, "type": "seh_try_statement", "text": "__try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }", "parent": 70, "children": [77, 86], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 48, "column": 3}}, {"id": 77, "type": "__try", "text": "__try", "parent": 76, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 7}}, {"id": 78, "type": "call_expression", "text": "__emit(0xF5DDF000)", "parent": 76, "children": [79, 80], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 22}}, {"id": 79, "type": "identifier", "text": "__emit", "parent": 78, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 10}}, {"id": 80, "type": "argument_list", "text": "(0xF5DDF000)", "parent": 78, "children": [81], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 22}}, {"id": 81, "type": "number_literal", "text": "0xF5DDF000", "parent": 80, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 21}}, {"id": 82, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_EDSP", "parent": 76, "children": [83, 84, 85], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 26}}, {"id": 83, "type": "identifier", "text": "flags", "parent": 82, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 9}}, {"id": 84, "type": "|=", "text": "|=", "parent": 82, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 11}}, {"id": 85, "type": "identifier", "text": "OC_CPU_ARM_EDSP", "parent": 82, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 26}}, {"id": 86, "type": "seh_except_clause", "text": "__except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }", "parent": 76, "children": [87, 88], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 48, "column": 3}}, {"id": 87, "type": "__except", "text": "__except", "parent": 86, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 10}}, {"id": 88, "type": "parenthesized_expression", "text": "(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION)", "parent": 86, "children": [89], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 61}}, {"id": 89, "type": "binary_expression", "text": "GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION", "parent": 88, "children": [90, 93, 94], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 60}}, {"id": 90, "type": "call_expression", "text": "GetExceptionCode()", "parent": 89, "children": [91, 92], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 29}}, {"id": 91, "type": "identifier", "text": "GetExceptionCode", "parent": 90, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 27}}, {"id": 92, "type": "argument_list", "text": "()", "parent": 90, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 29}}, {"id": 93, "type": "==", "text": "==", "parent": 89, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 31}}, {"id": 94, "type": "identifier", "text": "EXCEPTION_ILLEGAL_INSTRUCTION", "parent": 89, "children": [], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 60}}, {"id": 95, "type": "preproc_if", "text": "# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif", "parent": 70, "children": [96, 97, 100, 101, 120, 146], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 68, "column": 8}}, {"id": 96, "type": "#if", "text": "# if", "parent": 95, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 5}}, {"id": 97, "type": "preproc_defined", "text": "defined(OC_ARM_ASM_MEDIA)", "parent": 95, "children": [98, 99], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 31}}, {"id": 98, "type": "defined", "text": "defined", "parent": 97, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 13}}, {"id": 99, "type": "identifier", "text": "OC_ARM_ASM_MEDIA", "parent": 97, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 30}}, {"id": 100, "type": "\n", "text": "\n", "parent": 95, "children": [], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 50, "column": 0}}, {"id": 101, "type": "seh_try_statement", "text": "__try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }", "parent": 95, "children": [102, 111], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 57, "column": 3}}, {"id": 102, "type": "__try", "text": "__try", "parent": 101, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 7}}, {"id": 103, "type": "call_expression", "text": "__emit(0xE6333F93)", "parent": 101, "children": [104, 105], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 22}}, {"id": 104, "type": "identifier", "text": "__emit", "parent": 103, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 105, "type": "argument_list", "text": "(0xE6333F93)", "parent": 103, "children": [106], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 22}}, {"id": 106, "type": "number_literal", "text": "0xE6333F93", "parent": 105, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 21}}, {"id": 107, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_MEDIA", "parent": 101, "children": [108, 109, 110], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 27}}, {"id": 108, "type": "identifier", "text": "flags", "parent": 107, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 9}}, {"id": 109, "type": "|=", "text": "|=", "parent": 107, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 11}}, {"id": 110, "type": "identifier", "text": "OC_CPU_ARM_MEDIA", "parent": 107, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 27}}, {"id": 111, "type": "seh_except_clause", "text": "__except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }", "parent": 101, "children": [112, 113], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 57, "column": 3}}, {"id": 112, "type": "__except", "text": "__except", "parent": 111, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 10}}, {"id": 113, "type": "parenthesized_expression", "text": "(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION)", "parent": 111, "children": [114], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 61}}, {"id": 114, "type": "binary_expression", "text": "GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION", "parent": 113, "children": [115, 118, 119], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 60}}, {"id": 115, "type": "call_expression", "text": "GetExceptionCode()", "parent": 114, "children": [116, 117], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 29}}, {"id": 116, "type": "identifier", "text": "GetExceptionCode", "parent": 115, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 27}}, {"id": 117, "type": "argument_list", "text": "()", "parent": 115, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 29}}, {"id": 118, "type": "==", "text": "==", "parent": 114, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 31}}, {"id": 119, "type": "identifier", "text": "EXCEPTION_ILLEGAL_INSTRUCTION", "parent": 114, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 60}}, {"id": 120, "type": "preproc_if", "text": "# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif", "parent": 95, "children": [121, 122, 125, 126, 145], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 67, "column": 9}}, {"id": 121, "type": "#if", "text": "# if", "parent": 120, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 122, "type": "preproc_defined", "text": "defined(OC_ARM_ASM_NEON)", "parent": 120, "children": [123, 124], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 31}}, {"id": 123, "type": "defined", "text": "defined", "parent": 122, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 14}}, {"id": 124, "type": "identifier", "text": "OC_ARM_ASM_NEON", "parent": 122, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 30}}, {"id": 125, "type": "\n", "text": "\n", "parent": 120, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 59, "column": 0}}, {"id": 126, "type": "seh_try_statement", "text": "__try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }", "parent": 120, "children": [127, 136], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 66, "column": 3}}, {"id": 127, "type": "__try", "text": "__try", "parent": 126, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 7}}, {"id": 128, "type": "call_expression", "text": "__emit(0xF2200150)", "parent": 126, "children": [129, 130], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 22}}, {"id": 129, "type": "identifier", "text": "__emit", "parent": 128, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 10}}, {"id": 130, "type": "argument_list", "text": "(0xF2200150)", "parent": 128, "children": [131], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 22}}, {"id": 131, "type": "number_literal", "text": "0xF2200150", "parent": 130, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 21}}, {"id": 132, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_NEON", "parent": 126, "children": [133, 134, 135], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 26}}, {"id": 133, "type": "identifier", "text": "flags", "parent": 132, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 9}}, {"id": 134, "type": "|=", "text": "|=", "parent": 132, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 11}}, {"id": 135, "type": "identifier", "text": "OC_CPU_ARM_NEON", "parent": 132, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 26}}, {"id": 136, "type": "seh_except_clause", "text": "__except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }", "parent": 126, "children": [137, 138], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 66, "column": 3}}, {"id": 137, "type": "__except", "text": "__except", "parent": 136, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 10}}, {"id": 138, "type": "parenthesized_expression", "text": "(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION)", "parent": 136, "children": [139], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 61}}, {"id": 139, "type": "binary_expression", "text": "GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION", "parent": 138, "children": [140, 143, 144], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 60}}, {"id": 140, "type": "call_expression", "text": "GetExceptionCode()", "parent": 139, "children": [141, 142], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 29}}, {"id": 141, "type": "identifier", "text": "GetExceptionCode", "parent": 140, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 27}}, {"id": 142, "type": "argument_list", "text": "()", "parent": 140, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 29}}, {"id": 143, "type": "==", "text": "==", "parent": 139, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 31}}, {"id": 144, "type": "identifier", "text": "EXCEPTION_ILLEGAL_INSTRUCTION", "parent": 139, "children": [], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 60}}, {"id": 145, "type": "#endif", "text": "# endif", "parent": 120, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 9}}, {"id": 146, "type": "#endif", "text": "# endif", "parent": 95, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 8}}, {"id": 147, "type": "#endif", "text": "# endif", "parent": 70, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 7}}, {"id": 148, "type": "return_statement", "text": "return flags;", "parent": 56, "children": [149], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 15}}, {"id": 149, "type": "identifier", "text": "flags", "parent": 148, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 14}}, {"id": 150, "type": "preproc_elif", "text": "#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen(\"/proc/cpuinfo\",\"r\");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n\togg_uint32_t flags;\n\tflags=0;\n\tflags|=OC_CPU_ARM_EDSP;\n\tflags|=OC_CPU_ARM_MEDIA;\n\tflags|=OC_CPU_ARM_NEON;\n\treturn flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error \"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"\n", "parent": 41, "children": [151, 152, 155, 156, 159, 162, 165, 356], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 151, "type": "#elif", "text": "#elif", "parent": 150, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 5}}, {"id": 152, "type": "preproc_defined", "text": "defined(__linux__)", "parent": 150, "children": [153, 154], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 24}}, {"id": 153, "type": "defined", "text": "defined", "parent": 152, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 13}}, {"id": 154, "type": "identifier", "text": "__linux__", "parent": 152, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 23}}, {"id": 155, "type": "\n", "text": "\n", "parent": 150, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 74, "column": 0}}, {"id": 156, "type": "preproc_include", "text": "# include <stdio.h>\n", "parent": 150, "children": [157, 158], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 157, "type": "#include", "text": "# include", "parent": 156, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 9}}, {"id": 158, "type": "system_lib_string", "text": "<stdio.h>", "parent": 156, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 19}}, {"id": 159, "type": "preproc_include", "text": "# include <stdlib.h>\n", "parent": 150, "children": [160, 161], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 76, "column": 0}}, {"id": 160, "type": "#include", "text": "# include", "parent": 159, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 9}}, {"id": 161, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 159, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 20}}, {"id": 162, "type": "preproc_include", "text": "# include <string.h>\n", "parent": 150, "children": [163, 164], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 163, "type": "#include", "text": "# include", "parent": 162, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 9}}, {"id": 164, "type": "system_lib_string", "text": "<string.h>", "parent": 162, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 20}}, {"id": 165, "type": "function_definition", "text": "ogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen(\"/proc/cpuinfo\",\"r\");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}", "parent": 150, "children": [166, 167], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 107, "column": 1}}, {"id": 166, "type": "type_identifier", "text": "ogg_uint32_t", "parent": 165, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 12}}, {"id": 167, "type": "function_declarator", "text": "oc_cpu_flags_get(void)", "parent": 165, "children": [168, 169], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 35}}, {"id": 168, "type": "identifier", "text": "oc_cpu_flags_get", "parent": 167, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 29}}, {"id": 169, "type": "parameter_list", "text": "(void)", "parent": 167, "children": [170], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 35}}, {"id": 170, "type": "parameter_declaration", "text": "void", "parent": 169, "children": [171], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 34}}, {"id": 171, "type": "primitive_type", "text": "void", "parent": 170, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 34}}, {"id": 172, "type": "declaration", "text": "ogg_uint32_t flags;", "parent": 165, "children": [173, 174], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 22}}, {"id": 173, "type": "type_identifier", "text": "ogg_uint32_t", "parent": 172, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 14}}, {"id": 174, "type": "identifier", "text": "flags", "parent": 172, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 21}}, {"id": 175, "type": "declaration", "text": "FILE *fin;", "parent": 165, "children": [176, 177], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 20}}, {"id": 176, "type": "type_identifier", "text": "FILE", "parent": 175, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 6}}, {"id": 177, "type": "pointer_declarator", "text": "*fin", "parent": 175, "children": [178, 179], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 19}}, {"id": 178, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 16}}, {"id": 179, "type": "identifier", "text": "fin", "parent": 177, "children": [], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 19}}, {"id": 180, "type": "assignment_expression", "text": "flags=0", "parent": 165, "children": [181, 182, 183], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 9}}, {"id": 181, "type": "identifier", "text": "flags", "parent": 180, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 7}}, {"id": 182, "type": "=", "text": "=", "parent": 180, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 8}}, {"id": 183, "type": "number_literal", "text": "0", "parent": 180, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 9}}, {"id": 184, "type": "assignment_expression", "text": "fin=fopen(\"/proc/cpuinfo\",\"r\")", "parent": 165, "children": [185, 186, 187], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 32}}, {"id": 185, "type": "identifier", "text": "fin", "parent": 184, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 5}}, {"id": 186, "type": "=", "text": "=", "parent": 184, "children": [], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 6}}, {"id": 187, "type": "call_expression", "text": "fopen(\"/proc/cpuinfo\",\"r\")", "parent": 184, "children": [188, 189], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 32}}, {"id": 188, "type": "identifier", "text": "fopen", "parent": 187, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 11}}, {"id": 189, "type": "argument_list", "text": "(\"/proc/cpuinfo\",\"r\")", "parent": 187, "children": [190, 191], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 32}}, {"id": 190, "type": "string_literal", "text": "\"/proc/cpuinfo\"", "parent": 189, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 27}}, {"id": 191, "type": "string_literal", "text": "\"r\"", "parent": 189, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 31}}, {"id": 192, "type": "if_statement", "text": "if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }", "parent": 165, "children": [193], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 105, "column": 3}}, {"id": 193, "type": "parenthesized_expression", "text": "(fin!=NULL)", "parent": 192, "children": [194], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 15}}, {"id": 194, "type": "binary_expression", "text": "fin!=NULL", "parent": 193, "children": [195, 196, 197], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 14}}, {"id": 195, "type": "identifier", "text": "fin", "parent": 194, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 8}}, {"id": 196, "type": "!=", "text": "!=", "parent": 194, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 10}}, {"id": 197, "type": "null", "text": "NULL", "parent": 194, "children": [198], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 14}}, {"id": 198, "type": "NULL", "text": "NULL", "parent": 197, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 14}}, {"id": 199, "type": "declaration", "text": "char buf[512];", "parent": 192, "children": [200, 201], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 18}}, {"id": 200, "type": "primitive_type", "text": "char", "parent": 199, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 8}}, {"id": 201, "type": "array_declarator", "text": "buf[512]", "parent": 199, "children": [202, 203], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 17}}, {"id": 202, "type": "identifier", "text": "buf", "parent": 201, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 12}}, {"id": 203, "type": "number_literal", "text": "512", "parent": 201, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 16}}, {"id": 204, "type": "while_statement", "text": "while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }", "parent": 192, "children": [205], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 103, "column": 5}}, {"id": 205, "type": "parenthesized_expression", "text": "(fgets(buf,511,fin)!=NULL)", "parent": 204, "children": [206], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 35}}, {"id": 206, "type": "binary_expression", "text": "fgets(buf,511,fin)!=NULL", "parent": 205, "children": [207, 213, 214], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 34}}, {"id": 207, "type": "call_expression", "text": "fgets(buf,511,fin)", "parent": 206, "children": [208, 209], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 28}}, {"id": 208, "type": "identifier", "text": "fgets", "parent": 207, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 15}}, {"id": 209, "type": "argument_list", "text": "(buf,511,fin)", "parent": 207, "children": [210, 211, 212], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 28}}, {"id": 210, "type": "identifier", "text": "buf", "parent": 209, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 19}}, {"id": 211, "type": "number_literal", "text": "511", "parent": 209, "children": [], "start_point": {"row": 90, "column": 20}, "end_point": {"row": 90, "column": 23}}, {"id": 212, "type": "identifier", "text": "fin", "parent": 209, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 27}}, {"id": 213, "type": "!=", "text": "!=", "parent": 206, "children": [], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 30}}, {"id": 214, "type": "null", "text": "NULL", "parent": 206, "children": [215], "start_point": {"row": 90, "column": 30}, "end_point": {"row": 90, "column": 34}}, {"id": 215, "type": "NULL", "text": "NULL", "parent": 214, "children": [], "start_point": {"row": 90, "column": 30}, "end_point": {"row": 90, "column": 34}}, {"id": 216, "type": "if_statement", "text": "if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }", "parent": 204, "children": [217], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 97, "column": 7}}, {"id": 217, "type": "parenthesized_expression", "text": "(memcmp(buf,\"Features\",8)==0)", "parent": 216, "children": [218], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 37}}, {"id": 218, "type": "binary_expression", "text": "memcmp(buf,\"Features\",8)==0", "parent": 217, "children": [219, 225, 226], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 36}}, {"id": 219, "type": "call_expression", "text": "memcmp(buf,\"Features\",8)", "parent": 218, "children": [220, 221], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 33}}, {"id": 220, "type": "identifier", "text": "memcmp", "parent": 219, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 15}}, {"id": 221, "type": "argument_list", "text": "(buf,\"Features\",8)", "parent": 219, "children": [222, 223, 224], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 33}}, {"id": 222, "type": "identifier", "text": "buf", "parent": 221, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 19}}, {"id": 223, "type": "string_literal", "text": "\"Features\"", "parent": 221, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 30}}, {"id": 224, "type": "number_literal", "text": "8", "parent": 221, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 32}}, {"id": 225, "type": "==", "text": "==", "parent": 218, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 35}}, {"id": 226, "type": "number_literal", "text": "0", "parent": 218, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 36}}, {"id": 227, "type": "declaration", "text": "char *p;", "parent": 216, "children": [228, 229], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 16}}, {"id": 228, "type": "primitive_type", "text": "char", "parent": 227, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 12}}, {"id": 229, "type": "pointer_declarator", "text": "*p", "parent": 227, "children": [230, 231], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 15}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 14}}, {"id": 231, "type": "identifier", "text": "p", "parent": 229, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 15}}, {"id": 232, "type": "assignment_expression", "text": "p=strstr(buf,\" edsp\")", "parent": 216, "children": [233, 234, 235], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 29}}, {"id": 233, "type": "identifier", "text": "p", "parent": 232, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 234, "type": "=", "text": "=", "parent": 232, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 10}}, {"id": 235, "type": "call_expression", "text": "strstr(buf,\" edsp\")", "parent": 232, "children": [236, 237], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 29}}, {"id": 236, "type": "identifier", "text": "strstr", "parent": 235, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 16}}, {"id": 237, "type": "argument_list", "text": "(buf,\" edsp\")", "parent": 235, "children": [238, 239], "start_point": {"row": 93, "column": 16}, "end_point": {"row": 93, "column": 29}}, {"id": 238, "type": "identifier", "text": "buf", "parent": 237, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 20}}, {"id": 239, "type": "string_literal", "text": "\" edsp\"", "parent": 237, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 28}}, {"id": 240, "type": "if_statement", "text": "if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;", "parent": 216, "children": [241], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 67}}, {"id": 241, "type": "parenthesized_expression", "text": "(p!=NULL&&(p[5]==' '||p[5]=='\\n'))", "parent": 240, "children": [242], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 44}}, {"id": 242, "type": "binary_expression", "text": "p!=NULL&&(p[5]==' '||p[5]=='\\n')", "parent": 241, "children": [243, 248, 249], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 43}}, {"id": 243, "type": "binary_expression", "text": "p!=NULL", "parent": 242, "children": [244, 245, 246], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 18}}, {"id": 244, "type": "identifier", "text": "p", "parent": 243, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 12}}, {"id": 245, "type": "!=", "text": "!=", "parent": 243, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 14}}, {"id": 246, "type": "null", "text": "NULL", "parent": 243, "children": [247], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 18}}, {"id": 247, "type": "NULL", "text": "NULL", "parent": 246, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 18}}, {"id": 248, "type": "&&", "text": "&&", "parent": 242, "children": [], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 20}}, {"id": 249, "type": "parenthesized_expression", "text": "(p[5]==' '||p[5]=='\\n')", "parent": 242, "children": [250], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 43}}, {"id": 250, "type": "binary_expression", "text": "p[5]==' '||p[5]=='\\n'", "parent": 249, "children": [251, 260, 261], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 42}}, {"id": 251, "type": "binary_expression", "text": "p[5]==' '", "parent": 250, "children": [252, 255, 256], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 30}}, {"id": 252, "type": "subscript_expression", "text": "p[5]", "parent": 251, "children": [253, 254], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 25}}, {"id": 253, "type": "identifier", "text": "p", "parent": 252, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 22}}, {"id": 254, "type": "number_literal", "text": "5", "parent": 252, "children": [], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 24}}, {"id": 255, "type": "==", "text": "==", "parent": 251, "children": [], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 27}}, {"id": 256, "type": "char_literal", "text": "' '", "parent": 251, "children": [257, 258, 259], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 30}}, {"id": 257, "type": "'", "text": "'", "parent": 256, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 28}}, {"id": 258, "type": "character", "text": " ", "parent": 256, "children": [], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 29}}, {"id": 259, "type": "'", "text": "'", "parent": 256, "children": [], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 30}}, {"id": 260, "type": "||", "text": "||", "parent": 250, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 32}}, {"id": 261, "type": "binary_expression", "text": "p[5]=='\\n'", "parent": 250, "children": [262, 265, 266], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 42}}, {"id": 262, "type": "subscript_expression", "text": "p[5]", "parent": 261, "children": [263, 264], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 36}}, {"id": 263, "type": "identifier", "text": "p", "parent": 262, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 33}}, {"id": 264, "type": "number_literal", "text": "5", "parent": 262, "children": [], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 35}}, {"id": 265, "type": "==", "text": "==", "parent": 261, "children": [], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 38}}, {"id": 266, "type": "char_literal", "text": "'\\n'", "parent": 261, "children": [267, 268, 269], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 42}}, {"id": 267, "type": "'", "text": "'", "parent": 266, "children": [], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 39}}, {"id": 268, "type": "escape_sequence", "text": "\\n", "parent": 266, "children": [], "start_point": {"row": 94, "column": 39}, "end_point": {"row": 94, "column": 41}}, {"id": 269, "type": "'", "text": "'", "parent": 266, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 42}}, {"id": 270, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_EDSP", "parent": 240, "children": [271, 272, 273], "start_point": {"row": 94, "column": 44}, "end_point": {"row": 94, "column": 66}}, {"id": 271, "type": "identifier", "text": "flags", "parent": 270, "children": [], "start_point": {"row": 94, "column": 44}, "end_point": {"row": 94, "column": 49}}, {"id": 272, "type": "|=", "text": "|=", "parent": 270, "children": [], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 51}}, {"id": 273, "type": "identifier", "text": "OC_CPU_ARM_EDSP", "parent": 270, "children": [], "start_point": {"row": 94, "column": 51}, "end_point": {"row": 94, "column": 66}}, {"id": 274, "type": "assignment_expression", "text": "p=strstr(buf,\" neon\")", "parent": 216, "children": [275, 276, 277], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 29}}, {"id": 275, "type": "identifier", "text": "p", "parent": 274, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 276, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 10}}, {"id": 277, "type": "call_expression", "text": "strstr(buf,\" neon\")", "parent": 274, "children": [278, 279], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 29}}, {"id": 278, "type": "identifier", "text": "strstr", "parent": 277, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 16}}, {"id": 279, "type": "argument_list", "text": "(buf,\" neon\")", "parent": 277, "children": [280, 281], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 29}}, {"id": 280, "type": "identifier", "text": "buf", "parent": 279, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 20}}, {"id": 281, "type": "string_literal", "text": "\" neon\"", "parent": 279, "children": [], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 28}}, {"id": 282, "type": "if_statement", "text": "if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;", "parent": 216, "children": [283], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 67}}, {"id": 283, "type": "parenthesized_expression", "text": "(p!=NULL&&(p[5]==' '||p[5]=='\\n'))", "parent": 282, "children": [284], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 44}}, {"id": 284, "type": "binary_expression", "text": "p!=NULL&&(p[5]==' '||p[5]=='\\n')", "parent": 283, "children": [285, 290, 291], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 43}}, {"id": 285, "type": "binary_expression", "text": "p!=NULL", "parent": 284, "children": [286, 287, 288], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 18}}, {"id": 286, "type": "identifier", "text": "p", "parent": 285, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 12}}, {"id": 287, "type": "!=", "text": "!=", "parent": 285, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 14}}, {"id": 288, "type": "null", "text": "NULL", "parent": 285, "children": [289], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 18}}, {"id": 289, "type": "NULL", "text": "NULL", "parent": 288, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 18}}, {"id": 290, "type": "&&", "text": "&&", "parent": 284, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 20}}, {"id": 291, "type": "parenthesized_expression", "text": "(p[5]==' '||p[5]=='\\n')", "parent": 284, "children": [292], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 43}}, {"id": 292, "type": "binary_expression", "text": "p[5]==' '||p[5]=='\\n'", "parent": 291, "children": [293, 302, 303], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 42}}, {"id": 293, "type": "binary_expression", "text": "p[5]==' '", "parent": 292, "children": [294, 297, 298], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 30}}, {"id": 294, "type": "subscript_expression", "text": "p[5]", "parent": 293, "children": [295, 296], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 25}}, {"id": 295, "type": "identifier", "text": "p", "parent": 294, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 22}}, {"id": 296, "type": "number_literal", "text": "5", "parent": 294, "children": [], "start_point": {"row": 96, "column": 23}, "end_point": {"row": 96, "column": 24}}, {"id": 297, "type": "==", "text": "==", "parent": 293, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 27}}, {"id": 298, "type": "char_literal", "text": "' '", "parent": 293, "children": [299, 300, 301], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 30}}, {"id": 299, "type": "'", "text": "'", "parent": 298, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 28}}, {"id": 300, "type": "character", "text": " ", "parent": 298, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 29}}, {"id": 301, "type": "'", "text": "'", "parent": 298, "children": [], "start_point": {"row": 96, "column": 29}, "end_point": {"row": 96, "column": 30}}, {"id": 302, "type": "||", "text": "||", "parent": 292, "children": [], "start_point": {"row": 96, "column": 30}, "end_point": {"row": 96, "column": 32}}, {"id": 303, "type": "binary_expression", "text": "p[5]=='\\n'", "parent": 292, "children": [304, 307, 308], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 42}}, {"id": 304, "type": "subscript_expression", "text": "p[5]", "parent": 303, "children": [305, 306], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 36}}, {"id": 305, "type": "identifier", "text": "p", "parent": 304, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 33}}, {"id": 306, "type": "number_literal", "text": "5", "parent": 304, "children": [], "start_point": {"row": 96, "column": 34}, "end_point": {"row": 96, "column": 35}}, {"id": 307, "type": "==", "text": "==", "parent": 303, "children": [], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 38}}, {"id": 308, "type": "char_literal", "text": "'\\n'", "parent": 303, "children": [309, 310, 311], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 42}}, {"id": 309, "type": "'", "text": "'", "parent": 308, "children": [], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 39}}, {"id": 310, "type": "escape_sequence", "text": "\\n", "parent": 308, "children": [], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 41}}, {"id": 311, "type": "'", "text": "'", "parent": 308, "children": [], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 42}}, {"id": 312, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_NEON", "parent": 282, "children": [313, 314, 315], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 66}}, {"id": 313, "type": "identifier", "text": "flags", "parent": 312, "children": [], "start_point": {"row": 96, "column": 44}, "end_point": {"row": 96, "column": 49}}, {"id": 314, "type": "|=", "text": "|=", "parent": 312, "children": [], "start_point": {"row": 96, "column": 49}, "end_point": {"row": 96, "column": 51}}, {"id": 315, "type": "identifier", "text": "OC_CPU_ARM_NEON", "parent": 312, "children": [], "start_point": {"row": 96, "column": 51}, "end_point": {"row": 96, "column": 66}}, {"id": 316, "type": "if_statement", "text": "if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }", "parent": 204, "children": [317], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 102, "column": 7}}, {"id": 317, "type": "parenthesized_expression", "text": "(memcmp(buf,\"CPU architecture:\",17)==0)", "parent": 316, "children": [318], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 47}}, {"id": 318, "type": "binary_expression", "text": "memcmp(buf,\"CPU architecture:\",17)==0", "parent": 317, "children": [319, 325, 326], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 46}}, {"id": 319, "type": "call_expression", "text": "memcmp(buf,\"CPU architecture:\",17)", "parent": 318, "children": [320, 321], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 43}}, {"id": 320, "type": "identifier", "text": "memcmp", "parent": 319, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 15}}, {"id": 321, "type": "argument_list", "text": "(buf,\"CPU architecture:\",17)", "parent": 319, "children": [322, 323, 324], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 43}}, {"id": 322, "type": "identifier", "text": "buf", "parent": 321, "children": [], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 19}}, {"id": 323, "type": "string_literal", "text": "\"CPU architecture:\"", "parent": 321, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 39}}, {"id": 324, "type": "number_literal", "text": "17", "parent": 321, "children": [], "start_point": {"row": 98, "column": 40}, "end_point": {"row": 98, "column": 42}}, {"id": 325, "type": "==", "text": "==", "parent": 318, "children": [], "start_point": {"row": 98, "column": 43}, "end_point": {"row": 98, "column": 45}}, {"id": 326, "type": "number_literal", "text": "0", "parent": 318, "children": [], "start_point": {"row": 98, "column": 45}, "end_point": {"row": 98, "column": 46}}, {"id": 327, "type": "declaration", "text": "int version;", "parent": 316, "children": [328, 329], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 20}}, {"id": 328, "type": "primitive_type", "text": "int", "parent": 327, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 11}}, {"id": 329, "type": "identifier", "text": "version", "parent": 327, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 19}}, {"id": 330, "type": "assignment_expression", "text": "version=atoi(buf+17)", "parent": 316, "children": [331, 332, 333], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 28}}, {"id": 331, "type": "identifier", "text": "version", "parent": 330, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 15}}, {"id": 332, "type": "=", "text": "=", "parent": 330, "children": [], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 16}}, {"id": 333, "type": "call_expression", "text": "atoi(buf+17)", "parent": 330, "children": [334, 335], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 28}}, {"id": 334, "type": "identifier", "text": "atoi", "parent": 333, "children": [], "start_point": {"row": 100, "column": 16}, "end_point": {"row": 100, "column": 20}}, {"id": 335, "type": "argument_list", "text": "(buf+17)", "parent": 333, "children": [336], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 28}}, {"id": 336, "type": "binary_expression", "text": "buf+17", "parent": 335, "children": [337, 338, 339], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 27}}, {"id": 337, "type": "identifier", "text": "buf", "parent": 336, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 24}}, {"id": 338, "type": "+", "text": "+", "parent": 336, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 25}}, {"id": 339, "type": "number_literal", "text": "17", "parent": 336, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 27}}, {"id": 340, "type": "if_statement", "text": "if(version>=6)flags|=OC_CPU_ARM_MEDIA;", "parent": 316, "children": [341], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 46}}, {"id": 341, "type": "parenthesized_expression", "text": "(version>=6)", "parent": 340, "children": [342], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 22}}, {"id": 342, "type": "binary_expression", "text": "version>=6", "parent": 341, "children": [343, 344, 345], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 21}}, {"id": 343, "type": "identifier", "text": "version", "parent": 342, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 18}}, {"id": 344, "type": ">=", "text": ">=", "parent": 342, "children": [], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 20}}, {"id": 345, "type": "number_literal", "text": "6", "parent": 342, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 21}}, {"id": 346, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_MEDIA", "parent": 340, "children": [347, 348, 349], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 45}}, {"id": 347, "type": "identifier", "text": "flags", "parent": 346, "children": [], "start_point": {"row": 101, "column": 22}, "end_point": {"row": 101, "column": 27}}, {"id": 348, "type": "|=", "text": "|=", "parent": 346, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 29}}, {"id": 349, "type": "identifier", "text": "OC_CPU_ARM_MEDIA", "parent": 346, "children": [], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 45}}, {"id": 350, "type": "call_expression", "text": "fclose(fin)", "parent": 192, "children": [351, 352], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 15}}, {"id": 351, "type": "identifier", "text": "fclose", "parent": 350, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 10}}, {"id": 352, "type": "argument_list", "text": "(fin)", "parent": 350, "children": [353], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 15}}, {"id": 353, "type": "identifier", "text": "fin", "parent": 352, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 14}}, {"id": 354, "type": "return_statement", "text": "return flags;", "parent": 165, "children": [355], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 15}}, {"id": 355, "type": "identifier", "text": "flags", "parent": 354, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 14}}, {"id": 356, "type": "preproc_elif", "text": "#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n\togg_uint32_t flags;\n\tflags=0;\n\tflags|=OC_CPU_ARM_EDSP;\n\tflags|=OC_CPU_ARM_MEDIA;\n\tflags|=OC_CPU_ARM_NEON;\n\treturn flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error \"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"\n", "parent": 150, "children": [357, 358, 361, 362, 390], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 357, "type": "#elif", "text": "#elif", "parent": 356, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 5}}, {"id": 358, "type": "preproc_defined", "text": "defined(_IOS)", "parent": 356, "children": [359, 360], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 19}}, {"id": 359, "type": "defined", "text": "defined", "parent": 358, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 13}}, {"id": 360, "type": "identifier", "text": "_IOS", "parent": 358, "children": [], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 18}}, {"id": 361, "type": "\n", "text": "\n\n", "parent": 356, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 111, "column": 0}}, {"id": 362, "type": "function_definition", "text": "ogg_uint32_t oc_cpu_flags_get(void){\n\togg_uint32_t flags;\n\tflags=0;\n\tflags|=OC_CPU_ARM_EDSP;\n\tflags|=OC_CPU_ARM_MEDIA;\n\tflags|=OC_CPU_ARM_NEON;\n\treturn flags;\n}", "parent": 356, "children": [363, 364], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 118, "column": 1}}, {"id": 363, "type": "type_identifier", "text": "ogg_uint32_t", "parent": 362, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 12}}, {"id": 364, "type": "function_declarator", "text": "oc_cpu_flags_get(void)", "parent": 362, "children": [365, 366], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 35}}, {"id": 365, "type": "identifier", "text": "oc_cpu_flags_get", "parent": 364, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 29}}, {"id": 366, "type": "parameter_list", "text": "(void)", "parent": 364, "children": [367], "start_point": {"row": 111, "column": 29}, "end_point": {"row": 111, "column": 35}}, {"id": 367, "type": "parameter_declaration", "text": "void", "parent": 366, "children": [368], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 34}}, {"id": 368, "type": "primitive_type", "text": "void", "parent": 367, "children": [], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 34}}, {"id": 369, "type": "declaration", "text": "ogg_uint32_t flags;", "parent": 362, "children": [370, 371], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 20}}, {"id": 370, "type": "type_identifier", "text": "ogg_uint32_t", "parent": 369, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 13}}, {"id": 371, "type": "identifier", "text": "flags", "parent": 369, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 19}}, {"id": 372, "type": "assignment_expression", "text": "flags=0", "parent": 362, "children": [373, 374, 375], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 8}}, {"id": 373, "type": "identifier", "text": "flags", "parent": 372, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 6}}, {"id": 374, "type": "=", "text": "=", "parent": 372, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 7}}, {"id": 375, "type": "number_literal", "text": "0", "parent": 372, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 8}}, {"id": 376, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_EDSP", "parent": 362, "children": [377, 378, 379], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 23}}, {"id": 377, "type": "identifier", "text": "flags", "parent": 376, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 6}}, {"id": 378, "type": "|=", "text": "|=", "parent": 376, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 8}}, {"id": 379, "type": "identifier", "text": "OC_CPU_ARM_EDSP", "parent": 376, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 23}}, {"id": 380, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_MEDIA", "parent": 362, "children": [381, 382, 383], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 24}}, {"id": 381, "type": "identifier", "text": "flags", "parent": 380, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 6}}, {"id": 382, "type": "|=", "text": "|=", "parent": 380, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 8}}, {"id": 383, "type": "identifier", "text": "OC_CPU_ARM_MEDIA", "parent": 380, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 24}}, {"id": 384, "type": "assignment_expression", "text": "flags|=OC_CPU_ARM_NEON", "parent": 362, "children": [385, 386, 387], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 23}}, {"id": 385, "type": "identifier", "text": "flags", "parent": 384, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 6}}, {"id": 386, "type": "|=", "text": "|=", "parent": 384, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 8}}, {"id": 387, "type": "identifier", "text": "OC_CPU_ARM_NEON", "parent": 384, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 23}}, {"id": 388, "type": "return_statement", "text": "return flags;", "parent": 362, "children": [389], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 14}}, {"id": 389, "type": "identifier", "text": "flags", "parent": 388, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 13}}, {"id": 390, "type": "preproc_else", "text": "#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error \"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"\n", "parent": 356, "children": [391, 392], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 391, "type": "#else", "text": "#else", "parent": 390, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 5}}, {"id": 392, "type": "preproc_call", "text": "# error \"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"\n", "parent": 390, "children": [393, 394], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 393, "type": "preproc_directive", "text": "# error", "parent": 392, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 7}}, {"id": 394, "type": "preproc_arg", "text": "\"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"", "parent": 392, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 125, "column": 68}}, {"id": 395, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 6}}]}, "node_categories": {"declarations": {"functions": [32, 34, 56, 58, 165, 167, 362, 364], "variables": [37, 61, 63, 170, 172, 175, 199, 227, 327, 367, 369], "classes": [], "imports": [0, 1, 53, 54, 156, 157, 159, 160, 162, 163], "modules": [], "enums": []}, "statements": {"expressions": [5, 6, 12, 13, 14, 20, 26, 78, 88, 89, 90, 103, 113, 114, 115, 128, 138, 139, 140, 187, 193, 194, 205, 206, 207, 217, 218, 219, 235, 241, 242, 243, 249, 250, 251, 252, 261, 262, 277, 283, 284, 285, 291, 292, 293, 294, 303, 304, 317, 318, 319, 333, 336, 341, 342, 350], "assignments": [66, 82, 107, 132, 180, 184, 232, 270, 274, 312, 330, 346, 372, 376, 380, 384], "loops": [204], "conditionals": [3, 4, 10, 18, 24, 30, 33, 35, 41, 42, 45, 49, 52, 57, 59, 64, 65, 67, 70, 71, 74, 79, 83, 85, 91, 94, 95, 96, 99, 104, 108, 110, 116, 119, 120, 121, 124, 129, 133, 135, 141, 144, 145, 146, 147, 149, 150, 151, 154, 166, 168, 173, 174, 176, 179, 181, 185, 188, 192, 195, 202, 208, 210, 212, 216, 220, 222, 231, 233, 236, 238, 240, 244, 253, 263, 271, 273, 275, 278, 280, 282, 286, 295, 305, 313, 315, 316, 320, 322, 329, 331, 334, 337, 340, 343, 347, 349, 351, 353, 355, 356, 357, 360, 363, 365, 370, 371, 373, 377, 379, 381, 383, 385, 387, 389, 395], "returns": [39, 148, 354, 388], "exceptions": [76, 77, 86, 87, 101, 102, 111, 112, 126, 127, 136, 137]}, "expressions": {"calls": [392], "literals": [2, 40, 55, 69, 81, 106, 131, 158, 161, 164, 183, 190, 191, 203, 211, 223, 224, 226, 239, 254, 256, 264, 266, 281, 296, 298, 306, 308, 323, 324, 326, 339, 345, 375], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "ogg_uint32_t oc_cpu_flags_get(void){\n return 0;\n}"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "oc_cpu_flags_get(void)"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "ogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm s"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "oc_cpu_flags_get(void)"}, {"node_id": 165, "universal_type": "function", "name": "version;", "text_snippet": "ogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Read"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "oc_cpu_flags_get(void)"}, {"node_id": 362, "universal_type": "function", "name": "unknown", "text_snippet": "ogg_uint32_t oc_cpu_flags_get(void){\n\togg_uint32_t flags;\n\tflags=0;\n\tflags|=OC_CPU_ARM_EDSP;\n\tflags|"}, {"node_id": 364, "universal_type": "function", "name": "unknown", "text_snippet": "oc_cpu_flags_get(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"armcpu.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 53, "text": "# include <windows.h>\n"}, {"node_id": 54, "text": "# include"}, {"node_id": 156, "text": "# include <stdio.h>\n"}, {"node_id": 157, "text": "# include"}, {"node_id": 159, "text": "# include <stdlib.h>\n"}, {"node_id": 160, "text": "# include"}, {"node_id": 162, "text": "# include <string.h>\n"}, {"node_id": 163, "text": "# include"}]}, "original_source_code": "/********************************************************************\n * *\n * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *\n * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *\n * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *\n * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *\n * *\n * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2010 *\n * by the Xiph.Org Foundation and contributors http://www.xiph.org/ *\n * *\n ********************************************************************\n\n CPU capability detection for ARM processors.\n\n function:\n last mod: $Id: cpu.c 17344 2010-07-21 01:42:18Z tterribe $\n\n ********************************************************************/\n\n#include \"armcpu.h\"\n\n#if !defined(OC_ARM_ASM)|| \\\n !defined(OC_ARM_ASM_EDSP)&&!defined(OC_ARM_ASM_MEDIA)&& \\\n !defined(OC_ARM_ASM_NEON)\nogg_uint32_t oc_cpu_flags_get(void){\n return 0;\n}\n\n#elif defined(_MSC_VER)\n/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/\n# define WIN32_LEAN_AND_MEAN\n# define WIN32_EXTRA_LEAN\n# include <windows.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n flags=0;\n /*MSVC has no inline __asm support for ARM, but it does let you __emit\n instructions via their assembled hex code.\n All of these instructions should be essentially nops.*/\n# if defined(OC_ARM_ASM_EDSP)\n __try{\n /*PLD [r13]*/\n __emit(0xF5DDF000);\n flags|=OC_CPU_ARM_EDSP;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_MEDIA)\n __try{\n /*SHADD8 r3,r3,r3*/\n __emit(0xE6333F93);\n flags|=OC_CPU_ARM_MEDIA;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# if defined(OC_ARM_ASM_NEON)\n __try{\n /*VORR q0,q0,q0*/\n __emit(0xF2200150);\n flags|=OC_CPU_ARM_NEON;\n }\n __except(GetExceptionCode()==EXCEPTION_ILLEGAL_INSTRUCTION){\n /*Ignore exception.*/\n }\n# endif\n# endif\n# endif\n return flags;\n}\n\n#elif defined(__linux__)\n# include <stdio.h>\n# include <stdlib.h>\n# include <string.h>\n\nogg_uint32_t oc_cpu_flags_get(void){\n ogg_uint32_t flags;\n FILE *fin;\n flags=0;\n /*Reading /proc/self/auxv would be easier, but that doesn't work reliably on\n Android.\n This also means that detection will fail in Scratchbox.*/\n fin=fopen(\"/proc/cpuinfo\",\"r\");\n if(fin!=NULL){\n /*512 should be enough for anybody (it's even enough for all the flags that\n x86 has accumulated... so far).*/\n char buf[512];\n while(fgets(buf,511,fin)!=NULL){\n if(memcmp(buf,\"Features\",8)==0){\n char *p;\n p=strstr(buf,\" edsp\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_EDSP;\n p=strstr(buf,\" neon\");\n if(p!=NULL&&(p[5]==' '||p[5]=='\\n'))flags|=OC_CPU_ARM_NEON;\n }\n if(memcmp(buf,\"CPU architecture:\",17)==0){\n int version;\n version=atoi(buf+17);\n if(version>=6)flags|=OC_CPU_ARM_MEDIA;\n }\n }\n fclose(fin);\n }\n return flags;\n}\n\n#elif defined(_IOS)\n\nogg_uint32_t oc_cpu_flags_get(void){\n\togg_uint32_t flags;\n\tflags=0;\n\tflags|=OC_CPU_ARM_EDSP;\n\tflags|=OC_CPU_ARM_MEDIA;\n\tflags|=OC_CPU_ARM_NEON;\n\treturn flags;\n}\n\n#else\n/*The feature registers which can tell us what the processor supports are\n accessible in priveleged modes only, so we can't have a general user-space\n detection method like on x86.*/\n# error \"Configured to use ARM asm but no CPU detection method available for \" \\\n \"your platform. Reconfigure with --disable-asm (or send patches).\"\n#endif\n"}
80,806
c
// // BulletController.h // Moon3d // // Created by <NAME> on 3/4/14. // // // version ported to win32 by <NAME> email : <EMAIL> #ifndef __Moon3d__BulletController__ #define __Moon3d__BulletController__ #include "cocos2d.h" USING_NS_CC; class Bullet; class AirCraft; class Missile; class Fodder; class FodderLeader; class BigDude; class Player; class Boss; class BulletController { public: static void reset(); static bool init(Node *bulletLayer); static Bullet* spawnBullet(int type, Point pos, Point vec); //static void update(float dt); static Vector<Bullet*> bullets; static void erase(Bullet* b); //returns the bullet to the pool static void erase(int i); static Vector<Missile*> _missilePool; protected: //static BulletController *s_instance; static bool _inited; static Node *_bulletLayer; }; class EnemyController { public: static void reset(); static bool init(Node *enemyLayer); static AirCraft* spawnEnemy(int type); static AirCraft* createOrGet(int type); static AirCraft* showCaseEnemy(int type); static void update(float dt); static Vector<AirCraft*> enemies; static void erase(int i); static Vector<AirCraft*> showCaseEnemies; static const float EnemyMoveDist; //all kinds of enemies container static Vector<Fodder*> _fodderPool; static Vector<FodderLeader*> _fodderLPool; static Vector<BigDude*> _bigDudePool; static Vector<Boss*> _bossPool; protected: static bool _inited; static Node *_enemyLayer; }; class GameController { public: static void update(float dt, Player* player); }; #endif /* defined(__Moon3d__BulletController__) */
23.61
69
(translation_unit) "//\n// BulletController.h\n// Moon3d\n//\n// Created by <NAME> on 3/4/14.\n//\n//\n// version ported to win32 by <NAME> email : <EMAIL>\n#ifndef __Moon3d__BulletController__\n#define __Moon3d__BulletController__\n\n#include "cocos2d.h"\nUSING_NS_CC;\nclass Bullet;\nclass AirCraft;\nclass Missile;\nclass Fodder;\nclass FodderLeader;\nclass BigDude;\nclass Player;\nclass Boss;\nclass BulletController\n{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n static Bullet* spawnBullet(int type, Point pos, Point vec);\n //static void update(float dt);\n static Vector<Bullet*> bullets;\n static void erase(Bullet* b); //returns the bullet to the pool\n static void erase(int i);\n \n static Vector<Missile*> _missilePool;\n\nprotected:\n //static BulletController *s_instance;\n static bool _inited;\n static Node *_bulletLayer;\n};\n\nclass EnemyController\n{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n static AirCraft* spawnEnemy(int type);\n static AirCraft* createOrGet(int type);\n static AirCraft* showCaseEnemy(int type);\n static void update(float dt);\n static Vector<AirCraft*> enemies;\n static void erase(int i);\n static Vector<AirCraft*> showCaseEnemies;\n\n static const float EnemyMoveDist;\n \n \n //all kinds of enemies container\n static Vector<Fodder*> _fodderPool;\n static Vector<FodderLeader*> _fodderLPool;\n static Vector<BigDude*> _bigDudePool;\n static Vector<Boss*> _bossPool;\n \nprotected:\n static bool _inited;\n static Node *_enemyLayer;\n \n};\n\nclass GameController\n{\npublic:\n static void update(float dt, Player* player);\n};\n\n#endif /* defined(__Moon3d__BulletController__) */\n" (comment) "//" (comment) "// BulletController.h" (comment) "// Moon3d" (comment) "//" (comment) "// Created by <NAME> on 3/4/14." (comment) "//" (comment) "//" (comment) "// version ported to win32 by <NAME> email : <EMAIL>" (preproc_ifdef) "#ifndef __Moon3d__BulletController__\n#define __Moon3d__BulletController__\n\n#include "cocos2d.h"\nUSING_NS_CC;\nclass Bullet;\nclass AirCraft;\nclass Missile;\nclass Fodder;\nclass FodderLeader;\nclass BigDude;\nclass Player;\nclass Boss;\nclass BulletController\n{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n static Bullet* spawnBullet(int type, Point pos, Point vec);\n //static void update(float dt);\n static Vector<Bullet*> bullets;\n static void erase(Bullet* b); //returns the bullet to the pool\n static void erase(int i);\n \n static Vector<Missile*> _missilePool;\n\nprotected:\n //static BulletController *s_instance;\n static bool _inited;\n static Node *_bulletLayer;\n};\n\nclass EnemyController\n{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n static AirCraft* spawnEnemy(int type);\n static AirCraft* createOrGet(int type);\n static AirCraft* showCaseEnemy(int type);\n static void update(float dt);\n static Vector<AirCraft*> enemies;\n static void erase(int i);\n static Vector<AirCraft*> showCaseEnemies;\n\n static const float EnemyMoveDist;\n \n \n //all kinds of enemies container\n static Vector<Fodder*> _fodderPool;\n static Vector<FodderLeader*> _fodderLPool;\n static Vector<BigDude*> _bigDudePool;\n static Vector<Boss*> _bossPool;\n \nprotected:\n static bool _inited;\n static Node *_enemyLayer;\n \n};\n\nclass GameController\n{\npublic:\n static void update(float dt, Player* player);\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "__Moon3d__BulletController__" (preproc_def) "#define __Moon3d__BulletController__\n" (#define) "#define" (identifier) "__Moon3d__BulletController__" (preproc_include) "#include "cocos2d.h"\n" (#include) "#include" (string_literal) ""cocos2d.h"" (") """ (string_content) "cocos2d.h" (") """ (expression_statement) "USING_NS_CC;" (identifier) "USING_NS_CC" (;) ";" (declaration) "class Bullet;" (type_identifier) "class" (identifier) "Bullet" (;) ";" (declaration) "class AirCraft;" (type_identifier) "class" (identifier) "AirCraft" (;) ";" (declaration) "class Missile;" (type_identifier) "class" (identifier) "Missile" (;) ";" (declaration) "class Fodder;" (type_identifier) "class" (identifier) "Fodder" (;) ";" (declaration) "class FodderLeader;" (type_identifier) "class" (identifier) "FodderLeader" (;) ";" (declaration) "class BigDude;" (type_identifier) "class" (identifier) "BigDude" (;) ";" (declaration) "class Player;" (type_identifier) "class" (identifier) "Player" (;) ";" (declaration) "class Boss;" (type_identifier) "class" (identifier) "Boss" (;) ";" (function_definition) "class BulletController\n{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n static Bullet* spawnBullet(int type, Point pos, Point vec);\n //static void update(float dt);\n static Vector<Bullet*> bullets;\n static void erase(Bullet* b); //returns the bullet to the pool\n static void erase(int i);\n \n static Vector<Missile*> _missilePool;\n\nprotected:\n //static BulletController *s_instance;\n static bool _inited;\n static Node *_bulletLayer;\n}" (type_identifier) "class" (identifier) "BulletController" (compound_statement) "{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n static Bullet* spawnBullet(int type, Point pos, Point vec);\n //static void update(float dt);\n static Vector<Bullet*> bullets;\n static void erase(Bullet* b); //returns the bullet to the pool\n static void erase(int i);\n \n static Vector<Missile*> _missilePool;\n\nprotected:\n //static BulletController *s_instance;\n static bool _inited;\n static Node *_bulletLayer;\n}" ({) "{" (labeled_statement) "public:\n static void reset();" (statement_identifier) "public" (:) ":" (declaration) "static void reset();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "reset()" (identifier) "reset" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static bool init(Node *bulletLayer);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "init(Node *bulletLayer)" (identifier) "init" (parameter_list) "(Node *bulletLayer)" (() "(" (parameter_declaration) "Node *bulletLayer" (type_identifier) "Node" (pointer_declarator) "*bulletLayer" (*) "*" (identifier) "bulletLayer" ()) ")" (;) ";" (declaration) "static Bullet* spawnBullet(int type, Point pos, Point vec);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Bullet" (pointer_declarator) "* spawnBullet(int type, Point pos, Point vec)" (*) "*" (function_declarator) "spawnBullet(int type, Point pos, Point vec)" (identifier) "spawnBullet" (parameter_list) "(int type, Point pos, Point vec)" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" (,) "," (parameter_declaration) "Point pos" (type_identifier) "Point" (identifier) "pos" (,) "," (parameter_declaration) "Point vec" (type_identifier) "Point" (identifier) "vec" ()) ")" (;) ";" (comment) "//static void update(float dt);" (declaration) "static Vector<Bullet*> bullets;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<Bullet*>" (<) "<" (identifier) "Bullet" (*) "*" (>) ">" (identifier) "bullets" (;) ";" (declaration) "static void erase(Bullet* b);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "erase(Bullet* b)" (identifier) "erase" (parameter_list) "(Bullet* b)" (() "(" (parameter_declaration) "Bullet* b" (type_identifier) "Bullet" (pointer_declarator) "* b" (*) "*" (identifier) "b" ()) ")" (;) ";" (comment) "//returns the bullet to the pool" (declaration) "static void erase(int i);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "erase(int i)" (identifier) "erase" (parameter_list) "(int i)" (() "(" (parameter_declaration) "int i" (primitive_type) "int" (identifier) "i" ()) ")" (;) ";" (declaration) "static Vector<Missile*> _missilePool;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<Missile*>" (<) "<" (identifier) "Missile" (*) "*" (>) ">" (identifier) "_missilePool" (;) ";" (labeled_statement) "protected:\n //static BulletController *s_instance;\n static bool _inited;" (statement_identifier) "protected" (:) ":" (comment) "//static BulletController *s_instance;" (declaration) "static bool _inited;" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (identifier) "_inited" (;) ";" (declaration) "static Node *_bulletLayer;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*_bulletLayer" (*) "*" (identifier) "_bulletLayer" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class EnemyController\n{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n static AirCraft* spawnEnemy(int type);\n static AirCraft* createOrGet(int type);\n static AirCraft* showCaseEnemy(int type);\n static void update(float dt);\n static Vector<AirCraft*> enemies;\n static void erase(int i);\n static Vector<AirCraft*> showCaseEnemies;\n\n static const float EnemyMoveDist;\n \n \n //all kinds of enemies container\n static Vector<Fodder*> _fodderPool;\n static Vector<FodderLeader*> _fodderLPool;\n static Vector<BigDude*> _bigDudePool;\n static Vector<Boss*> _bossPool;\n \nprotected:\n static bool _inited;\n static Node *_enemyLayer;\n \n}" (type_identifier) "class" (identifier) "EnemyController" (compound_statement) "{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n static AirCraft* spawnEnemy(int type);\n static AirCraft* createOrGet(int type);\n static AirCraft* showCaseEnemy(int type);\n static void update(float dt);\n static Vector<AirCraft*> enemies;\n static void erase(int i);\n static Vector<AirCraft*> showCaseEnemies;\n\n static const float EnemyMoveDist;\n \n \n //all kinds of enemies container\n static Vector<Fodder*> _fodderPool;\n static Vector<FodderLeader*> _fodderLPool;\n static Vector<BigDude*> _bigDudePool;\n static Vector<Boss*> _bossPool;\n \nprotected:\n static bool _inited;\n static Node *_enemyLayer;\n \n}" ({) "{" (labeled_statement) "public:\n static void reset();" (statement_identifier) "public" (:) ":" (declaration) "static void reset();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "reset()" (identifier) "reset" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static bool init(Node *enemyLayer);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "init(Node *enemyLayer)" (identifier) "init" (parameter_list) "(Node *enemyLayer)" (() "(" (parameter_declaration) "Node *enemyLayer" (type_identifier) "Node" (pointer_declarator) "*enemyLayer" (*) "*" (identifier) "enemyLayer" ()) ")" (;) ";" (declaration) "static AirCraft* spawnEnemy(int type);" (storage_class_specifier) "static" (static) "static" (type_identifier) "AirCraft" (pointer_declarator) "* spawnEnemy(int type)" (*) "*" (function_declarator) "spawnEnemy(int type)" (identifier) "spawnEnemy" (parameter_list) "(int type)" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" ()) ")" (;) ";" (declaration) "static AirCraft* createOrGet(int type);" (storage_class_specifier) "static" (static) "static" (type_identifier) "AirCraft" (pointer_declarator) "* createOrGet(int type)" (*) "*" (function_declarator) "createOrGet(int type)" (identifier) "createOrGet" (parameter_list) "(int type)" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" ()) ")" (;) ";" (declaration) "static AirCraft* showCaseEnemy(int type);" (storage_class_specifier) "static" (static) "static" (type_identifier) "AirCraft" (pointer_declarator) "* showCaseEnemy(int type)" (*) "*" (function_declarator) "showCaseEnemy(int type)" (identifier) "showCaseEnemy" (parameter_list) "(int type)" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" ()) ")" (;) ";" (declaration) "static void update(float dt);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "update(float dt)" (identifier) "update" (parameter_list) "(float dt)" (() "(" (parameter_declaration) "float dt" (primitive_type) "float" (identifier) "dt" ()) ")" (;) ";" (declaration) "static Vector<AirCraft*> enemies;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<AirCraft*>" (<) "<" (identifier) "AirCraft" (*) "*" (>) ">" (identifier) "enemies" (;) ";" (declaration) "static void erase(int i);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "erase(int i)" (identifier) "erase" (parameter_list) "(int i)" (() "(" (parameter_declaration) "int i" (primitive_type) "int" (identifier) "i" ()) ")" (;) ";" (declaration) "static Vector<AirCraft*> showCaseEnemies;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<AirCraft*>" (<) "<" (identifier) "AirCraft" (*) "*" (>) ">" (identifier) "showCaseEnemies" (;) ";" (declaration) "static const float EnemyMoveDist;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "float" (identifier) "EnemyMoveDist" (;) ";" (comment) "//all kinds of enemies container" (declaration) "static Vector<Fodder*> _fodderPool;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<Fodder*>" (<) "<" (identifier) "Fodder" (*) "*" (>) ">" (identifier) "_fodderPool" (;) ";" (declaration) "static Vector<FodderLeader*> _fodderLPool;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<FodderLeader*>" (<) "<" (identifier) "FodderLeader" (*) "*" (>) ">" (identifier) "_fodderLPool" (;) ";" (declaration) "static Vector<BigDude*> _bigDudePool;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<BigDude*>" (<) "<" (identifier) "BigDude" (*) "*" (>) ">" (identifier) "_bigDudePool" (;) ";" (declaration) "static Vector<Boss*> _bossPool;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Vector" (ERROR) "<Boss*>" (<) "<" (identifier) "Boss" (*) "*" (>) ">" (identifier) "_bossPool" (;) ";" (labeled_statement) "protected:\n static bool _inited;" (statement_identifier) "protected" (:) ":" (declaration) "static bool _inited;" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (identifier) "_inited" (;) ";" (declaration) "static Node *_enemyLayer;" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*_enemyLayer" (*) "*" (identifier) "_enemyLayer" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class GameController\n{\npublic:\n static void update(float dt, Player* player);\n}" (type_identifier) "class" (identifier) "GameController" (compound_statement) "{\npublic:\n static void update(float dt, Player* player);\n}" ({) "{" (labeled_statement) "public:\n static void update(float dt, Player* player);" (statement_identifier) "public" (:) ":" (declaration) "static void update(float dt, Player* player);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "update(float dt, Player* player)" (identifier) "update" (parameter_list) "(float dt, Player* player)" (() "(" (parameter_declaration) "float dt" (primitive_type) "float" (identifier) "dt" (,) "," (parameter_declaration) "Player* player" (type_identifier) "Player" (pointer_declarator) "* player" (*) "*" (identifier) "player" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/* defined(__Moon3d__BulletController__) */"
416
8
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 23.61, "nodes": 244, "errors": 0, "source_hash": "e8549719126045875efb028a2bedd1efc3f794af87dff3f020d260a4c5874006", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __Moon3d__BulletController__\n#define __Moon3d__BulletController__\n\n#include \"cocos2d.h\"\nUSING_NS_CC;\nclass Bullet;\nclass AirCraft;\nclass Missile;\nclass Fodder;\nclass FodderLeader;\nclass BigDude;\nclass Player;\nclass Boss;\nclass BulletController\n{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n static Bullet* spawnBullet(int type, Point pos, Point vec);\n //static void update(float dt);\n static Vector<Bullet*> bullets;\n static void erase(Bullet* b); //returns the bullet to the pool\n static void erase(int i);\n \n static Vector<Missile*> _missilePool;\n\nprotected:\n //static BulletController *s_instance;\n static bool _inited;\n static Node *_bulletLayer;\n};\n\nclass EnemyController\n{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n static AirCraft* spawnEnemy(int type);\n static AirCraft* createOrGet(int type);\n static AirCraft* showCaseEnemy(int type);\n static void update(float dt);\n static Vector<AirCraft*> enemies;\n static void erase(int i);\n static Vector<AirCraft*> showCaseEnemies;\n\n static const float EnemyMoveDist;\n \n \n //all kinds of enemies container\n static Vector<Fodder*> _fodderPool;\n static Vector<FodderLeader*> _fodderLPool;\n static Vector<BigDude*> _bigDudePool;\n static Vector<Boss*> _bossPool;\n \nprotected:\n static bool _inited;\n static Node *_enemyLayer;\n \n};\n\nclass GameController\n{\npublic:\n static void update(float dt, Player* player);\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 12, 14, 16, 18, 20, 22, 24, 26, 103, 227, 243], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 74, "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": "__Moon3d__BulletController__", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 36}}, {"id": 3, "type": "preproc_def", "text": "#define __Moon3d__BulletController__\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": "__Moon3d__BulletController__", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 36}}, {"id": 6, "type": "preproc_include", "text": "#include \"cocos2d.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": "\"cocos2d.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 20}}, {"id": 9, "type": "identifier", "text": "USING_NS_CC", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 11}}, {"id": 10, "type": "declaration", "text": "class Bullet;", "parent": 0, "children": [11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 13}}, {"id": 11, "type": "identifier", "text": "Bullet", "parent": 10, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 12}}, {"id": 12, "type": "declaration", "text": "class AirCraft;", "parent": 0, "children": [13], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 15}}, {"id": 13, "type": "identifier", "text": "AirCraft", "parent": 12, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 14}}, {"id": 14, "type": "declaration", "text": "class Missile;", "parent": 0, "children": [15], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 14}}, {"id": 15, "type": "identifier", "text": "Missile", "parent": 14, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 13}}, {"id": 16, "type": "declaration", "text": "class Fodder;", "parent": 0, "children": [17], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 13}}, {"id": 17, "type": "identifier", "text": "Fodder", "parent": 16, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 12}}, {"id": 18, "type": "declaration", "text": "class FodderLeader;", "parent": 0, "children": [19], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 19}}, {"id": 19, "type": "identifier", "text": "FodderLeader", "parent": 18, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 18}}, {"id": 20, "type": "declaration", "text": "class BigDude;", "parent": 0, "children": [21], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 14}}, {"id": 21, "type": "identifier", "text": "BigDude", "parent": 20, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 13}}, {"id": 22, "type": "declaration", "text": "class Player;", "parent": 0, "children": [23], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 13}}, {"id": 23, "type": "identifier", "text": "Player", "parent": 22, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 12}}, {"id": 24, "type": "declaration", "text": "class Boss;", "parent": 0, "children": [25], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 11}}, {"id": 25, "type": "identifier", "text": "Boss", "parent": 24, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 10}}, {"id": 26, "type": "function_definition", "text": "class BulletController\n{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n static Bullet* spawnBullet(int type, Point pos, Point vec);\n //static void update(float dt);\n static Vector<Bullet*> bullets;\n static void erase(Bullet* b); //returns the bullet to the pool\n static void erase(int i);\n \n static Vector<Missile*> _missilePool;\n\nprotected:\n //static BulletController *s_instance;\n static bool _inited;\n static Node *_bulletLayer;\n}", "parent": 0, "children": [27], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 27, "type": "identifier", "text": "BulletController", "parent": 26, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 22}}, {"id": 28, "type": "labeled_statement", "text": "public:\n static void reset();", "parent": 26, "children": [29], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 24}}, {"id": 29, "type": "declaration", "text": "static void reset();", "parent": 28, "children": [30, 31], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 24}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 29, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 15}}, {"id": 31, "type": "function_declarator", "text": "reset()", "parent": 29, "children": [32, 33], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 23}}, {"id": 32, "type": "identifier", "text": "reset", "parent": 31, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 21}}, {"id": 33, "type": "parameter_list", "text": "()", "parent": 31, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 23}}, {"id": 34, "type": "declaration", "text": "static bool init(Node *bulletLayer);", "parent": 26, "children": [35, 36], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 40}}, {"id": 35, "type": "primitive_type", "text": "bool", "parent": 34, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 15}}, {"id": 36, "type": "function_declarator", "text": "init(Node *bulletLayer)", "parent": 34, "children": [37, 38], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 39}}, {"id": 37, "type": "identifier", "text": "init", "parent": 36, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 20}}, {"id": 38, "type": "parameter_list", "text": "(Node *bulletLayer)", "parent": 36, "children": [39], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 39}}, {"id": 39, "type": "parameter_declaration", "text": "Node *bulletLayer", "parent": 38, "children": [40, 41], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 38}}, {"id": 40, "type": "type_identifier", "text": "Node", "parent": 39, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 25}}, {"id": 41, "type": "pointer_declarator", "text": "*bulletLayer", "parent": 39, "children": [42, 43], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 38}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 27}}, {"id": 43, "type": "identifier", "text": "bulletLayer", "parent": 41, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 38}}, {"id": 44, "type": "declaration", "text": "static Bullet* spawnBullet(int type, Point pos, Point vec);", "parent": 26, "children": [45, 46], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 63}}, {"id": 45, "type": "type_identifier", "text": "Bullet", "parent": 44, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 17}}, {"id": 46, "type": "pointer_declarator", "text": "* spawnBullet(int type, Point pos, Point vec)", "parent": 44, "children": [47, 48], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 62}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 18}}, {"id": 48, "type": "function_declarator", "text": "spawnBullet(int type, Point pos, Point vec)", "parent": 46, "children": [49, 50], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 62}}, {"id": 49, "type": "identifier", "text": "spawnBullet", "parent": 48, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 30}}, {"id": 50, "type": "parameter_list", "text": "(int type, Point pos, Point vec)", "parent": 48, "children": [51, 54, 57], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 62}}, {"id": 51, "type": "parameter_declaration", "text": "int type", "parent": 50, "children": [52, 53], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 39}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 34}}, {"id": 53, "type": "identifier", "text": "type", "parent": 51, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 39}}, {"id": 54, "type": "parameter_declaration", "text": "Point pos", "parent": 50, "children": [55, 56], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 50}}, {"id": 55, "type": "type_identifier", "text": "Point", "parent": 54, "children": [], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 46}}, {"id": 56, "type": "identifier", "text": "pos", "parent": 54, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 50}}, {"id": 57, "type": "parameter_declaration", "text": "Point vec", "parent": 50, "children": [58, 59], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 61}}, {"id": 58, "type": "type_identifier", "text": "Point", "parent": 57, "children": [], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 57}}, {"id": 59, "type": "identifier", "text": "vec", "parent": 57, "children": [], "start_point": {"row": 26, "column": 58}, "end_point": {"row": 26, "column": 61}}, {"id": 60, "type": "declaration", "text": "static Vector<Bullet*> bullets;", "parent": 26, "children": [61, 62, 67], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 35}}, {"id": 61, "type": "type_identifier", "text": "Vector", "parent": 60, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 17}}, {"id": 62, "type": "ERROR", "text": "<Bullet*>", "parent": 60, "children": [63, 64, 65, 66], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 26}}, {"id": 63, "type": "<", "text": "<", "parent": 62, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 18}}, {"id": 64, "type": "identifier", "text": "Bullet", "parent": 62, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 24}}, {"id": 65, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 66, "type": ">", "text": ">", "parent": 62, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 26}}, {"id": 67, "type": "identifier", "text": "bullets", "parent": 60, "children": [], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 34}}, {"id": 68, "type": "declaration", "text": "static void erase(Bullet* b);", "parent": 26, "children": [69, 70], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 33}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 15}}, {"id": 70, "type": "function_declarator", "text": "erase(Bullet* b)", "parent": 68, "children": [71, 72], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 32}}, {"id": 71, "type": "identifier", "text": "erase", "parent": 70, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 21}}, {"id": 72, "type": "parameter_list", "text": "(Bullet* b)", "parent": 70, "children": [73], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 32}}, {"id": 73, "type": "parameter_declaration", "text": "Bullet* b", "parent": 72, "children": [74, 75], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 31}}, {"id": 74, "type": "type_identifier", "text": "Bullet", "parent": 73, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 28}}, {"id": 75, "type": "pointer_declarator", "text": "* b", "parent": 73, "children": [76, 77], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 31}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 29}}, {"id": 77, "type": "identifier", "text": "b", "parent": 75, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 31}}, {"id": 78, "type": "declaration", "text": "static void erase(int i);", "parent": 26, "children": [79, 80], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 29}}, {"id": 79, "type": "primitive_type", "text": "void", "parent": 78, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 15}}, {"id": 80, "type": "function_declarator", "text": "erase(int i)", "parent": 78, "children": [81, 82], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 28}}, {"id": 81, "type": "identifier", "text": "erase", "parent": 80, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 21}}, {"id": 82, "type": "parameter_list", "text": "(int i)", "parent": 80, "children": [83], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 28}}, {"id": 83, "type": "parameter_declaration", "text": "int i", "parent": 82, "children": [84, 85], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 27}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 25}}, {"id": 85, "type": "identifier", "text": "i", "parent": 83, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 27}}, {"id": 86, "type": "declaration", "text": "static Vector<Missile*> _missilePool;", "parent": 26, "children": [87, 88, 93], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 41}}, {"id": 87, "type": "type_identifier", "text": "Vector", "parent": 86, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 17}}, {"id": 88, "type": "ERROR", "text": "<Missile*>", "parent": 86, "children": [89, 90, 91, 92], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 27}}, {"id": 89, "type": "<", "text": "<", "parent": 88, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 18}}, {"id": 90, "type": "identifier", "text": "Missile", "parent": 88, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 25}}, {"id": 91, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 26}}, {"id": 92, "type": ">", "text": ">", "parent": 88, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 27}}, {"id": 93, "type": "identifier", "text": "_missilePool", "parent": 86, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 40}}, {"id": 94, "type": "labeled_statement", "text": "protected:\n //static BulletController *s_instance;\n static bool _inited;", "parent": 26, "children": [95], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 36, "column": 24}}, {"id": 95, "type": "declaration", "text": "static bool _inited;", "parent": 94, "children": [96, 97], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 24}}, {"id": 96, "type": "primitive_type", "text": "bool", "parent": 95, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 15}}, {"id": 97, "type": "identifier", "text": "_inited", "parent": 95, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 23}}, {"id": 98, "type": "declaration", "text": "static Node *_bulletLayer;", "parent": 26, "children": [99, 100], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 30}}, {"id": 99, "type": "type_identifier", "text": "Node", "parent": 98, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 15}}, {"id": 100, "type": "pointer_declarator", "text": "*_bulletLayer", "parent": 98, "children": [101, 102], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 29}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 102, "type": "identifier", "text": "_bulletLayer", "parent": 100, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 29}}, {"id": 103, "type": "function_definition", "text": "class EnemyController\n{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n static AirCraft* spawnEnemy(int type);\n static AirCraft* createOrGet(int type);\n static AirCraft* showCaseEnemy(int type);\n static void update(float dt);\n static Vector<AirCraft*> enemies;\n static void erase(int i);\n static Vector<AirCraft*> showCaseEnemies;\n\n static const float EnemyMoveDist;\n \n \n //all kinds of enemies container\n static Vector<Fodder*> _fodderPool;\n static Vector<FodderLeader*> _fodderLPool;\n static Vector<BigDude*> _bigDudePool;\n static Vector<Boss*> _bossPool;\n \nprotected:\n static bool _inited;\n static Node *_enemyLayer;\n \n}", "parent": 0, "children": [104], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 104, "type": "identifier", "text": "EnemyController", "parent": 103, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 21}}, {"id": 105, "type": "labeled_statement", "text": "public:\n static void reset();", "parent": 103, "children": [106], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 24}}, {"id": 106, "type": "declaration", "text": "static void reset();", "parent": 105, "children": [107, 108], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 24}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 15}}, {"id": 108, "type": "function_declarator", "text": "reset()", "parent": 106, "children": [109, 110], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 23}}, {"id": 109, "type": "identifier", "text": "reset", "parent": 108, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 21}}, {"id": 110, "type": "parameter_list", "text": "()", "parent": 108, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 23}}, {"id": 111, "type": "declaration", "text": "static bool init(Node *enemyLayer);", "parent": 103, "children": [112, 113], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 39}}, {"id": 112, "type": "primitive_type", "text": "bool", "parent": 111, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 15}}, {"id": 113, "type": "function_declarator", "text": "init(Node *enemyLayer)", "parent": 111, "children": [114, 115], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 38}}, {"id": 114, "type": "identifier", "text": "init", "parent": 113, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 20}}, {"id": 115, "type": "parameter_list", "text": "(Node *enemyLayer)", "parent": 113, "children": [116], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 38}}, {"id": 116, "type": "parameter_declaration", "text": "Node *enemyLayer", "parent": 115, "children": [117, 118], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 37}}, {"id": 117, "type": "type_identifier", "text": "Node", "parent": 116, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 25}}, {"id": 118, "type": "pointer_declarator", "text": "*enemyLayer", "parent": 116, "children": [119, 120], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 37}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 27}}, {"id": 120, "type": "identifier", "text": "enemyLayer", "parent": 118, "children": [], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 37}}, {"id": 121, "type": "declaration", "text": "static AirCraft* spawnEnemy(int type);", "parent": 103, "children": [122, 123], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 42}}, {"id": 122, "type": "type_identifier", "text": "AirCraft", "parent": 121, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 19}}, {"id": 123, "type": "pointer_declarator", "text": "* spawnEnemy(int type)", "parent": 121, "children": [124, 125], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 41}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 20}}, {"id": 125, "type": "function_declarator", "text": "spawnEnemy(int type)", "parent": 123, "children": [126, 127], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 41}}, {"id": 126, "type": "identifier", "text": "spawnEnemy", "parent": 125, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 31}}, {"id": 127, "type": "parameter_list", "text": "(int type)", "parent": 125, "children": [128], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 41}}, {"id": 128, "type": "parameter_declaration", "text": "int type", "parent": 127, "children": [129, 130], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 40}}, {"id": 129, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 35}}, {"id": 130, "type": "identifier", "text": "type", "parent": 128, "children": [], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 40}}, {"id": 131, "type": "declaration", "text": "static AirCraft* createOrGet(int type);", "parent": 103, "children": [132, 133], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 43}}, {"id": 132, "type": "type_identifier", "text": "AirCraft", "parent": 131, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 19}}, {"id": 133, "type": "pointer_declarator", "text": "* createOrGet(int type)", "parent": 131, "children": [134, 135], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 42}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 20}}, {"id": 135, "type": "function_declarator", "text": "createOrGet(int type)", "parent": 133, "children": [136, 137], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 42}}, {"id": 136, "type": "identifier", "text": "createOrGet", "parent": 135, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 32}}, {"id": 137, "type": "parameter_list", "text": "(int type)", "parent": 135, "children": [138], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 42}}, {"id": 138, "type": "parameter_declaration", "text": "int type", "parent": 137, "children": [139, 140], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 41}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 36}}, {"id": 140, "type": "identifier", "text": "type", "parent": 138, "children": [], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 41}}, {"id": 141, "type": "declaration", "text": "static AirCraft* showCaseEnemy(int type);", "parent": 103, "children": [142, 143], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 45}}, {"id": 142, "type": "type_identifier", "text": "AirCraft", "parent": 141, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 19}}, {"id": 143, "type": "pointer_declarator", "text": "* showCaseEnemy(int type)", "parent": 141, "children": [144, 145], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 44}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 145, "type": "function_declarator", "text": "showCaseEnemy(int type)", "parent": 143, "children": [146, 147], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 44}}, {"id": 146, "type": "identifier", "text": "showCaseEnemy", "parent": 145, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 34}}, {"id": 147, "type": "parameter_list", "text": "(int type)", "parent": 145, "children": [148], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 44}}, {"id": 148, "type": "parameter_declaration", "text": "int type", "parent": 147, "children": [149, 150], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 43}}, {"id": 149, "type": "primitive_type", "text": "int", "parent": 148, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 38}}, {"id": 150, "type": "identifier", "text": "type", "parent": 148, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 43}}, {"id": 151, "type": "declaration", "text": "static void update(float dt);", "parent": 103, "children": [152, 153], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 33}}, {"id": 152, "type": "primitive_type", "text": "void", "parent": 151, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 15}}, {"id": 153, "type": "function_declarator", "text": "update(float dt)", "parent": 151, "children": [154, 155], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 32}}, {"id": 154, "type": "identifier", "text": "update", "parent": 153, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 22}}, {"id": 155, "type": "parameter_list", "text": "(float dt)", "parent": 153, "children": [156], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 32}}, {"id": 156, "type": "parameter_declaration", "text": "float dt", "parent": 155, "children": [157, 158], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 31}}, {"id": 157, "type": "primitive_type", "text": "float", "parent": 156, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 28}}, {"id": 158, "type": "identifier", "text": "dt", "parent": 156, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 31}}, {"id": 159, "type": "declaration", "text": "static Vector<AirCraft*> enemies;", "parent": 103, "children": [160, 161, 166], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 37}}, {"id": 160, "type": "type_identifier", "text": "Vector", "parent": 159, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 17}}, {"id": 161, "type": "ERROR", "text": "<AirCraft*>", "parent": 159, "children": [162, 163, 164, 165], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 28}}, {"id": 162, "type": "<", "text": "<", "parent": 161, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 18}}, {"id": 163, "type": "identifier", "text": "AirCraft", "parent": 161, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 26}}, {"id": 164, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 27}}, {"id": 165, "type": ">", "text": ">", "parent": 161, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 28}}, {"id": 166, "type": "identifier", "text": "enemies", "parent": 159, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 36}}, {"id": 167, "type": "declaration", "text": "static void erase(int i);", "parent": 103, "children": [168, 169], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 29}}, {"id": 168, "type": "primitive_type", "text": "void", "parent": 167, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 15}}, {"id": 169, "type": "function_declarator", "text": "erase(int i)", "parent": 167, "children": [170, 171], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 28}}, {"id": 170, "type": "identifier", "text": "erase", "parent": 169, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 21}}, {"id": 171, "type": "parameter_list", "text": "(int i)", "parent": 169, "children": [172], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 28}}, {"id": 172, "type": "parameter_declaration", "text": "int i", "parent": 171, "children": [173, 174], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 27}}, {"id": 173, "type": "primitive_type", "text": "int", "parent": 172, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 25}}, {"id": 174, "type": "identifier", "text": "i", "parent": 172, "children": [], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 27}}, {"id": 175, "type": "declaration", "text": "static Vector<AirCraft*> showCaseEnemies;", "parent": 103, "children": [176, 177, 182], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 45}}, {"id": 176, "type": "type_identifier", "text": "Vector", "parent": 175, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 17}}, {"id": 177, "type": "ERROR", "text": "<AirCraft*>", "parent": 175, "children": [178, 179, 180, 181], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 28}}, {"id": 178, "type": "<", "text": "<", "parent": 177, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 179, "type": "identifier", "text": "AirCraft", "parent": 177, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 26}}, {"id": 180, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 27}}, {"id": 181, "type": ">", "text": ">", "parent": 177, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 28}}, {"id": 182, "type": "identifier", "text": "showCaseEnemies", "parent": 175, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 44}}, {"id": 183, "type": "declaration", "text": "static const float EnemyMoveDist;", "parent": 103, "children": [184, 185], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 37}}, {"id": 184, "type": "primitive_type", "text": "float", "parent": 183, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 22}}, {"id": 185, "type": "identifier", "text": "EnemyMoveDist", "parent": 183, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 36}}, {"id": 186, "type": "declaration", "text": "static Vector<Fodder*> _fodderPool;", "parent": 103, "children": [187, 188, 193], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 39}}, {"id": 187, "type": "type_identifier", "text": "Vector", "parent": 186, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 17}}, {"id": 188, "type": "ERROR", "text": "<Fodder*>", "parent": 186, "children": [189, 190, 191, 192], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 26}}, {"id": 189, "type": "<", "text": "<", "parent": 188, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 18}}, {"id": 190, "type": "identifier", "text": "Fodder", "parent": 188, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 24}}, {"id": 191, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 25}}, {"id": 192, "type": ">", "text": ">", "parent": 188, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 26}}, {"id": 193, "type": "identifier", "text": "_fodderPool", "parent": 186, "children": [], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 38}}, {"id": 194, "type": "declaration", "text": "static Vector<FodderLeader*> _fodderLPool;", "parent": 103, "children": [195, 196, 201], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 46}}, {"id": 195, "type": "type_identifier", "text": "Vector", "parent": 194, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 17}}, {"id": 196, "type": "ERROR", "text": "<FodderLeader*>", "parent": 194, "children": [197, 198, 199, 200], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 32}}, {"id": 197, "type": "<", "text": "<", "parent": 196, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 18}}, {"id": 198, "type": "identifier", "text": "FodderLeader", "parent": 196, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 30}}, {"id": 199, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 31}}, {"id": 200, "type": ">", "text": ">", "parent": 196, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 32}}, {"id": 201, "type": "identifier", "text": "_fodderLPool", "parent": 194, "children": [], "start_point": {"row": 58, "column": 33}, "end_point": {"row": 58, "column": 45}}, {"id": 202, "type": "declaration", "text": "static Vector<BigDude*> _bigDudePool;", "parent": 103, "children": [203, 204, 209], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 41}}, {"id": 203, "type": "type_identifier", "text": "Vector", "parent": 202, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 17}}, {"id": 204, "type": "ERROR", "text": "<BigDude*>", "parent": 202, "children": [205, 206, 207, 208], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 27}}, {"id": 205, "type": "<", "text": "<", "parent": 204, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 206, "type": "identifier", "text": "BigDude", "parent": 204, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 25}}, {"id": 207, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 26}}, {"id": 208, "type": ">", "text": ">", "parent": 204, "children": [], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 27}}, {"id": 209, "type": "identifier", "text": "_bigDudePool", "parent": 202, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 40}}, {"id": 210, "type": "declaration", "text": "static Vector<Boss*> _bossPool;", "parent": 103, "children": [211, 212, 217], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 35}}, {"id": 211, "type": "type_identifier", "text": "Vector", "parent": 210, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 17}}, {"id": 212, "type": "ERROR", "text": "<Boss*>", "parent": 210, "children": [213, 214, 215, 216], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 24}}, {"id": 213, "type": "<", "text": "<", "parent": 212, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 18}}, {"id": 214, "type": "identifier", "text": "Boss", "parent": 212, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 22}}, {"id": 215, "type": "*", "text": "*", "parent": 212, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 216, "type": ">", "text": ">", "parent": 212, "children": [], "start_point": {"row": 60, "column": 23}, "end_point": {"row": 60, "column": 24}}, {"id": 217, "type": "identifier", "text": "_bossPool", "parent": 210, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 34}}, {"id": 218, "type": "labeled_statement", "text": "protected:\n static bool _inited;", "parent": 103, "children": [219], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 24}}, {"id": 219, "type": "declaration", "text": "static bool _inited;", "parent": 218, "children": [220, 221], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 24}}, {"id": 220, "type": "primitive_type", "text": "bool", "parent": 219, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 15}}, {"id": 221, "type": "identifier", "text": "_inited", "parent": 219, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 23}}, {"id": 222, "type": "declaration", "text": "static Node *_enemyLayer;", "parent": 103, "children": [223, 224], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 29}}, {"id": 223, "type": "type_identifier", "text": "Node", "parent": 222, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 15}}, {"id": 224, "type": "pointer_declarator", "text": "*_enemyLayer", "parent": 222, "children": [225, 226], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 28}}, {"id": 225, "type": "*", "text": "*", "parent": 224, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 17}}, {"id": 226, "type": "identifier", "text": "_enemyLayer", "parent": 224, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 28}}, {"id": 227, "type": "function_definition", "text": "class GameController\n{\npublic:\n static void update(float dt, Player* player);\n}", "parent": 0, "children": [228], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 228, "type": "identifier", "text": "GameController", "parent": 227, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 20}}, {"id": 229, "type": "labeled_statement", "text": "public:\n static void update(float dt, Player* player);", "parent": 227, "children": [230], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 49}}, {"id": 230, "type": "declaration", "text": "static void update(float dt, Player* player);", "parent": 229, "children": [231, 232], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 49}}, {"id": 231, "type": "primitive_type", "text": "void", "parent": 230, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 15}}, {"id": 232, "type": "function_declarator", "text": "update(float dt, Player* player)", "parent": 230, "children": [233, 234], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 48}}, {"id": 233, "type": "identifier", "text": "update", "parent": 232, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 22}}, {"id": 234, "type": "parameter_list", "text": "(float dt, Player* player)", "parent": 232, "children": [235, 238], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 48}}, {"id": 235, "type": "parameter_declaration", "text": "float dt", "parent": 234, "children": [236, 237], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 31}}, {"id": 236, "type": "primitive_type", "text": "float", "parent": 235, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 28}}, {"id": 237, "type": "identifier", "text": "dt", "parent": 235, "children": [], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 31}}, {"id": 238, "type": "parameter_declaration", "text": "Player* player", "parent": 234, "children": [239, 240], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 47}}, {"id": 239, "type": "type_identifier", "text": "Player", "parent": 238, "children": [], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 39}}, {"id": 240, "type": "pointer_declarator", "text": "* player", "parent": 238, "children": [241, 242], "start_point": {"row": 71, "column": 39}, "end_point": {"row": 71, "column": 47}}, {"id": 241, "type": "*", "text": "*", "parent": 240, "children": [], "start_point": {"row": 71, "column": 39}, "end_point": {"row": 71, "column": 40}}, {"id": 242, "type": "identifier", "text": "player", "parent": 240, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 47}}, {"id": 243, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}]}, "node_categories": {"declarations": {"functions": [26, 31, 36, 48, 70, 80, 103, 108, 113, 125, 135, 145, 153, 169, 227, 232], "variables": [10, 12, 14, 16, 18, 20, 22, 24, 29, 34, 39, 44, 51, 54, 57, 60, 68, 73, 78, 83, 86, 95, 98, 106, 111, 116, 121, 128, 131, 138, 141, 148, 151, 156, 159, 167, 172, 175, 183, 186, 194, 202, 210, 219, 222, 230, 235, 238], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 32, 37, 40, 43, 45, 49, 53, 55, 56, 58, 59, 61, 64, 67, 71, 74, 77, 81, 85, 87, 90, 93, 97, 99, 102, 104, 109, 114, 117, 120, 122, 126, 130, 132, 136, 140, 142, 146, 150, 154, 158, 160, 163, 166, 170, 174, 176, 179, 182, 185, 187, 190, 193, 195, 198, 201, 203, 206, 209, 211, 214, 217, 221, 223, 226, 228, 233, 237, 239, 242, 243], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "BulletController", "text_snippet": "class BulletController\n{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n "}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "reset()"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "init(Node *bulletLayer)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "spawnBullet(int type, Point pos, Point vec)"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "erase(Bullet* b)"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "erase(int i)"}, {"node_id": 103, "universal_type": "function", "name": "EnemyController", "text_snippet": "class EnemyController\n{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n "}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "reset()"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "init(Node *enemyLayer)"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "spawnEnemy(int type)"}, {"node_id": 135, "universal_type": "function", "name": "unknown", "text_snippet": "createOrGet(int type)"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "showCaseEnemy(int type)"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "update(float dt)"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "erase(int i)"}, {"node_id": 227, "universal_type": "function", "name": "GameController", "text_snippet": "class GameController\n{\npublic:\n static void update(float dt, Player* player);\n}"}, {"node_id": 232, "universal_type": "function", "name": "unknown", "text_snippet": "update(float dt, Player* player)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"cocos2d.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "//\n// BulletController.h\n// Moon3d\n//\n// Created by <NAME> on 3/4/14.\n//\n//\n// version ported to win32 by <NAME> email : <EMAIL>\n#ifndef __Moon3d__BulletController__\n#define __Moon3d__BulletController__\n\n#include \"cocos2d.h\"\nUSING_NS_CC;\nclass Bullet;\nclass AirCraft;\nclass Missile;\nclass Fodder;\nclass FodderLeader;\nclass BigDude;\nclass Player;\nclass Boss;\nclass BulletController\n{\npublic:\n static void reset();\n static bool init(Node *bulletLayer);\n static Bullet* spawnBullet(int type, Point pos, Point vec);\n //static void update(float dt);\n static Vector<Bullet*> bullets;\n static void erase(Bullet* b); //returns the bullet to the pool\n static void erase(int i);\n \n static Vector<Missile*> _missilePool;\n\nprotected:\n //static BulletController *s_instance;\n static bool _inited;\n static Node *_bulletLayer;\n};\n\nclass EnemyController\n{\npublic:\n static void reset();\n static bool init(Node *enemyLayer);\n static AirCraft* spawnEnemy(int type);\n static AirCraft* createOrGet(int type);\n static AirCraft* showCaseEnemy(int type);\n static void update(float dt);\n static Vector<AirCraft*> enemies;\n static void erase(int i);\n static Vector<AirCraft*> showCaseEnemies;\n\n static const float EnemyMoveDist;\n \n \n //all kinds of enemies container\n static Vector<Fodder*> _fodderPool;\n static Vector<FodderLeader*> _fodderLPool;\n static Vector<BigDude*> _bigDudePool;\n static Vector<Boss*> _bossPool;\n \nprotected:\n static bool _inited;\n static Node *_enemyLayer;\n \n};\n\nclass GameController\n{\npublic:\n static void update(float dt, Player* player);\n};\n\n#endif /* defined(__Moon3d__BulletController__) */\n"}
80,807
c
// Copyright (c) 2017 <NAME> // // This program is free software; you can redistribute it and/or modify it // under the terms of the MIT License. See LICENSE for more details. #include <stdio.h> #include <string.h> #include <stdlib.h> #include "modules/command.h" #include "modules/connectfunction.h" #include "modules/disconnectfunction.h" #include "modules/log.h" #include "modules/mainsocket.h" #include "modules/network.h" #include "modules/periodic.h" #include "modules/socketlist.h" #include "modules/termflag.h" /* * MODULE DESCRIPTION * * This module is meant to act as an abstraction layer that sits above * other modules contained in this project and provides user-friendly * access to lower level functionality that greatly simplifies the * customization process for the client and server modules. */ /* * The write_socket() function writes the command (char *command) and * payload (char *payload) data to the socket (int s). If a write failure * occurs, it returns a negative integer. Otherwise, it returns the * number of bytes written. */ int write_socket(int s, char *command, char *payload) { int r, l; char *lstr; char *str; l = strlen(command); lstr = malloc(20); sprintf(lstr, "%i", l); str = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1); sprintf(str, "%s:%s%s", lstr, command, payload); r = network_write(s, str); free(str); free(lstr); return r; } /* * The close_socket() function closes the network socket (int s) and * ensures that necessary cleanup tasks are executed. */ void close_socket(int s) { network_close(s); socketlist_remove(s); disconnectfunction_exec(s); } /* * The main_socket() function returns the integer value for the main * socket file descriptor. For the client, the main socket is that which * communicates to the server. For the server, the main socket is that * which listens for new client connections. */ int main_socket(void) { return mainsocket_get(); } /* * The next_socket() function provides a iteration tool for traversing the * list of all active socket connections. Each call to next_socket() * returns the integer value for the next socket file descriptor in the * list. When the iteration reaches the end of the list, a negative * integer value is returned. */ int next_socket(void) { return socketlist_get_next(); } /* * The reset_next_socket() function sets an internally maintained list * position pointer to the start of the socket list. This function * should be called whenever you want the next_socket() function to * return the first socket in the socket list, such as the start of a * full socket list traversal. */ void reset_next_socket(void) { socketlist_reset_next(); } /* * The set_connect_function() function sets the given function pointer * (connectFunctionType functionPtr) as the "connect function". This * function is called for every new connection that is established. */ void set_connect_function(connectFunctionType functionPtr) { connectfunction_set(functionPtr); } /* * The set_disconnect_function() function sets the given function pointer * (disconnectFunctionType functionPtr) as the "disconnect function". This * function is called for every socket disconnection. */ void set_disconnect_function(disconnectFunctionType functionPtr) { disconnectfunction_set(functionPtr); } /* * The add_periodic_function() function adds the given function pointer * (prdFunctionType functionPtr) to a list of function pointers that are * executed at an interval defined by the symbolic constant * PERIODIC_SECONDS. */ void add_periodic_function(prdFunctionType functionPtr) { periodic_add(functionPtr); } /* * The add_command_function() function tells the client or server component * to execute the function pointer (comFunctionType functionPtr) when the * command (char *command) is received from a socket connection. */ void add_command_function(char *command, comFunctionType functionPtr) { command_add(command, functionPtr); } /* * The terminate() function tells the current client or server program * to terminate execution after the current function has returned * execution to the calling function. */ void terminate(void) { termflag_set(); }
32.54
126
(translation_unit) "// Copyright (c) 2017 <NAME>\n//\n// This program is free software; you can redistribute it and/or modify it\n// under the terms of the MIT License. See LICENSE for more details.\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include "modules/command.h"\n#include "modules/connectfunction.h"\n#include "modules/disconnectfunction.h"\n#include "modules/log.h"\n#include "modules/mainsocket.h"\n#include "modules/network.h"\n#include "modules/periodic.h"\n#include "modules/socketlist.h"\n#include "modules/termflag.h"\n\n/*\n * MODULE DESCRIPTION\n * \n * This module is meant to act as an abstraction layer that sits above\n * other modules contained in this project and provides user-friendly\n * access to lower level functionality that greatly simplifies the\n * customization process for the client and server modules.\n */\n\n/*\n * The write_socket() function writes the command (char *command) and\n * payload (char *payload) data to the socket (int s). If a write failure\n * occurs, it returns a negative integer. Otherwise, it returns the\n * number of bytes written.\n */\nint write_socket(int s, char *command, char *payload) {\n int r, l;\n char *lstr;\n char *str;\n \n l = strlen(command);\n lstr = malloc(20);\n sprintf(lstr, "%i", l);\n \n str = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1);\n sprintf(str, "%s:%s%s", lstr, command, payload);\n r = network_write(s, str);\n free(str);\n free(lstr);\n \n return r;\n}\n\n/*\n * The close_socket() function closes the network socket (int s) and\n * ensures that necessary cleanup tasks are executed.\n */\n\nvoid close_socket(int s) {\n network_close(s);\n socketlist_remove(s);\n disconnectfunction_exec(s);\n}\n\n/*\n * The main_socket() function returns the integer value for the main\n * socket file descriptor. For the client, the main socket is that which\n * communicates to the server. For the server, the main socket is that\n * which listens for new client connections.\n */\nint main_socket(void) {\n return mainsocket_get();\n}\n\n/*\n * The next_socket() function provides a iteration tool for traversing the\n * list of all active socket connections. Each call to next_socket()\n * returns the integer value for the next socket file descriptor in the\n * list. When the iteration reaches the end of the list, a negative\n * integer value is returned.\n */\nint next_socket(void) {\n return socketlist_get_next();\n}\n\n/*\n * The reset_next_socket() function sets an internally maintained list\n * position pointer to the start of the socket list. This function\n * should be called whenever you want the next_socket() function to\n * return the first socket in the socket list, such as the start of a\n * full socket list traversal.\n */\nvoid reset_next_socket(void) {\n socketlist_reset_next();\n}\n\n/*\n * The set_connect_function() function sets the given function pointer\n * (connectFunctionType functionPtr) as the "connect function". This\n * function is called for every new connection that is established.\n */\nvoid set_connect_function(connectFunctionType functionPtr) {\n connectfunction_set(functionPtr);\n}\n\n/*\n * The set_disconnect_function() function sets the given function pointer\n * (disconnectFunctionType functionPtr) as the "disconnect function". This\n * function is called for every socket disconnection.\n */\nvoid set_disconnect_function(disconnectFunctionType functionPtr) {\n disconnectfunction_set(functionPtr);\n}\n\n/*\n * The add_periodic_function() function adds the given function pointer\n * (prdFunctionType functionPtr) to a list of function pointers that are\n * executed at an interval defined by the symbolic constant\n * PERIODIC_SECONDS.\n */\nvoid add_periodic_function(prdFunctionType functionPtr) {\n periodic_add(functionPtr);\n}\n\n/*\n * The add_command_function() function tells the client or server component\n * to execute the function pointer (comFunctionType functionPtr) when the\n * command (char *command) is received from a socket connection.\n */\nvoid add_command_function(char *command, comFunctionType functionPtr) {\n command_add(command, functionPtr);\n}\n\n/*\n * The terminate() function tells the current client or server program\n * to terminate execution after the current function has returned\n * execution to the calling function.\n */\nvoid terminate(void) {\n termflag_set();\n}\n\n\n" (comment) "// Copyright (c) 2017 <NAME>" (comment) "//" (comment) "// This program is free software; you can redistribute it and/or modify it" (comment) "// under the terms of the MIT License. See LICENSE for more details." (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>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include "modules/command.h"\n" (#include) "#include" (string_literal) ""modules/command.h"" (") """ (string_content) "modules/command.h" (") """ (preproc_include) "#include "modules/connectfunction.h"\n" (#include) "#include" (string_literal) ""modules/connectfunction.h"" (") """ (string_content) "modules/connectfunction.h" (") """ (preproc_include) "#include "modules/disconnectfunction.h"\n" (#include) "#include" (string_literal) ""modules/disconnectfunction.h"" (") """ (string_content) "modules/disconnectfunction.h" (") """ (preproc_include) "#include "modules/log.h"\n" (#include) "#include" (string_literal) ""modules/log.h"" (") """ (string_content) "modules/log.h" (") """ (preproc_include) "#include "modules/mainsocket.h"\n" (#include) "#include" (string_literal) ""modules/mainsocket.h"" (") """ (string_content) "modules/mainsocket.h" (") """ (preproc_include) "#include "modules/network.h"\n" (#include) "#include" (string_literal) ""modules/network.h"" (") """ (string_content) "modules/network.h" (") """ (preproc_include) "#include "modules/periodic.h"\n" (#include) "#include" (string_literal) ""modules/periodic.h"" (") """ (string_content) "modules/periodic.h" (") """ (preproc_include) "#include "modules/socketlist.h"\n" (#include) "#include" (string_literal) ""modules/socketlist.h"" (") """ (string_content) "modules/socketlist.h" (") """ (preproc_include) "#include "modules/termflag.h"\n" (#include) "#include" (string_literal) ""modules/termflag.h"" (") """ (string_content) "modules/termflag.h" (") """ (comment) "/*\n * MODULE DESCRIPTION\n * \n * This module is meant to act as an abstraction layer that sits above\n * other modules contained in this project and provides user-friendly\n * access to lower level functionality that greatly simplifies the\n * customization process for the client and server modules.\n */" (comment) "/*\n * The write_socket() function writes the command (char *command) and\n * payload (char *payload) data to the socket (int s). If a write failure\n * occurs, it returns a negative integer. Otherwise, it returns the\n * number of bytes written.\n */" (function_definition) "int write_socket(int s, char *command, char *payload) {\n int r, l;\n char *lstr;\n char *str;\n \n l = strlen(command);\n lstr = malloc(20);\n sprintf(lstr, "%i", l);\n \n str = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1);\n sprintf(str, "%s:%s%s", lstr, command, payload);\n r = network_write(s, str);\n free(str);\n free(lstr);\n \n return r;\n}" (primitive_type) "int" (function_declarator) "write_socket(int s, char *command, char *payload)" (identifier) "write_socket" (parameter_list) "(int s, char *command, char *payload)" (() "(" (parameter_declaration) "int s" (primitive_type) "int" (identifier) "s" (,) "," (parameter_declaration) "char *command" (primitive_type) "char" (pointer_declarator) "*command" (*) "*" (identifier) "command" (,) "," (parameter_declaration) "char *payload" (primitive_type) "char" (pointer_declarator) "*payload" (*) "*" (identifier) "payload" ()) ")" (compound_statement) "{\n int r, l;\n char *lstr;\n char *str;\n \n l = strlen(command);\n lstr = malloc(20);\n sprintf(lstr, "%i", l);\n \n str = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1);\n sprintf(str, "%s:%s%s", lstr, command, payload);\n r = network_write(s, str);\n free(str);\n free(lstr);\n \n return r;\n}" ({) "{" (declaration) "int r, l;" (primitive_type) "int" (identifier) "r" (,) "," (identifier) "l" (;) ";" (declaration) "char *lstr;" (primitive_type) "char" (pointer_declarator) "*lstr" (*) "*" (identifier) "lstr" (;) ";" (declaration) "char *str;" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (;) ";" (expression_statement) "l = strlen(command);" (assignment_expression) "l = strlen(command)" (identifier) "l" (=) "=" (call_expression) "strlen(command)" (identifier) "strlen" (argument_list) "(command)" (() "(" (identifier) "command" ()) ")" (;) ";" (expression_statement) "lstr = malloc(20);" (assignment_expression) "lstr = malloc(20)" (identifier) "lstr" (=) "=" (call_expression) "malloc(20)" (identifier) "malloc" (argument_list) "(20)" (() "(" (number_literal) "20" ()) ")" (;) ";" (expression_statement) "sprintf(lstr, "%i", l);" (call_expression) "sprintf(lstr, "%i", l)" (identifier) "sprintf" (argument_list) "(lstr, "%i", l)" (() "(" (identifier) "lstr" (,) "," (string_literal) ""%i"" (") """ (string_content) "%i" (") """ (,) "," (identifier) "l" ()) ")" (;) ";" (expression_statement) "str = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1);" (assignment_expression) "str = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1)" (identifier) "str" (=) "=" (call_expression) "malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1)" (identifier) "malloc" (argument_list) "(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1)" (() "(" (binary_expression) "strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1" (binary_expression) "strlen(lstr) + 1 + strlen(command) + strlen(payload)" (binary_expression) "strlen(lstr) + 1 + strlen(command)" (binary_expression) "strlen(lstr) + 1" (call_expression) "strlen(lstr)" (identifier) "strlen" (argument_list) "(lstr)" (() "(" (identifier) "lstr" ()) ")" (+) "+" (number_literal) "1" (+) "+" (call_expression) "strlen(command)" (identifier) "strlen" (argument_list) "(command)" (() "(" (identifier) "command" ()) ")" (+) "+" (call_expression) "strlen(payload)" (identifier) "strlen" (argument_list) "(payload)" (() "(" (identifier) "payload" ()) ")" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "sprintf(str, "%s:%s%s", lstr, command, payload);" (call_expression) "sprintf(str, "%s:%s%s", lstr, command, payload)" (identifier) "sprintf" (argument_list) "(str, "%s:%s%s", lstr, command, payload)" (() "(" (identifier) "str" (,) "," (string_literal) ""%s:%s%s"" (") """ (string_content) "%s:%s%s" (") """ (,) "," (identifier) "lstr" (,) "," (identifier) "command" (,) "," (identifier) "payload" ()) ")" (;) ";" (expression_statement) "r = network_write(s, str);" (assignment_expression) "r = network_write(s, str)" (identifier) "r" (=) "=" (call_expression) "network_write(s, str)" (identifier) "network_write" (argument_list) "(s, str)" (() "(" (identifier) "s" (,) "," (identifier) "str" ()) ")" (;) ";" (expression_statement) "free(str);" (call_expression) "free(str)" (identifier) "free" (argument_list) "(str)" (() "(" (identifier) "str" ()) ")" (;) ";" (expression_statement) "free(lstr);" (call_expression) "free(lstr)" (identifier) "free" (argument_list) "(lstr)" (() "(" (identifier) "lstr" ()) ")" (;) ";" (return_statement) "return r;" (return) "return" (identifier) "r" (;) ";" (}) "}" (comment) "/*\n * The close_socket() function closes the network socket (int s) and\n * ensures that necessary cleanup tasks are executed.\n */" (function_definition) "void close_socket(int s) {\n network_close(s);\n socketlist_remove(s);\n disconnectfunction_exec(s);\n}" (primitive_type) "void" (function_declarator) "close_socket(int s)" (identifier) "close_socket" (parameter_list) "(int s)" (() "(" (parameter_declaration) "int s" (primitive_type) "int" (identifier) "s" ()) ")" (compound_statement) "{\n network_close(s);\n socketlist_remove(s);\n disconnectfunction_exec(s);\n}" ({) "{" (expression_statement) "network_close(s);" (call_expression) "network_close(s)" (identifier) "network_close" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (expression_statement) "socketlist_remove(s);" (call_expression) "socketlist_remove(s)" (identifier) "socketlist_remove" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (expression_statement) "disconnectfunction_exec(s);" (call_expression) "disconnectfunction_exec(s)" (identifier) "disconnectfunction_exec" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The main_socket() function returns the integer value for the main\n * socket file descriptor. For the client, the main socket is that which\n * communicates to the server. For the server, the main socket is that\n * which listens for new client connections.\n */" (function_definition) "int main_socket(void) {\n return mainsocket_get();\n}" (primitive_type) "int" (function_declarator) "main_socket(void)" (identifier) "main_socket" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return mainsocket_get();\n}" ({) "{" (return_statement) "return mainsocket_get();" (return) "return" (call_expression) "mainsocket_get()" (identifier) "mainsocket_get" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The next_socket() function provides a iteration tool for traversing the\n * list of all active socket connections. Each call to next_socket()\n * returns the integer value for the next socket file descriptor in the\n * list. When the iteration reaches the end of the list, a negative\n * integer value is returned.\n */" (function_definition) "int next_socket(void) {\n return socketlist_get_next();\n}" (primitive_type) "int" (function_declarator) "next_socket(void)" (identifier) "next_socket" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return socketlist_get_next();\n}" ({) "{" (return_statement) "return socketlist_get_next();" (return) "return" (call_expression) "socketlist_get_next()" (identifier) "socketlist_get_next" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The reset_next_socket() function sets an internally maintained list\n * position pointer to the start of the socket list. This function\n * should be called whenever you want the next_socket() function to\n * return the first socket in the socket list, such as the start of a\n * full socket list traversal.\n */" (function_definition) "void reset_next_socket(void) {\n socketlist_reset_next();\n}" (primitive_type) "void" (function_declarator) "reset_next_socket(void)" (identifier) "reset_next_socket" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n socketlist_reset_next();\n}" ({) "{" (expression_statement) "socketlist_reset_next();" (call_expression) "socketlist_reset_next()" (identifier) "socketlist_reset_next" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The set_connect_function() function sets the given function pointer\n * (connectFunctionType functionPtr) as the "connect function". This\n * function is called for every new connection that is established.\n */" (function_definition) "void set_connect_function(connectFunctionType functionPtr) {\n connectfunction_set(functionPtr);\n}" (primitive_type) "void" (function_declarator) "set_connect_function(connectFunctionType functionPtr)" (identifier) "set_connect_function" (parameter_list) "(connectFunctionType functionPtr)" (() "(" (parameter_declaration) "connectFunctionType functionPtr" (type_identifier) "connectFunctionType" (identifier) "functionPtr" ()) ")" (compound_statement) "{\n connectfunction_set(functionPtr);\n}" ({) "{" (expression_statement) "connectfunction_set(functionPtr);" (call_expression) "connectfunction_set(functionPtr)" (identifier) "connectfunction_set" (argument_list) "(functionPtr)" (() "(" (identifier) "functionPtr" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The set_disconnect_function() function sets the given function pointer\n * (disconnectFunctionType functionPtr) as the "disconnect function". This\n * function is called for every socket disconnection.\n */" (function_definition) "void set_disconnect_function(disconnectFunctionType functionPtr) {\n disconnectfunction_set(functionPtr);\n}" (primitive_type) "void" (function_declarator) "set_disconnect_function(disconnectFunctionType functionPtr)" (identifier) "set_disconnect_function" (parameter_list) "(disconnectFunctionType functionPtr)" (() "(" (parameter_declaration) "disconnectFunctionType functionPtr" (type_identifier) "disconnectFunctionType" (identifier) "functionPtr" ()) ")" (compound_statement) "{\n disconnectfunction_set(functionPtr);\n}" ({) "{" (expression_statement) "disconnectfunction_set(functionPtr);" (call_expression) "disconnectfunction_set(functionPtr)" (identifier) "disconnectfunction_set" (argument_list) "(functionPtr)" (() "(" (identifier) "functionPtr" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The add_periodic_function() function adds the given function pointer\n * (prdFunctionType functionPtr) to a list of function pointers that are\n * executed at an interval defined by the symbolic constant\n * PERIODIC_SECONDS.\n */" (function_definition) "void add_periodic_function(prdFunctionType functionPtr) {\n periodic_add(functionPtr);\n}" (primitive_type) "void" (function_declarator) "add_periodic_function(prdFunctionType functionPtr)" (identifier) "add_periodic_function" (parameter_list) "(prdFunctionType functionPtr)" (() "(" (parameter_declaration) "prdFunctionType functionPtr" (type_identifier) "prdFunctionType" (identifier) "functionPtr" ()) ")" (compound_statement) "{\n periodic_add(functionPtr);\n}" ({) "{" (expression_statement) "periodic_add(functionPtr);" (call_expression) "periodic_add(functionPtr)" (identifier) "periodic_add" (argument_list) "(functionPtr)" (() "(" (identifier) "functionPtr" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The add_command_function() function tells the client or server component\n * to execute the function pointer (comFunctionType functionPtr) when the\n * command (char *command) is received from a socket connection.\n */" (function_definition) "void add_command_function(char *command, comFunctionType functionPtr) {\n command_add(command, functionPtr);\n}" (primitive_type) "void" (function_declarator) "add_command_function(char *command, comFunctionType functionPtr)" (identifier) "add_command_function" (parameter_list) "(char *command, comFunctionType functionPtr)" (() "(" (parameter_declaration) "char *command" (primitive_type) "char" (pointer_declarator) "*command" (*) "*" (identifier) "command" (,) "," (parameter_declaration) "comFunctionType functionPtr" (type_identifier) "comFunctionType" (identifier) "functionPtr" ()) ")" (compound_statement) "{\n command_add(command, functionPtr);\n}" ({) "{" (expression_statement) "command_add(command, functionPtr);" (call_expression) "command_add(command, functionPtr)" (identifier) "command_add" (argument_list) "(command, functionPtr)" (() "(" (identifier) "command" (,) "," (identifier) "functionPtr" ()) ")" (;) ";" (}) "}" (comment) "/*\n * The terminate() function tells the current client or server program\n * to terminate execution after the current function has returned\n * execution to the calling function.\n */" (function_definition) "void terminate(void) {\n termflag_set();\n}" (primitive_type) "void" (function_declarator) "terminate(void)" (identifier) "terminate" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n termflag_set();\n}" ({) "{" (expression_statement) "termflag_set();" (call_expression) "termflag_set()" (identifier) "termflag_set" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}"
456
0
{"language": "c", "success": true, "metadata": {"lines": 126, "avg_line_length": 32.54, "nodes": 258, "errors": 0, "source_hash": "674696b3dd62107d266e5deee42bcc7d64fdcd18d468ef59db235a0d7e04edce", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <string.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": "<string.h>", "parent": 3, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"modules/command.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"modules/command.h\"", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 28}}, {"id": 12, "type": "preproc_include", "text": "#include \"modules/connectfunction.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"modules/connectfunction.h\"", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 36}}, {"id": 15, "type": "preproc_include", "text": "#include \"modules/disconnectfunction.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"modules/disconnectfunction.h\"", "parent": 15, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 39}}, {"id": 18, "type": "preproc_include", "text": "#include \"modules/log.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"modules/log.h\"", "parent": 18, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 24}}, {"id": 21, "type": "preproc_include", "text": "#include \"modules/mainsocket.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"modules/mainsocket.h\"", "parent": 21, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 31}}, {"id": 24, "type": "preproc_include", "text": "#include \"modules/network.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"modules/network.h\"", "parent": 24, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 28}}, {"id": 27, "type": "preproc_include", "text": "#include \"modules/periodic.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"modules/periodic.h\"", "parent": 27, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 29}}, {"id": 30, "type": "preproc_include", "text": "#include \"modules/socketlist.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"modules/socketlist.h\"", "parent": 30, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 31}}, {"id": 33, "type": "preproc_include", "text": "#include \"modules/termflag.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"modules/termflag.h\"", "parent": 33, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 29}}, {"id": 36, "type": "function_definition", "text": "int write_socket(int s, char *command, char *payload) {\n\tint r, l;\n\tchar *lstr;\n\tchar *str;\n\t\n\tl = strlen(command);\n\tlstr = malloc(20);\n\tsprintf(lstr, \"%i\", l);\n\t\n\tstr = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1);\n\tsprintf(str, \"%s:%s%s\", lstr, command, payload);\n\tr = network_write(s, str);\n\tfree(str);\n\tfree(lstr);\n\t\n\treturn r;\n}", "parent": null, "children": [37, 38], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 38, "type": "function_declarator", "text": "write_socket(int s, char *command, char *payload)", "parent": 36, "children": [39, 40], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 53}}, {"id": 39, "type": "identifier", "text": "write_socket", "parent": 38, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 16}}, {"id": 40, "type": "parameter_list", "text": "(int s, char *command, char *payload)", "parent": 38, "children": [41, 44, 49], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 53}}, {"id": 41, "type": "parameter_declaration", "text": "int s", "parent": 40, "children": [42, 43], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 22}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 20}}, {"id": 43, "type": "identifier", "text": "s", "parent": 41, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 44, "type": "parameter_declaration", "text": "char *command", "parent": 40, "children": [45, 46], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 37}}, {"id": 45, "type": "primitive_type", "text": "char", "parent": 44, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 28}}, {"id": 46, "type": "pointer_declarator", "text": "*command", "parent": 44, "children": [47, 48], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 37}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 30}}, {"id": 48, "type": "identifier", "text": "command", "parent": 46, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 37}}, {"id": 49, "type": "parameter_declaration", "text": "char *payload", "parent": 40, "children": [50, 51], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 52}}, {"id": 50, "type": "primitive_type", "text": "char", "parent": 49, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 43}}, {"id": 51, "type": "pointer_declarator", "text": "*payload", "parent": 49, "children": [52, 53], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 52}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 45}}, {"id": 53, "type": "identifier", "text": "payload", "parent": 51, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 52}}, {"id": 54, "type": "declaration", "text": "int r, l;", "parent": 36, "children": [55, 56, 57], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 10}}, {"id": 55, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 4}}, {"id": 56, "type": "identifier", "text": "r", "parent": 54, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 6}}, {"id": 57, "type": "identifier", "text": "l", "parent": 54, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 9}}, {"id": 58, "type": "declaration", "text": "char *lstr;", "parent": 36, "children": [59, 60], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 12}}, {"id": 59, "type": "primitive_type", "text": "char", "parent": 58, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 60, "type": "pointer_declarator", "text": "*lstr", "parent": 58, "children": [61, 62], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 11}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 7}}, {"id": 62, "type": "identifier", "text": "lstr", "parent": 60, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 63, "type": "declaration", "text": "char *str;", "parent": 36, "children": [64, 65], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 11}}, {"id": 64, "type": "primitive_type", "text": "char", "parent": 63, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 65, "type": "pointer_declarator", "text": "*str", "parent": 63, "children": [66, 67], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 10}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 7}}, {"id": 67, "type": "identifier", "text": "str", "parent": 65, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 10}}, {"id": 68, "type": "assignment_expression", "text": "l = strlen(command)", "parent": 36, "children": [69, 70, 71], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 20}}, {"id": 69, "type": "identifier", "text": "l", "parent": 68, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 2}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 4}}, {"id": 71, "type": "call_expression", "text": "strlen(command)", "parent": 68, "children": [72, 73], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 20}}, {"id": 72, "type": "identifier", "text": "strlen", "parent": 71, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 11}}, {"id": 73, "type": "argument_list", "text": "(command)", "parent": 71, "children": [74], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 20}}, {"id": 74, "type": "identifier", "text": "command", "parent": 73, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 19}}, {"id": 75, "type": "assignment_expression", "text": "lstr = malloc(20)", "parent": 36, "children": [76, 77, 78], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 18}}, {"id": 76, "type": "identifier", "text": "lstr", "parent": 75, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 5}}, {"id": 77, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 7}}, {"id": 78, "type": "call_expression", "text": "malloc(20)", "parent": 75, "children": [79, 80], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 18}}, {"id": 79, "type": "identifier", "text": "malloc", "parent": 78, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 80, "type": "argument_list", "text": "(20)", "parent": 78, "children": [81], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 18}}, {"id": 81, "type": "number_literal", "text": "20", "parent": 80, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 17}}, {"id": 82, "type": "call_expression", "text": "sprintf(lstr, \"%i\", l)", "parent": 36, "children": [83, 84], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 23}}, {"id": 83, "type": "identifier", "text": "sprintf", "parent": 82, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 8}}, {"id": 84, "type": "argument_list", "text": "(lstr, \"%i\", l)", "parent": 82, "children": [85, 86, 87], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 23}}, {"id": 85, "type": "identifier", "text": "lstr", "parent": 84, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 13}}, {"id": 86, "type": "string_literal", "text": "\"%i\"", "parent": 84, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 19}}, {"id": 87, "type": "identifier", "text": "l", "parent": 84, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 22}}, {"id": 88, "type": "assignment_expression", "text": "str = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1)", "parent": 36, "children": [89, 90, 91], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 71}}, {"id": 89, "type": "identifier", "text": "str", "parent": 88, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 4}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 6}}, {"id": 91, "type": "call_expression", "text": "malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1)", "parent": 88, "children": [92, 93], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 71}}, {"id": 92, "type": "identifier", "text": "malloc", "parent": 91, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 13}}, {"id": 93, "type": "argument_list", "text": "(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1)", "parent": 91, "children": [94], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 71}}, {"id": 94, "type": "binary_expression", "text": "strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1", "parent": 93, "children": [95, 114, 115], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 70}}, {"id": 95, "type": "binary_expression", "text": "strlen(lstr) + 1 + strlen(command) + strlen(payload)", "parent": 94, "children": [96, 109, 110], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 66}}, {"id": 96, "type": "binary_expression", "text": "strlen(lstr) + 1 + strlen(command)", "parent": 95, "children": [97, 104, 105], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 48}}, {"id": 97, "type": "binary_expression", "text": "strlen(lstr) + 1", "parent": 96, "children": [98, 102, 103], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 30}}, {"id": 98, "type": "call_expression", "text": "strlen(lstr)", "parent": 97, "children": [99, 100], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 26}}, {"id": 99, "type": "identifier", "text": "strlen", "parent": 98, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 20}}, {"id": 100, "type": "argument_list", "text": "(lstr)", "parent": 98, "children": [101], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 26}}, {"id": 101, "type": "identifier", "text": "lstr", "parent": 100, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 25}}, {"id": 102, "type": "+", "text": "+", "parent": 97, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 28}}, {"id": 103, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 30}}, {"id": 104, "type": "+", "text": "+", "parent": 96, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 32}}, {"id": 105, "type": "call_expression", "text": "strlen(command)", "parent": 96, "children": [106, 107], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 48}}, {"id": 106, "type": "identifier", "text": "strlen", "parent": 105, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 39}}, {"id": 107, "type": "argument_list", "text": "(command)", "parent": 105, "children": [108], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 48}}, {"id": 108, "type": "identifier", "text": "command", "parent": 107, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 47}}, {"id": 109, "type": "+", "text": "+", "parent": 95, "children": [], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 50}}, {"id": 110, "type": "call_expression", "text": "strlen(payload)", "parent": 95, "children": [111, 112], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 66}}, {"id": 111, "type": "identifier", "text": "strlen", "parent": 110, "children": [], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 57}}, {"id": 112, "type": "argument_list", "text": "(payload)", "parent": 110, "children": [113], "start_point": {"row": 42, "column": 57}, "end_point": {"row": 42, "column": 66}}, {"id": 113, "type": "identifier", "text": "payload", "parent": 112, "children": [], "start_point": {"row": 42, "column": 58}, "end_point": {"row": 42, "column": 65}}, {"id": 114, "type": "+", "text": "+", "parent": 94, "children": [], "start_point": {"row": 42, "column": 67}, "end_point": {"row": 42, "column": 68}}, {"id": 115, "type": "number_literal", "text": "1", "parent": 94, "children": [], "start_point": {"row": 42, "column": 69}, "end_point": {"row": 42, "column": 70}}, {"id": 116, "type": "call_expression", "text": "sprintf(str, \"%s:%s%s\", lstr, command, payload)", "parent": 36, "children": [117, 118], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 48}}, {"id": 117, "type": "identifier", "text": "sprintf", "parent": 116, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 118, "type": "argument_list", "text": "(str, \"%s:%s%s\", lstr, command, payload)", "parent": 116, "children": [119, 120, 121, 122, 123], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 48}}, {"id": 119, "type": "identifier", "text": "str", "parent": 118, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 12}}, {"id": 120, "type": "string_literal", "text": "\"%s:%s%s\"", "parent": 118, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 23}}, {"id": 121, "type": "identifier", "text": "lstr", "parent": 118, "children": [], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 29}}, {"id": 122, "type": "identifier", "text": "command", "parent": 118, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 38}}, {"id": 123, "type": "identifier", "text": "payload", "parent": 118, "children": [], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 47}}, {"id": 124, "type": "assignment_expression", "text": "r = network_write(s, str)", "parent": 36, "children": [125, 126, 127], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 26}}, {"id": 125, "type": "identifier", "text": "r", "parent": 124, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 2}}, {"id": 126, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 4}}, {"id": 127, "type": "call_expression", "text": "network_write(s, str)", "parent": 124, "children": [128, 129], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 26}}, {"id": 128, "type": "identifier", "text": "network_write", "parent": 127, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 18}}, {"id": 129, "type": "argument_list", "text": "(s, str)", "parent": 127, "children": [130, 131], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 26}}, {"id": 130, "type": "identifier", "text": "s", "parent": 129, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 20}}, {"id": 131, "type": "identifier", "text": "str", "parent": 129, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 25}}, {"id": 132, "type": "call_expression", "text": "free(str)", "parent": 36, "children": [133, 134], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 10}}, {"id": 133, "type": "identifier", "text": "free", "parent": 132, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 5}}, {"id": 134, "type": "argument_list", "text": "(str)", "parent": 132, "children": [135], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 10}}, {"id": 135, "type": "identifier", "text": "str", "parent": 134, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 9}}, {"id": 136, "type": "call_expression", "text": "free(lstr)", "parent": 36, "children": [137, 138], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 11}}, {"id": 137, "type": "identifier", "text": "free", "parent": 136, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 5}}, {"id": 138, "type": "argument_list", "text": "(lstr)", "parent": 136, "children": [139], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 11}}, {"id": 139, "type": "identifier", "text": "lstr", "parent": 138, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 10}}, {"id": 140, "type": "return_statement", "text": "return r;", "parent": 36, "children": [141], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 10}}, {"id": 141, "type": "identifier", "text": "r", "parent": 140, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 142, "type": "function_definition", "text": "void close_socket(int s) {\n\tnetwork_close(s);\n\tsocketlist_remove(s);\n\tdisconnectfunction_exec(s);\n}", "parent": null, "children": [143, 144], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 143, "type": "primitive_type", "text": "void", "parent": 142, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 144, "type": "function_declarator", "text": "close_socket(int s)", "parent": 142, "children": [145, 146], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 24}}, {"id": 145, "type": "identifier", "text": "close_socket", "parent": 144, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 17}}, {"id": 146, "type": "parameter_list", "text": "(int s)", "parent": 144, "children": [147], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 24}}, {"id": 147, "type": "parameter_declaration", "text": "int s", "parent": 146, "children": [148, 149], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 23}}, {"id": 148, "type": "primitive_type", "text": "int", "parent": 147, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 21}}, {"id": 149, "type": "identifier", "text": "s", "parent": 147, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 23}}, {"id": 150, "type": "call_expression", "text": "network_close(s)", "parent": 142, "children": [151, 152], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 17}}, {"id": 151, "type": "identifier", "text": "network_close", "parent": 150, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 14}}, {"id": 152, "type": "argument_list", "text": "(s)", "parent": 150, "children": [153], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 17}}, {"id": 153, "type": "identifier", "text": "s", "parent": 152, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 154, "type": "call_expression", "text": "socketlist_remove(s)", "parent": 142, "children": [155, 156], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 21}}, {"id": 155, "type": "identifier", "text": "socketlist_remove", "parent": 154, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 18}}, {"id": 156, "type": "argument_list", "text": "(s)", "parent": 154, "children": [157], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 21}}, {"id": 157, "type": "identifier", "text": "s", "parent": 156, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 20}}, {"id": 158, "type": "call_expression", "text": "disconnectfunction_exec(s)", "parent": 142, "children": [159, 160], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 27}}, {"id": 159, "type": "identifier", "text": "disconnectfunction_exec", "parent": 158, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 24}}, {"id": 160, "type": "argument_list", "text": "(s)", "parent": 158, "children": [161], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 27}}, {"id": 161, "type": "identifier", "text": "s", "parent": 160, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 26}}, {"id": 162, "type": "function_definition", "text": "int main_socket(void) {\n\treturn mainsocket_get();\n}", "parent": null, "children": [163, 164], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 163, "type": "primitive_type", "text": "int", "parent": 162, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 3}}, {"id": 164, "type": "function_declarator", "text": "main_socket(void)", "parent": 162, "children": [165, 166], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 21}}, {"id": 165, "type": "identifier", "text": "main_socket", "parent": 164, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 15}}, {"id": 166, "type": "parameter_list", "text": "(void)", "parent": 164, "children": [167], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 21}}, {"id": 167, "type": "parameter_declaration", "text": "void", "parent": 166, "children": [168], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 20}}, {"id": 168, "type": "primitive_type", "text": "void", "parent": 167, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 20}}, {"id": 169, "type": "return_statement", "text": "return mainsocket_get();", "parent": 162, "children": [170], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 25}}, {"id": 170, "type": "call_expression", "text": "mainsocket_get()", "parent": 169, "children": [171, 172], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 24}}, {"id": 171, "type": "identifier", "text": "mainsocket_get", "parent": 170, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 22}}, {"id": 172, "type": "argument_list", "text": "()", "parent": 170, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 24}}, {"id": 173, "type": "function_definition", "text": "int next_socket(void) {\n\treturn socketlist_get_next();\n}", "parent": null, "children": [174, 175], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 174, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 3}}, {"id": 175, "type": "function_declarator", "text": "next_socket(void)", "parent": 173, "children": [176, 177], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 21}}, {"id": 176, "type": "identifier", "text": "next_socket", "parent": 175, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 15}}, {"id": 177, "type": "parameter_list", "text": "(void)", "parent": 175, "children": [178], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 21}}, {"id": 178, "type": "parameter_declaration", "text": "void", "parent": 177, "children": [179], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 20}}, {"id": 179, "type": "primitive_type", "text": "void", "parent": 178, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 20}}, {"id": 180, "type": "return_statement", "text": "return socketlist_get_next();", "parent": 173, "children": [181], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 30}}, {"id": 181, "type": "call_expression", "text": "socketlist_get_next()", "parent": 180, "children": [182, 183], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 29}}, {"id": 182, "type": "identifier", "text": "socketlist_get_next", "parent": 181, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 27}}, {"id": 183, "type": "argument_list", "text": "()", "parent": 181, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 29}}, {"id": 184, "type": "function_definition", "text": "void reset_next_socket(void) {\n\tsocketlist_reset_next();\n}", "parent": null, "children": [185, 186], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 92, "column": 1}}, {"id": 185, "type": "primitive_type", "text": "void", "parent": 184, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 4}}, {"id": 186, "type": "function_declarator", "text": "reset_next_socket(void)", "parent": 184, "children": [187, 188], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 28}}, {"id": 187, "type": "identifier", "text": "reset_next_socket", "parent": 186, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 22}}, {"id": 188, "type": "parameter_list", "text": "(void)", "parent": 186, "children": [189], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 28}}, {"id": 189, "type": "parameter_declaration", "text": "void", "parent": 188, "children": [190], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 27}}, {"id": 190, "type": "primitive_type", "text": "void", "parent": 189, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 27}}, {"id": 191, "type": "call_expression", "text": "socketlist_reset_next()", "parent": 184, "children": [192, 193], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 24}}, {"id": 192, "type": "identifier", "text": "socketlist_reset_next", "parent": 191, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 22}}, {"id": 193, "type": "argument_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 24}}, {"id": 194, "type": "function_definition", "text": "void set_connect_function(connectFunctionType functionPtr) {\n\tconnectfunction_set(functionPtr);\n}", "parent": null, "children": [195, 196], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 101, "column": 1}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 4}}, {"id": 196, "type": "function_declarator", "text": "set_connect_function(connectFunctionType functionPtr)", "parent": 194, "children": [197, 198], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 58}}, {"id": 197, "type": "identifier", "text": "set_connect_function", "parent": 196, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 25}}, {"id": 198, "type": "parameter_list", "text": "(connectFunctionType functionPtr)", "parent": 196, "children": [199], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 58}}, {"id": 199, "type": "parameter_declaration", "text": "connectFunctionType functionPtr", "parent": 198, "children": [200, 201], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 57}}, {"id": 200, "type": "type_identifier", "text": "connectFunctionType", "parent": 199, "children": [], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 45}}, {"id": 201, "type": "identifier", "text": "functionPtr", "parent": 199, "children": [], "start_point": {"row": 99, "column": 46}, "end_point": {"row": 99, "column": 57}}, {"id": 202, "type": "call_expression", "text": "connectfunction_set(functionPtr)", "parent": 194, "children": [203, 204], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 33}}, {"id": 203, "type": "identifier", "text": "connectfunction_set", "parent": 202, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 20}}, {"id": 204, "type": "argument_list", "text": "(functionPtr)", "parent": 202, "children": [205], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 33}}, {"id": 205, "type": "identifier", "text": "functionPtr", "parent": 204, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 32}}, {"id": 206, "type": "function_definition", "text": "void set_disconnect_function(disconnectFunctionType functionPtr) {\n\tdisconnectfunction_set(functionPtr);\n}", "parent": null, "children": [207, 208], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 110, "column": 1}}, {"id": 207, "type": "primitive_type", "text": "void", "parent": 206, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 4}}, {"id": 208, "type": "function_declarator", "text": "set_disconnect_function(disconnectFunctionType functionPtr)", "parent": 206, "children": [209, 210], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 64}}, {"id": 209, "type": "identifier", "text": "set_disconnect_function", "parent": 208, "children": [], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 28}}, {"id": 210, "type": "parameter_list", "text": "(disconnectFunctionType functionPtr)", "parent": 208, "children": [211], "start_point": {"row": 108, "column": 28}, "end_point": {"row": 108, "column": 64}}, {"id": 211, "type": "parameter_declaration", "text": "disconnectFunctionType functionPtr", "parent": 210, "children": [212, 213], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 63}}, {"id": 212, "type": "type_identifier", "text": "disconnectFunctionType", "parent": 211, "children": [], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 51}}, {"id": 213, "type": "identifier", "text": "functionPtr", "parent": 211, "children": [], "start_point": {"row": 108, "column": 52}, "end_point": {"row": 108, "column": 63}}, {"id": 214, "type": "call_expression", "text": "disconnectfunction_set(functionPtr)", "parent": 206, "children": [215, 216], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 36}}, {"id": 215, "type": "identifier", "text": "disconnectfunction_set", "parent": 214, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 23}}, {"id": 216, "type": "argument_list", "text": "(functionPtr)", "parent": 214, "children": [217], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 36}}, {"id": 217, "type": "identifier", "text": "functionPtr", "parent": 216, "children": [], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 35}}, {"id": 218, "type": "function_definition", "text": "void add_periodic_function(prdFunctionType functionPtr) {\n\tperiodic_add(functionPtr);\n}", "parent": null, "children": [219, 220], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 219, "type": "primitive_type", "text": "void", "parent": 218, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 4}}, {"id": 220, "type": "function_declarator", "text": "add_periodic_function(prdFunctionType functionPtr)", "parent": 218, "children": [221, 222], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 55}}, {"id": 221, "type": "identifier", "text": "add_periodic_function", "parent": 220, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 26}}, {"id": 222, "type": "parameter_list", "text": "(prdFunctionType functionPtr)", "parent": 220, "children": [223], "start_point": {"row": 118, "column": 26}, "end_point": {"row": 118, "column": 55}}, {"id": 223, "type": "parameter_declaration", "text": "prdFunctionType functionPtr", "parent": 222, "children": [224, 225], "start_point": {"row": 118, "column": 27}, "end_point": {"row": 118, "column": 54}}, {"id": 224, "type": "type_identifier", "text": "prdFunctionType", "parent": 223, "children": [], "start_point": {"row": 118, "column": 27}, "end_point": {"row": 118, "column": 42}}, {"id": 225, "type": "identifier", "text": "functionPtr", "parent": 223, "children": [], "start_point": {"row": 118, "column": 43}, "end_point": {"row": 118, "column": 54}}, {"id": 226, "type": "call_expression", "text": "periodic_add(functionPtr)", "parent": 218, "children": [227, 228], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 26}}, {"id": 227, "type": "identifier", "text": "periodic_add", "parent": 226, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 13}}, {"id": 228, "type": "argument_list", "text": "(functionPtr)", "parent": 226, "children": [229], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 26}}, {"id": 229, "type": "identifier", "text": "functionPtr", "parent": 228, "children": [], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 25}}, {"id": 230, "type": "function_definition", "text": "void add_command_function(char *command, comFunctionType functionPtr) {\n\tcommand_add(command, functionPtr);\n}", "parent": null, "children": [231, 232], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 231, "type": "primitive_type", "text": "void", "parent": 230, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 4}}, {"id": 232, "type": "function_declarator", "text": "add_command_function(char *command, comFunctionType functionPtr)", "parent": 230, "children": [233, 234], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 69}}, {"id": 233, "type": "identifier", "text": "add_command_function", "parent": 232, "children": [], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 25}}, {"id": 234, "type": "parameter_list", "text": "(char *command, comFunctionType functionPtr)", "parent": 232, "children": [235, 240], "start_point": {"row": 127, "column": 25}, "end_point": {"row": 127, "column": 69}}, {"id": 235, "type": "parameter_declaration", "text": "char *command", "parent": 234, "children": [236, 237], "start_point": {"row": 127, "column": 26}, "end_point": {"row": 127, "column": 39}}, {"id": 236, "type": "primitive_type", "text": "char", "parent": 235, "children": [], "start_point": {"row": 127, "column": 26}, "end_point": {"row": 127, "column": 30}}, {"id": 237, "type": "pointer_declarator", "text": "*command", "parent": 235, "children": [238, 239], "start_point": {"row": 127, "column": 31}, "end_point": {"row": 127, "column": 39}}, {"id": 238, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 127, "column": 31}, "end_point": {"row": 127, "column": 32}}, {"id": 239, "type": "identifier", "text": "command", "parent": 237, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 39}}, {"id": 240, "type": "parameter_declaration", "text": "comFunctionType functionPtr", "parent": 234, "children": [241, 242], "start_point": {"row": 127, "column": 41}, "end_point": {"row": 127, "column": 68}}, {"id": 241, "type": "type_identifier", "text": "comFunctionType", "parent": 240, "children": [], "start_point": {"row": 127, "column": 41}, "end_point": {"row": 127, "column": 56}}, {"id": 242, "type": "identifier", "text": "functionPtr", "parent": 240, "children": [], "start_point": {"row": 127, "column": 57}, "end_point": {"row": 127, "column": 68}}, {"id": 243, "type": "call_expression", "text": "command_add(command, functionPtr)", "parent": 230, "children": [244, 245], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 34}}, {"id": 244, "type": "identifier", "text": "command_add", "parent": 243, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 12}}, {"id": 245, "type": "argument_list", "text": "(command, functionPtr)", "parent": 243, "children": [246, 247], "start_point": {"row": 128, "column": 12}, "end_point": {"row": 128, "column": 34}}, {"id": 246, "type": "identifier", "text": "command", "parent": 245, "children": [], "start_point": {"row": 128, "column": 13}, "end_point": {"row": 128, "column": 20}}, {"id": 247, "type": "identifier", "text": "functionPtr", "parent": 245, "children": [], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 33}}, {"id": 248, "type": "function_definition", "text": "void terminate(void) {\n\ttermflag_set();\n}", "parent": null, "children": [249, 250], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 249, "type": "primitive_type", "text": "void", "parent": 248, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 4}}, {"id": 250, "type": "function_declarator", "text": "terminate(void)", "parent": 248, "children": [251, 252], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 20}}, {"id": 251, "type": "identifier", "text": "terminate", "parent": 250, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 14}}, {"id": 252, "type": "parameter_list", "text": "(void)", "parent": 250, "children": [253], "start_point": {"row": 136, "column": 14}, "end_point": {"row": 136, "column": 20}}, {"id": 253, "type": "parameter_declaration", "text": "void", "parent": 252, "children": [254], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 19}}, {"id": 254, "type": "primitive_type", "text": "void", "parent": 253, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 19}}, {"id": 255, "type": "call_expression", "text": "termflag_set()", "parent": 248, "children": [256, 257], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 15}}, {"id": 256, "type": "identifier", "text": "termflag_set", "parent": 255, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 13}}, {"id": 257, "type": "argument_list", "text": "()", "parent": 255, "children": [], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 15}}]}, "node_categories": {"declarations": {"functions": [36, 38, 142, 144, 162, 164, 173, 175, 184, 186, 194, 196, 206, 208, 218, 220, 230, 232, 248, 250], "variables": [41, 44, 49, 54, 58, 63, 147, 167, 178, 189, 199, 211, 223, 235, 240, 253], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34], "modules": [], "enums": []}, "statements": {"expressions": [71, 78, 82, 91, 94, 95, 96, 97, 98, 105, 110, 116, 127, 132, 136, 150, 154, 158, 170, 181, 191, 202, 214, 226, 243, 255], "assignments": [68, 75, 88, 124], "loops": [], "conditionals": [39, 43, 48, 53, 56, 57, 62, 67, 69, 72, 74, 76, 79, 83, 85, 87, 89, 92, 99, 101, 106, 108, 111, 113, 117, 119, 121, 122, 123, 125, 128, 130, 131, 133, 135, 137, 139, 141, 145, 149, 151, 153, 155, 157, 159, 161, 165, 171, 176, 182, 187, 192, 197, 200, 201, 203, 205, 209, 212, 213, 215, 217, 221, 224, 225, 227, 229, 233, 239, 241, 242, 244, 246, 247, 251, 256], "returns": [140, 169, 180], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 81, 86, 103, 115, 120], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "write_socket", "text_snippet": "int write_socket(int s, char *command, char *payload) {\n\tint r, l;\n\tchar *lstr;\n\tchar *str;\n\t\n\tl = s"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "write_socket(int s, char *command, char *payload)"}, {"node_id": 142, "universal_type": "function", "name": "close_socket", "text_snippet": "void close_socket(int s) {\n\tnetwork_close(s);\n\tsocketlist_remove(s);\n\tdisconnectfunction_exec(s);\n}"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "close_socket(int s)"}, {"node_id": 162, "universal_type": "function", "name": "main_socket", "text_snippet": "int main_socket(void) {\n\treturn mainsocket_get();\n}"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "main_socket(void)"}, {"node_id": 173, "universal_type": "function", "name": "next_socket", "text_snippet": "int next_socket(void) {\n\treturn socketlist_get_next();\n}"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "next_socket(void)"}, {"node_id": 184, "universal_type": "function", "name": "reset_next_socket", "text_snippet": "void reset_next_socket(void) {\n\tsocketlist_reset_next();\n}"}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "reset_next_socket(void)"}, {"node_id": 194, "universal_type": "function", "name": "set_connect_function", "text_snippet": "void set_connect_function(connectFunctionType functionPtr) {\n\tconnectfunction_set(functionPtr);\n}"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "set_connect_function(connectFunctionType functionPtr)"}, {"node_id": 206, "universal_type": "function", "name": "set_disconnect_function", "text_snippet": "void set_disconnect_function(disconnectFunctionType functionPtr) {\n\tdisconnectfunction_set(functionP"}, {"node_id": 208, "universal_type": "function", "name": "unknown", "text_snippet": "set_disconnect_function(disconnectFunctionType functionPtr)"}, {"node_id": 218, "universal_type": "function", "name": "add_periodic_function", "text_snippet": "void add_periodic_function(prdFunctionType functionPtr) {\n\tperiodic_add(functionPtr);\n}"}, {"node_id": 220, "universal_type": "function", "name": "unknown", "text_snippet": "add_periodic_function(prdFunctionType functionPtr)"}, {"node_id": 230, "universal_type": "function", "name": "add_command_function", "text_snippet": "void add_command_function(char *command, comFunctionType functionPtr) {\n\tcommand_add(command, functi"}, {"node_id": 232, "universal_type": "function", "name": "unknown", "text_snippet": "add_command_function(char *command, comFunctionType functionPtr)"}, {"node_id": 248, "universal_type": "function", "name": "terminate", "text_snippet": "void terminate(void) {\n\ttermflag_set();\n}"}, {"node_id": 250, "universal_type": "function", "name": "unknown", "text_snippet": "terminate(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <string.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdlib.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"modules/command.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"modules/connectfunction.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"modules/disconnectfunction.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"modules/log.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"modules/mainsocket.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"modules/network.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"modules/periodic.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"modules/socketlist.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"modules/termflag.h\"\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "// Copyright (c) 2017 <NAME>\n//\n// This program is free software; you can redistribute it and/or modify it\n// under the terms of the MIT License. See LICENSE for more details.\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#include \"modules/command.h\"\n#include \"modules/connectfunction.h\"\n#include \"modules/disconnectfunction.h\"\n#include \"modules/log.h\"\n#include \"modules/mainsocket.h\"\n#include \"modules/network.h\"\n#include \"modules/periodic.h\"\n#include \"modules/socketlist.h\"\n#include \"modules/termflag.h\"\n\n/*\n * MODULE DESCRIPTION\n * \n * This module is meant to act as an abstraction layer that sits above\n * other modules contained in this project and provides user-friendly\n * access to lower level functionality that greatly simplifies the\n * customization process for the client and server modules.\n */\n\n/*\n * The write_socket() function writes the command (char *command) and\n * payload (char *payload) data to the socket (int s). If a write failure\n * occurs, it returns a negative integer. Otherwise, it returns the\n * number of bytes written.\n */\nint write_socket(int s, char *command, char *payload) {\n\tint r, l;\n\tchar *lstr;\n\tchar *str;\n\t\n\tl = strlen(command);\n\tlstr = malloc(20);\n\tsprintf(lstr, \"%i\", l);\n\t\n\tstr = malloc(strlen(lstr) + 1 + strlen(command) + strlen(payload) + 1);\n\tsprintf(str, \"%s:%s%s\", lstr, command, payload);\n\tr = network_write(s, str);\n\tfree(str);\n\tfree(lstr);\n\t\n\treturn r;\n}\n\n/*\n * The close_socket() function closes the network socket (int s) and\n * ensures that necessary cleanup tasks are executed.\n */\n\nvoid close_socket(int s) {\n\tnetwork_close(s);\n\tsocketlist_remove(s);\n\tdisconnectfunction_exec(s);\n}\n\n/*\n * The main_socket() function returns the integer value for the main\n * socket file descriptor. For the client, the main socket is that which\n * communicates to the server. For the server, the main socket is that\n * which listens for new client connections.\n */\nint main_socket(void) {\n\treturn mainsocket_get();\n}\n\n/*\n * The next_socket() function provides a iteration tool for traversing the\n * list of all active socket connections. Each call to next_socket()\n * returns the integer value for the next socket file descriptor in the\n * list. When the iteration reaches the end of the list, a negative\n * integer value is returned.\n */\nint next_socket(void) {\n\treturn socketlist_get_next();\n}\n\n/*\n * The reset_next_socket() function sets an internally maintained list\n * position pointer to the start of the socket list. This function\n * should be called whenever you want the next_socket() function to\n * return the first socket in the socket list, such as the start of a\n * full socket list traversal.\n */\nvoid reset_next_socket(void) {\n\tsocketlist_reset_next();\n}\n\n/*\n * The set_connect_function() function sets the given function pointer\n * (connectFunctionType functionPtr) as the \"connect function\". This\n * function is called for every new connection that is established.\n */\nvoid set_connect_function(connectFunctionType functionPtr) {\n\tconnectfunction_set(functionPtr);\n}\n\n/*\n * The set_disconnect_function() function sets the given function pointer\n * (disconnectFunctionType functionPtr) as the \"disconnect function\". This\n * function is called for every socket disconnection.\n */\nvoid set_disconnect_function(disconnectFunctionType functionPtr) {\n\tdisconnectfunction_set(functionPtr);\n}\n\n/*\n * The add_periodic_function() function adds the given function pointer\n * (prdFunctionType functionPtr) to a list of function pointers that are\n * executed at an interval defined by the symbolic constant\n * PERIODIC_SECONDS.\n */\nvoid add_periodic_function(prdFunctionType functionPtr) {\n\tperiodic_add(functionPtr);\n}\n\n/*\n * The add_command_function() function tells the client or server component\n * to execute the function pointer (comFunctionType functionPtr) when the\n * command (char *command) is received from a socket connection.\n */\nvoid add_command_function(char *command, comFunctionType functionPtr) {\n\tcommand_add(command, functionPtr);\n}\n\n/*\n * The terminate() function tells the current client or server program\n * to terminate execution after the current function has returned\n * execution to the calling function.\n */\nvoid terminate(void) {\n\ttermflag_set();\n}\n\n\n"}
80,808
c
#include <stdio.h> int main(void) { float first,middle,last; printf("Give me three => "); scanf("%f%f%f", &first, &middle, &last); printf("The result / average: %.2f\n", (first + middle + last) / 3.0); return 0; }
28.25
8
(translation_unit) "#include <stdio.h>\n\nint main(void) {\n float first,middle,last;\n\n printf("Give me three => ");\n scanf("%f%f%f", &first, &middle, &last);\n printf("The result / average: %.2f\n", (first + middle + last) / 3.0);\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(void) {\n float first,middle,last;\n\n printf("Give me three => ");\n scanf("%f%f%f", &first, &middle, &last);\n printf("The result / average: %.2f\n", (first + middle + last) / 3.0);\n return 0;\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n float first,middle,last;\n\n printf("Give me three => ");\n scanf("%f%f%f", &first, &middle, &last);\n printf("The result / average: %.2f\n", (first + middle + last) / 3.0);\n return 0;\n}" ({) "{" (declaration) "float first,middle,last;" (primitive_type) "float" (identifier) "first" (,) "," (identifier) "middle" (,) "," (identifier) "last" (;) ";" (expression_statement) "printf("Give me three => ");" (call_expression) "printf("Give me three => ")" (identifier) "printf" (argument_list) "("Give me three => ")" (() "(" (string_literal) ""Give me three => "" (") """ (string_content) "Give me three => " (") """ ()) ")" (;) ";" (expression_statement) "scanf("%f%f%f", &first, &middle, &last);" (call_expression) "scanf("%f%f%f", &first, &middle, &last)" (identifier) "scanf" (argument_list) "("%f%f%f", &first, &middle, &last)" (() "(" (string_literal) ""%f%f%f"" (") """ (string_content) "%f%f%f" (") """ (,) "," (pointer_expression) "&first" (&) "&" (identifier) "first" (,) "," (pointer_expression) "&middle" (&) "&" (identifier) "middle" (,) "," (pointer_expression) "&last" (&) "&" (identifier) "last" ()) ")" (;) ";" (expression_statement) "printf("The result / average: %.2f\n", (first + middle + last) / 3.0);" (call_expression) "printf("The result / average: %.2f\n", (first + middle + last) / 3.0)" (identifier) "printf" (argument_list) "("The result / average: %.2f\n", (first + middle + last) / 3.0)" (() "(" (string_literal) ""The result / average: %.2f\n"" (") """ (string_content) "The result / average: %.2f" (escape_sequence) "\n" (") """ (,) "," (binary_expression) "(first + middle + last) / 3.0" (parenthesized_expression) "(first + middle + last)" (() "(" (binary_expression) "first + middle + last" (binary_expression) "first + middle" (identifier) "first" (+) "+" (identifier) "middle" (+) "+" (identifier) "last" ()) ")" (/) "/" (number_literal) "3.0" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
88
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 28.25, "nodes": 47, "errors": 0, "source_hash": "398be65784de2e32c1fcb8c1a26e3d27f1e86e4d9e17c4bbb28666a03d5ff038", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int main(void) {\n float first,middle,last;\n\n printf(\"Give me three => \");\n scanf(\"%f%f%f\", &first, &middle, &last);\n printf(\"The result / average: %.2f\\n\", (first + middle + last) / 3.0);\n return 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 9, "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": "float first,middle,last;", "parent": 3, "children": [11, 12, 13, 14], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 28}}, {"id": 11, "type": "primitive_type", "text": "float", "parent": 10, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 9}}, {"id": 12, "type": "identifier", "text": "first", "parent": 10, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 15}}, {"id": 13, "type": "identifier", "text": "middle", "parent": 10, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 22}}, {"id": 14, "type": "identifier", "text": "last", "parent": 10, "children": [], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 27}}, {"id": 15, "type": "call_expression", "text": "printf(\"Give me three => \")", "parent": 3, "children": [16, 17], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 31}}, {"id": 16, "type": "identifier", "text": "printf", "parent": 15, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 17, "type": "argument_list", "text": "(\"Give me three => \")", "parent": 15, "children": [18], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 31}}, {"id": 18, "type": "string_literal", "text": "\"Give me three => \"", "parent": 17, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 30}}, {"id": 19, "type": "call_expression", "text": "scanf(\"%f%f%f\", &first, &middle, &last)", "parent": 3, "children": [20, 21], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 43}}, {"id": 20, "type": "identifier", "text": "scanf", "parent": 19, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 9}}, {"id": 21, "type": "argument_list", "text": "(\"%f%f%f\", &first, &middle, &last)", "parent": 19, "children": [22, 23, 25, 27], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 43}}, {"id": 22, "type": "string_literal", "text": "\"%f%f%f\"", "parent": 21, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 18}}, {"id": 23, "type": "pointer_expression", "text": "&first", "parent": 21, "children": [24], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 26}}, {"id": 24, "type": "identifier", "text": "first", "parent": 23, "children": [], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 26}}, {"id": 25, "type": "pointer_expression", "text": "&middle", "parent": 21, "children": [26], "start_point": {"row": 6, "column": 28}, "end_point": {"row": 6, "column": 35}}, {"id": 26, "type": "identifier", "text": "middle", "parent": 25, "children": [], "start_point": {"row": 6, "column": 29}, "end_point": {"row": 6, "column": 35}}, {"id": 27, "type": "pointer_expression", "text": "&last", "parent": 21, "children": [28], "start_point": {"row": 6, "column": 37}, "end_point": {"row": 6, "column": 42}}, {"id": 28, "type": "identifier", "text": "last", "parent": 27, "children": [], "start_point": {"row": 6, "column": 38}, "end_point": {"row": 6, "column": 42}}, {"id": 29, "type": "call_expression", "text": "printf(\"The result / average: %.2f\\n\", (first + middle + last) / 3.0)", "parent": 3, "children": [30, 31], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 73}}, {"id": 30, "type": "identifier", "text": "printf", "parent": 29, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 31, "type": "argument_list", "text": "(\"The result / average: %.2f\\n\", (first + middle + last) / 3.0)", "parent": 29, "children": [32, 34], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 73}}, {"id": 32, "type": "string_literal", "text": "\"The result / average: %.2f\\n\"", "parent": 31, "children": [33], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 41}}, {"id": 33, "type": "escape_sequence", "text": "\\n", "parent": 32, "children": [], "start_point": {"row": 7, "column": 38}, "end_point": {"row": 7, "column": 40}}, {"id": 34, "type": "binary_expression", "text": "(first + middle + last) / 3.0", "parent": 31, "children": [35, 43, 44], "start_point": {"row": 7, "column": 43}, "end_point": {"row": 7, "column": 72}}, {"id": 35, "type": "parenthesized_expression", "text": "(first + middle + last)", "parent": 34, "children": [36], "start_point": {"row": 7, "column": 43}, "end_point": {"row": 7, "column": 66}}, {"id": 36, "type": "binary_expression", "text": "first + middle + last", "parent": 35, "children": [37, 41, 42], "start_point": {"row": 7, "column": 44}, "end_point": {"row": 7, "column": 65}}, {"id": 37, "type": "binary_expression", "text": "first + middle", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 7, "column": 44}, "end_point": {"row": 7, "column": 58}}, {"id": 38, "type": "identifier", "text": "first", "parent": 37, "children": [], "start_point": {"row": 7, "column": 44}, "end_point": {"row": 7, "column": 49}}, {"id": 39, "type": "+", "text": "+", "parent": 37, "children": [], "start_point": {"row": 7, "column": 50}, "end_point": {"row": 7, "column": 51}}, {"id": 40, "type": "identifier", "text": "middle", "parent": 37, "children": [], "start_point": {"row": 7, "column": 52}, "end_point": {"row": 7, "column": 58}}, {"id": 41, "type": "+", "text": "+", "parent": 36, "children": [], "start_point": {"row": 7, "column": 59}, "end_point": {"row": 7, "column": 60}}, {"id": 42, "type": "identifier", "text": "last", "parent": 36, "children": [], "start_point": {"row": 7, "column": 61}, "end_point": {"row": 7, "column": 65}}, {"id": 43, "type": "/", "text": "/", "parent": 34, "children": [], "start_point": {"row": 7, "column": 67}, "end_point": {"row": 7, "column": 68}}, {"id": 44, "type": "number_literal", "text": "3.0", "parent": 34, "children": [], "start_point": {"row": 7, "column": 69}, "end_point": {"row": 7, "column": 72}}, {"id": 45, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [46], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 13}}, {"id": 46, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 10], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [15, 19, 23, 25, 27, 29, 34, 35, 36, 37], "assignments": [], "loops": [], "conditionals": [6, 12, 13, 14, 16, 20, 24, 26, 28, 30, 38, 40, 42], "returns": [45], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 18, 22, 32, 44, 46], "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 float first,middle,last;\n\n printf(\"Give me three => \");\n scanf(\"%f%f%f\", "}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n\nint main(void) {\n float first,middle,last;\n\n printf(\"Give me three => \");\n scanf(\"%f%f%f\", &first, &middle, &last);\n printf(\"The result / average: %.2f\\n\", (first + middle + last) / 3.0);\n return 0;\n}\n"}
80,809
c
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #pragma once #include "jd_config.h" void jd_led_set(int state); void jd_led_blink(int us); void jd_power_enable(int en);
27
7
(translation_unit) "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n#pragma once\n\n#include "jd_config.h"\n\nvoid jd_led_set(int state);\nvoid jd_led_blink(int us);\nvoid jd_power_enable(int en);" (comment) "// Copyright (c) Microsoft Corporation." (comment) "// Licensed under the MIT license." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "jd_config.h"\n" (#include) "#include" (string_literal) ""jd_config.h"" (") """ (string_content) "jd_config.h" (") """ (declaration) "void jd_led_set(int state);" (primitive_type) "void" (function_declarator) "jd_led_set(int state)" (identifier) "jd_led_set" (parameter_list) "(int state)" (() "(" (parameter_declaration) "int state" (primitive_type) "int" (identifier) "state" ()) ")" (;) ";" (declaration) "void jd_led_blink(int us);" (primitive_type) "void" (function_declarator) "jd_led_blink(int us)" (identifier) "jd_led_blink" (parameter_list) "(int us)" (() "(" (parameter_declaration) "int us" (primitive_type) "int" (identifier) "us" ()) ")" (;) ";" (declaration) "void jd_power_enable(int en);" (primitive_type) "void" (function_declarator) "jd_power_enable(int en)" (identifier) "jd_power_enable" (parameter_list) "(int en)" (() "(" (parameter_declaration) "int en" (primitive_type) "int" (identifier) "en" ()) ")" (;) ";"
45
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 27.0, "nodes": 30, "errors": 0, "source_hash": "b5e54daf8f162adea5bee8c893235cbc5aaa99df1961395eddfb55ae4e1a7078", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"jd_config.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"jd_config.h\"", "parent": 3, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}, {"id": 6, "type": "declaration", "text": "void jd_led_set(int state);", "parent": null, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 27}}, {"id": 7, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 4}}, {"id": 8, "type": "function_declarator", "text": "jd_led_set(int state)", "parent": 6, "children": [9, 10], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 26}}, {"id": 9, "type": "identifier", "text": "jd_led_set", "parent": 8, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 15}}, {"id": 10, "type": "parameter_list", "text": "(int state)", "parent": 8, "children": [11], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 26}}, {"id": 11, "type": "parameter_declaration", "text": "int state", "parent": 10, "children": [12, 13], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 25}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 19}}, {"id": 13, "type": "identifier", "text": "state", "parent": 11, "children": [], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 25}}, {"id": 14, "type": "declaration", "text": "void jd_led_blink(int us);", "parent": null, "children": [15, 16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 26}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 16, "type": "function_declarator", "text": "jd_led_blink(int us)", "parent": 14, "children": [17, 18], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 25}}, {"id": 17, "type": "identifier", "text": "jd_led_blink", "parent": 16, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 17}}, {"id": 18, "type": "parameter_list", "text": "(int us)", "parent": 16, "children": [19], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 25}}, {"id": 19, "type": "parameter_declaration", "text": "int us", "parent": 18, "children": [20, 21], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 24}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 21}}, {"id": 21, "type": "identifier", "text": "us", "parent": 19, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 24}}, {"id": 22, "type": "declaration", "text": "void jd_power_enable(int en);", "parent": null, "children": [23, 24], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 29}}, {"id": 23, "type": "primitive_type", "text": "void", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 24, "type": "function_declarator", "text": "jd_power_enable(int en)", "parent": 22, "children": [25, 26], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 28}}, {"id": 25, "type": "identifier", "text": "jd_power_enable", "parent": 24, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 20}}, {"id": 26, "type": "parameter_list", "text": "(int en)", "parent": 24, "children": [27], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 28}}, {"id": 27, "type": "parameter_declaration", "text": "int en", "parent": 26, "children": [28, 29], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 27}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 24}}, {"id": 29, "type": "identifier", "text": "en", "parent": 27, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 27}}]}, "node_categories": {"declarations": {"functions": [8, 16, 24], "variables": [6, 11, 14, 19, 22, 27], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [9, 13, 17, 21, 25, 29], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "jd_led_set(int state)"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "jd_led_blink(int us)"}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "jd_power_enable(int en)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"jd_config.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n#pragma once\n\n#include \"jd_config.h\"\n\nvoid jd_led_set(int state);\nvoid jd_led_blink(int us);\nvoid jd_power_enable(int en);"}
80,810
c
#ifndef VKLPipelineLayout_h #define VKLPipelineLayout_h #include <VKL/VKL_base.h> typedef enum { VKL_PIPELINE_TYPE_GRAPHICS = 0, VKL_PIPELINE_TYPE_COMPUTE = 1 } VKLPipelineType; typedef struct { VkShaderModuleCreateInfo createInfo; VkShaderStageFlagBits stage; const char* entryPoint; } VKLShaderModuleCreateInfo; class VKLPipelineLayoutCreateInfo; class VKLDescriptorSetLayoutCreateInfo { public: VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type, uint32_t count, VkShaderStageFlags stage); VKLPipelineLayoutCreateInfo& end(); private: VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent); std::vector<VkDescriptorSetLayoutBinding> m_bindings; VKLPipelineLayoutCreateInfo& m_parent; friend class VKLPipelineLayoutCreateInfo; friend class VKLPipelineLayout; }; class VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{ public: VKLPipelineLayoutCreateInfo(); VKLPipelineLayoutCreateInfo& device(const VKLDevice* device); VKLDescriptorSetLayoutCreateInfo& addDescriptorSet(); VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size); VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize, VkShaderStageFlagBits stage, const char* entryPoint); private: std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos; std::vector<VkVertexInputAttributeDescription> m_vertexAttribs; std::vector<VkPushConstantRange> m_pushConstantRanges; std::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts; const VKLDevice* m_device; VKLPipelineType m_type; void addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset); bool _validate(); friend class VKLDescriptorSetLayoutCreateInfo; friend class VKLPipelineLayout; }; class VKLPipelineLayout : public VKLHandle<VkPipelineLayout>, public VKLCreator<VKLPipelineLayoutCreateInfo>{ public: VKLPipelineLayout(); VKLPipelineLayout(const VKLPipelineLayoutCreateInfo& createInfo); const std::vector<VkPipelineShaderStageCreateInfo>& getShaderStageCreateInfos() const; const VKLDevice* device() const; const VkDescriptorSetLayout* descriptorSetLayouts() const; VKLPipelineType type() const; VkPipelineBindPoint bindPoint() const; private: const VKLDevice* m_device; VkPipelineBindPoint m_bindPoint; VKLPipelineType m_type; std::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos; uint32_t m_descSetCount; VkPushConstantRange* m_pushConstantRanges; VkDescriptorSetLayout* m_descriptorSetLayouts; std::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes; void _destroy(); void _create(const VKLPipelineLayoutCreateInfo& createInfo); friend class VKLDescriptorSet; }; #endif
34.26
80
(translation_unit) "#ifndef VKLPipelineLayout_h\n#define VKLPipelineLayout_h\n\n#include <VKL/VKL_base.h>\n\ntypedef enum {\n VKL_PIPELINE_TYPE_GRAPHICS = 0,\n VKL_PIPELINE_TYPE_COMPUTE = 1\n} VKLPipelineType;\n\ntypedef struct {\n VkShaderModuleCreateInfo createInfo;\n VkShaderStageFlagBits stage;\n const char* entryPoint;\n} VKLShaderModuleCreateInfo;\n\nclass VKLPipelineLayoutCreateInfo;\n\nclass VKLDescriptorSetLayoutCreateInfo {\npublic:\n VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage);\n VKLPipelineLayoutCreateInfo& end();\n \nprivate:\n VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);\n\n std::vector<VkDescriptorSetLayoutBinding> m_bindings;\n VKLPipelineLayoutCreateInfo& m_parent;\n\n friend class VKLPipelineLayoutCreateInfo;\n friend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{\npublic:\n VKLPipelineLayoutCreateInfo();\n \n VKLPipelineLayoutCreateInfo& device(const VKLDevice* device);\n VKLDescriptorSetLayoutCreateInfo& addDescriptorSet();\n VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);\n VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint);\nprivate:\n\n std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;\n std::vector<VkVertexInputAttributeDescription> m_vertexAttribs;\n std::vector<VkPushConstantRange> m_pushConstantRanges;\n std::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;\n const VKLDevice* m_device;\n \n VKLPipelineType m_type;\n \n void addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);\n\n bool _validate();\n\n friend class VKLDescriptorSetLayoutCreateInfo;\n friend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayout : public VKLHandle<VkPipelineLayout>, public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:\n VKLPipelineLayout();\n VKLPipelineLayout(const VKLPipelineLayoutCreateInfo& createInfo);\n \n const std::vector<VkPipelineShaderStageCreateInfo>& getShaderStageCreateInfos() const;\n const VKLDevice* device() const;\n const VkDescriptorSetLayout* descriptorSetLayouts() const;\n \n VKLPipelineType type() const;\n VkPipelineBindPoint bindPoint() const;\nprivate:\n const VKLDevice* m_device;\n \n VkPipelineBindPoint m_bindPoint;\n VKLPipelineType m_type;\n \n std::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;\n \n uint32_t m_descSetCount;\n VkPushConstantRange* m_pushConstantRanges;\n VkDescriptorSetLayout* m_descriptorSetLayouts;\n \n std::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;\n \n void _destroy();\n void _create(const VKLPipelineLayoutCreateInfo& createInfo);\n \n friend class VKLDescriptorSet;\n};\n\n#endif\n" (preproc_ifdef) "#ifndef VKLPipelineLayout_h\n#define VKLPipelineLayout_h\n\n#include <VKL/VKL_base.h>\n\ntypedef enum {\n VKL_PIPELINE_TYPE_GRAPHICS = 0,\n VKL_PIPELINE_TYPE_COMPUTE = 1\n} VKLPipelineType;\n\ntypedef struct {\n VkShaderModuleCreateInfo createInfo;\n VkShaderStageFlagBits stage;\n const char* entryPoint;\n} VKLShaderModuleCreateInfo;\n\nclass VKLPipelineLayoutCreateInfo;\n\nclass VKLDescriptorSetLayoutCreateInfo {\npublic:\n VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage);\n VKLPipelineLayoutCreateInfo& end();\n \nprivate:\n VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);\n\n std::vector<VkDescriptorSetLayoutBinding> m_bindings;\n VKLPipelineLayoutCreateInfo& m_parent;\n\n friend class VKLPipelineLayoutCreateInfo;\n friend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{\npublic:\n VKLPipelineLayoutCreateInfo();\n \n VKLPipelineLayoutCreateInfo& device(const VKLDevice* device);\n VKLDescriptorSetLayoutCreateInfo& addDescriptorSet();\n VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);\n VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint);\nprivate:\n\n std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;\n std::vector<VkVertexInputAttributeDescription> m_vertexAttribs;\n std::vector<VkPushConstantRange> m_pushConstantRanges;\n std::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;\n const VKLDevice* m_device;\n \n VKLPipelineType m_type;\n \n void addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);\n\n bool _validate();\n\n friend class VKLDescriptorSetLayoutCreateInfo;\n friend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayout : public VKLHandle<VkPipelineLayout>, public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:\n VKLPipelineLayout();\n VKLPipelineLayout(const VKLPipelineLayoutCreateInfo& createInfo);\n \n const std::vector<VkPipelineShaderStageCreateInfo>& getShaderStageCreateInfos() const;\n const VKLDevice* device() const;\n const VkDescriptorSetLayout* descriptorSetLayouts() const;\n \n VKLPipelineType type() const;\n VkPipelineBindPoint bindPoint() const;\nprivate:\n const VKLDevice* m_device;\n \n VkPipelineBindPoint m_bindPoint;\n VKLPipelineType m_type;\n \n std::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;\n \n uint32_t m_descSetCount;\n VkPushConstantRange* m_pushConstantRanges;\n VkDescriptorSetLayout* m_descriptorSetLayouts;\n \n std::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;\n \n void _destroy();\n void _create(const VKLPipelineLayoutCreateInfo& createInfo);\n \n friend class VKLDescriptorSet;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "VKLPipelineLayout_h" (preproc_def) "#define VKLPipelineLayout_h\n" (#define) "#define" (identifier) "VKLPipelineLayout_h" (preproc_include) "#include <VKL/VKL_base.h>\n" (#include) "#include" (system_lib_string) "<VKL/VKL_base.h>" (type_definition) "typedef enum {\n VKL_PIPELINE_TYPE_GRAPHICS = 0,\n VKL_PIPELINE_TYPE_COMPUTE = 1\n} VKLPipelineType;" (typedef) "typedef" (enum_specifier) "enum {\n VKL_PIPELINE_TYPE_GRAPHICS = 0,\n VKL_PIPELINE_TYPE_COMPUTE = 1\n}" (enum) "enum" (enumerator_list) "{\n VKL_PIPELINE_TYPE_GRAPHICS = 0,\n VKL_PIPELINE_TYPE_COMPUTE = 1\n}" ({) "{" (enumerator) "VKL_PIPELINE_TYPE_GRAPHICS = 0" (identifier) "VKL_PIPELINE_TYPE_GRAPHICS" (=) "=" (number_literal) "0" (,) "," (enumerator) "VKL_PIPELINE_TYPE_COMPUTE = 1" (identifier) "VKL_PIPELINE_TYPE_COMPUTE" (=) "=" (number_literal) "1" (}) "}" (type_identifier) "VKLPipelineType" (;) ";" (type_definition) "typedef struct {\n VkShaderModuleCreateInfo createInfo;\n VkShaderStageFlagBits stage;\n const char* entryPoint;\n} VKLShaderModuleCreateInfo;" (typedef) "typedef" (struct_specifier) "struct {\n VkShaderModuleCreateInfo createInfo;\n VkShaderStageFlagBits stage;\n const char* entryPoint;\n}" (struct) "struct" (field_declaration_list) "{\n VkShaderModuleCreateInfo createInfo;\n VkShaderStageFlagBits stage;\n const char* entryPoint;\n}" ({) "{" (field_declaration) "VkShaderModuleCreateInfo createInfo;" (type_identifier) "VkShaderModuleCreateInfo" (field_identifier) "createInfo" (;) ";" (field_declaration) "VkShaderStageFlagBits stage;" (type_identifier) "VkShaderStageFlagBits" (field_identifier) "stage" (;) ";" (field_declaration) "const char* entryPoint;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* entryPoint" (*) "*" (field_identifier) "entryPoint" (;) ";" (}) "}" (type_identifier) "VKLShaderModuleCreateInfo" (;) ";" (declaration) "class VKLPipelineLayoutCreateInfo;" (type_identifier) "class" (identifier) "VKLPipelineLayoutCreateInfo" (;) ";" (function_definition) "class VKLDescriptorSetLayoutCreateInfo {\npublic:\n VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage);\n VKLPipelineLayoutCreateInfo& end();\n \nprivate:\n VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);\n\n std::vector<VkDescriptorSetLayoutBinding> m_bindings;\n VKLPipelineLayoutCreateInfo& m_parent;\n\n friend class VKLPipelineLayoutCreateInfo;\n friend class VKLPipelineLayout;\n}" (type_identifier) "class" (identifier) "VKLDescriptorSetLayoutCreateInfo" (compound_statement) "{\npublic:\n VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage);\n VKLPipelineLayoutCreateInfo& end();\n \nprivate:\n VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);\n\n std::vector<VkDescriptorSetLayoutBinding> m_bindings;\n VKLPipelineLayoutCreateInfo& m_parent;\n\n friend class VKLPipelineLayoutCreateInfo;\n friend class VKLPipelineLayout;\n}" ({) "{" (labeled_statement) "public:\n VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage);" (statement_identifier) "public" (:) ":" (expression_statement) "VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage);" (binary_expression) "VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage)" (identifier) "VKLDescriptorSetLayoutCreateInfo" (&) "&" (call_expression) "addBinding(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage)" (identifier) "addBinding" (argument_list) "(uint32_t binding, VkDescriptorType type,\n uint32_t count, VkShaderStageFlags stage)" (() "(" (identifier) "uint32_t" (ERROR) "binding" (identifier) "binding" (,) "," (identifier) "VkDescriptorType" (ERROR) "type" (identifier) "type" (,) "," (identifier) "uint32_t" (ERROR) "count" (identifier) "count" (,) "," (identifier) "VkShaderStageFlags" (ERROR) "stage" (identifier) "stage" ()) ")" (;) ";" (expression_statement) "VKLPipelineLayoutCreateInfo& end();" (binary_expression) "VKLPipelineLayoutCreateInfo& end()" (identifier) "VKLPipelineLayoutCreateInfo" (&) "&" (call_expression) "end()" (identifier) "end" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);" (statement_identifier) "private" (:) ":" (expression_statement) "VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);" (call_expression) "VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent)" (identifier) "VKLDescriptorSetLayoutCreateInfo" (argument_list) "(VKLPipelineLayoutCreateInfo& parent)" (() "(" (binary_expression) "VKLPipelineLayoutCreateInfo& parent" (identifier) "VKLPipelineLayoutCreateInfo" (&) "&" (identifier) "parent" ()) ")" (;) ";" (labeled_statement) "std::vector<VkDescriptorSetLayoutBinding> m_bindings;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<VkDescriptorSetLayoutBinding> m_bindings;" (binary_expression) "vector<VkDescriptorSetLayoutBinding> m_bindings" (binary_expression) "vector<VkDescriptorSetLayoutBinding" (identifier) "vector" (<) "<" (identifier) "VkDescriptorSetLayoutBinding" (>) ">" (identifier) "m_bindings" (;) ";" (expression_statement) "VKLPipelineLayoutCreateInfo& m_parent;" (binary_expression) "VKLPipelineLayoutCreateInfo& m_parent" (identifier) "VKLPipelineLayoutCreateInfo" (&) "&" (identifier) "m_parent" (;) ";" (declaration) "friend class VKLPipelineLayoutCreateInfo;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "VKLPipelineLayoutCreateInfo" (;) ";" (declaration) "friend class VKLPipelineLayout;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "VKLPipelineLayout" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{\npublic:\n VKLPipelineLayoutCreateInfo();\n \n VKLPipelineLayoutCreateInfo& device(const VKLDevice* device);\n VKLDescriptorSetLayoutCreateInfo& addDescriptorSet();\n VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);\n VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint);\nprivate:\n\n std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;\n std::vector<VkVertexInputAttributeDescription> m_vertexAttribs;\n std::vector<VkPushConstantRange> m_pushConstantRanges;\n std::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;\n const VKLDevice* m_device;\n \n VKLPipelineType m_type;\n \n void addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);\n\n bool _validate();\n\n friend class VKLDescriptorSetLayoutCreateInfo;\n friend class VKLPipelineLayout;\n}" (type_identifier) "class" (identifier) "VKLPipelineLayoutCreateInfo" (ERROR) ": public VKLCreateInfo<VKLPipelineLayoutCreateInfo>" (:) ":" (identifier) "public" (identifier) "VKLCreateInfo" (<) "<" (identifier) "VKLPipelineLayoutCreateInfo" (>) ">" (compound_statement) "{\npublic:\n VKLPipelineLayoutCreateInfo();\n \n VKLPipelineLayoutCreateInfo& device(const VKLDevice* device);\n VKLDescriptorSetLayoutCreateInfo& addDescriptorSet();\n VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);\n VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint);\nprivate:\n\n std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;\n std::vector<VkVertexInputAttributeDescription> m_vertexAttribs;\n std::vector<VkPushConstantRange> m_pushConstantRanges;\n std::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;\n const VKLDevice* m_device;\n \n VKLPipelineType m_type;\n \n void addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);\n\n bool _validate();\n\n friend class VKLDescriptorSetLayoutCreateInfo;\n friend class VKLPipelineLayout;\n}" ({) "{" (labeled_statement) "public:\n VKLPipelineLayoutCreateInfo();" (statement_identifier) "public" (:) ":" (expression_statement) "VKLPipelineLayoutCreateInfo();" (call_expression) "VKLPipelineLayoutCreateInfo()" (identifier) "VKLPipelineLayoutCreateInfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "VKLPipelineLayoutCreateInfo& device(const VKLDevice* device);" (binary_expression) "VKLPipelineLayoutCreateInfo& device(const VKLDevice* device)" (identifier) "VKLPipelineLayoutCreateInfo" (&) "&" (call_expression) "device(const VKLDevice* device)" (identifier) "device" (argument_list) "(const VKLDevice* device)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "VKLDevice* device" (identifier) "VKLDevice" (*) "*" (identifier) "device" ()) ")" (;) ";" (expression_statement) "VKLDescriptorSetLayoutCreateInfo& addDescriptorSet();" (binary_expression) "VKLDescriptorSetLayoutCreateInfo& addDescriptorSet()" (identifier) "VKLDescriptorSetLayoutCreateInfo" (&) "&" (call_expression) "addDescriptorSet()" (identifier) "addDescriptorSet" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);" (binary_expression) "VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size)" (identifier) "VKLPipelineLayoutCreateInfo" (&) "&" (call_expression) "addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size)" (identifier) "addPushConstant" (argument_list) "(VkShaderStageFlags stage, uint32_t offset, uint32_t size)" (() "(" (identifier) "VkShaderStageFlags" (ERROR) "stage" (identifier) "stage" (,) "," (identifier) "uint32_t" (ERROR) "offset" (identifier) "offset" (,) "," (identifier) "uint32_t" (ERROR) "size" (identifier) "size" ()) ")" (;) ";" (expression_statement) "VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint);" (binary_expression) "VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint)" (identifier) "VKLPipelineLayoutCreateInfo" (&) "&" (call_expression) "addShaderModule(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint)" (identifier) "addShaderModule" (argument_list) "(const uint32_t* pCode, size_t codeSize,\n VkShaderStageFlagBits stage, const char* entryPoint)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "uint32_t* pCode" (identifier) "uint32_t" (*) "*" (identifier) "pCode" (,) "," (ERROR) "size_t" (identifier) "size_t" (identifier) "codeSize" (,) "," (identifier) "VkShaderStageFlagBits" (ERROR) "stage" (identifier) "stage" (,) "," (binary_expression) "const char* entryPoint" (identifier) "const" (ERROR) "char" (identifier) "char" (*) "*" (identifier) "entryPoint" ()) ")" (;) ";" (labeled_statement) "private:\n\n std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;" (binary_expression) "vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos" (binary_expression) "vector<VKLShaderModuleCreateInfo" (identifier) "vector" (<) "<" (identifier) "VKLShaderModuleCreateInfo" (>) ">" (identifier) "m_shaderModuleCreateInfos" (;) ";" (labeled_statement) "std::vector<VkVertexInputAttributeDescription> m_vertexAttribs;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<VkVertexInputAttributeDescription> m_vertexAttribs;" (binary_expression) "vector<VkVertexInputAttributeDescription> m_vertexAttribs" (binary_expression) "vector<VkVertexInputAttributeDescription" (identifier) "vector" (<) "<" (identifier) "VkVertexInputAttributeDescription" (>) ">" (identifier) "m_vertexAttribs" (;) ";" (labeled_statement) "std::vector<VkPushConstantRange> m_pushConstantRanges;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<VkPushConstantRange> m_pushConstantRanges;" (binary_expression) "vector<VkPushConstantRange> m_pushConstantRanges" (binary_expression) "vector<VkPushConstantRange" (identifier) "vector" (<) "<" (identifier) "VkPushConstantRange" (>) ">" (identifier) "m_pushConstantRanges" (;) ";" (labeled_statement) "std::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;" (binary_expression) "vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts" (binary_expression) "vector<VKLDescriptorSetLayoutCreateInfo" (identifier) "vector" (<) "<" (identifier) "VKLDescriptorSetLayoutCreateInfo" (>) ">" (identifier) "m_descriptorSetLayouts" (;) ";" (declaration) "const VKLDevice* m_device;" (type_qualifier) "const" (const) "const" (type_identifier) "VKLDevice" (pointer_declarator) "* m_device" (*) "*" (identifier) "m_device" (;) ";" (declaration) "VKLPipelineType m_type;" (type_identifier) "VKLPipelineType" (identifier) "m_type" (;) ";" (declaration) "void addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);" (primitive_type) "void" (function_declarator) "addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset)" (identifier) "addVertexAttrib" (parameter_list) "(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset)" (() "(" (parameter_declaration) "uint32_t location" (primitive_type) "uint32_t" (identifier) "location" (,) "," (parameter_declaration) "uint32_t binding" (primitive_type) "uint32_t" (identifier) "binding" (,) "," (parameter_declaration) "VkFormat format" (type_identifier) "VkFormat" (identifier) "format" (,) "," (parameter_declaration) "uint32_t offset" (primitive_type) "uint32_t" (identifier) "offset" ()) ")" (;) ";" (declaration) "bool _validate();" (primitive_type) "bool" (function_declarator) "_validate()" (identifier) "_validate" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "friend class VKLDescriptorSetLayoutCreateInfo;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "VKLDescriptorSetLayoutCreateInfo" (;) ";" (declaration) "friend class VKLPipelineLayout;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "VKLPipelineLayout" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "class VKLPipelineLayout : public VKLHandle<VkPipelineLayout>, public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:\n VKLPipelineLayout();" (type_identifier) "class" (identifier) "VKLPipelineLayout" (ERROR) ": public VKLHandle<VkPipelineLayout>" (:) ":" (identifier) "public" (identifier) "VKLHandle" (<) "<" (identifier) "VkPipelineLayout" (>) ">" (,) "," (ERROR) "public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:" (identifier) "public" (identifier) "VKLCreator" (<) "<" (identifier) "VKLPipelineLayoutCreateInfo" (>) ">" ({) "{" (identifier) "public" (:) ":" (function_declarator) "VKLPipelineLayout()" (identifier) "VKLPipelineLayout" (parameter_list) "()" (() "(" ()) ")" (;) ";" (macro_type_specifier) "VKLPipelineLayout(const VKLPipelineLayoutCreateInfo& createInfo)" (identifier) "VKLPipelineLayout" (() "(" (type_descriptor) "const VKLPipelineLayoutCreateInfo" (type_qualifier) "const" (const) "const" (type_identifier) "VKLPipelineLayoutCreateInfo" (ERROR) "& createInfo" (&) "&" (identifier) "createInfo" ()) ")" (;) ";" (ERROR) "const std::vector<VkPipelineShaderStageCreateInfo>& getShaderStageCreateInfos() const;\n const VKLDevice* device() const;\n const VkDescriptorSetLayout* descriptorSetLayouts() const;\n \n VKLPipelineType type() const;\n VkPipelineBindPoint bindPoint() const;\nprivate:\n const VKLDevice* m_device;\n \n VkPipelineBindPoint m_bindPoint;\n VKLPipelineType m_type;\n \n std::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;\n \n uint32_t m_descSetCount;\n VkPushConstantRange* m_pushConstantRanges;\n VkDescriptorSetLayout* m_descriptorSetLayouts;\n \n std::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;\n \n void _destroy();\n void _create(const VKLPipelineLayoutCreateInfo& createInfo);\n \n friend class VKLDescriptorSet;\n}" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<VkPipelineShaderStageCreateInfo>&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "VkPipelineShaderStageCreateInfo" (>) ">" (&) "&" (function_declarator) "getShaderStageCreateInfos()" (identifier) "getShaderStageCreateInfos" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n const VKLDevice* device() const;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_qualifier) "const" (const) "const" (type_identifier) "VKLDevice" (pointer_declarator) "* device() const" (*) "*" (function_declarator) "device() const" (identifier) "device" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "const VkDescriptorSetLayout* descriptorSetLayouts() const;" (type_qualifier) "const" (const) "const" (type_identifier) "VkDescriptorSetLayout" (pointer_declarator) "* descriptorSetLayouts() const" (*) "*" (function_declarator) "descriptorSetLayouts() const" (identifier) "descriptorSetLayouts" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "VKLPipelineType type() const;\n VkPipelineBindPoint bindPoint() const;\nprivate:\n const VKLDevice* m_device;" (type_identifier) "VKLPipelineType" (ERROR) "type() const;\n VkPipelineBindPoint bindPoint() const;\nprivate:\n const VKLDevice" (function_declarator) "type() const" (identifier) "type" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "VkPipelineBindPoint" (function_declarator) "bindPoint() const" (identifier) "bindPoint" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "private" (:) ":" (const) "const" (identifier) "VKLDevice" (pointer_declarator) "* m_device" (*) "*" (identifier) "m_device" (;) ";" (declaration) "VkPipelineBindPoint m_bindPoint;" (type_identifier) "VkPipelineBindPoint" (identifier) "m_bindPoint" (;) ";" (declaration) "VKLPipelineType m_type;" (type_identifier) "VKLPipelineType" (identifier) "m_type" (;) ";" (declaration) "std::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;" (type_identifier) "std" (ERROR) "::vector<VkPipelineShaderStageCreateInfo>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "VkPipelineShaderStageCreateInfo" (>) ">" (identifier) "m_shaderStageCreateInfos" (;) ";" (declaration) "uint32_t m_descSetCount;" (primitive_type) "uint32_t" (identifier) "m_descSetCount" (;) ";" (declaration) "VkPushConstantRange* m_pushConstantRanges;" (type_identifier) "VkPushConstantRange" (pointer_declarator) "* m_pushConstantRanges" (*) "*" (identifier) "m_pushConstantRanges" (;) ";" (declaration) "VkDescriptorSetLayout* m_descriptorSetLayouts;" (type_identifier) "VkDescriptorSetLayout" (pointer_declarator) "* m_descriptorSetLayouts" (*) "*" (identifier) "m_descriptorSetLayouts" (;) ";" (declaration) "std::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;" (type_identifier) "std" (ERROR) "::vector< std::vector<VkDescriptorPoolSize> >" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "VkDescriptorPoolSize" (>) ">" (>) ">" (identifier) "m_descriptorPoolSizes" (;) ";" (declaration) "void _destroy();" (primitive_type) "void" (function_declarator) "_destroy()" (identifier) "_destroy" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void _create(const VKLPipelineLayoutCreateInfo& createInfo);" (primitive_type) "void" (function_declarator) "_create(const VKLPipelineLayoutCreateInfo& createInfo)" (identifier) "_create" (parameter_list) "(const VKLPipelineLayoutCreateInfo& createInfo)" (() "(" (parameter_declaration) "const VKLPipelineLayoutCreateInfo& createInfo" (type_qualifier) "const" (const) "const" (type_identifier) "VKLPipelineLayoutCreateInfo" (ERROR) "&" (&) "&" (identifier) "createInfo" ()) ")" (;) ";" (declaration) "friend class VKLDescriptorSet;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "VKLDescriptorSet" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
562
33
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 34.26, "nodes": 337, "errors": 0, "source_hash": "15b33904a8429b38ad596ab8a4f89437a5a751d162de8ede4d9cfa5d511665bf", "categorized_nodes": 234}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef VKLPipelineLayout_h\n#define VKLPipelineLayout_h\n\n#include <VKL/VKL_base.h>\n\ntypedef enum {\n\tVKL_PIPELINE_TYPE_GRAPHICS = 0,\n\tVKL_PIPELINE_TYPE_COMPUTE = 1\n} VKLPipelineType;\n\ntypedef struct {\n\tVkShaderModuleCreateInfo createInfo;\n\tVkShaderStageFlagBits stage;\n\tconst char* entryPoint;\n} VKLShaderModuleCreateInfo;\n\nclass VKLPipelineLayoutCreateInfo;\n\nclass VKLDescriptorSetLayoutCreateInfo {\npublic:\n\tVKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n\t\t\t\t\t\t\t\t\t\t\t\tuint32_t count, VkShaderStageFlags stage);\n\tVKLPipelineLayoutCreateInfo& end();\n\t\nprivate:\n\tVKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);\n\n\tstd::vector<VkDescriptorSetLayoutBinding> m_bindings;\n\tVKLPipelineLayoutCreateInfo& m_parent;\n\n\tfriend class VKLPipelineLayoutCreateInfo;\n\tfriend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{\npublic:\n\tVKLPipelineLayoutCreateInfo();\n\t\n\tVKLPipelineLayoutCreateInfo& device(const VKLDevice* device);\n\tVKLDescriptorSetLayoutCreateInfo& addDescriptorSet();\n\tVKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);\n\tVKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n\t\t\t\t\t\t\t\t\t\t VkShaderStageFlagBits stage, const char* entryPoint);\nprivate:\n\n\tstd::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;\n\tstd::vector<VkVertexInputAttributeDescription> m_vertexAttribs;\n\tstd::vector<VkPushConstantRange> m_pushConstantRanges;\n\tstd::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;\n\tconst VKLDevice* m_device;\n\t\n\tVKLPipelineType m_type;\n\t\n\tvoid addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);\n\n\tbool _validate();\n\n\tfriend class VKLDescriptorSetLayoutCreateInfo;\n\tfriend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayout : public VKLHandle<VkPipelineLayout>, public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:\n\tVKLPipelineLayout();\n\tVKLPipelineLayout(const VKLPipelineLayoutCreateInfo& createInfo);\n\t\n\tconst std::vector<VkPipelineShaderStageCreateInfo>& getShaderStageCreateInfos() const;\n\tconst VKLDevice* device() const;\n\tconst VkDescriptorSetLayout* descriptorSetLayouts() const;\n\t\n\tVKLPipelineType type() const;\n\tVkPipelineBindPoint bindPoint() const;\nprivate:\n\tconst VKLDevice* m_device;\n\t\n\tVkPipelineBindPoint m_bindPoint;\n\tVKLPipelineType m_type;\n\t\n\tstd::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;\n\t\n\tuint32_t m_descSetCount;\n\tVkPushConstantRange* m_pushConstantRanges;\n\tVkDescriptorSetLayout* m_descriptorSetLayouts;\n\t\n\tstd::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;\n\t\n\tvoid _destroy();\n\tvoid _create(const VKLPipelineLayoutCreateInfo& createInfo);\n\t\n\tfriend class VKLDescriptorSet;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 23, 39, 41, 90, 222, 237, 243, 336], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 92, "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": "VKLPipelineLayout_h", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define VKLPipelineLayout_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": "VKLPipelineLayout_h", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include <VKL/VKL_base.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<VKL/VKL_base.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 25}}, {"id": 9, "type": "type_definition", "text": "typedef enum {\n\tVKL_PIPELINE_TYPE_GRAPHICS = 0,\n\tVKL_PIPELINE_TYPE_COMPUTE = 1\n} VKLPipelineType;", "parent": 0, "children": [10, 11, 22], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 8, "column": 18}}, {"id": 10, "type": "typedef", "text": "typedef", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "enum_specifier", "text": "enum {\n\tVKL_PIPELINE_TYPE_GRAPHICS = 0,\n\tVKL_PIPELINE_TYPE_COMPUTE = 1\n}", "parent": 9, "children": [12, 13], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 8, "column": 1}}, {"id": 12, "type": "enum", "text": "enum", "parent": 11, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 12}}, {"id": 13, "type": "enumerator_list", "text": "{\n\tVKL_PIPELINE_TYPE_GRAPHICS = 0,\n\tVKL_PIPELINE_TYPE_COMPUTE = 1\n}", "parent": 11, "children": [14, 18], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 8, "column": 1}}, {"id": 14, "type": "enumerator", "text": "VKL_PIPELINE_TYPE_GRAPHICS = 0", "parent": 13, "children": [15, 16, 17], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 31}}, {"id": 15, "type": "identifier", "text": "VKL_PIPELINE_TYPE_GRAPHICS", "parent": 14, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 27}}, {"id": 16, "type": "=", "text": "=", "parent": 14, "children": [], "start_point": {"row": 6, "column": 28}, "end_point": {"row": 6, "column": 29}}, {"id": 17, "type": "number_literal", "text": "0", "parent": 14, "children": [], "start_point": {"row": 6, "column": 30}, "end_point": {"row": 6, "column": 31}}, {"id": 18, "type": "enumerator", "text": "VKL_PIPELINE_TYPE_COMPUTE = 1", "parent": 13, "children": [19, 20, 21], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 30}}, {"id": 19, "type": "identifier", "text": "VKL_PIPELINE_TYPE_COMPUTE", "parent": 18, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 26}}, {"id": 20, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 7, "column": 27}, "end_point": {"row": 7, "column": 28}}, {"id": 21, "type": "number_literal", "text": "1", "parent": 18, "children": [], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 30}}, {"id": 22, "type": "type_identifier", "text": "VKLPipelineType", "parent": 9, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 17}}, {"id": 23, "type": "type_definition", "text": "typedef struct {\n\tVkShaderModuleCreateInfo createInfo;\n\tVkShaderStageFlagBits stage;\n\tconst char* entryPoint;\n} VKLShaderModuleCreateInfo;", "parent": 0, "children": [24, 25, 38], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 28}}, {"id": 24, "type": "typedef", "text": "typedef", "parent": 23, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 25, "type": "struct_specifier", "text": "struct {\n\tVkShaderModuleCreateInfo createInfo;\n\tVkShaderStageFlagBits stage;\n\tconst char* entryPoint;\n}", "parent": 23, "children": [26], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 14, "column": 1}}, {"id": 26, "type": "struct", "text": "struct", "parent": 25, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 27, "type": "field_declaration", "text": "VkShaderModuleCreateInfo createInfo;", "parent": 25, "children": [28, 29], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 37}}, {"id": 28, "type": "type_identifier", "text": "VkShaderModuleCreateInfo", "parent": 27, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 25}}, {"id": 29, "type": "field_identifier", "text": "createInfo", "parent": 27, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 36}}, {"id": 30, "type": "field_declaration", "text": "VkShaderStageFlagBits stage;", "parent": 25, "children": [31, 32], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 29}}, {"id": 31, "type": "type_identifier", "text": "VkShaderStageFlagBits", "parent": 30, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 22}}, {"id": 32, "type": "field_identifier", "text": "stage", "parent": 30, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 28}}, {"id": 33, "type": "field_declaration", "text": "const char* entryPoint;", "parent": 25, "children": [34, 35], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 24}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 11}}, {"id": 35, "type": "pointer_declarator", "text": "* entryPoint", "parent": 33, "children": [36, 37], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 23}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 37, "type": "field_identifier", "text": "entryPoint", "parent": 35, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 23}}, {"id": 38, "type": "type_identifier", "text": "VKLShaderModuleCreateInfo", "parent": 23, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 27}}, {"id": 39, "type": "declaration", "text": "class VKLPipelineLayoutCreateInfo;", "parent": 0, "children": [40], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 34}}, {"id": 40, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 39, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 33}}, {"id": 41, "type": "function_definition", "text": "class VKLDescriptorSetLayoutCreateInfo {\npublic:\n\tVKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n\t\t\t\t\t\t\t\t\t\t\t\tuint32_t count, VkShaderStageFlags stage);\n\tVKLPipelineLayoutCreateInfo& end();\n\t\nprivate:\n\tVKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);\n\n\tstd::vector<VkDescriptorSetLayoutBinding> m_bindings;\n\tVKLPipelineLayoutCreateInfo& m_parent;\n\n\tfriend class VKLPipelineLayoutCreateInfo;\n\tfriend class VKLPipelineLayout;\n}", "parent": 0, "children": [42], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 42, "type": "identifier", "text": "VKLDescriptorSetLayoutCreateInfo", "parent": 41, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 38}}, {"id": 43, "type": "labeled_statement", "text": "public:\n\tVKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n\t\t\t\t\t\t\t\t\t\t\t\tuint32_t count, VkShaderStageFlags stage);", "parent": 41, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 21, "column": 54}}, {"id": 44, "type": "binary_expression", "text": "VKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n\t\t\t\t\t\t\t\t\t\t\t\tuint32_t count, VkShaderStageFlags stage)", "parent": 43, "children": [45, 46], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 21, "column": 53}}, {"id": 45, "type": "identifier", "text": "VKLDescriptorSetLayoutCreateInfo", "parent": 44, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 33}}, {"id": 46, "type": "call_expression", "text": "addBinding(uint32_t binding, VkDescriptorType type,\n\t\t\t\t\t\t\t\t\t\t\t\tuint32_t count, VkShaderStageFlags stage)", "parent": 44, "children": [47, 48], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 21, "column": 53}}, {"id": 47, "type": "identifier", "text": "addBinding", "parent": 46, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 45}}, {"id": 48, "type": "argument_list", "text": "(uint32_t binding, VkDescriptorType type,\n\t\t\t\t\t\t\t\t\t\t\t\tuint32_t count, VkShaderStageFlags stage)", "parent": 46, "children": [49, 50, 52, 53, 55, 56, 58, 59], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 21, "column": 53}}, {"id": 49, "type": "identifier", "text": "uint32_t", "parent": 48, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 54}}, {"id": 50, "type": "ERROR", "text": "binding", "parent": 48, "children": [51], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 62}}, {"id": 51, "type": "identifier", "text": "binding", "parent": 50, "children": [], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 62}}, {"id": 52, "type": "identifier", "text": "VkDescriptorType", "parent": 48, "children": [], "start_point": {"row": 20, "column": 64}, "end_point": {"row": 20, "column": 80}}, {"id": 53, "type": "ERROR", "text": "type", "parent": 48, "children": [54], "start_point": {"row": 20, "column": 81}, "end_point": {"row": 20, "column": 85}}, {"id": 54, "type": "identifier", "text": "type", "parent": 53, "children": [], "start_point": {"row": 20, "column": 81}, "end_point": {"row": 20, "column": 85}}, {"id": 55, "type": "identifier", "text": "uint32_t", "parent": 48, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 20}}, {"id": 56, "type": "ERROR", "text": "count", "parent": 48, "children": [57], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 26}}, {"id": 57, "type": "identifier", "text": "count", "parent": 56, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 26}}, {"id": 58, "type": "identifier", "text": "VkShaderStageFlags", "parent": 48, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 46}}, {"id": 59, "type": "ERROR", "text": "stage", "parent": 48, "children": [60], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 52}}, {"id": 60, "type": "identifier", "text": "stage", "parent": 59, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 52}}, {"id": 61, "type": "binary_expression", "text": "VKLPipelineLayoutCreateInfo& end()", "parent": 41, "children": [62, 63], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 35}}, {"id": 62, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 61, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 28}}, {"id": 63, "type": "call_expression", "text": "end()", "parent": 61, "children": [64], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 35}}, {"id": 64, "type": "argument_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 35}}, {"id": 65, "type": "labeled_statement", "text": "private:\n\tVKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);", "parent": 41, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 71}}, {"id": 66, "type": "call_expression", "text": "VKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent)", "parent": 65, "children": [67, 68], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 70}}, {"id": 67, "type": "identifier", "text": "VKLDescriptorSetLayoutCreateInfo", "parent": 66, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 33}}, {"id": 68, "type": "argument_list", "text": "(VKLPipelineLayoutCreateInfo& parent)", "parent": 66, "children": [69], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 70}}, {"id": 69, "type": "binary_expression", "text": "VKLPipelineLayoutCreateInfo& parent", "parent": 68, "children": [70, 71], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 69}}, {"id": 70, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 69, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 61}}, {"id": 71, "type": "identifier", "text": "parent", "parent": 69, "children": [], "start_point": {"row": 25, "column": 63}, "end_point": {"row": 25, "column": 69}}, {"id": 72, "type": "labeled_statement", "text": "std::vector<VkDescriptorSetLayoutBinding> m_bindings;", "parent": 41, "children": [73], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 54}}, {"id": 73, "type": "statement_identifier", "text": "std", "parent": 72, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 4}}, {"id": 74, "type": "binary_expression", "text": "vector<VkDescriptorSetLayoutBinding> m_bindings", "parent": 72, "children": [75, 79, 80], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 53}}, {"id": 75, "type": "binary_expression", "text": "vector<VkDescriptorSetLayoutBinding", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 41}}, {"id": 76, "type": "identifier", "text": "vector", "parent": 75, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 12}}, {"id": 77, "type": "<", "text": "<", "parent": 75, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 78, "type": "identifier", "text": "VkDescriptorSetLayoutBinding", "parent": 75, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 41}}, {"id": 79, "type": ">", "text": ">", "parent": 74, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 42}}, {"id": 80, "type": "identifier", "text": "m_bindings", "parent": 74, "children": [], "start_point": {"row": 27, "column": 43}, "end_point": {"row": 27, "column": 53}}, {"id": 81, "type": "binary_expression", "text": "VKLPipelineLayoutCreateInfo& m_parent", "parent": 41, "children": [82, 83], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 38}}, {"id": 82, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 81, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 28}}, {"id": 83, "type": "identifier", "text": "m_parent", "parent": 81, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 38}}, {"id": 84, "type": "declaration", "text": "friend class VKLPipelineLayoutCreateInfo;", "parent": 41, "children": [85, 86], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 42}}, {"id": 85, "type": "type_identifier", "text": "friend", "parent": 84, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 7}}, {"id": 86, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 84, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 41}}, {"id": 87, "type": "declaration", "text": "friend class VKLPipelineLayout;", "parent": 41, "children": [88, 89], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 32}}, {"id": 88, "type": "type_identifier", "text": "friend", "parent": 87, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 7}}, {"id": 89, "type": "identifier", "text": "VKLPipelineLayout", "parent": 87, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 31}}, {"id": 90, "type": "function_definition", "text": "class VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{\npublic:\n\tVKLPipelineLayoutCreateInfo();\n\t\n\tVKLPipelineLayoutCreateInfo& device(const VKLDevice* device);\n\tVKLDescriptorSetLayoutCreateInfo& addDescriptorSet();\n\tVKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);\n\tVKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n\t\t\t\t\t\t\t\t\t\t VkShaderStageFlagBits stage, const char* entryPoint);\nprivate:\n\n\tstd::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;\n\tstd::vector<VkVertexInputAttributeDescription> m_vertexAttribs;\n\tstd::vector<VkPushConstantRange> m_pushConstantRanges;\n\tstd::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;\n\tconst VKLDevice* m_device;\n\t\n\tVKLPipelineType m_type;\n\t\n\tvoid addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);\n\n\tbool _validate();\n\n\tfriend class VKLDescriptorSetLayoutCreateInfo;\n\tfriend class VKLPipelineLayout;\n}", "parent": 0, "children": [91, 92], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 91, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 90, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 33}}, {"id": 92, "type": "ERROR", "text": ": public VKLCreateInfo<VKLPipelineLayoutCreateInfo>", "parent": 90, "children": [93, 94, 95, 96], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 85}}, {"id": 93, "type": "identifier", "text": "VKLCreateInfo", "parent": 92, "children": [], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 56}}, {"id": 94, "type": "<", "text": "<", "parent": 92, "children": [], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 57}}, {"id": 95, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 92, "children": [], "start_point": {"row": 34, "column": 57}, "end_point": {"row": 34, "column": 84}}, {"id": 96, "type": ">", "text": ">", "parent": 92, "children": [], "start_point": {"row": 34, "column": 84}, "end_point": {"row": 34, "column": 85}}, {"id": 97, "type": "labeled_statement", "text": "public:\n\tVKLPipelineLayoutCreateInfo();", "parent": 90, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 31}}, {"id": 98, "type": "call_expression", "text": "VKLPipelineLayoutCreateInfo()", "parent": 97, "children": [99, 100], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 30}}, {"id": 99, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 98, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 28}}, {"id": 100, "type": "argument_list", "text": "()", "parent": 98, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 30}}, {"id": 101, "type": "binary_expression", "text": "VKLPipelineLayoutCreateInfo& device(const VKLDevice* device)", "parent": 90, "children": [102, 103], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 61}}, {"id": 102, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 101, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 28}}, {"id": 103, "type": "call_expression", "text": "device(const VKLDevice* device)", "parent": 101, "children": [104, 105], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 61}}, {"id": 104, "type": "identifier", "text": "device", "parent": 103, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 36}}, {"id": 105, "type": "argument_list", "text": "(const VKLDevice* device)", "parent": 103, "children": [106], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 61}}, {"id": 106, "type": "binary_expression", "text": "VKLDevice* device", "parent": 105, "children": [107, 108, 109], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 60}}, {"id": 107, "type": "identifier", "text": "VKLDevice", "parent": 106, "children": [], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 52}}, {"id": 108, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 38, "column": 52}, "end_point": {"row": 38, "column": 53}}, {"id": 109, "type": "identifier", "text": "device", "parent": 106, "children": [], "start_point": {"row": 38, "column": 54}, "end_point": {"row": 38, "column": 60}}, {"id": 110, "type": "binary_expression", "text": "VKLDescriptorSetLayoutCreateInfo& addDescriptorSet()", "parent": 90, "children": [111, 112], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 53}}, {"id": 111, "type": "identifier", "text": "VKLDescriptorSetLayoutCreateInfo", "parent": 110, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 33}}, {"id": 112, "type": "call_expression", "text": "addDescriptorSet()", "parent": 110, "children": [113, 114], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 53}}, {"id": 113, "type": "identifier", "text": "addDescriptorSet", "parent": 112, "children": [], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 51}}, {"id": 114, "type": "argument_list", "text": "()", "parent": 112, "children": [], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 39, "column": 53}}, {"id": 115, "type": "binary_expression", "text": "VKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size)", "parent": 90, "children": [116, 117], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 103}}, {"id": 116, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 115, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 28}}, {"id": 117, "type": "call_expression", "text": "addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size)", "parent": 115, "children": [118, 119], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 103}}, {"id": 118, "type": "identifier", "text": "addPushConstant", "parent": 117, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 45}}, {"id": 119, "type": "argument_list", "text": "(VkShaderStageFlags stage, uint32_t offset, uint32_t size)", "parent": 117, "children": [120, 121, 123, 124, 126, 127], "start_point": {"row": 40, "column": 45}, "end_point": {"row": 40, "column": 103}}, {"id": 120, "type": "identifier", "text": "VkShaderStageFlags", "parent": 119, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 64}}, {"id": 121, "type": "ERROR", "text": "stage", "parent": 119, "children": [122], "start_point": {"row": 40, "column": 65}, "end_point": {"row": 40, "column": 70}}, {"id": 122, "type": "identifier", "text": "stage", "parent": 121, "children": [], "start_point": {"row": 40, "column": 65}, "end_point": {"row": 40, "column": 70}}, {"id": 123, "type": "identifier", "text": "uint32_t", "parent": 119, "children": [], "start_point": {"row": 40, "column": 72}, "end_point": {"row": 40, "column": 80}}, {"id": 124, "type": "ERROR", "text": "offset", "parent": 119, "children": [125], "start_point": {"row": 40, "column": 81}, "end_point": {"row": 40, "column": 87}}, {"id": 125, "type": "identifier", "text": "offset", "parent": 124, "children": [], "start_point": {"row": 40, "column": 81}, "end_point": {"row": 40, "column": 87}}, {"id": 126, "type": "identifier", "text": "uint32_t", "parent": 119, "children": [], "start_point": {"row": 40, "column": 89}, "end_point": {"row": 40, "column": 97}}, {"id": 127, "type": "ERROR", "text": "size", "parent": 119, "children": [128], "start_point": {"row": 40, "column": 98}, "end_point": {"row": 40, "column": 102}}, {"id": 128, "type": "identifier", "text": "size", "parent": 127, "children": [], "start_point": {"row": 40, "column": 98}, "end_point": {"row": 40, "column": 102}}, {"id": 129, "type": "binary_expression", "text": "VKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n\t\t\t\t\t\t\t\t\t\t VkShaderStageFlagBits stage, const char* entryPoint)", "parent": 90, "children": [130, 131], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 42, "column": 63}}, {"id": 130, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 129, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 28}}, {"id": 131, "type": "call_expression", "text": "addShaderModule(const uint32_t* pCode, size_t codeSize,\n\t\t\t\t\t\t\t\t\t\t VkShaderStageFlagBits stage, const char* entryPoint)", "parent": 129, "children": [132, 133], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 42, "column": 63}}, {"id": 132, "type": "identifier", "text": "addShaderModule", "parent": 131, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 45}}, {"id": 133, "type": "argument_list", "text": "(const uint32_t* pCode, size_t codeSize,\n\t\t\t\t\t\t\t\t\t\t VkShaderStageFlagBits stage, const char* entryPoint)", "parent": 131, "children": [134, 138, 140, 141, 142, 144], "start_point": {"row": 41, "column": 45}, "end_point": {"row": 42, "column": 63}}, {"id": 134, "type": "binary_expression", "text": "uint32_t* pCode", "parent": 133, "children": [135, 136, 137], "start_point": {"row": 41, "column": 52}, "end_point": {"row": 41, "column": 67}}, {"id": 135, "type": "identifier", "text": "uint32_t", "parent": 134, "children": [], "start_point": {"row": 41, "column": 52}, "end_point": {"row": 41, "column": 60}}, {"id": 136, "type": "*", "text": "*", "parent": 134, "children": [], "start_point": {"row": 41, "column": 60}, "end_point": {"row": 41, "column": 61}}, {"id": 137, "type": "identifier", "text": "pCode", "parent": 134, "children": [], "start_point": {"row": 41, "column": 62}, "end_point": {"row": 41, "column": 67}}, {"id": 138, "type": "ERROR", "text": "size_t", "parent": 133, "children": [139], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 41, "column": 75}}, {"id": 139, "type": "identifier", "text": "size_t", "parent": 138, "children": [], "start_point": {"row": 41, "column": 69}, "end_point": {"row": 41, "column": 75}}, {"id": 140, "type": "identifier", "text": "codeSize", "parent": 133, "children": [], "start_point": {"row": 41, "column": 76}, "end_point": {"row": 41, "column": 84}}, {"id": 141, "type": "identifier", "text": "VkShaderStageFlagBits", "parent": 133, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 32}}, {"id": 142, "type": "ERROR", "text": "stage", "parent": 133, "children": [143], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 38}}, {"id": 143, "type": "identifier", "text": "stage", "parent": 142, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 38}}, {"id": 144, "type": "binary_expression", "text": "const char* entryPoint", "parent": 133, "children": [145, 147, 148], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 62}}, {"id": 145, "type": "ERROR", "text": "char", "parent": 144, "children": [146], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 50}}, {"id": 146, "type": "identifier", "text": "char", "parent": 145, "children": [], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 50}}, {"id": 147, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 51}}, {"id": 148, "type": "identifier", "text": "entryPoint", "parent": 144, "children": [], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 62}}, {"id": 149, "type": "labeled_statement", "text": "private:\n\n\tstd::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;", "parent": 90, "children": [150], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 45, "column": 66}}, {"id": 150, "type": "labeled_statement", "text": "std::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;", "parent": 149, "children": [151], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 66}}, {"id": 151, "type": "statement_identifier", "text": "std", "parent": 150, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 4}}, {"id": 152, "type": "binary_expression", "text": "vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos", "parent": 150, "children": [153, 157, 158], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 65}}, {"id": 153, "type": "binary_expression", "text": "vector<VKLShaderModuleCreateInfo", "parent": 152, "children": [154, 155, 156], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 38}}, {"id": 154, "type": "identifier", "text": "vector", "parent": 153, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 12}}, {"id": 155, "type": "<", "text": "<", "parent": 153, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 156, "type": "identifier", "text": "VKLShaderModuleCreateInfo", "parent": 153, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 38}}, {"id": 157, "type": ">", "text": ">", "parent": 152, "children": [], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 39}}, {"id": 158, "type": "identifier", "text": "m_shaderModuleCreateInfos", "parent": 152, "children": [], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 65}}, {"id": 159, "type": "labeled_statement", "text": "std::vector<VkVertexInputAttributeDescription> m_vertexAttribs;", "parent": 90, "children": [160], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 64}}, {"id": 160, "type": "statement_identifier", "text": "std", "parent": 159, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 4}}, {"id": 161, "type": "binary_expression", "text": "vector<VkVertexInputAttributeDescription> m_vertexAttribs", "parent": 159, "children": [162, 166, 167], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 63}}, {"id": 162, "type": "binary_expression", "text": "vector<VkVertexInputAttributeDescription", "parent": 161, "children": [163, 164, 165], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 46}}, {"id": 163, "type": "identifier", "text": "vector", "parent": 162, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 12}}, {"id": 164, "type": "<", "text": "<", "parent": 162, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 165, "type": "identifier", "text": "VkVertexInputAttributeDescription", "parent": 162, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 46}}, {"id": 166, "type": ">", "text": ">", "parent": 161, "children": [], "start_point": {"row": 46, "column": 46}, "end_point": {"row": 46, "column": 47}}, {"id": 167, "type": "identifier", "text": "m_vertexAttribs", "parent": 161, "children": [], "start_point": {"row": 46, "column": 48}, "end_point": {"row": 46, "column": 63}}, {"id": 168, "type": "labeled_statement", "text": "std::vector<VkPushConstantRange> m_pushConstantRanges;", "parent": 90, "children": [169], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 55}}, {"id": 169, "type": "statement_identifier", "text": "std", "parent": 168, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 4}}, {"id": 170, "type": "binary_expression", "text": "vector<VkPushConstantRange> m_pushConstantRanges", "parent": 168, "children": [171, 175, 176], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 54}}, {"id": 171, "type": "binary_expression", "text": "vector<VkPushConstantRange", "parent": 170, "children": [172, 173, 174], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 32}}, {"id": 172, "type": "identifier", "text": "vector", "parent": 171, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 12}}, {"id": 173, "type": "<", "text": "<", "parent": 171, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 174, "type": "identifier", "text": "VkPushConstantRange", "parent": 171, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 32}}, {"id": 175, "type": ">", "text": ">", "parent": 170, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 33}}, {"id": 176, "type": "identifier", "text": "m_pushConstantRanges", "parent": 170, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 54}}, {"id": 177, "type": "labeled_statement", "text": "std::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;", "parent": 90, "children": [178], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 70}}, {"id": 178, "type": "statement_identifier", "text": "std", "parent": 177, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 4}}, {"id": 179, "type": "binary_expression", "text": "vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts", "parent": 177, "children": [180, 184, 185], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 69}}, {"id": 180, "type": "binary_expression", "text": "vector<VKLDescriptorSetLayoutCreateInfo", "parent": 179, "children": [181, 182, 183], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 45}}, {"id": 181, "type": "identifier", "text": "vector", "parent": 180, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 12}}, {"id": 182, "type": "<", "text": "<", "parent": 180, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 183, "type": "identifier", "text": "VKLDescriptorSetLayoutCreateInfo", "parent": 180, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 45}}, {"id": 184, "type": ">", "text": ">", "parent": 179, "children": [], "start_point": {"row": 48, "column": 45}, "end_point": {"row": 48, "column": 46}}, {"id": 185, "type": "identifier", "text": "m_descriptorSetLayouts", "parent": 179, "children": [], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 69}}, {"id": 186, "type": "declaration", "text": "const VKLDevice* m_device;", "parent": 90, "children": [187, 188], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 27}}, {"id": 187, "type": "type_identifier", "text": "VKLDevice", "parent": 186, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 16}}, {"id": 188, "type": "pointer_declarator", "text": "* m_device", "parent": 186, "children": [189, 190], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 26}}, {"id": 189, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 17}}, {"id": 190, "type": "identifier", "text": "m_device", "parent": 188, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 26}}, {"id": 191, "type": "declaration", "text": "VKLPipelineType m_type;", "parent": 90, "children": [192, 193], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 24}}, {"id": 192, "type": "type_identifier", "text": "VKLPipelineType", "parent": 191, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 16}}, {"id": 193, "type": "identifier", "text": "m_type", "parent": 191, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 23}}, {"id": 194, "type": "declaration", "text": "void addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);", "parent": 90, "children": [195, 196], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 93}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 5}}, {"id": 196, "type": "function_declarator", "text": "addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset)", "parent": 194, "children": [197, 198], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 92}}, {"id": 197, "type": "identifier", "text": "addVertexAttrib", "parent": 196, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 21}}, {"id": 198, "type": "parameter_list", "text": "(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset)", "parent": 196, "children": [199, 202, 205, 208], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 92}}, {"id": 199, "type": "parameter_declaration", "text": "uint32_t location", "parent": 198, "children": [200, 201], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 39}}, {"id": 200, "type": "primitive_type", "text": "uint32_t", "parent": 199, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 30}}, {"id": 201, "type": "identifier", "text": "location", "parent": 199, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 39}}, {"id": 202, "type": "parameter_declaration", "text": "uint32_t binding", "parent": 198, "children": [203, 204], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 57}}, {"id": 203, "type": "primitive_type", "text": "uint32_t", "parent": 202, "children": [], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 49}}, {"id": 204, "type": "identifier", "text": "binding", "parent": 202, "children": [], "start_point": {"row": 53, "column": 50}, "end_point": {"row": 53, "column": 57}}, {"id": 205, "type": "parameter_declaration", "text": "VkFormat format", "parent": 198, "children": [206, 207], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 74}}, {"id": 206, "type": "type_identifier", "text": "VkFormat", "parent": 205, "children": [], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 67}}, {"id": 207, "type": "identifier", "text": "format", "parent": 205, "children": [], "start_point": {"row": 53, "column": 68}, "end_point": {"row": 53, "column": 74}}, {"id": 208, "type": "parameter_declaration", "text": "uint32_t offset", "parent": 198, "children": [209, 210], "start_point": {"row": 53, "column": 76}, "end_point": {"row": 53, "column": 91}}, {"id": 209, "type": "primitive_type", "text": "uint32_t", "parent": 208, "children": [], "start_point": {"row": 53, "column": 76}, "end_point": {"row": 53, "column": 84}}, {"id": 210, "type": "identifier", "text": "offset", "parent": 208, "children": [], "start_point": {"row": 53, "column": 85}, "end_point": {"row": 53, "column": 91}}, {"id": 211, "type": "declaration", "text": "bool _validate();", "parent": 90, "children": [212, 213], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 18}}, {"id": 212, "type": "primitive_type", "text": "bool", "parent": 211, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 5}}, {"id": 213, "type": "function_declarator", "text": "_validate()", "parent": 211, "children": [214, 215], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 17}}, {"id": 214, "type": "identifier", "text": "_validate", "parent": 213, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 15}}, {"id": 215, "type": "parameter_list", "text": "()", "parent": 213, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 17}}, {"id": 216, "type": "declaration", "text": "friend class VKLDescriptorSetLayoutCreateInfo;", "parent": 90, "children": [217, 218], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 47}}, {"id": 217, "type": "type_identifier", "text": "friend", "parent": 216, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 7}}, {"id": 218, "type": "identifier", "text": "VKLDescriptorSetLayoutCreateInfo", "parent": 216, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 46}}, {"id": 219, "type": "declaration", "text": "friend class VKLPipelineLayout;", "parent": 90, "children": [220, 221], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 32}}, {"id": 220, "type": "type_identifier", "text": "friend", "parent": 219, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 7}}, {"id": 221, "type": "identifier", "text": "VKLPipelineLayout", "parent": 219, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 31}}, {"id": 222, "type": "declaration", "text": "class VKLPipelineLayout : public VKLHandle<VkPipelineLayout>, public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:\n\tVKLPipelineLayout();", "parent": 0, "children": [223, 224, 229, 234], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 63, "column": 21}}, {"id": 223, "type": "identifier", "text": "VKLPipelineLayout", "parent": 222, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 23}}, {"id": 224, "type": "ERROR", "text": ": public VKLHandle<VkPipelineLayout>", "parent": 222, "children": [225, 226, 227, 228], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 60}}, {"id": 225, "type": "identifier", "text": "VKLHandle", "parent": 224, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 42}}, {"id": 226, "type": "<", "text": "<", "parent": 224, "children": [], "start_point": {"row": 61, "column": 42}, "end_point": {"row": 61, "column": 43}}, {"id": 227, "type": "identifier", "text": "VkPipelineLayout", "parent": 224, "children": [], "start_point": {"row": 61, "column": 43}, "end_point": {"row": 61, "column": 59}}, {"id": 228, "type": ">", "text": ">", "parent": 224, "children": [], "start_point": {"row": 61, "column": 59}, "end_point": {"row": 61, "column": 60}}, {"id": 229, "type": "ERROR", "text": "public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:", "parent": 222, "children": [230, 231, 232, 233], "start_point": {"row": 61, "column": 62}, "end_point": {"row": 62, "column": 7}}, {"id": 230, "type": "identifier", "text": "VKLCreator", "parent": 229, "children": [], "start_point": {"row": 61, "column": 69}, "end_point": {"row": 61, "column": 79}}, {"id": 231, "type": "<", "text": "<", "parent": 229, "children": [], "start_point": {"row": 61, "column": 79}, "end_point": {"row": 61, "column": 80}}, {"id": 232, "type": "identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 229, "children": [], "start_point": {"row": 61, "column": 80}, "end_point": {"row": 61, "column": 107}}, {"id": 233, "type": ">", "text": ">", "parent": 229, "children": [], "start_point": {"row": 61, "column": 107}, "end_point": {"row": 61, "column": 108}}, {"id": 234, "type": "function_declarator", "text": "VKLPipelineLayout()", "parent": 222, "children": [235, 236], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 20}}, {"id": 235, "type": "identifier", "text": "VKLPipelineLayout", "parent": 234, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 18}}, {"id": 236, "type": "parameter_list", "text": "()", "parent": 234, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 20}}, {"id": 237, "type": "macro_type_specifier", "text": "VKLPipelineLayout(const VKLPipelineLayoutCreateInfo& createInfo)", "parent": 0, "children": [238, 239, 241], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 65}}, {"id": 238, "type": "identifier", "text": "VKLPipelineLayout", "parent": 237, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 18}}, {"id": 239, "type": "type_descriptor", "text": "const VKLPipelineLayoutCreateInfo", "parent": 237, "children": [240], "start_point": {"row": 64, "column": 19}, "end_point": {"row": 64, "column": 52}}, {"id": 240, "type": "type_identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 239, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 52}}, {"id": 241, "type": "ERROR", "text": "& createInfo", "parent": 237, "children": [242], "start_point": {"row": 64, "column": 52}, "end_point": {"row": 64, "column": 64}}, {"id": 242, "type": "identifier", "text": "createInfo", "parent": 241, "children": [], "start_point": {"row": 64, "column": 54}, "end_point": {"row": 64, "column": 64}}, {"id": 243, "type": "ERROR", "text": "const std::vector<VkPipelineShaderStageCreateInfo>& getShaderStageCreateInfos() const;\n\tconst VKLDevice* device() const;\n\tconst VkDescriptorSetLayout* descriptorSetLayouts() const;\n\t\n\tVKLPipelineType type() const;\n\tVkPipelineBindPoint bindPoint() const;\nprivate:\n\tconst VKLDevice* m_device;\n\t\n\tVkPipelineBindPoint m_bindPoint;\n\tVKLPipelineType m_type;\n\t\n\tstd::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;\n\t\n\tuint32_t m_descSetCount;\n\tVkPushConstantRange* m_pushConstantRanges;\n\tVkDescriptorSetLayout* m_descriptorSetLayouts;\n\t\n\tstd::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;\n\t\n\tvoid _destroy();\n\tvoid _create(const VKLPipelineLayoutCreateInfo& createInfo);\n\t\n\tfriend class VKLDescriptorSet;\n}", "parent": 0, "children": [244, 245, 250, 253, 260, 267, 281, 284, 287, 295, 298, 303, 308, 320, 325, 333], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 90, "column": 1}}, {"id": 244, "type": "type_identifier", "text": "std", "parent": 243, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 10}}, {"id": 245, "type": "ERROR", "text": "::vector<VkPipelineShaderStageCreateInfo>&", "parent": 243, "children": [246, 247, 248, 249], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 52}}, {"id": 246, "type": "identifier", "text": "vector", "parent": 245, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 18}}, {"id": 247, "type": "<", "text": "<", "parent": 245, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 19}}, {"id": 248, "type": "identifier", "text": "VkPipelineShaderStageCreateInfo", "parent": 245, "children": [], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 50}}, {"id": 249, "type": ">", "text": ">", "parent": 245, "children": [], "start_point": {"row": 66, "column": 50}, "end_point": {"row": 66, "column": 51}}, {"id": 250, "type": "function_declarator", "text": "getShaderStageCreateInfos()", "parent": 243, "children": [251, 252], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 80}}, {"id": 251, "type": "identifier", "text": "getShaderStageCreateInfos", "parent": 250, "children": [], "start_point": {"row": 66, "column": 53}, "end_point": {"row": 66, "column": 78}}, {"id": 252, "type": "parameter_list", "text": "()", "parent": 250, "children": [], "start_point": {"row": 66, "column": 78}, "end_point": {"row": 66, "column": 80}}, {"id": 253, "type": "declaration", "text": "const;\n\tconst VKLDevice* device() const;", "parent": 243, "children": [254, 255], "start_point": {"row": 66, "column": 81}, "end_point": {"row": 67, "column": 33}}, {"id": 254, "type": "type_identifier", "text": "VKLDevice", "parent": 253, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 16}}, {"id": 255, "type": "pointer_declarator", "text": "* device() const", "parent": 253, "children": [256, 257], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 32}}, {"id": 256, "type": "*", "text": "*", "parent": 255, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 17}}, {"id": 257, "type": "function_declarator", "text": "device() const", "parent": 255, "children": [258, 259], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 32}}, {"id": 258, "type": "identifier", "text": "device", "parent": 257, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 24}}, {"id": 259, "type": "parameter_list", "text": "()", "parent": 257, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 26}}, {"id": 260, "type": "declaration", "text": "const VkDescriptorSetLayout* descriptorSetLayouts() const;", "parent": 243, "children": [261, 262], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 59}}, {"id": 261, "type": "type_identifier", "text": "VkDescriptorSetLayout", "parent": 260, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 28}}, {"id": 262, "type": "pointer_declarator", "text": "* descriptorSetLayouts() const", "parent": 260, "children": [263, 264], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 58}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 29}}, {"id": 264, "type": "function_declarator", "text": "descriptorSetLayouts() const", "parent": 262, "children": [265, 266], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 58}}, {"id": 265, "type": "identifier", "text": "descriptorSetLayouts", "parent": 264, "children": [], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 50}}, {"id": 266, "type": "parameter_list", "text": "()", "parent": 264, "children": [], "start_point": {"row": 68, "column": 50}, "end_point": {"row": 68, "column": 52}}, {"id": 267, "type": "declaration", "text": "VKLPipelineType type() const;\n\tVkPipelineBindPoint bindPoint() const;\nprivate:\n\tconst VKLDevice* m_device;", "parent": 243, "children": [268, 269, 278], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 73, "column": 27}}, {"id": 268, "type": "type_identifier", "text": "VKLPipelineType", "parent": 267, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 16}}, {"id": 269, "type": "ERROR", "text": "type() const;\n\tVkPipelineBindPoint bindPoint() const;\nprivate:\n\tconst VKLDevice", "parent": 267, "children": [270, 273, 274, 277], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 73, "column": 16}}, {"id": 270, "type": "function_declarator", "text": "type() const", "parent": 269, "children": [271, 272], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 29}}, {"id": 271, "type": "identifier", "text": "type", "parent": 270, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 21}}, {"id": 272, "type": "parameter_list", "text": "()", "parent": 270, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 23}}, {"id": 273, "type": "identifier", "text": "VkPipelineBindPoint", "parent": 269, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 20}}, {"id": 274, "type": "function_declarator", "text": "bindPoint() const", "parent": 269, "children": [275, 276], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 38}}, {"id": 275, "type": "identifier", "text": "bindPoint", "parent": 274, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 30}}, {"id": 276, "type": "parameter_list", "text": "()", "parent": 274, "children": [], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 32}}, {"id": 277, "type": "identifier", "text": "VKLDevice", "parent": 269, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 16}}, {"id": 278, "type": "pointer_declarator", "text": "* m_device", "parent": 267, "children": [279, 280], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 26}}, {"id": 279, "type": "*", "text": "*", "parent": 278, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 17}}, {"id": 280, "type": "identifier", "text": "m_device", "parent": 278, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 26}}, {"id": 281, "type": "declaration", "text": "VkPipelineBindPoint m_bindPoint;", "parent": 243, "children": [282, 283], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 33}}, {"id": 282, "type": "type_identifier", "text": "VkPipelineBindPoint", "parent": 281, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 20}}, {"id": 283, "type": "identifier", "text": "m_bindPoint", "parent": 281, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 32}}, {"id": 284, "type": "declaration", "text": "VKLPipelineType m_type;", "parent": 243, "children": [285, 286], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 24}}, {"id": 285, "type": "type_identifier", "text": "VKLPipelineType", "parent": 284, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 16}}, {"id": 286, "type": "identifier", "text": "m_type", "parent": 284, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 23}}, {"id": 287, "type": "declaration", "text": "std::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;", "parent": 243, "children": [288, 289, 294], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 71}}, {"id": 288, "type": "type_identifier", "text": "std", "parent": 287, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 4}}, {"id": 289, "type": "ERROR", "text": "::vector<VkPipelineShaderStageCreateInfo>", "parent": 287, "children": [290, 291, 292, 293], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 45}}, {"id": 290, "type": "identifier", "text": "vector", "parent": 289, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 12}}, {"id": 291, "type": "<", "text": "<", "parent": 289, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 13}}, {"id": 292, "type": "identifier", "text": "VkPipelineShaderStageCreateInfo", "parent": 289, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 44}}, {"id": 293, "type": ">", "text": ">", "parent": 289, "children": [], "start_point": {"row": 78, "column": 44}, "end_point": {"row": 78, "column": 45}}, {"id": 294, "type": "identifier", "text": "m_shaderStageCreateInfos", "parent": 287, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 70}}, {"id": 295, "type": "declaration", "text": "uint32_t m_descSetCount;", "parent": 243, "children": [296, 297], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 25}}, {"id": 296, "type": "primitive_type", "text": "uint32_t", "parent": 295, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 9}}, {"id": 297, "type": "identifier", "text": "m_descSetCount", "parent": 295, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 24}}, {"id": 298, "type": "declaration", "text": "VkPushConstantRange* m_pushConstantRanges;", "parent": 243, "children": [299, 300], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 43}}, {"id": 299, "type": "type_identifier", "text": "VkPushConstantRange", "parent": 298, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 20}}, {"id": 300, "type": "pointer_declarator", "text": "* m_pushConstantRanges", "parent": 298, "children": [301, 302], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 42}}, {"id": 301, "type": "*", "text": "*", "parent": 300, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 21}}, {"id": 302, "type": "identifier", "text": "m_pushConstantRanges", "parent": 300, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 42}}, {"id": 303, "type": "declaration", "text": "VkDescriptorSetLayout* m_descriptorSetLayouts;", "parent": 243, "children": [304, 305], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 47}}, {"id": 304, "type": "type_identifier", "text": "VkDescriptorSetLayout", "parent": 303, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 22}}, {"id": 305, "type": "pointer_declarator", "text": "* m_descriptorSetLayouts", "parent": 303, "children": [306, 307], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 46}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 23}}, {"id": 307, "type": "identifier", "text": "m_descriptorSetLayouts", "parent": 305, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 46}}, {"id": 308, "type": "declaration", "text": "std::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;", "parent": 243, "children": [309, 310, 319], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 72}}, {"id": 309, "type": "type_identifier", "text": "std", "parent": 308, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 4}}, {"id": 310, "type": "ERROR", "text": "::vector< std::vector<VkDescriptorPoolSize> >", "parent": 308, "children": [311, 312, 313, 314, 315, 316, 317, 318], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 49}}, {"id": 311, "type": "identifier", "text": "vector", "parent": 310, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 12}}, {"id": 312, "type": "<", "text": "<", "parent": 310, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 13}}, {"id": 313, "type": "identifier", "text": "std", "parent": 310, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 17}}, {"id": 314, "type": "identifier", "text": "vector", "parent": 310, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 25}}, {"id": 315, "type": "<", "text": "<", "parent": 310, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 26}}, {"id": 316, "type": "identifier", "text": "VkDescriptorPoolSize", "parent": 310, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 46}}, {"id": 317, "type": ">", "text": ">", "parent": 310, "children": [], "start_point": {"row": 84, "column": 46}, "end_point": {"row": 84, "column": 47}}, {"id": 318, "type": ">", "text": ">", "parent": 310, "children": [], "start_point": {"row": 84, "column": 48}, "end_point": {"row": 84, "column": 49}}, {"id": 319, "type": "identifier", "text": "m_descriptorPoolSizes", "parent": 308, "children": [], "start_point": {"row": 84, "column": 50}, "end_point": {"row": 84, "column": 71}}, {"id": 320, "type": "declaration", "text": "void _destroy();", "parent": 243, "children": [321, 322], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 17}}, {"id": 321, "type": "primitive_type", "text": "void", "parent": 320, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 322, "type": "function_declarator", "text": "_destroy()", "parent": 320, "children": [323, 324], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 16}}, {"id": 323, "type": "identifier", "text": "_destroy", "parent": 322, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 14}}, {"id": 324, "type": "parameter_list", "text": "()", "parent": 322, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 16}}, {"id": 325, "type": "declaration", "text": "void _create(const VKLPipelineLayoutCreateInfo& createInfo);", "parent": 243, "children": [326, 327], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 61}}, {"id": 326, "type": "primitive_type", "text": "void", "parent": 325, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 5}}, {"id": 327, "type": "function_declarator", "text": "_create(const VKLPipelineLayoutCreateInfo& createInfo)", "parent": 325, "children": [328, 329], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 60}}, {"id": 328, "type": "identifier", "text": "_create", "parent": 327, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 13}}, {"id": 329, "type": "parameter_list", "text": "(const VKLPipelineLayoutCreateInfo& createInfo)", "parent": 327, "children": [330], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 60}}, {"id": 330, "type": "parameter_declaration", "text": "const VKLPipelineLayoutCreateInfo& createInfo", "parent": 329, "children": [331, 332], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 59}}, {"id": 331, "type": "type_identifier", "text": "VKLPipelineLayoutCreateInfo", "parent": 330, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 47}}, {"id": 332, "type": "identifier", "text": "createInfo", "parent": 330, "children": [], "start_point": {"row": 87, "column": 49}, "end_point": {"row": 87, "column": 59}}, {"id": 333, "type": "declaration", "text": "friend class VKLDescriptorSet;", "parent": 243, "children": [334, 335], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 31}}, {"id": 334, "type": "type_identifier", "text": "friend", "parent": 333, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 7}}, {"id": 335, "type": "identifier", "text": "VKLDescriptorSet", "parent": 333, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 30}}, {"id": 336, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 6}}]}, "node_categories": {"declarations": {"functions": [41, 90, 196, 213, 234, 250, 257, 264, 270, 274, 322, 327], "variables": [9, 23, 27, 30, 33, 39, 84, 87, 186, 191, 194, 199, 202, 205, 208, 211, 216, 219, 222, 253, 260, 267, 281, 284, 287, 295, 298, 303, 308, 320, 325, 330, 333], "classes": [25, 26], "imports": [6, 7], "modules": [], "enums": [11, 12, 13, 14, 18]}, "statements": {"expressions": [44, 46, 61, 63, 66, 69, 74, 75, 81, 98, 101, 103, 106, 110, 112, 115, 117, 129, 131, 134, 144, 152, 153, 161, 162, 170, 171, 179, 180], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15, 19, 22, 28, 29, 31, 32, 37, 38, 40, 42, 45, 47, 49, 51, 52, 54, 55, 57, 58, 60, 62, 67, 70, 71, 73, 76, 78, 80, 82, 83, 85, 86, 88, 89, 91, 93, 95, 99, 102, 104, 107, 109, 111, 113, 116, 118, 120, 122, 123, 125, 126, 128, 130, 132, 135, 137, 139, 140, 141, 143, 146, 148, 151, 154, 156, 158, 160, 163, 165, 167, 169, 172, 174, 176, 178, 181, 183, 185, 187, 190, 192, 193, 197, 201, 204, 206, 207, 210, 214, 217, 218, 220, 221, 223, 225, 227, 230, 232, 235, 237, 238, 240, 242, 244, 246, 248, 251, 254, 258, 261, 265, 268, 271, 273, 275, 277, 280, 282, 283, 285, 286, 288, 290, 292, 294, 297, 299, 302, 304, 307, 309, 311, 313, 314, 316, 319, 323, 328, 331, 332, 334, 335, 336], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 17, 21], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 41, "universal_type": "function", "name": "VKLDescriptorSetLayoutCreateInfo", "text_snippet": "class VKLDescriptorSetLayoutCreateInfo {\npublic:\n\tVKLDescriptorSetLayoutCreateInfo& addBinding(uint3"}, {"node_id": 90, "universal_type": "function", "name": "VKLPipelineLayoutCreateInfo", "text_snippet": "class VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{\npublic:\n\tVKLP"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset)"}, {"node_id": 213, "universal_type": "function", "name": "unknown", "text_snippet": "_validate()"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "VKLPipelineLayout()"}, {"node_id": 250, "universal_type": "function", "name": "unknown", "text_snippet": "getShaderStageCreateInfos()"}, {"node_id": 257, "universal_type": "function", "name": "unknown", "text_snippet": "device() const"}, {"node_id": 264, "universal_type": "function", "name": "unknown", "text_snippet": "descriptorSetLayouts() const"}, {"node_id": 270, "universal_type": "function", "name": "unknown", "text_snippet": "type() const"}, {"node_id": 274, "universal_type": "function", "name": "unknown", "text_snippet": "bindPoint() const"}, {"node_id": 322, "universal_type": "function", "name": "unknown", "text_snippet": "_destroy()"}, {"node_id": 327, "universal_type": "function", "name": "unknown", "text_snippet": "_create(const VKLPipelineLayoutCreateInfo& createInfo)"}], "class_declarations": [{"node_id": 25, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\tVkShaderModuleCreateInfo createInfo;\n\tVkShaderStageFlagBits stage;\n\tconst char* entryPoint"}, {"node_id": 26, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <VKL/VKL_base.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef VKLPipelineLayout_h\n#define VKLPipelineLayout_h\n\n#include <VKL/VKL_base.h>\n\ntypedef enum {\n\tVKL_PIPELINE_TYPE_GRAPHICS = 0,\n\tVKL_PIPELINE_TYPE_COMPUTE = 1\n} VKLPipelineType;\n\ntypedef struct {\n\tVkShaderModuleCreateInfo createInfo;\n\tVkShaderStageFlagBits stage;\n\tconst char* entryPoint;\n} VKLShaderModuleCreateInfo;\n\nclass VKLPipelineLayoutCreateInfo;\n\nclass VKLDescriptorSetLayoutCreateInfo {\npublic:\n\tVKLDescriptorSetLayoutCreateInfo& addBinding(uint32_t binding, VkDescriptorType type,\n\t\t\t\t\t\t\t\t\t\t\t\tuint32_t count, VkShaderStageFlags stage);\n\tVKLPipelineLayoutCreateInfo& end();\n\t\nprivate:\n\tVKLDescriptorSetLayoutCreateInfo(VKLPipelineLayoutCreateInfo& parent);\n\n\tstd::vector<VkDescriptorSetLayoutBinding> m_bindings;\n\tVKLPipelineLayoutCreateInfo& m_parent;\n\n\tfriend class VKLPipelineLayoutCreateInfo;\n\tfriend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayoutCreateInfo : public VKLCreateInfo<VKLPipelineLayoutCreateInfo>{\npublic:\n\tVKLPipelineLayoutCreateInfo();\n\t\n\tVKLPipelineLayoutCreateInfo& device(const VKLDevice* device);\n\tVKLDescriptorSetLayoutCreateInfo& addDescriptorSet();\n\tVKLPipelineLayoutCreateInfo& addPushConstant(VkShaderStageFlags stage, uint32_t offset, uint32_t size);\n\tVKLPipelineLayoutCreateInfo& addShaderModule(const uint32_t* pCode, size_t codeSize,\n\t\t\t\t\t\t\t\t\t\t VkShaderStageFlagBits stage, const char* entryPoint);\nprivate:\n\n\tstd::vector<VKLShaderModuleCreateInfo> m_shaderModuleCreateInfos;\n\tstd::vector<VkVertexInputAttributeDescription> m_vertexAttribs;\n\tstd::vector<VkPushConstantRange> m_pushConstantRanges;\n\tstd::vector<VKLDescriptorSetLayoutCreateInfo> m_descriptorSetLayouts;\n\tconst VKLDevice* m_device;\n\t\n\tVKLPipelineType m_type;\n\t\n\tvoid addVertexAttrib(uint32_t location, uint32_t binding, VkFormat format, uint32_t offset);\n\n\tbool _validate();\n\n\tfriend class VKLDescriptorSetLayoutCreateInfo;\n\tfriend class VKLPipelineLayout;\n};\n\nclass VKLPipelineLayout : public VKLHandle<VkPipelineLayout>, public VKLCreator<VKLPipelineLayoutCreateInfo>{\npublic:\n\tVKLPipelineLayout();\n\tVKLPipelineLayout(const VKLPipelineLayoutCreateInfo& createInfo);\n\t\n\tconst std::vector<VkPipelineShaderStageCreateInfo>& getShaderStageCreateInfos() const;\n\tconst VKLDevice* device() const;\n\tconst VkDescriptorSetLayout* descriptorSetLayouts() const;\n\t\n\tVKLPipelineType type() const;\n\tVkPipelineBindPoint bindPoint() const;\nprivate:\n\tconst VKLDevice* m_device;\n\t\n\tVkPipelineBindPoint m_bindPoint;\n\tVKLPipelineType m_type;\n\t\n\tstd::vector<VkPipelineShaderStageCreateInfo> m_shaderStageCreateInfos;\n\t\n\tuint32_t m_descSetCount;\n\tVkPushConstantRange* m_pushConstantRanges;\n\tVkDescriptorSetLayout* m_descriptorSetLayouts;\n\t\n\tstd::vector< std::vector<VkDescriptorPoolSize> > m_descriptorPoolSizes;\n\t\n\tvoid _destroy();\n\tvoid _create(const VKLPipelineLayoutCreateInfo& createInfo);\n\t\n\tfriend class VKLDescriptorSet;\n};\n\n#endif\n"}
80,811
c
#include <sparc/sparc.h> /* Get generic NetBSD definitions. */ #include <netbsd.h> /* Names to predefine in the preprocessor for this target machine. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dunix -Dsparc -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)" /* Make gcc agree with <machine/ansi.h> */ #undef SIZE_TYPE #define SIZE_TYPE "unsigned int" #undef PTRDIFF_TYPE #define PTRDIFF_TYPE "int" #undef WCHAR_TYPE #define WCHAR_TYPE "int" #undef WCHAR_UNSIGNED #define WCHAR_UNSIGNED 0 #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE 32 /* This is BSD, so it wants DBX format. */ #define DBX_DEBUGGING_INFO /* This is the char to use for continuation (in case we need to turn continuation back on). */ #define DBX_CONTIN_CHAR '?' /* Don't use the `xsfoo;' construct in DBX output; this system doesn't support it. */ #define DBX_NO_XREFS /* Don't default to pcc-struct-return, because gcc is the only compiler, and we want to retain compatibility with older gcc versions. */ #define DEFAULT_PCC_STRUCT_RETURN 0
36.79
28
(translation_unit) "#include <sparc/sparc.h>\n\n/* Get generic NetBSD definitions. */\n\n#include <netbsd.h>\n\n/* Names to predefine in the preprocessor for this target machine. */\n\n#undef CPP_PREDEFINES\n#define CPP_PREDEFINES "-Dunix -Dsparc -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)"\n\n/* Make gcc agree with <machine/ansi.h> */\n\n#undef SIZE_TYPE\n#define SIZE_TYPE "unsigned int"\n\n#undef PTRDIFF_TYPE\n#define PTRDIFF_TYPE "int"\n\n#undef WCHAR_TYPE\n#define WCHAR_TYPE "int"\n\n#undef WCHAR_UNSIGNED\n#define WCHAR_UNSIGNED 0\n\n#undef WCHAR_TYPE_SIZE\n#define WCHAR_TYPE_SIZE 32\n\n/* This is BSD, so it wants DBX format. */\n\n#define DBX_DEBUGGING_INFO\n\n/* This is the char to use for continuation (in case we need to turn\n continuation back on). */\n\n#define DBX_CONTIN_CHAR '?'\n\n/* Don't use the `xsfoo;' construct in DBX output; this system\n doesn't support it. */\n\n#define DBX_NO_XREFS\n\n/* Don't default to pcc-struct-return, because gcc is the only compiler, and\n we want to retain compatibility with older gcc versions. */\n#define DEFAULT_PCC_STRUCT_RETURN 0\n" (preproc_include) "#include <sparc/sparc.h>\n" (#include) "#include" (system_lib_string) "<sparc/sparc.h>" (comment) "/* Get generic NetBSD definitions. */" (preproc_include) "#include <netbsd.h>\n" (#include) "#include" (system_lib_string) "<netbsd.h>" (comment) "/* Names to predefine in the preprocessor for this target machine. */" (preproc_call) "#undef CPP_PREDEFINES\n" (preproc_directive) "#undef" (preproc_arg) "CPP_PREDEFINES" (preproc_def) "#define CPP_PREDEFINES "-Dunix -Dsparc -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)"\n" (#define) "#define" (identifier) "CPP_PREDEFINES" (preproc_arg) ""-Dunix -Dsparc -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)"" (comment) "/* Make gcc agree with <machine/ansi.h> */" (preproc_call) "#undef SIZE_TYPE\n" (preproc_directive) "#undef" (preproc_arg) "SIZE_TYPE" (preproc_def) "#define SIZE_TYPE "unsigned int"\n" (#define) "#define" (identifier) "SIZE_TYPE" (preproc_arg) ""unsigned int"" (preproc_call) "#undef PTRDIFF_TYPE\n" (preproc_directive) "#undef" (preproc_arg) "PTRDIFF_TYPE" (preproc_def) "#define PTRDIFF_TYPE "int"\n" (#define) "#define" (identifier) "PTRDIFF_TYPE" (preproc_arg) ""int"" (preproc_call) "#undef WCHAR_TYPE\n" (preproc_directive) "#undef" (preproc_arg) "WCHAR_TYPE" (preproc_def) "#define WCHAR_TYPE "int"\n" (#define) "#define" (identifier) "WCHAR_TYPE" (preproc_arg) ""int"" (preproc_call) "#undef WCHAR_UNSIGNED\n" (preproc_directive) "#undef" (preproc_arg) "WCHAR_UNSIGNED" (preproc_def) "#define WCHAR_UNSIGNED 0\n" (#define) "#define" (identifier) "WCHAR_UNSIGNED" (preproc_arg) "0" (preproc_call) "#undef WCHAR_TYPE_SIZE\n" (preproc_directive) "#undef" (preproc_arg) "WCHAR_TYPE_SIZE" (preproc_def) "#define WCHAR_TYPE_SIZE 32\n" (#define) "#define" (identifier) "WCHAR_TYPE_SIZE" (preproc_arg) "32" (comment) "/* This is BSD, so it wants DBX format. */" (preproc_def) "#define DBX_DEBUGGING_INFO\n" (#define) "#define" (identifier) "DBX_DEBUGGING_INFO" (comment) "/* This is the char to use for continuation (in case we need to turn\n continuation back on). */" (preproc_def) "#define DBX_CONTIN_CHAR '?'\n" (#define) "#define" (identifier) "DBX_CONTIN_CHAR" (preproc_arg) "'?'" (comment) "/* Don't use the `xsfoo;' construct in DBX output; this system\n doesn't support it. */" (preproc_def) "#define DBX_NO_XREFS\n" (#define) "#define" (identifier) "DBX_NO_XREFS" (comment) "/* Don't default to pcc-struct-return, because gcc is the only compiler, and\n we want to retain compatibility with older gcc versions. */" (preproc_def) "#define DEFAULT_PCC_STRUCT_RETURN 0\n" (#define) "#define" (identifier) "DEFAULT_PCC_STRUCT_RETURN" (preproc_arg) "0"
70
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 36.79, "nodes": 62, "errors": 0, "source_hash": "26e14b45d5aa8ad5ebdb8fe3082baf831231a19b010eecd3f2ef1be887bbca0d", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <sparc/sparc.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": "<sparc/sparc.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_include", "text": "#include <netbsd.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<netbsd.h>", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 6, "type": "preproc_call", "text": "#undef CPP_PREDEFINES\n", "parent": null, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#undef", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 8, "type": "preproc_arg", "text": "CPP_PREDEFINES", "parent": 6, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 21}}, {"id": 9, "type": "preproc_def", "text": "#define CPP_PREDEFINES \"-Dunix -Dsparc -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)\"\n", "parent": null, "children": [10, 11, 12], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 11, "type": "identifier", "text": "CPP_PREDEFINES", "parent": 9, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 22}}, {"id": 12, "type": "preproc_arg", "text": "\"-Dunix -Dsparc -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 114}}, {"id": 13, "type": "preproc_call", "text": "#undef SIZE_TYPE\n", "parent": null, "children": [14, 15], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 14, "type": "preproc_directive", "text": "#undef", "parent": 13, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 15, "type": "preproc_arg", "text": "SIZE_TYPE", "parent": 13, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 16}}, {"id": 16, "type": "preproc_def", "text": "#define SIZE_TYPE \"unsigned int\"\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 18, "type": "identifier", "text": "SIZE_TYPE", "parent": 16, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 17}}, {"id": 19, "type": "preproc_arg", "text": "\"unsigned int\"", "parent": 16, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 32}}, {"id": 20, "type": "preproc_call", "text": "#undef PTRDIFF_TYPE\n", "parent": null, "children": [21, 22], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 21, "type": "preproc_directive", "text": "#undef", "parent": 20, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 22, "type": "preproc_arg", "text": "PTRDIFF_TYPE", "parent": 20, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 19}}, {"id": 23, "type": "preproc_def", "text": "#define PTRDIFF_TYPE \"int\"\n", "parent": null, "children": [24, 25, 26], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 24, "type": "#define", "text": "#define", "parent": 23, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 25, "type": "identifier", "text": "PTRDIFF_TYPE", "parent": 23, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 20}}, {"id": 26, "type": "preproc_arg", "text": "\"int\"", "parent": 23, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 26}}, {"id": 27, "type": "preproc_call", "text": "#undef WCHAR_TYPE\n", "parent": null, "children": [28, 29], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 28, "type": "preproc_directive", "text": "#undef", "parent": 27, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 29, "type": "preproc_arg", "text": "WCHAR_TYPE", "parent": 27, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 17}}, {"id": 30, "type": "preproc_def", "text": "#define WCHAR_TYPE \"int\"\n", "parent": null, "children": [31, 32, 33], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 32, "type": "identifier", "text": "WCHAR_TYPE", "parent": 30, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 18}}, {"id": 33, "type": "preproc_arg", "text": "\"int\"", "parent": 30, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 24}}, {"id": 34, "type": "preproc_call", "text": "#undef WCHAR_UNSIGNED\n", "parent": null, "children": [35, 36], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 35, "type": "preproc_directive", "text": "#undef", "parent": 34, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 36, "type": "preproc_arg", "text": "WCHAR_UNSIGNED", "parent": 34, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 21}}, {"id": 37, "type": "preproc_def", "text": "#define WCHAR_UNSIGNED 0\n", "parent": null, "children": [38, 39, 40], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 39, "type": "identifier", "text": "WCHAR_UNSIGNED", "parent": 37, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 22}}, {"id": 40, "type": "preproc_arg", "text": "0", "parent": 37, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 24}}, {"id": 41, "type": "preproc_call", "text": "#undef WCHAR_TYPE_SIZE\n", "parent": null, "children": [42, 43], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 42, "type": "preproc_directive", "text": "#undef", "parent": 41, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 43, "type": "preproc_arg", "text": "WCHAR_TYPE_SIZE", "parent": 41, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 22}}, {"id": 44, "type": "preproc_def", "text": "#define WCHAR_TYPE_SIZE 32\n", "parent": null, "children": [45, 46, 47], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 46, "type": "identifier", "text": "WCHAR_TYPE_SIZE", "parent": 44, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 23}}, {"id": 47, "type": "preproc_arg", "text": "32", "parent": 44, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 26}}, {"id": 48, "type": "preproc_def", "text": "#define DBX_DEBUGGING_INFO\n", "parent": null, "children": [49, 50], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 50, "type": "identifier", "text": "DBX_DEBUGGING_INFO", "parent": 48, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 26}}, {"id": 51, "type": "preproc_def", "text": "#define DBX_CONTIN_CHAR '?'\n", "parent": null, "children": [52, 53, 54], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 52, "type": "#define", "text": "#define", "parent": 51, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 53, "type": "identifier", "text": "DBX_CONTIN_CHAR", "parent": 51, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 23}}, {"id": 54, "type": "preproc_arg", "text": "'?'", "parent": 51, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 27}}, {"id": 55, "type": "preproc_def", "text": "#define DBX_NO_XREFS\n", "parent": null, "children": [56, 57], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 56, "type": "#define", "text": "#define", "parent": 55, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 57, "type": "identifier", "text": "DBX_NO_XREFS", "parent": 55, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 20}}, {"id": 58, "type": "preproc_def", "text": "#define DEFAULT_PCC_STRUCT_RETURN 0\n", "parent": null, "children": [59, 60, 61], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 60, "type": "identifier", "text": "DEFAULT_PCC_STRUCT_RETURN", "parent": 58, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 33}}, {"id": 61, "type": "preproc_arg", "text": "0", "parent": 58, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 35}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [11, 18, 25, 32, 39, 46, 50, 53, 57, 60], "returns": [], "exceptions": []}, "expressions": {"calls": [6, 13, 20, 27, 34, 41], "literals": [2, 5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <sparc/sparc.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <netbsd.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <sparc/sparc.h>\n\n/* Get generic NetBSD definitions. */\n\n#include <netbsd.h>\n\n/* Names to predefine in the preprocessor for this target machine. */\n\n#undef CPP_PREDEFINES\n#define CPP_PREDEFINES \"-Dunix -Dsparc -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)\"\n\n/* Make gcc agree with <machine/ansi.h> */\n\n#undef SIZE_TYPE\n#define SIZE_TYPE \"unsigned int\"\n\n#undef PTRDIFF_TYPE\n#define PTRDIFF_TYPE \"int\"\n\n#undef WCHAR_TYPE\n#define WCHAR_TYPE \"int\"\n\n#undef WCHAR_UNSIGNED\n#define WCHAR_UNSIGNED 0\n\n#undef WCHAR_TYPE_SIZE\n#define WCHAR_TYPE_SIZE 32\n\n/* This is BSD, so it wants DBX format. */\n\n#define DBX_DEBUGGING_INFO\n\n/* This is the char to use for continuation (in case we need to turn\n continuation back on). */\n\n#define DBX_CONTIN_CHAR '?'\n\n/* Don't use the `xsfoo;' construct in DBX output; this system\n doesn't support it. */\n\n#define DBX_NO_XREFS\n\n/* Don't default to pcc-struct-return, because gcc is the only compiler, and\n we want to retain compatibility with older gcc versions. */\n#define DEFAULT_PCC_STRUCT_RETURN 0\n"}
80,812
c
#ifndef ADD_ON_INFO_H #define ADD_ON_INFO_H #include <libim/Protocol.h> #include <support/String.h> #include <OS.h> namespace IM { class AddOnInfo { public: Protocol * protocol; const char * signature; BString path; image_id image; }; }; #endif
15.19
16
(translation_unit) "#ifndef ADD_ON_INFO_H\n#define ADD_ON_INFO_H\n\n#include <libim/Protocol.h>\n#include <support/String.h>\n#include <OS.h>\n\nnamespace IM {\n\nclass AddOnInfo\n{\n public:\n Protocol * protocol;\n const char * signature;\n BString path;\n image_id image;\n};\n\n};\n\n#endif\n" (preproc_ifdef) "#ifndef ADD_ON_INFO_H\n#define ADD_ON_INFO_H\n\n#include <libim/Protocol.h>\n#include <support/String.h>\n#include <OS.h>\n\nnamespace IM {\n\nclass AddOnInfo\n{\n public:\n Protocol * protocol;\n const char * signature;\n BString path;\n image_id image;\n};\n\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "ADD_ON_INFO_H" (preproc_def) "#define ADD_ON_INFO_H\n" (#define) "#define" (identifier) "ADD_ON_INFO_H" (preproc_include) "#include <libim/Protocol.h>\n" (#include) "#include" (system_lib_string) "<libim/Protocol.h>" (preproc_include) "#include <support/String.h>\n" (#include) "#include" (system_lib_string) "<support/String.h>" (preproc_include) "#include <OS.h>\n" (#include) "#include" (system_lib_string) "<OS.h>" (function_definition) "namespace IM {\n\nclass AddOnInfo\n{\n public:\n Protocol * protocol;\n const char * signature;\n BString path;\n image_id image;\n};\n\n}" (type_identifier) "namespace" (identifier) "IM" (compound_statement) "{\n\nclass AddOnInfo\n{\n public:\n Protocol * protocol;\n const char * signature;\n BString path;\n image_id image;\n};\n\n}" ({) "{" (function_definition) "class AddOnInfo\n{\n public:\n Protocol * protocol;\n const char * signature;\n BString path;\n image_id image;\n}" (type_identifier) "class" (identifier) "AddOnInfo" (compound_statement) "{\n public:\n Protocol * protocol;\n const char * signature;\n BString path;\n image_id image;\n}" ({) "{" (labeled_statement) "public:\n Protocol * protocol;" (statement_identifier) "public" (:) ":" (declaration) "Protocol * protocol;" (type_identifier) "Protocol" (pointer_declarator) "* protocol" (*) "*" (identifier) "protocol" (;) ";" (declaration) "const char * signature;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* signature" (*) "*" (identifier) "signature" (;) ";" (declaration) "BString path;" (type_identifier) "BString" (identifier) "path" (;) ";" (declaration) "image_id image;" (type_identifier) "image_id" (identifier) "image" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
58
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 15.19, "nodes": 38, "errors": 0, "source_hash": "e8d30d81abbe7a079954641626722e8e0cfaa24ad7c9b33dc823e18b0e76e7b1", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ADD_ON_INFO_H\n#define ADD_ON_INFO_H\n\n#include <libim/Protocol.h>\n#include <support/String.h>\n#include <OS.h>\n\nnamespace IM {\n\nclass AddOnInfo\n{\n\tpublic:\n\t\tProtocol\t\t* protocol;\n\t\tconst char\t\t* signature;\n\t\tBString\t\t\tpath;\n\t\timage_id\t\timage;\n};\n\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 37], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "ADD_ON_INFO_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define ADD_ON_INFO_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "ADD_ON_INFO_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <libim/Protocol.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<libim/Protocol.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 27}}, {"id": 9, "type": "preproc_include", "text": "#include <support/String.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": "<support/String.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include <OS.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<OS.h>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 15}}, {"id": 15, "type": "function_definition", "text": "namespace IM {\n\nclass AddOnInfo\n{\n\tpublic:\n\t\tProtocol\t\t* protocol;\n\t\tconst char\t\t* signature;\n\t\tBString\t\t\tpath;\n\t\timage_id\t\timage;\n};\n\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 18, "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": "IM", "parent": 15, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 18, "type": "function_definition", "text": "class AddOnInfo\n{\n\tpublic:\n\t\tProtocol\t\t* protocol;\n\t\tconst char\t\t* signature;\n\t\tBString\t\t\tpath;\n\t\timage_id\t\timage;\n}", "parent": 15, "children": [19], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 19, "type": "identifier", "text": "AddOnInfo", "parent": 18, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 15}}, {"id": 20, "type": "labeled_statement", "text": "public:\n\t\tProtocol\t\t* protocol;", "parent": 18, "children": [21], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 12, "column": 23}}, {"id": 21, "type": "declaration", "text": "Protocol\t\t* protocol;", "parent": 20, "children": [22, 23], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 23}}, {"id": 22, "type": "type_identifier", "text": "Protocol", "parent": 21, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 10}}, {"id": 23, "type": "pointer_declarator", "text": "* protocol", "parent": 21, "children": [24, 25], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 22}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 25, "type": "identifier", "text": "protocol", "parent": 23, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 22}}, {"id": 26, "type": "declaration", "text": "const char\t\t* signature;", "parent": 18, "children": [27, 28], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 26}}, {"id": 27, "type": "primitive_type", "text": "char", "parent": 26, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 12}}, {"id": 28, "type": "pointer_declarator", "text": "* signature", "parent": 26, "children": [29, 30], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 25}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 15}}, {"id": 30, "type": "identifier", "text": "signature", "parent": 28, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 25}}, {"id": 31, "type": "declaration", "text": "BString\t\t\tpath;", "parent": 18, "children": [32, 33], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 17}}, {"id": 32, "type": "type_identifier", "text": "BString", "parent": 31, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 9}}, {"id": 33, "type": "identifier", "text": "path", "parent": 31, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 16}}, {"id": 34, "type": "declaration", "text": "image_id\t\timage;", "parent": 18, "children": [35, 36], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 18}}, {"id": 35, "type": "type_identifier", "text": "image_id", "parent": 34, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 10}}, {"id": 36, "type": "identifier", "text": "image", "parent": 34, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 17}}, {"id": 37, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18], "variables": [21, 26, 31, 34], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 22, 25, 30, 32, 33, 35, 36, 37], "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": "AddOnInfo", "text_snippet": "namespace IM {\n\nclass AddOnInfo\n{\n\tpublic:\n\t\tProtocol\t\t* protocol;\n\t\tconst char\t\t* signature;\n\t\tBStr"}, {"node_id": 18, "universal_type": "function", "name": "AddOnInfo", "text_snippet": "class AddOnInfo\n{\n\tpublic:\n\t\tProtocol\t\t* protocol;\n\t\tconst char\t\t* signature;\n\t\tBString\t\t\tpath;\n\t\tim"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <libim/Protocol.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <support/String.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <OS.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef ADD_ON_INFO_H\n#define ADD_ON_INFO_H\n\n#include <libim/Protocol.h>\n#include <support/String.h>\n#include <OS.h>\n\nnamespace IM {\n\nclass AddOnInfo\n{\n\tpublic:\n\t\tProtocol\t\t* protocol;\n\t\tconst char\t\t* signature;\n\t\tBString\t\t\tpath;\n\t\timage_id\t\timage;\n};\n\n};\n\n#endif\n"}
80,813
c
/* Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // GDataEntryYouTubeFriend.h // #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE #import "GDataEntryBase.h" @interface GDataEntryYouTubeFriend : GDataEntryBase + (GDataEntryYouTubeFriend *)friendEntry; - (NSString *)username; - (void)setUsername:(NSString *)str; - (NSString *)status; - (void)setStatus:(NSString *)str; // to get the user profile link, use [[feed links] relatedLink] @end #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE
37.25
28
(translation_unit) "/* Copyright (c) 2008 Google Inc.\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an "AS IS" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n//\n// GDataEntryYouTubeFriend.h\n//\n\n#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE\n\n#import "GDataEntryBase.h"\n\n@interface GDataEntryYouTubeFriend : GDataEntryBase\n\n+ (GDataEntryYouTubeFriend *)friendEntry;\n\n- (NSString *)username;\n- (void)setUsername:(NSString *)str;\n\n- (NSString *)status;\n- (void)setStatus:(NSString *)str;\n\n// to get the user profile link, use [[feed links] relatedLink]\n\n@end\n\n#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE\n" (comment) "/* Copyright (c) 2008 Google Inc.\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an "AS IS" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/" (comment) "//" (comment) "// GDataEntryYouTubeFriend.h" (comment) "//" (preproc_if) "#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE\n\n#import "GDataEntryBase.h"\n\n@interface GDataEntryYouTubeFriend : GDataEntryBase\n\n+ (GDataEntryYouTubeFriend *)friendEntry;\n\n- (NSString *)username;\n- (void)setUsername:(NSString *)str;\n\n- (NSString *)status;\n- (void)setStatus:(NSString *)str;\n\n// to get the user profile link, use [[feed links] relatedLink]\n\n@end\n\n#endif" (#if) "#if" (binary_expression) "!GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE" (unary_expression) "!GDATA_REQUIRE_SERVICE_INCLUDES" (!) "!" (identifier) "GDATA_REQUIRE_SERVICE_INCLUDES" (||) "||" (identifier) "GDATA_INCLUDE_YOUTUBE_SERVICE" ( ) "\n\n" (preproc_call) "#import "GDataEntryBase.h"\n" (preproc_directive) "#import" (preproc_arg) ""GDataEntryBase.h"" (ERROR) "@interface GDataEntryYouTubeFriend : GDataEntryBase" (ERROR) "@" (type_identifier) "interface" (identifier) "GDataEntryYouTubeFriend" (:) ":" (identifier) "GDataEntryBase" (expression_statement) "+ (GDataEntryYouTubeFriend *)friendEntry;" (unary_expression) "+ (GDataEntryYouTubeFriend *)friendEntry" (+) "+" (cast_expression) "(GDataEntryYouTubeFriend *)friendEntry" (() "(" (type_descriptor) "GDataEntryYouTubeFriend *" (type_identifier) "GDataEntryYouTubeFriend" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "friendEntry" (;) ";" (expression_statement) "- (NSString *)username;" (unary_expression) "- (NSString *)username" (-) "-" (cast_expression) "(NSString *)username" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "username" (;) ";" (expression_statement) "- (void)setUsername:(NSString *)str;" (binary_expression) "- (void)setUsername:(NSString *)str" (unary_expression) "- (void)setUsername" (-) "-" (cast_expression) "(void)setUsername" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setUsername" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "str" (;) ";" (expression_statement) "- (NSString *)status;" (unary_expression) "- (NSString *)status" (-) "-" (cast_expression) "(NSString *)status" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "status" (;) ";" (expression_statement) "- (void)setStatus:(NSString *)str;" (binary_expression) "- (void)setStatus:(NSString *)str" (unary_expression) "- (void)setStatus" (-) "-" (cast_expression) "(void)setStatus" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setStatus" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "str" (;) ";" (comment) "// to get the user profile link, use [[feed links] relatedLink]" (ERROR) "@" (ERROR) "@" (type_identifier) "end" (;) "" (#endif) "#endif" (comment) "// !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE"
104
8
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 37.25, "nodes": 66, "errors": 0, "source_hash": "86ffe6a44518a57dd81ef860a3b2bb9109f55746945a078b0681d46ff3e50ddb", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE\n\n#import \"GDataEntryBase.h\"\n\n@interface GDataEntryYouTubeFriend : GDataEntryBase\n\n+ (GDataEntryYouTubeFriend *)friendEntry;\n\n- (NSString *)username;\n- (void)setUsername:(NSString *)str;\n\n- (NSString *)status;\n- (void)setStatus:(NSString *)str;\n\n// to get the user profile link, use [[feed links] relatedLink]\n\n@end\n\n#endif", "parent": null, "children": [1, 2, 8, 9, 12, 63, 65], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 1, "type": "#if", "text": "#if", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 2, "type": "binary_expression", "text": "!GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE", "parent": 0, "children": [3, 6, 7], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 68}}, {"id": 3, "type": "unary_expression", "text": "!GDATA_REQUIRE_SERVICE_INCLUDES", "parent": 2, "children": [4, 5], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 35}}, {"id": 4, "type": "!", "text": "!", "parent": 3, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 5, "type": "identifier", "text": "GDATA_REQUIRE_SERVICE_INCLUDES", "parent": 3, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 35}}, {"id": 6, "type": "||", "text": "||", "parent": 2, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 38}}, {"id": 7, "type": "identifier", "text": "GDATA_INCLUDE_YOUTUBE_SERVICE", "parent": 2, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 68}}, {"id": 8, "type": "\n", "text": "\n\n", "parent": 0, "children": [], "start_point": {"row": 19, "column": 68}, "end_point": {"row": 21, "column": 0}}, {"id": 9, "type": "preproc_call", "text": "#import \"GDataEntryBase.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#import", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "\"GDataEntryBase.h\"", "parent": 9, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 26}}, {"id": 12, "type": "ERROR", "text": "@interface GDataEntryYouTubeFriend : GDataEntryBase", "parent": 0, "children": [13, 14, 15, 16], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 51}}, {"id": 13, "type": "ERROR", "text": "@", "parent": 12, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 14, "type": "type_identifier", "text": "interface", "parent": 12, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 10}}, {"id": 15, "type": "identifier", "text": "GDataEntryYouTubeFriend", "parent": 12, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 34}}, {"id": 16, "type": "identifier", "text": "GDataEntryBase", "parent": 12, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 51}}, {"id": 17, "type": "unary_expression", "text": "+ (GDataEntryYouTubeFriend *)friendEntry", "parent": 0, "children": [18, 19], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 40}}, {"id": 18, "type": "+", "text": "+", "parent": 17, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 19, "type": "cast_expression", "text": "(GDataEntryYouTubeFriend *)friendEntry", "parent": 17, "children": [20, 24], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 40}}, {"id": 20, "type": "type_descriptor", "text": "GDataEntryYouTubeFriend *", "parent": 19, "children": [21, 22], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 28}}, {"id": 21, "type": "type_identifier", "text": "GDataEntryYouTubeFriend", "parent": 20, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 26}}, {"id": 22, "type": "abstract_pointer_declarator", "text": "*", "parent": 20, "children": [23], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 28}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 28}}, {"id": 24, "type": "identifier", "text": "friendEntry", "parent": 19, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 40}}, {"id": 25, "type": "unary_expression", "text": "- (NSString *)username", "parent": 0, "children": [26, 27], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 22}}, {"id": 26, "type": "-", "text": "-", "parent": 25, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 27, "type": "cast_expression", "text": "(NSString *)username", "parent": 25, "children": [28, 32], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 22}}, {"id": 28, "type": "type_descriptor", "text": "NSString *", "parent": 27, "children": [29, 30], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 13}}, {"id": 29, "type": "type_identifier", "text": "NSString", "parent": 28, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 11}}, {"id": 30, "type": "abstract_pointer_declarator", "text": "*", "parent": 28, "children": [31], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 32, "type": "identifier", "text": "username", "parent": 27, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 22}}, {"id": 33, "type": "binary_expression", "text": "- (void)setUsername:(NSString *)str", "parent": 0, "children": [34, 40, 42, 43], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 35}}, {"id": 34, "type": "unary_expression", "text": "- (void)setUsername", "parent": 33, "children": [35, 36], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 19}}, {"id": 35, "type": "-", "text": "-", "parent": 34, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 36, "type": "cast_expression", "text": "(void)setUsername", "parent": 34, "children": [37, 39], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 19}}, {"id": 37, "type": "type_descriptor", "text": "void", "parent": 36, "children": [38], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 39, "type": "identifier", "text": "setUsername", "parent": 36, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 19}}, {"id": 40, "type": "ERROR", "text": ":(NSString", "parent": 33, "children": [41], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 29}}, {"id": 41, "type": "identifier", "text": "NSString", "parent": 40, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 29}}, {"id": 42, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 31}}, {"id": 43, "type": "identifier", "text": "str", "parent": 33, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 35}}, {"id": 44, "type": "unary_expression", "text": "- (NSString *)status", "parent": 0, "children": [45, 46], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 20}}, {"id": 45, "type": "-", "text": "-", "parent": 44, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 46, "type": "cast_expression", "text": "(NSString *)status", "parent": 44, "children": [47, 51], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 20}}, {"id": 47, "type": "type_descriptor", "text": "NSString *", "parent": 46, "children": [48, 49], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 13}}, {"id": 48, "type": "type_identifier", "text": "NSString", "parent": 47, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 11}}, {"id": 49, "type": "abstract_pointer_declarator", "text": "*", "parent": 47, "children": [50], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 51, "type": "identifier", "text": "status", "parent": 46, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 52, "type": "binary_expression", "text": "- (void)setStatus:(NSString *)str", "parent": 0, "children": [53, 59, 61, 62], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 33}}, {"id": 53, "type": "unary_expression", "text": "- (void)setStatus", "parent": 52, "children": [54, 55], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 17}}, {"id": 54, "type": "-", "text": "-", "parent": 53, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 55, "type": "cast_expression", "text": "(void)setStatus", "parent": 53, "children": [56, 58], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 17}}, {"id": 56, "type": "type_descriptor", "text": "void", "parent": 55, "children": [57], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 56, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 58, "type": "identifier", "text": "setStatus", "parent": 55, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 17}}, {"id": 59, "type": "ERROR", "text": ":(NSString", "parent": 52, "children": [60], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 27}}, {"id": 60, "type": "identifier", "text": "NSString", "parent": 59, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 27}}, {"id": 61, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 29}}, {"id": 62, "type": "identifier", "text": "str", "parent": 52, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 33}}, {"id": 63, "type": "ERROR", "text": "@", "parent": 0, "children": [64], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 64, "type": "ERROR", "text": "@", "parent": 63, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 65, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [2, 3, 17, 19, 25, 27, 33, 34, 36, 44, 46, 52, 53, 55], "assignments": [], "loops": [], "conditionals": [0, 1, 5, 7, 14, 15, 16, 21, 24, 29, 32, 39, 41, 43, 48, 51, 58, 60, 62, 65], "returns": [], "exceptions": []}, "expressions": {"calls": [9], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/* Copyright (c) 2008 Google Inc.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n//\n// GDataEntryYouTubeFriend.h\n//\n\n#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE\n\n#import \"GDataEntryBase.h\"\n\n@interface GDataEntryYouTubeFriend : GDataEntryBase\n\n+ (GDataEntryYouTubeFriend *)friendEntry;\n\n- (NSString *)username;\n- (void)setUsername:(NSString *)str;\n\n- (NSString *)status;\n- (void)setStatus:(NSString *)str;\n\n// to get the user profile link, use [[feed links] relatedLink]\n\n@end\n\n#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_YOUTUBE_SERVICE\n"}
80,814
c
// Copyright 2014 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 REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_ #define REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_ #include <stdint.h> #include <vector> namespace remoting { std::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point); } // namespace remoting #endif // REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_
37.75
12
(translation_unit) "// Copyright 2014 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 REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n#define REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n\n#include <stdint.h>\n\n#include <vector>\n\n\nnamespace remoting {\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n} // namespace remoting\n\n#endif // REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n" (comment) "// Copyright 2014 The Chromium Authors. All rights reserved." (comment) "// Use of this source code is governed by a BSD-style license that can be" (comment) "// found in the LICENSE file." (preproc_ifdef) "#ifndef REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n#define REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n\n#include <stdint.h>\n\n#include <vector>\n\n\nnamespace remoting {\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n} // namespace remoting\n\n#endif" (#ifndef) "#ifndef" (identifier) "REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_" (preproc_def) "#define REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n" (#define) "#define" (identifier) "REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (function_definition) "namespace remoting {\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n}" (type_identifier) "namespace" (identifier) "remoting" (compound_statement) "{\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n}" ({) "{" (labeled_statement) "std::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);" (binary_expression) "vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point)" (binary_expression) "vector<uint32_t" (identifier) "vector" (<) "<" (identifier) "uint32_t" (>) ">" (call_expression) "GetKeySymsForUnicode(uint32_t code_point)" (identifier) "GetKeySymsForUnicode" (argument_list) "(uint32_t code_point)" (() "(" (ERROR) "uint32_t" (identifier) "uint32_t" (identifier) "code_point" ()) ")" (;) ";" (}) "}" (comment) "// namespace remoting" (#endif) "#endif" (comment) "// REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_"
46
2
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 37.75, "nodes": 30, "errors": 0, "source_hash": "eed5d7e1091d367630f76ea68235d495d1b16cdd3e2b0ce741fac19a9abc826d", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n#define REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n\n#include <stdint.h>\n\n#include <vector>\n\n\nnamespace remoting {\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n} // namespace remoting\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 29], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 48}}, {"id": 3, "type": "preproc_def", "text": "#define REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_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": "REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 48}}, {"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 <vector>\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": "<vector>", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 12, "type": "function_definition", "text": "namespace remoting {\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 14, "type": "identifier", "text": "remoting", "parent": 12, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 18}}, {"id": 15, "type": "labeled_statement", "text": "std::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);", "parent": 12, "children": [16], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 64}}, {"id": 16, "type": "statement_identifier", "text": "std", "parent": 15, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 3}}, {"id": 17, "type": "binary_expression", "text": "vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point)", "parent": 15, "children": [18, 22, 23], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 63}}, {"id": 18, "type": "binary_expression", "text": "vector<uint32_t", "parent": 17, "children": [19, 20, 21], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 20}}, {"id": 19, "type": "identifier", "text": "vector", "parent": 18, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 11}}, {"id": 20, "type": "<", "text": "<", "parent": 18, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 21, "type": "identifier", "text": "uint32_t", "parent": 18, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 20}}, {"id": 22, "type": ">", "text": ">", "parent": 17, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 21}}, {"id": 23, "type": "call_expression", "text": "GetKeySymsForUnicode(uint32_t code_point)", "parent": 17, "children": [24, 25], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 63}}, {"id": 24, "type": "identifier", "text": "GetKeySymsForUnicode", "parent": 23, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 42}}, {"id": 25, "type": "argument_list", "text": "(uint32_t code_point)", "parent": 23, "children": [26, 28], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 63}}, {"id": 26, "type": "ERROR", "text": "uint32_t", "parent": 25, "children": [27], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 51}}, {"id": 27, "type": "identifier", "text": "uint32_t", "parent": 26, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 51}}, {"id": 28, "type": "identifier", "text": "code_point", "parent": 25, "children": [], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 62}}, {"id": 29, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12], "variables": [], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [17, 18, 23], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 19, 21, 24, 27, 28, 29], "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": "unknown", "text_snippet": "namespace remoting {\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n}"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdint.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Copyright 2014 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 REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n#define REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n\n#include <stdint.h>\n\n#include <vector>\n\n\nnamespace remoting {\n\nstd::vector<uint32_t> GetKeySymsForUnicode(uint32_t code_point);\n\n} // namespace remoting\n\n#endif // REMOTING_HOST_LINUX_UNICODE_TO_KEYSYM_H_\n"}
80,815
c
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/uio.h> #include <sys/mman.h> #include <sys/time.h> #include <unistd.h> #include <pthread.h> #include <fcntl.h> #include "args.h" #include "file_io.h" pthread_mutex_t dummy_lock; static int dummy_fd_head=0; static struct stat dummy_sb[THREAD_COUNT] = {0}; int file_dummyopen( const char* filename, int flags, ... ) { int fd; struct stat sb; if (flags & O_WRONLY) return 1; if ( (stat(filename, &sb) != 0) ) return -1; VRFY( pthread_mutex_lock(&dummy_lock) == 0, ); fd = ++dummy_fd_head; VRFY( fd < THREAD_COUNT, ); memcpy( &dummy_sb[fd], &sb, sizeof(sb) ); pthread_mutex_unlock(&dummy_lock); return fd; } int file_dummystat( int fd, struct stat *sbuf ) { return 0; } int file_dummyclose( int fd ) { VRFY( pthread_mutex_lock(&dummy_lock) == 0, ); --dummy_fd_head; pthread_mutex_unlock(&dummy_lock); return 0; } void* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset ) { struct file_object* fob = arg; struct posix_op* op = (struct posix_op*) fob->pvdr; int64_t file_sz; if ( fob->tail >= fob->head ) return 0; fob->tail++; if (fob->io_flags & O_WRONLY) { DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd", fob->id, fob->io_flags & O_WRONLY ? "write":"read", op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz, op->offset ); // If receiver always return requested write size sz[0] = op->sz; return (void*) op; } VRFY( pthread_mutex_lock(&dummy_lock)==0, ); file_sz = dummy_sb[fob->fd].st_size; pthread_mutex_unlock(&dummy_lock); sz[0] = file_sz - op->offset; if (sz[0] > fob->blk_sz) sz[0] = fob->blk_sz; if (op->offset > file_sz) sz[0] = 0; DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd", fob->id, fob->io_flags & O_WRONLY ? "write":"read", op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz, op->offset, file_sz ); return (void*) op; } void* file_dummycomplete( void* arg, void* arg2 ) { return 0; } int file_dummyinit( struct file_object* fob ) { struct posix_op *op; pthread_mutex_init( &dummy_lock, NULL ); op = malloc( sizeof(struct posix_op) ); VRFY( op, "bad malloc" ); op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0 ); VRFY( op->buf != (void*) -1, "mmap (block_sz=%d)", fob->blk_sz ); fob->pvdr = op; fob->QD = 1; fob->submit = file_dummysubmit; fob->flush = file_posixflush; fob->fetch = file_posixfetch; fob->complete = file_dummycomplete; fob->get = file_posixget; fob->set = file_posixset; fob->open = file_dummyopen; fob->close = file_dummyclose; fob->fstat = file_dummystat; return 0; }
27.68
98
(translation_unit) "#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <sys/uio.h>\n#include <sys/mman.h>\n#include <sys/time.h>\n#include <unistd.h>\n#include <pthread.h>\n#include <fcntl.h>\n#include "args.h"\n#include "file_io.h"\n\npthread_mutex_t dummy_lock;\n\nstatic int dummy_fd_head=0;\nstatic struct stat dummy_sb[THREAD_COUNT] = {0};\n\n\nint file_dummyopen( const char* filename, int flags, ... ) {\n int fd;\n struct stat sb;\n\n if (flags & O_WRONLY)\n return 1;\n\n if ( (stat(filename, &sb) != 0) )\n return -1;\n\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n\n fd = ++dummy_fd_head;\n VRFY( fd < THREAD_COUNT, );\n\n memcpy( &dummy_sb[fd], &sb, sizeof(sb) );\n\n pthread_mutex_unlock(&dummy_lock);\n\n return fd;\n}\n\nint file_dummystat( int fd, struct stat *sbuf ) {\n return 0;\n}\n\nint file_dummyclose( int fd ) {\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n --dummy_fd_head;\n pthread_mutex_unlock(&dummy_lock);\n\n\n return 0;\n}\n\nvoid* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset ) {\n\n struct file_object* fob = arg;\n struct posix_op* op = (struct posix_op*) fob->pvdr;\n\n int64_t file_sz;\n\n if ( fob->tail >= fob->head )\n return 0;\n\n fob->tail++;\n\n\n\n if (fob->io_flags & O_WRONLY) {\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }\n\n VRFY( pthread_mutex_lock(&dummy_lock)==0, );\n file_sz = dummy_sb[fob->fd].st_size;\n pthread_mutex_unlock(&dummy_lock);\n\n\n sz[0] = file_sz - op->offset;\n\n if (sz[0] > fob->blk_sz)\n sz[0] = fob->blk_sz;\n\n if (op->offset > file_sz)\n sz[0] = 0;\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd", \n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz );\n\n return (void*) op;\n}\n\nvoid* file_dummycomplete( void* arg, void* arg2 ) {\n return 0;\n}\n\n\nint file_dummyinit( struct file_object* fob ) {\n struct posix_op *op;\n\n pthread_mutex_init( &dummy_lock, NULL );\n\n op = malloc( sizeof(struct posix_op) );\n VRFY( op, "bad malloc" );\n\n op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 );\n VRFY( op->buf != (void*) -1, "mmap (block_sz=%d)", fob->blk_sz );\n\n fob->pvdr = op;\n fob->QD = 1;\n\n fob->submit = file_dummysubmit;\n fob->flush = file_posixflush;\n fob->fetch = file_posixfetch;\n fob->complete = file_dummycomplete;\n fob->get = file_posixget;\n fob->set = file_posixset;\n\n fob->open = file_dummyopen;\n fob->close = file_dummyclose;\n fob->fstat = file_dummystat;\n\n return 0;\n}\n\n\n" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_include) "#include <sys/uio.h>\n" (#include) "#include" (system_lib_string) "<sys/uio.h>" (preproc_include) "#include <sys/mman.h>\n" (#include) "#include" (system_lib_string) "<sys/mman.h>" (preproc_include) "#include <sys/time.h>\n" (#include) "#include" (system_lib_string) "<sys/time.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <pthread.h>\n" (#include) "#include" (system_lib_string) "<pthread.h>" (preproc_include) "#include <fcntl.h>\n" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include "args.h"\n" (#include) "#include" (string_literal) ""args.h"" (") """ (string_content) "args.h" (") """ (preproc_include) "#include "file_io.h"\n" (#include) "#include" (string_literal) ""file_io.h"" (") """ (string_content) "file_io.h" (") """ (declaration) "pthread_mutex_t dummy_lock;" (type_identifier) "pthread_mutex_t" (identifier) "dummy_lock" (;) ";" (declaration) "static int dummy_fd_head=0;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (init_declarator) "dummy_fd_head=0" (identifier) "dummy_fd_head" (=) "=" (number_literal) "0" (;) ";" (declaration) "static struct stat dummy_sb[THREAD_COUNT] = {0};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (init_declarator) "dummy_sb[THREAD_COUNT] = {0}" (array_declarator) "dummy_sb[THREAD_COUNT]" (identifier) "dummy_sb" ([) "[" (identifier) "THREAD_COUNT" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (function_definition) "int file_dummyopen( const char* filename, int flags, ... ) {\n int fd;\n struct stat sb;\n\n if (flags & O_WRONLY)\n return 1;\n\n if ( (stat(filename, &sb) != 0) )\n return -1;\n\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n\n fd = ++dummy_fd_head;\n VRFY( fd < THREAD_COUNT, );\n\n memcpy( &dummy_sb[fd], &sb, sizeof(sb) );\n\n pthread_mutex_unlock(&dummy_lock);\n\n return fd;\n}" (primitive_type) "int" (function_declarator) "file_dummyopen( const char* filename, int flags, ... )" (identifier) "file_dummyopen" (parameter_list) "( const char* filename, int flags, ... )" (() "(" (parameter_declaration) "const char* filename" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* filename" (*) "*" (identifier) "filename" (,) "," (parameter_declaration) "int flags" (primitive_type) "int" (identifier) "flags" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{\n int fd;\n struct stat sb;\n\n if (flags & O_WRONLY)\n return 1;\n\n if ( (stat(filename, &sb) != 0) )\n return -1;\n\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n\n fd = ++dummy_fd_head;\n VRFY( fd < THREAD_COUNT, );\n\n memcpy( &dummy_sb[fd], &sb, sizeof(sb) );\n\n pthread_mutex_unlock(&dummy_lock);\n\n return fd;\n}" ({) "{" (declaration) "int fd;" (primitive_type) "int" (identifier) "fd" (;) ";" (declaration) "struct stat sb;" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (identifier) "sb" (;) ";" (if_statement) "if (flags & O_WRONLY)\n return 1;" (if) "if" (parenthesized_expression) "(flags & O_WRONLY)" (() "(" (binary_expression) "flags & O_WRONLY" (identifier) "flags" (&) "&" (identifier) "O_WRONLY" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (if_statement) "if ( (stat(filename, &sb) != 0) )\n return -1;" (if) "if" (parenthesized_expression) "( (stat(filename, &sb) != 0) )" (() "(" (parenthesized_expression) "(stat(filename, &sb) != 0)" (() "(" (binary_expression) "stat(filename, &sb) != 0" (call_expression) "stat(filename, &sb)" (identifier) "stat" (argument_list) "(filename, &sb)" (() "(" (identifier) "filename" (,) "," (pointer_expression) "&sb" (&) "&" (identifier) "sb" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (expression_statement) "VRFY( pthread_mutex_lock(&dummy_lock) == 0, );" (call_expression) "VRFY( pthread_mutex_lock(&dummy_lock) == 0, )" (identifier) "VRFY" (argument_list) "( pthread_mutex_lock(&dummy_lock) == 0, )" (() "(" (binary_expression) "pthread_mutex_lock(&dummy_lock) == 0" (call_expression) "pthread_mutex_lock(&dummy_lock)" (identifier) "pthread_mutex_lock" (argument_list) "(&dummy_lock)" (() "(" (pointer_expression) "&dummy_lock" (&) "&" (identifier) "dummy_lock" ()) ")" (==) "==" (number_literal) "0" (ERROR) "," (,) "," ()) ")" (;) ";" (expression_statement) "fd = ++dummy_fd_head;" (assignment_expression) "fd = ++dummy_fd_head" (identifier) "fd" (=) "=" (update_expression) "++dummy_fd_head" (++) "++" (identifier) "dummy_fd_head" (;) ";" (expression_statement) "VRFY( fd < THREAD_COUNT, );" (call_expression) "VRFY( fd < THREAD_COUNT, )" (identifier) "VRFY" (argument_list) "( fd < THREAD_COUNT, )" (() "(" (binary_expression) "fd < THREAD_COUNT" (identifier) "fd" (<) "<" (identifier) "THREAD_COUNT" (ERROR) "," (,) "," ()) ")" (;) ";" (expression_statement) "memcpy( &dummy_sb[fd], &sb, sizeof(sb) );" (call_expression) "memcpy( &dummy_sb[fd], &sb, sizeof(sb) )" (identifier) "memcpy" (argument_list) "( &dummy_sb[fd], &sb, sizeof(sb) )" (() "(" (pointer_expression) "&dummy_sb[fd]" (&) "&" (subscript_expression) "dummy_sb[fd]" (identifier) "dummy_sb" ([) "[" (identifier) "fd" (]) "]" (,) "," (pointer_expression) "&sb" (&) "&" (identifier) "sb" (,) "," (sizeof_expression) "sizeof(sb)" (sizeof) "sizeof" (parenthesized_expression) "(sb)" (() "(" (identifier) "sb" ()) ")" ()) ")" (;) ";" (expression_statement) "pthread_mutex_unlock(&dummy_lock);" (call_expression) "pthread_mutex_unlock(&dummy_lock)" (identifier) "pthread_mutex_unlock" (argument_list) "(&dummy_lock)" (() "(" (pointer_expression) "&dummy_lock" (&) "&" (identifier) "dummy_lock" ()) ")" (;) ";" (return_statement) "return fd;" (return) "return" (identifier) "fd" (;) ";" (}) "}" (function_definition) "int file_dummystat( int fd, struct stat *sbuf ) {\n return 0;\n}" (primitive_type) "int" (function_declarator) "file_dummystat( int fd, struct stat *sbuf )" (identifier) "file_dummystat" (parameter_list) "( int fd, struct stat *sbuf )" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "struct stat *sbuf" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (pointer_declarator) "*sbuf" (*) "*" (identifier) "sbuf" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int file_dummyclose( int fd ) {\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n --dummy_fd_head;\n pthread_mutex_unlock(&dummy_lock);\n\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "file_dummyclose( int fd )" (identifier) "file_dummyclose" (parameter_list) "( int fd )" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (compound_statement) "{\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n --dummy_fd_head;\n pthread_mutex_unlock(&dummy_lock);\n\n\n return 0;\n}" ({) "{" (expression_statement) "VRFY( pthread_mutex_lock(&dummy_lock) == 0, );" (call_expression) "VRFY( pthread_mutex_lock(&dummy_lock) == 0, )" (identifier) "VRFY" (argument_list) "( pthread_mutex_lock(&dummy_lock) == 0, )" (() "(" (binary_expression) "pthread_mutex_lock(&dummy_lock) == 0" (call_expression) "pthread_mutex_lock(&dummy_lock)" (identifier) "pthread_mutex_lock" (argument_list) "(&dummy_lock)" (() "(" (pointer_expression) "&dummy_lock" (&) "&" (identifier) "dummy_lock" ()) ")" (==) "==" (number_literal) "0" (ERROR) "," (,) "," ()) ")" (;) ";" (expression_statement) "--dummy_fd_head;" (update_expression) "--dummy_fd_head" (--) "--" (identifier) "dummy_fd_head" (;) ";" (expression_statement) "pthread_mutex_unlock(&dummy_lock);" (call_expression) "pthread_mutex_unlock(&dummy_lock)" (identifier) "pthread_mutex_unlock" (argument_list) "(&dummy_lock)" (() "(" (pointer_expression) "&dummy_lock" (&) "&" (identifier) "dummy_lock" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset ) {\n\n struct file_object* fob = arg;\n struct posix_op* op = (struct posix_op*) fob->pvdr;\n\n int64_t file_sz;\n\n if ( fob->tail >= fob->head )\n return 0;\n\n fob->tail++;\n\n\n\n if (fob->io_flags & O_WRONLY) {\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }\n\n VRFY( pthread_mutex_lock(&dummy_lock)==0, );\n file_sz = dummy_sb[fob->fd].st_size;\n pthread_mutex_unlock(&dummy_lock);\n\n\n sz[0] = file_sz - op->offset;\n\n if (sz[0] > fob->blk_sz)\n sz[0] = fob->blk_sz;\n\n if (op->offset > file_sz)\n sz[0] = 0;\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd", \n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz );\n\n return (void*) op;\n}" (primitive_type) "void" (pointer_declarator) "* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset )" (*) "*" (function_declarator) "file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset )" (identifier) "file_dummysubmit" (parameter_list) "( void* arg, int32_t* sz, uint64_t* offset )" (() "(" (parameter_declaration) "void* arg" (primitive_type) "void" (pointer_declarator) "* arg" (*) "*" (identifier) "arg" (,) "," (parameter_declaration) "int32_t* sz" (primitive_type) "int32_t" (pointer_declarator) "* sz" (*) "*" (identifier) "sz" (,) "," (parameter_declaration) "uint64_t* offset" (primitive_type) "uint64_t" (pointer_declarator) "* offset" (*) "*" (identifier) "offset" ()) ")" (compound_statement) "{\n\n struct file_object* fob = arg;\n struct posix_op* op = (struct posix_op*) fob->pvdr;\n\n int64_t file_sz;\n\n if ( fob->tail >= fob->head )\n return 0;\n\n fob->tail++;\n\n\n\n if (fob->io_flags & O_WRONLY) {\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }\n\n VRFY( pthread_mutex_lock(&dummy_lock)==0, );\n file_sz = dummy_sb[fob->fd].st_size;\n pthread_mutex_unlock(&dummy_lock);\n\n\n sz[0] = file_sz - op->offset;\n\n if (sz[0] > fob->blk_sz)\n sz[0] = fob->blk_sz;\n\n if (op->offset > file_sz)\n sz[0] = 0;\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd", \n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz );\n\n return (void*) op;\n}" ({) "{" (declaration) "struct file_object* fob = arg;" (struct_specifier) "struct file_object" (struct) "struct" (type_identifier) "file_object" (init_declarator) "* fob = arg" (pointer_declarator) "* fob" (*) "*" (identifier) "fob" (=) "=" (identifier) "arg" (;) ";" (declaration) "struct posix_op* op = (struct posix_op*) fob->pvdr;" (struct_specifier) "struct posix_op" (struct) "struct" (type_identifier) "posix_op" (init_declarator) "* op = (struct posix_op*) fob->pvdr" (pointer_declarator) "* op" (*) "*" (identifier) "op" (=) "=" (cast_expression) "(struct posix_op*) fob->pvdr" (() "(" (type_descriptor) "struct posix_op*" (struct_specifier) "struct posix_op" (struct) "struct" (type_identifier) "posix_op" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "fob->pvdr" (identifier) "fob" (->) "->" (field_identifier) "pvdr" (;) ";" (declaration) "int64_t file_sz;" (primitive_type) "int64_t" (identifier) "file_sz" (;) ";" (if_statement) "if ( fob->tail >= fob->head )\n return 0;" (if) "if" (parenthesized_expression) "( fob->tail >= fob->head )" (() "(" (binary_expression) "fob->tail >= fob->head" (field_expression) "fob->tail" (identifier) "fob" (->) "->" (field_identifier) "tail" (>=) ">=" (field_expression) "fob->head" (identifier) "fob" (->) "->" (field_identifier) "head" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (expression_statement) "fob->tail++;" (update_expression) "fob->tail++" (field_expression) "fob->tail" (identifier) "fob" (->) "->" (field_identifier) "tail" (++) "++" (;) ";" (if_statement) "if (fob->io_flags & O_WRONLY) {\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }" (if) "if" (parenthesized_expression) "(fob->io_flags & O_WRONLY)" (() "(" (binary_expression) "fob->io_flags & O_WRONLY" (field_expression) "fob->io_flags" (identifier) "fob" (->) "->" (field_identifier) "io_flags" (&) "&" (identifier) "O_WRONLY" ()) ")" (compound_statement) "{\n\n DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }" ({) "{" (expression_statement) "DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );" (call_expression) "DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset )" (identifier) "DBG" (argument_list) "( "[%2d] %s op fd=%d sz=%zd, offset=%zd",\n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset )" (() "(" (string_literal) ""[%2d] %s op fd=%d sz=%zd, offset=%zd"" (") """ (string_content) "[%2d] %s op fd=%d sz=%zd, offset=%zd" (") """ (,) "," (field_expression) "fob->id" (identifier) "fob" (->) "->" (field_identifier) "id" (,) "," (conditional_expression) "fob->io_flags & O_WRONLY ? "write":"read"" (binary_expression) "fob->io_flags & O_WRONLY" (field_expression) "fob->io_flags" (identifier) "fob" (->) "->" (field_identifier) "io_flags" (&) "&" (identifier) "O_WRONLY" (?) "?" (string_literal) ""write"" (") """ (string_content) "write" (") """ (:) ":" (string_literal) ""read"" (") """ (string_content) "read" (") """ (,) "," (field_expression) "op->fd" (identifier) "op" (->) "->" (field_identifier) "fd" (,) "," (conditional_expression) "fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz" (binary_expression) "fob->io_flags & O_WRONLY" (field_expression) "fob->io_flags" (identifier) "fob" (->) "->" (field_identifier) "io_flags" (&) "&" (identifier) "O_WRONLY" (?) "?" (field_expression) "op->sz" (identifier) "op" (->) "->" (field_identifier) "sz" (:) ":" (field_expression) "fob->blk_sz" (identifier) "fob" (->) "->" (field_identifier) "blk_sz" (,) "," (field_expression) "op->offset" (identifier) "op" (->) "->" (field_identifier) "offset" ()) ")" (;) ";" (comment) "// If receiver always return requested write size" (expression_statement) "sz[0] = op->sz;" (assignment_expression) "sz[0] = op->sz" (subscript_expression) "sz[0]" (identifier) "sz" ([) "[" (number_literal) "0" (]) "]" (=) "=" (field_expression) "op->sz" (identifier) "op" (->) "->" (field_identifier) "sz" (;) ";" (return_statement) "return (void*) op;" (return) "return" (cast_expression) "(void*) op" (() "(" (type_descriptor) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "op" (;) ";" (}) "}" (expression_statement) "VRFY( pthread_mutex_lock(&dummy_lock)==0, );" (call_expression) "VRFY( pthread_mutex_lock(&dummy_lock)==0, )" (identifier) "VRFY" (argument_list) "( pthread_mutex_lock(&dummy_lock)==0, )" (() "(" (binary_expression) "pthread_mutex_lock(&dummy_lock)==0" (call_expression) "pthread_mutex_lock(&dummy_lock)" (identifier) "pthread_mutex_lock" (argument_list) "(&dummy_lock)" (() "(" (pointer_expression) "&dummy_lock" (&) "&" (identifier) "dummy_lock" ()) ")" (==) "==" (number_literal) "0" (ERROR) "," (,) "," ()) ")" (;) ";" (expression_statement) "file_sz = dummy_sb[fob->fd].st_size;" (assignment_expression) "file_sz = dummy_sb[fob->fd].st_size" (identifier) "file_sz" (=) "=" (field_expression) "dummy_sb[fob->fd].st_size" (subscript_expression) "dummy_sb[fob->fd]" (identifier) "dummy_sb" ([) "[" (field_expression) "fob->fd" (identifier) "fob" (->) "->" (field_identifier) "fd" (]) "]" (.) "." (field_identifier) "st_size" (;) ";" (expression_statement) "pthread_mutex_unlock(&dummy_lock);" (call_expression) "pthread_mutex_unlock(&dummy_lock)" (identifier) "pthread_mutex_unlock" (argument_list) "(&dummy_lock)" (() "(" (pointer_expression) "&dummy_lock" (&) "&" (identifier) "dummy_lock" ()) ")" (;) ";" (expression_statement) "sz[0] = file_sz - op->offset;" (assignment_expression) "sz[0] = file_sz - op->offset" (subscript_expression) "sz[0]" (identifier) "sz" ([) "[" (number_literal) "0" (]) "]" (=) "=" (binary_expression) "file_sz - op->offset" (identifier) "file_sz" (-) "-" (field_expression) "op->offset" (identifier) "op" (->) "->" (field_identifier) "offset" (;) ";" (if_statement) "if (sz[0] > fob->blk_sz)\n sz[0] = fob->blk_sz;" (if) "if" (parenthesized_expression) "(sz[0] > fob->blk_sz)" (() "(" (binary_expression) "sz[0] > fob->blk_sz" (subscript_expression) "sz[0]" (identifier) "sz" ([) "[" (number_literal) "0" (]) "]" (>) ">" (field_expression) "fob->blk_sz" (identifier) "fob" (->) "->" (field_identifier) "blk_sz" ()) ")" (expression_statement) "sz[0] = fob->blk_sz;" (assignment_expression) "sz[0] = fob->blk_sz" (subscript_expression) "sz[0]" (identifier) "sz" ([) "[" (number_literal) "0" (]) "]" (=) "=" (field_expression) "fob->blk_sz" (identifier) "fob" (->) "->" (field_identifier) "blk_sz" (;) ";" (if_statement) "if (op->offset > file_sz)\n sz[0] = 0;" (if) "if" (parenthesized_expression) "(op->offset > file_sz)" (() "(" (binary_expression) "op->offset > file_sz" (field_expression) "op->offset" (identifier) "op" (->) "->" (field_identifier) "offset" (>) ">" (identifier) "file_sz" ()) ")" (expression_statement) "sz[0] = 0;" (assignment_expression) "sz[0] = 0" (subscript_expression) "sz[0]" (identifier) "sz" ([) "[" (number_literal) "0" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd", \n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz );" (call_expression) "DBG( "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd", \n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz )" (identifier) "DBG" (argument_list) "( "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd", \n fob->id, fob->io_flags & O_WRONLY ? "write":"read",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz )" (() "(" (string_literal) ""[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd"" (") """ (string_content) "[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd" (") """ (,) "," (field_expression) "fob->id" (identifier) "fob" (->) "->" (field_identifier) "id" (,) "," (conditional_expression) "fob->io_flags & O_WRONLY ? "write":"read"" (binary_expression) "fob->io_flags & O_WRONLY" (field_expression) "fob->io_flags" (identifier) "fob" (->) "->" (field_identifier) "io_flags" (&) "&" (identifier) "O_WRONLY" (?) "?" (string_literal) ""write"" (") """ (string_content) "write" (") """ (:) ":" (string_literal) ""read"" (") """ (string_content) "read" (") """ (,) "," (field_expression) "op->fd" (identifier) "op" (->) "->" (field_identifier) "fd" (,) "," (conditional_expression) "fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz" (binary_expression) "fob->io_flags & O_WRONLY" (field_expression) "fob->io_flags" (identifier) "fob" (->) "->" (field_identifier) "io_flags" (&) "&" (identifier) "O_WRONLY" (?) "?" (field_expression) "op->sz" (identifier) "op" (->) "->" (field_identifier) "sz" (:) ":" (field_expression) "fob->blk_sz" (identifier) "fob" (->) "->" (field_identifier) "blk_sz" (,) "," (field_expression) "op->offset" (identifier) "op" (->) "->" (field_identifier) "offset" (,) "," (identifier) "file_sz" ()) ")" (;) ";" (return_statement) "return (void*) op;" (return) "return" (cast_expression) "(void*) op" (() "(" (type_descriptor) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "op" (;) ";" (}) "}" (function_definition) "void* file_dummycomplete( void* arg, void* arg2 ) {\n return 0;\n}" (primitive_type) "void" (pointer_declarator) "* file_dummycomplete( void* arg, void* arg2 )" (*) "*" (function_declarator) "file_dummycomplete( void* arg, void* arg2 )" (identifier) "file_dummycomplete" (parameter_list) "( void* arg, void* arg2 )" (() "(" (parameter_declaration) "void* arg" (primitive_type) "void" (pointer_declarator) "* arg" (*) "*" (identifier) "arg" (,) "," (parameter_declaration) "void* arg2" (primitive_type) "void" (pointer_declarator) "* arg2" (*) "*" (identifier) "arg2" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int file_dummyinit( struct file_object* fob ) {\n struct posix_op *op;\n\n pthread_mutex_init( &dummy_lock, NULL );\n\n op = malloc( sizeof(struct posix_op) );\n VRFY( op, "bad malloc" );\n\n op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 );\n VRFY( op->buf != (void*) -1, "mmap (block_sz=%d)", fob->blk_sz );\n\n fob->pvdr = op;\n fob->QD = 1;\n\n fob->submit = file_dummysubmit;\n fob->flush = file_posixflush;\n fob->fetch = file_posixfetch;\n fob->complete = file_dummycomplete;\n fob->get = file_posixget;\n fob->set = file_posixset;\n\n fob->open = file_dummyopen;\n fob->close = file_dummyclose;\n fob->fstat = file_dummystat;\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "file_dummyinit( struct file_object* fob )" (identifier) "file_dummyinit" (parameter_list) "( struct file_object* fob )" (() "(" (parameter_declaration) "struct file_object* fob" (struct_specifier) "struct file_object" (struct) "struct" (type_identifier) "file_object" (pointer_declarator) "* fob" (*) "*" (identifier) "fob" ()) ")" (compound_statement) "{\n struct posix_op *op;\n\n pthread_mutex_init( &dummy_lock, NULL );\n\n op = malloc( sizeof(struct posix_op) );\n VRFY( op, "bad malloc" );\n\n op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 );\n VRFY( op->buf != (void*) -1, "mmap (block_sz=%d)", fob->blk_sz );\n\n fob->pvdr = op;\n fob->QD = 1;\n\n fob->submit = file_dummysubmit;\n fob->flush = file_posixflush;\n fob->fetch = file_posixfetch;\n fob->complete = file_dummycomplete;\n fob->get = file_posixget;\n fob->set = file_posixset;\n\n fob->open = file_dummyopen;\n fob->close = file_dummyclose;\n fob->fstat = file_dummystat;\n\n return 0;\n}" ({) "{" (declaration) "struct posix_op *op;" (struct_specifier) "struct posix_op" (struct) "struct" (type_identifier) "posix_op" (pointer_declarator) "*op" (*) "*" (identifier) "op" (;) ";" (expression_statement) "pthread_mutex_init( &dummy_lock, NULL );" (call_expression) "pthread_mutex_init( &dummy_lock, NULL )" (identifier) "pthread_mutex_init" (argument_list) "( &dummy_lock, NULL )" (() "(" (pointer_expression) "&dummy_lock" (&) "&" (identifier) "dummy_lock" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "op = malloc( sizeof(struct posix_op) );" (assignment_expression) "op = malloc( sizeof(struct posix_op) )" (identifier) "op" (=) "=" (call_expression) "malloc( sizeof(struct posix_op) )" (identifier) "malloc" (argument_list) "( sizeof(struct posix_op) )" (() "(" (sizeof_expression) "sizeof(struct posix_op)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct posix_op" (struct_specifier) "struct posix_op" (struct) "struct" (type_identifier) "posix_op" ()) ")" ()) ")" (;) ";" (expression_statement) "VRFY( op, "bad malloc" );" (call_expression) "VRFY( op, "bad malloc" )" (identifier) "VRFY" (argument_list) "( op, "bad malloc" )" (() "(" (identifier) "op" (,) "," (string_literal) ""bad malloc"" (") """ (string_content) "bad malloc" (") """ ()) ")" (;) ";" (expression_statement) "op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 );" (assignment_expression) "op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 )" (field_expression) "op->buf" (identifier) "op" (->) "->" (field_identifier) "buf" (=) "=" (call_expression) "mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 )" (identifier) "mmap" (argument_list) "( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 )" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (field_expression) "fob->blk_sz" (identifier) "fob" (->) "->" (field_identifier) "blk_sz" (,) "," (binary_expression) "PROT_READ|PROT_WRITE" (identifier) "PROT_READ" (|) "|" (identifier) "PROT_WRITE" (,) "," (binary_expression) "MAP_SHARED|MAP_ANONYMOUS" (identifier) "MAP_SHARED" (|) "|" (identifier) "MAP_ANONYMOUS" (,) "," (number_literal) "-1" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "VRFY( op->buf != (void*) -1, "mmap (block_sz=%d)", fob->blk_sz );" (call_expression) "VRFY( op->buf != (void*) -1, "mmap (block_sz=%d)", fob->blk_sz )" (identifier) "VRFY" (argument_list) "( op->buf != (void*) -1, "mmap (block_sz=%d)", fob->blk_sz )" (() "(" (binary_expression) "op->buf != (void*) -1" (field_expression) "op->buf" (identifier) "op" (->) "->" (field_identifier) "buf" (!=) "!=" (cast_expression) "(void*) -1" (() "(" (type_descriptor) "void*" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "-1" (,) "," (string_literal) ""mmap (block_sz=%d)"" (") """ (string_content) "mmap (block_sz=%d)" (") """ (,) "," (field_expression) "fob->blk_sz" (identifier) "fob" (->) "->" (field_identifier) "blk_sz" ()) ")" (;) ";" (expression_statement) "fob->pvdr = op;" (assignment_expression) "fob->pvdr = op" (field_expression) "fob->pvdr" (identifier) "fob" (->) "->" (field_identifier) "pvdr" (=) "=" (identifier) "op" (;) ";" (expression_statement) "fob->QD = 1;" (assignment_expression) "fob->QD = 1" (field_expression) "fob->QD" (identifier) "fob" (->) "->" (field_identifier) "QD" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "fob->submit = file_dummysubmit;" (assignment_expression) "fob->submit = file_dummysubmit" (field_expression) "fob->submit" (identifier) "fob" (->) "->" (field_identifier) "submit" (=) "=" (identifier) "file_dummysubmit" (;) ";" (expression_statement) "fob->flush = file_posixflush;" (assignment_expression) "fob->flush = file_posixflush" (field_expression) "fob->flush" (identifier) "fob" (->) "->" (field_identifier) "flush" (=) "=" (identifier) "file_posixflush" (;) ";" (expression_statement) "fob->fetch = file_posixfetch;" (assignment_expression) "fob->fetch = file_posixfetch" (field_expression) "fob->fetch" (identifier) "fob" (->) "->" (field_identifier) "fetch" (=) "=" (identifier) "file_posixfetch" (;) ";" (expression_statement) "fob->complete = file_dummycomplete;" (assignment_expression) "fob->complete = file_dummycomplete" (field_expression) "fob->complete" (identifier) "fob" (->) "->" (field_identifier) "complete" (=) "=" (identifier) "file_dummycomplete" (;) ";" (expression_statement) "fob->get = file_posixget;" (assignment_expression) "fob->get = file_posixget" (field_expression) "fob->get" (identifier) "fob" (->) "->" (field_identifier) "get" (=) "=" (identifier) "file_posixget" (;) ";" (expression_statement) "fob->set = file_posixset;" (assignment_expression) "fob->set = file_posixset" (field_expression) "fob->set" (identifier) "fob" (->) "->" (field_identifier) "set" (=) "=" (identifier) "file_posixset" (;) ";" (expression_statement) "fob->open = file_dummyopen;" (assignment_expression) "fob->open = file_dummyopen" (field_expression) "fob->open" (identifier) "fob" (->) "->" (field_identifier) "open" (=) "=" (identifier) "file_dummyopen" (;) ";" (expression_statement) "fob->close = file_dummyclose;" (assignment_expression) "fob->close = file_dummyclose" (field_expression) "fob->close" (identifier) "fob" (->) "->" (field_identifier) "close" (=) "=" (identifier) "file_dummyclose" (;) ";" (expression_statement) "fob->fstat = file_dummystat;" (assignment_expression) "fob->fstat = file_dummystat" (field_expression) "fob->fstat" (identifier) "fob" (->) "->" (field_identifier) "fstat" (=) "=" (identifier) "file_dummystat" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
958
4
{"language": "c", "success": true, "metadata": {"lines": 98, "avg_line_length": 27.68, "nodes": 598, "errors": 0, "source_hash": "6810d94c98e713a08479c7f5609ab333479efddfdd56cf6649d2556fc7c33827", "categorized_nodes": 463}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdint.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": "<stdint.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <sys/types.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<sys/types.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 22}}, {"id": 12, "type": "preproc_include", "text": "#include <sys/stat.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<sys/stat.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 21}}, {"id": 15, "type": "preproc_include", "text": "#include <sys/uio.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<sys/uio.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 20}}, {"id": 18, "type": "preproc_include", "text": "#include <sys/mman.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<sys/mman.h>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 21}}, {"id": 21, "type": "preproc_include", "text": "#include <sys/time.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<sys/time.h>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 21}}, {"id": 24, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<unistd.h>", "parent": 24, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 27, "type": "preproc_include", "text": "#include <pthread.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<pthread.h>", "parent": 27, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 20}}, {"id": 30, "type": "preproc_include", "text": "#include <fcntl.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<fcntl.h>", "parent": 30, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 18}}, {"id": 33, "type": "preproc_include", "text": "#include \"args.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"args.h\"", "parent": 33, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 17}}, {"id": 36, "type": "preproc_include", "text": "#include \"file_io.h\"\n", "parent": null, "children": [37, 38], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"file_io.h\"", "parent": 36, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 20}}, {"id": 39, "type": "declaration", "text": "pthread_mutex_t dummy_lock;", "parent": null, "children": [40, 41], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 27}}, {"id": 40, "type": "type_identifier", "text": "pthread_mutex_t", "parent": 39, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 15}}, {"id": 41, "type": "identifier", "text": "dummy_lock", "parent": 39, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 26}}, {"id": 42, "type": "declaration", "text": "static int dummy_fd_head=0;", "parent": null, "children": [43, 44], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 27}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 44, "type": "init_declarator", "text": "dummy_fd_head=0", "parent": 42, "children": [45, 46, 47], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 26}}, {"id": 45, "type": "identifier", "text": "dummy_fd_head", "parent": 44, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 24}}, {"id": 46, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 25}}, {"id": 47, "type": "number_literal", "text": "0", "parent": 44, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 26}}, {"id": 48, "type": "declaration", "text": "static struct stat dummy_sb[THREAD_COUNT] = {0};", "parent": null, "children": [49, 52], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 48}}, {"id": 49, "type": "struct_specifier", "text": "struct stat", "parent": 48, "children": [50, 51], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 18}}, {"id": 50, "type": "struct", "text": "struct", "parent": 49, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 13}}, {"id": 51, "type": "type_identifier", "text": "stat", "parent": 49, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 18}}, {"id": 52, "type": "init_declarator", "text": "dummy_sb[THREAD_COUNT] = {0}", "parent": 48, "children": [53, 56, 57], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 47}}, {"id": 53, "type": "array_declarator", "text": "dummy_sb[THREAD_COUNT]", "parent": 52, "children": [54, 55], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 41}}, {"id": 54, "type": "identifier", "text": "dummy_sb", "parent": 53, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 27}}, {"id": 55, "type": "identifier", "text": "THREAD_COUNT", "parent": 53, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 40}}, {"id": 56, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 43}}, {"id": 57, "type": "initializer_list", "text": "{0}", "parent": 52, "children": [58], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 47}}, {"id": 58, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 46}}, {"id": 59, "type": "function_definition", "text": "int file_dummyopen( const char* filename, int flags, ... ) {\n int fd;\n struct stat sb;\n\n if (flags & O_WRONLY)\n return 1;\n\n if ( (stat(filename, &sb) != 0) )\n return -1;\n\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n\n fd = ++dummy_fd_head;\n VRFY( fd < THREAD_COUNT, );\n\n memcpy( &dummy_sb[fd], &sb, sizeof(sb) );\n\n pthread_mutex_unlock(&dummy_lock);\n\n return fd;\n}", "parent": null, "children": [60, 61], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 60, "type": "primitive_type", "text": "int", "parent": 59, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 3}}, {"id": 61, "type": "function_declarator", "text": "file_dummyopen( const char* filename, int flags, ... )", "parent": 59, "children": [62, 63], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 58}}, {"id": 62, "type": "identifier", "text": "file_dummyopen", "parent": 61, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 18}}, {"id": 63, "type": "parameter_list", "text": "( const char* filename, int flags, ... )", "parent": 61, "children": [64, 69], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 58}}, {"id": 64, "type": "parameter_declaration", "text": "const char* filename", "parent": 63, "children": [65, 66], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 40}}, {"id": 65, "type": "primitive_type", "text": "char", "parent": 64, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 30}}, {"id": 66, "type": "pointer_declarator", "text": "* filename", "parent": 64, "children": [67, 68], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 40}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 31}}, {"id": 68, "type": "identifier", "text": "filename", "parent": 66, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 40}}, {"id": 69, "type": "parameter_declaration", "text": "int flags", "parent": 63, "children": [70, 71], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 51}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 45}}, {"id": 71, "type": "identifier", "text": "flags", "parent": 69, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 51}}, {"id": 72, "type": "declaration", "text": "int fd;", "parent": 59, "children": [73, 74], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 9}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 5}}, {"id": 74, "type": "identifier", "text": "fd", "parent": 72, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 8}}, {"id": 75, "type": "declaration", "text": "struct stat sb;", "parent": 59, "children": [76, 79], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 17}}, {"id": 76, "type": "struct_specifier", "text": "struct stat", "parent": 75, "children": [77, 78], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 13}}, {"id": 77, "type": "struct", "text": "struct", "parent": 76, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 8}}, {"id": 78, "type": "type_identifier", "text": "stat", "parent": 76, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 13}}, {"id": 79, "type": "identifier", "text": "sb", "parent": 75, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 80, "type": "if_statement", "text": "if (flags & O_WRONLY)\n return 1;", "parent": 59, "children": [81, 85], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 25, "column": 13}}, {"id": 81, "type": "parenthesized_expression", "text": "(flags & O_WRONLY)", "parent": 80, "children": [82], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 23}}, {"id": 82, "type": "binary_expression", "text": "flags & O_WRONLY", "parent": 81, "children": [83, 84], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 22}}, {"id": 83, "type": "identifier", "text": "flags", "parent": 82, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 11}}, {"id": 84, "type": "identifier", "text": "O_WRONLY", "parent": 82, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 22}}, {"id": 85, "type": "return_statement", "text": "return 1;", "parent": 80, "children": [86], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 13}}, {"id": 86, "type": "number_literal", "text": "1", "parent": 85, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 87, "type": "if_statement", "text": "if ( (stat(filename, &sb) != 0) )\n return -1;", "parent": 59, "children": [88, 99], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 28, "column": 14}}, {"id": 88, "type": "parenthesized_expression", "text": "( (stat(filename, &sb) != 0) )", "parent": 87, "children": [89], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 35}}, {"id": 89, "type": "parenthesized_expression", "text": "(stat(filename, &sb) != 0)", "parent": 88, "children": [90], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 33}}, {"id": 90, "type": "binary_expression", "text": "stat(filename, &sb) != 0", "parent": 89, "children": [91, 97, 98], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 32}}, {"id": 91, "type": "call_expression", "text": "stat(filename, &sb)", "parent": 90, "children": [92, 93], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 27}}, {"id": 92, "type": "identifier", "text": "stat", "parent": 91, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 12}}, {"id": 93, "type": "argument_list", "text": "(filename, &sb)", "parent": 91, "children": [94, 95], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 27}}, {"id": 94, "type": "identifier", "text": "filename", "parent": 93, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 21}}, {"id": 95, "type": "pointer_expression", "text": "&sb", "parent": 93, "children": [96], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 26}}, {"id": 96, "type": "identifier", "text": "sb", "parent": 95, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 26}}, {"id": 97, "type": "!=", "text": "!=", "parent": 90, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 30}}, {"id": 98, "type": "number_literal", "text": "0", "parent": 90, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 32}}, {"id": 99, "type": "return_statement", "text": "return -1;", "parent": 87, "children": [100], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 14}}, {"id": 100, "type": "number_literal", "text": "-1", "parent": 99, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 13}}, {"id": 101, "type": "call_expression", "text": "VRFY( pthread_mutex_lock(&dummy_lock) == 0, )", "parent": 59, "children": [102, 103], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 47}}, {"id": 102, "type": "identifier", "text": "VRFY", "parent": 101, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 6}}, {"id": 103, "type": "argument_list", "text": "( pthread_mutex_lock(&dummy_lock) == 0, )", "parent": 101, "children": [104], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 47}}, {"id": 104, "type": "binary_expression", "text": "pthread_mutex_lock(&dummy_lock) == 0", "parent": 103, "children": [105, 110, 111], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 44}}, {"id": 105, "type": "call_expression", "text": "pthread_mutex_lock(&dummy_lock)", "parent": 104, "children": [106, 107], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 39}}, {"id": 106, "type": "identifier", "text": "pthread_mutex_lock", "parent": 105, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 26}}, {"id": 107, "type": "argument_list", "text": "(&dummy_lock)", "parent": 105, "children": [108], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 39}}, {"id": 108, "type": "pointer_expression", "text": "&dummy_lock", "parent": 107, "children": [109], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 38}}, {"id": 109, "type": "identifier", "text": "dummy_lock", "parent": 108, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 38}}, {"id": 110, "type": "==", "text": "==", "parent": 104, "children": [], "start_point": {"row": 30, "column": 40}, "end_point": {"row": 30, "column": 42}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 104, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 44}}, {"id": 112, "type": "assignment_expression", "text": "fd = ++dummy_fd_head", "parent": 59, "children": [113, 114, 115], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 22}}, {"id": 113, "type": "identifier", "text": "fd", "parent": 112, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 4}}, {"id": 114, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 6}}, {"id": 115, "type": "update_expression", "text": "++dummy_fd_head", "parent": 112, "children": [116, 117], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 22}}, {"id": 116, "type": "++", "text": "++", "parent": 115, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 9}}, {"id": 117, "type": "identifier", "text": "dummy_fd_head", "parent": 115, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 22}}, {"id": 118, "type": "call_expression", "text": "VRFY( fd < THREAD_COUNT, )", "parent": 59, "children": [119, 120], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 28}}, {"id": 119, "type": "identifier", "text": "VRFY", "parent": 118, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 6}}, {"id": 120, "type": "argument_list", "text": "( fd < THREAD_COUNT, )", "parent": 118, "children": [121], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 28}}, {"id": 121, "type": "binary_expression", "text": "fd < THREAD_COUNT", "parent": 120, "children": [122, 123, 124], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 25}}, {"id": 122, "type": "identifier", "text": "fd", "parent": 121, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 10}}, {"id": 123, "type": "<", "text": "<", "parent": 121, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 12}}, {"id": 124, "type": "identifier", "text": "THREAD_COUNT", "parent": 121, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 25}}, {"id": 125, "type": "call_expression", "text": "memcpy( &dummy_sb[fd], &sb, sizeof(sb) )", "parent": 59, "children": [126, 127], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 42}}, {"id": 126, "type": "identifier", "text": "memcpy", "parent": 125, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 127, "type": "argument_list", "text": "( &dummy_sb[fd], &sb, sizeof(sb) )", "parent": 125, "children": [128, 132, 134], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 42}}, {"id": 128, "type": "pointer_expression", "text": "&dummy_sb[fd]", "parent": 127, "children": [129], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 23}}, {"id": 129, "type": "subscript_expression", "text": "dummy_sb[fd]", "parent": 128, "children": [130, 131], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 23}}, {"id": 130, "type": "identifier", "text": "dummy_sb", "parent": 129, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 19}}, {"id": 131, "type": "identifier", "text": "fd", "parent": 129, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 22}}, {"id": 132, "type": "pointer_expression", "text": "&sb", "parent": 127, "children": [133], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 28}}, {"id": 133, "type": "identifier", "text": "sb", "parent": 132, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 28}}, {"id": 134, "type": "sizeof_expression", "text": "sizeof(sb)", "parent": 127, "children": [135], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 40}}, {"id": 135, "type": "parenthesized_expression", "text": "(sb)", "parent": 134, "children": [136], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 40}}, {"id": 136, "type": "identifier", "text": "sb", "parent": 135, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 39}}, {"id": 137, "type": "call_expression", "text": "pthread_mutex_unlock(&dummy_lock)", "parent": 59, "children": [138, 139], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 35}}, {"id": 138, "type": "identifier", "text": "pthread_mutex_unlock", "parent": 137, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 22}}, {"id": 139, "type": "argument_list", "text": "(&dummy_lock)", "parent": 137, "children": [140], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 35}}, {"id": 140, "type": "pointer_expression", "text": "&dummy_lock", "parent": 139, "children": [141], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 34}}, {"id": 141, "type": "identifier", "text": "dummy_lock", "parent": 140, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 34}}, {"id": 142, "type": "return_statement", "text": "return fd;", "parent": 59, "children": [143], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 12}}, {"id": 143, "type": "identifier", "text": "fd", "parent": 142, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 11}}, {"id": 144, "type": "function_definition", "text": "int file_dummystat( int fd, struct stat *sbuf ) {\n return 0;\n}", "parent": null, "children": [145, 146], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 145, "type": "primitive_type", "text": "int", "parent": 144, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 3}}, {"id": 146, "type": "function_declarator", "text": "file_dummystat( int fd, struct stat *sbuf )", "parent": 144, "children": [147, 148], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 47}}, {"id": 147, "type": "identifier", "text": "file_dummystat", "parent": 146, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 18}}, {"id": 148, "type": "parameter_list", "text": "( int fd, struct stat *sbuf )", "parent": 146, "children": [149, 152], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 47}}, {"id": 149, "type": "parameter_declaration", "text": "int fd", "parent": 148, "children": [150, 151], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 26}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 23}}, {"id": 151, "type": "identifier", "text": "fd", "parent": 149, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 26}}, {"id": 152, "type": "parameter_declaration", "text": "struct stat *sbuf", "parent": 148, "children": [153, 156], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 45}}, {"id": 153, "type": "struct_specifier", "text": "struct stat", "parent": 152, "children": [154, 155], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 39}}, {"id": 154, "type": "struct", "text": "struct", "parent": 153, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 34}}, {"id": 155, "type": "type_identifier", "text": "stat", "parent": 153, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 39}}, {"id": 156, "type": "pointer_declarator", "text": "*sbuf", "parent": 152, "children": [157, 158], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 45}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 41}}, {"id": 158, "type": "identifier", "text": "sbuf", "parent": 156, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 45}}, {"id": 159, "type": "return_statement", "text": "return 0;", "parent": 144, "children": [160], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 11}}, {"id": 160, "type": "number_literal", "text": "0", "parent": 159, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 10}}, {"id": 161, "type": "function_definition", "text": "int file_dummyclose( int fd ) {\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n --dummy_fd_head;\n pthread_mutex_unlock(&dummy_lock);\n\n\n return 0;\n}", "parent": null, "children": [162, 163], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 162, "type": "primitive_type", "text": "int", "parent": 161, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 3}}, {"id": 163, "type": "function_declarator", "text": "file_dummyclose( int fd )", "parent": 161, "children": [164, 165], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 29}}, {"id": 164, "type": "identifier", "text": "file_dummyclose", "parent": 163, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 19}}, {"id": 165, "type": "parameter_list", "text": "( int fd )", "parent": 163, "children": [166], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 29}}, {"id": 166, "type": "parameter_declaration", "text": "int fd", "parent": 165, "children": [167, 168], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 27}}, {"id": 167, "type": "primitive_type", "text": "int", "parent": 166, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 24}}, {"id": 168, "type": "identifier", "text": "fd", "parent": 166, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 27}}, {"id": 169, "type": "call_expression", "text": "VRFY( pthread_mutex_lock(&dummy_lock) == 0, )", "parent": 161, "children": [170, 171], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 47}}, {"id": 170, "type": "identifier", "text": "VRFY", "parent": 169, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 6}}, {"id": 171, "type": "argument_list", "text": "( pthread_mutex_lock(&dummy_lock) == 0, )", "parent": 169, "children": [172], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 47}}, {"id": 172, "type": "binary_expression", "text": "pthread_mutex_lock(&dummy_lock) == 0", "parent": 171, "children": [173, 178, 179], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 44}}, {"id": 173, "type": "call_expression", "text": "pthread_mutex_lock(&dummy_lock)", "parent": 172, "children": [174, 175], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 39}}, {"id": 174, "type": "identifier", "text": "pthread_mutex_lock", "parent": 173, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 26}}, {"id": 175, "type": "argument_list", "text": "(&dummy_lock)", "parent": 173, "children": [176], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 39}}, {"id": 176, "type": "pointer_expression", "text": "&dummy_lock", "parent": 175, "children": [177], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 38}}, {"id": 177, "type": "identifier", "text": "dummy_lock", "parent": 176, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 38}}, {"id": 178, "type": "==", "text": "==", "parent": 172, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 42}}, {"id": 179, "type": "number_literal", "text": "0", "parent": 172, "children": [], "start_point": {"row": 47, "column": 43}, "end_point": {"row": 47, "column": 44}}, {"id": 180, "type": "update_expression", "text": "--dummy_fd_head", "parent": 161, "children": [181, 182], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 17}}, {"id": 181, "type": "--", "text": "--", "parent": 180, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 4}}, {"id": 182, "type": "identifier", "text": "dummy_fd_head", "parent": 180, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 17}}, {"id": 183, "type": "call_expression", "text": "pthread_mutex_unlock(&dummy_lock)", "parent": 161, "children": [184, 185], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 35}}, {"id": 184, "type": "identifier", "text": "pthread_mutex_unlock", "parent": 183, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 22}}, {"id": 185, "type": "argument_list", "text": "(&dummy_lock)", "parent": 183, "children": [186], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 35}}, {"id": 186, "type": "pointer_expression", "text": "&dummy_lock", "parent": 185, "children": [187], "start_point": {"row": 49, "column": 23}, "end_point": {"row": 49, "column": 34}}, {"id": 187, "type": "identifier", "text": "dummy_lock", "parent": 186, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 34}}, {"id": 188, "type": "return_statement", "text": "return 0;", "parent": 161, "children": [189], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 11}}, {"id": 189, "type": "number_literal", "text": "0", "parent": 188, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 10}}, {"id": 190, "type": "function_definition", "text": "void* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset ) {\n\n struct file_object* fob = arg;\n struct posix_op* op = (struct posix_op*) fob->pvdr;\n\n int64_t file_sz;\n\n if ( fob->tail >= fob->head )\n return 0;\n\n fob->tail++;\n\n\n\n if (fob->io_flags & O_WRONLY) {\n\n DBG( \"[%2d] %s op fd=%d sz=%zd, offset=%zd\",\n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }\n\n VRFY( pthread_mutex_lock(&dummy_lock)==0, );\n file_sz = dummy_sb[fob->fd].st_size;\n pthread_mutex_unlock(&dummy_lock);\n\n\n sz[0] = file_sz - op->offset;\n\n if (sz[0] > fob->blk_sz)\n sz[0] = fob->blk_sz;\n\n if (op->offset > file_sz)\n sz[0] = 0;\n\n DBG( \"[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd\", \n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz );\n\n return (void*) op;\n}", "parent": null, "children": [191, 192], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 191, "type": "primitive_type", "text": "void", "parent": 190, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 192, "type": "pointer_declarator", "text": "* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset )", "parent": 190, "children": [193, 194], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 66}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 5}}, {"id": 194, "type": "function_declarator", "text": "file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset )", "parent": 192, "children": [195, 196], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 66}}, {"id": 195, "type": "identifier", "text": "file_dummysubmit", "parent": 194, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 22}}, {"id": 196, "type": "parameter_list", "text": "( void* arg, int32_t* sz, uint64_t* offset )", "parent": 194, "children": [197, 202, 207], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 66}}, {"id": 197, "type": "parameter_declaration", "text": "void* arg", "parent": 196, "children": [198, 199], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 33}}, {"id": 198, "type": "primitive_type", "text": "void", "parent": 197, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 28}}, {"id": 199, "type": "pointer_declarator", "text": "* arg", "parent": 197, "children": [200, 201], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 33}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 29}}, {"id": 201, "type": "identifier", "text": "arg", "parent": 199, "children": [], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 33}}, {"id": 202, "type": "parameter_declaration", "text": "int32_t* sz", "parent": 196, "children": [203, 204], "start_point": {"row": 55, "column": 35}, "end_point": {"row": 55, "column": 46}}, {"id": 203, "type": "primitive_type", "text": "int32_t", "parent": 202, "children": [], "start_point": {"row": 55, "column": 35}, "end_point": {"row": 55, "column": 42}}, {"id": 204, "type": "pointer_declarator", "text": "* sz", "parent": 202, "children": [205, 206], "start_point": {"row": 55, "column": 42}, "end_point": {"row": 55, "column": 46}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 55, "column": 42}, "end_point": {"row": 55, "column": 43}}, {"id": 206, "type": "identifier", "text": "sz", "parent": 204, "children": [], "start_point": {"row": 55, "column": 44}, "end_point": {"row": 55, "column": 46}}, {"id": 207, "type": "parameter_declaration", "text": "uint64_t* offset", "parent": 196, "children": [208, 209], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 64}}, {"id": 208, "type": "primitive_type", "text": "uint64_t", "parent": 207, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 56}}, {"id": 209, "type": "pointer_declarator", "text": "* offset", "parent": 207, "children": [210, 211], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 64}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 57}}, {"id": 211, "type": "identifier", "text": "offset", "parent": 209, "children": [], "start_point": {"row": 55, "column": 58}, "end_point": {"row": 55, "column": 64}}, {"id": 212, "type": "declaration", "text": "struct file_object* fob = arg;", "parent": 190, "children": [213, 216], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 32}}, {"id": 213, "type": "struct_specifier", "text": "struct file_object", "parent": 212, "children": [214, 215], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 20}}, {"id": 214, "type": "struct", "text": "struct", "parent": 213, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 8}}, {"id": 215, "type": "type_identifier", "text": "file_object", "parent": 213, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 20}}, {"id": 216, "type": "init_declarator", "text": "* fob = arg", "parent": 212, "children": [217, 220, 221], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 31}}, {"id": 217, "type": "pointer_declarator", "text": "* fob", "parent": 216, "children": [218, 219], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 25}}, {"id": 218, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 21}}, {"id": 219, "type": "identifier", "text": "fob", "parent": 217, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 25}}, {"id": 220, "type": "=", "text": "=", "parent": 216, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 27}}, {"id": 221, "type": "identifier", "text": "arg", "parent": 216, "children": [], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 31}}, {"id": 222, "type": "declaration", "text": "struct posix_op* op = (struct posix_op*) fob->pvdr;", "parent": 190, "children": [223, 226], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 53}}, {"id": 223, "type": "struct_specifier", "text": "struct posix_op", "parent": 222, "children": [224, 225], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 17}}, {"id": 224, "type": "struct", "text": "struct", "parent": 223, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 8}}, {"id": 225, "type": "type_identifier", "text": "posix_op", "parent": 223, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 17}}, {"id": 226, "type": "init_declarator", "text": "* op = (struct posix_op*) fob->pvdr", "parent": 222, "children": [227, 230, 231], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 52}}, {"id": 227, "type": "pointer_declarator", "text": "* op", "parent": 226, "children": [228, 229], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 21}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 18}}, {"id": 229, "type": "identifier", "text": "op", "parent": 227, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 21}}, {"id": 230, "type": "=", "text": "=", "parent": 226, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 23}}, {"id": 231, "type": "cast_expression", "text": "(struct posix_op*) fob->pvdr", "parent": 226, "children": [232, 238], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 52}}, {"id": 232, "type": "type_descriptor", "text": "struct posix_op*", "parent": 231, "children": [233, 236], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 41}}, {"id": 233, "type": "struct_specifier", "text": "struct posix_op", "parent": 232, "children": [234, 235], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 40}}, {"id": 234, "type": "struct", "text": "struct", "parent": 233, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 31}}, {"id": 235, "type": "type_identifier", "text": "posix_op", "parent": 233, "children": [], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 40}}, {"id": 236, "type": "abstract_pointer_declarator", "text": "*", "parent": 232, "children": [237], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 41}}, {"id": 237, "type": "*", "text": "*", "parent": 236, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 41}}, {"id": 238, "type": "field_expression", "text": "fob->pvdr", "parent": 231, "children": [239, 240], "start_point": {"row": 58, "column": 43}, "end_point": {"row": 58, "column": 52}}, {"id": 239, "type": "identifier", "text": "fob", "parent": 238, "children": [], "start_point": {"row": 58, "column": 43}, "end_point": {"row": 58, "column": 46}}, {"id": 240, "type": "field_identifier", "text": "pvdr", "parent": 238, "children": [], "start_point": {"row": 58, "column": 48}, "end_point": {"row": 58, "column": 52}}, {"id": 241, "type": "declaration", "text": "int64_t file_sz;", "parent": 190, "children": [242, 243], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 18}}, {"id": 242, "type": "primitive_type", "text": "int64_t", "parent": 241, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 9}}, {"id": 243, "type": "identifier", "text": "file_sz", "parent": 241, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 17}}, {"id": 244, "type": "if_statement", "text": "if ( fob->tail >= fob->head )\n return 0;", "parent": 190, "children": [245, 254], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 63, "column": 13}}, {"id": 245, "type": "parenthesized_expression", "text": "( fob->tail >= fob->head )", "parent": 244, "children": [246], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 31}}, {"id": 246, "type": "binary_expression", "text": "fob->tail >= fob->head", "parent": 245, "children": [247, 250, 251], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 29}}, {"id": 247, "type": "field_expression", "text": "fob->tail", "parent": 246, "children": [248, 249], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 16}}, {"id": 248, "type": "identifier", "text": "fob", "parent": 247, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 10}}, {"id": 249, "type": "field_identifier", "text": "tail", "parent": 247, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 16}}, {"id": 250, "type": ">=", "text": ">=", "parent": 246, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 19}}, {"id": 251, "type": "field_expression", "text": "fob->head", "parent": 246, "children": [252, 253], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 29}}, {"id": 252, "type": "identifier", "text": "fob", "parent": 251, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 23}}, {"id": 253, "type": "field_identifier", "text": "head", "parent": 251, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 29}}, {"id": 254, "type": "return_statement", "text": "return 0;", "parent": 244, "children": [255], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 13}}, {"id": 255, "type": "number_literal", "text": "0", "parent": 254, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 256, "type": "update_expression", "text": "fob->tail++", "parent": 190, "children": [257, 260], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 13}}, {"id": 257, "type": "field_expression", "text": "fob->tail", "parent": 256, "children": [258, 259], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 11}}, {"id": 258, "type": "identifier", "text": "fob", "parent": 257, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 5}}, {"id": 259, "type": "field_identifier", "text": "tail", "parent": 257, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 11}}, {"id": 260, "type": "++", "text": "++", "parent": 256, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 13}}, {"id": 261, "type": "if_statement", "text": "if (fob->io_flags & O_WRONLY) {\n\n DBG( \"[%2d] %s op fd=%d sz=%zd, offset=%zd\",\n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }", "parent": 190, "children": [262], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 79, "column": 3}}, {"id": 262, "type": "parenthesized_expression", "text": "(fob->io_flags & O_WRONLY)", "parent": 261, "children": [263], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 31}}, {"id": 263, "type": "binary_expression", "text": "fob->io_flags & O_WRONLY", "parent": 262, "children": [264, 267], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 30}}, {"id": 264, "type": "field_expression", "text": "fob->io_flags", "parent": 263, "children": [265, 266], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 19}}, {"id": 265, "type": "identifier", "text": "fob", "parent": 264, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 9}}, {"id": 266, "type": "field_identifier", "text": "io_flags", "parent": 264, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 19}}, {"id": 267, "type": "identifier", "text": "O_WRONLY", "parent": 263, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 30}}, {"id": 268, "type": "call_expression", "text": "DBG( \"[%2d] %s op fd=%d sz=%zd, offset=%zd\",\n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset )", "parent": 261, "children": [269, 270], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 74, "column": 18}}, {"id": 269, "type": "identifier", "text": "DBG", "parent": 268, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 7}}, {"id": 270, "type": "argument_list", "text": "( \"[%2d] %s op fd=%d sz=%zd, offset=%zd\",\n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset )", "parent": 268, "children": [271, 272, 275, 284, 287, 300], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 74, "column": 18}}, {"id": 271, "type": "string_literal", "text": "\"[%2d] %s op fd=%d sz=%zd, offset=%zd\"", "parent": 270, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 47}}, {"id": 272, "type": "field_expression", "text": "fob->id", "parent": 270, "children": [273, 274], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 13}}, {"id": 273, "type": "identifier", "text": "fob", "parent": 272, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 9}}, {"id": 274, "type": "field_identifier", "text": "id", "parent": 272, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 13}}, {"id": 275, "type": "conditional_expression", "text": "fob->io_flags & O_WRONLY ? \"write\":\"read\"", "parent": 270, "children": [276, 281, 282, 283], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 56}}, {"id": 276, "type": "binary_expression", "text": "fob->io_flags & O_WRONLY", "parent": 275, "children": [277, 280], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 39}}, {"id": 277, "type": "field_expression", "text": "fob->io_flags", "parent": 276, "children": [278, 279], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 28}}, {"id": 278, "type": "identifier", "text": "fob", "parent": 277, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 18}}, {"id": 279, "type": "field_identifier", "text": "io_flags", "parent": 277, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 28}}, {"id": 280, "type": "identifier", "text": "O_WRONLY", "parent": 276, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 39}}, {"id": 281, "type": "?", "text": "?", "parent": 275, "children": [], "start_point": {"row": 72, "column": 40}, "end_point": {"row": 72, "column": 41}}, {"id": 282, "type": "string_literal", "text": "\"write\"", "parent": 275, "children": [], "start_point": {"row": 72, "column": 42}, "end_point": {"row": 72, "column": 49}}, {"id": 283, "type": "string_literal", "text": "\"read\"", "parent": 275, "children": [], "start_point": {"row": 72, "column": 50}, "end_point": {"row": 72, "column": 56}}, {"id": 284, "type": "field_expression", "text": "op->fd", "parent": 270, "children": [285, 286], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 12}}, {"id": 285, "type": "identifier", "text": "op", "parent": 284, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 8}}, {"id": 286, "type": "field_identifier", "text": "fd", "parent": 284, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 12}}, {"id": 287, "type": "conditional_expression", "text": "fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz", "parent": 270, "children": [288, 293, 294, 297], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 60}}, {"id": 288, "type": "binary_expression", "text": "fob->io_flags & O_WRONLY", "parent": 287, "children": [289, 292], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 38}}, {"id": 289, "type": "field_expression", "text": "fob->io_flags", "parent": 288, "children": [290, 291], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 27}}, {"id": 290, "type": "identifier", "text": "fob", "parent": 289, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 17}}, {"id": 291, "type": "field_identifier", "text": "io_flags", "parent": 289, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 27}}, {"id": 292, "type": "identifier", "text": "O_WRONLY", "parent": 288, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 38}}, {"id": 293, "type": "?", "text": "?", "parent": 287, "children": [], "start_point": {"row": 73, "column": 39}, "end_point": {"row": 73, "column": 40}}, {"id": 294, "type": "field_expression", "text": "op->sz", "parent": 287, "children": [295, 296], "start_point": {"row": 73, "column": 41}, "end_point": {"row": 73, "column": 47}}, {"id": 295, "type": "identifier", "text": "op", "parent": 294, "children": [], "start_point": {"row": 73, "column": 41}, "end_point": {"row": 73, "column": 43}}, {"id": 296, "type": "field_identifier", "text": "sz", "parent": 294, "children": [], "start_point": {"row": 73, "column": 45}, "end_point": {"row": 73, "column": 47}}, {"id": 297, "type": "field_expression", "text": "fob->blk_sz", "parent": 287, "children": [298, 299], "start_point": {"row": 73, "column": 49}, "end_point": {"row": 73, "column": 60}}, {"id": 298, "type": "identifier", "text": "fob", "parent": 297, "children": [], "start_point": {"row": 73, "column": 49}, "end_point": {"row": 73, "column": 52}}, {"id": 299, "type": "field_identifier", "text": "blk_sz", "parent": 297, "children": [], "start_point": {"row": 73, "column": 54}, "end_point": {"row": 73, "column": 60}}, {"id": 300, "type": "field_expression", "text": "op->offset", "parent": 270, "children": [301, 302], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 16}}, {"id": 301, "type": "identifier", "text": "op", "parent": 300, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 8}}, {"id": 302, "type": "field_identifier", "text": "offset", "parent": 300, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 16}}, {"id": 303, "type": "assignment_expression", "text": "sz[0] = op->sz", "parent": 261, "children": [304, 307, 308], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 18}}, {"id": 304, "type": "subscript_expression", "text": "sz[0]", "parent": 303, "children": [305, 306], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 9}}, {"id": 305, "type": "identifier", "text": "sz", "parent": 304, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 6}}, {"id": 306, "type": "number_literal", "text": "0", "parent": 304, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 8}}, {"id": 307, "type": "=", "text": "=", "parent": 303, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 308, "type": "field_expression", "text": "op->sz", "parent": 303, "children": [309, 310], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 18}}, {"id": 309, "type": "identifier", "text": "op", "parent": 308, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 14}}, {"id": 310, "type": "field_identifier", "text": "sz", "parent": 308, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 18}}, {"id": 311, "type": "return_statement", "text": "return (void*) op;", "parent": 261, "children": [312], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 22}}, {"id": 312, "type": "cast_expression", "text": "(void*) op", "parent": 311, "children": [313, 317], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 21}}, {"id": 313, "type": "type_descriptor", "text": "void*", "parent": 312, "children": [314, 315], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 17}}, {"id": 314, "type": "primitive_type", "text": "void", "parent": 313, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 16}}, {"id": 315, "type": "abstract_pointer_declarator", "text": "*", "parent": 313, "children": [316], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 17}}, {"id": 316, "type": "*", "text": "*", "parent": 315, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 17}}, {"id": 317, "type": "identifier", "text": "op", "parent": 312, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 21}}, {"id": 318, "type": "call_expression", "text": "VRFY( pthread_mutex_lock(&dummy_lock)==0, )", "parent": 190, "children": [319, 320], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 45}}, {"id": 319, "type": "identifier", "text": "VRFY", "parent": 318, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 6}}, {"id": 320, "type": "argument_list", "text": "( pthread_mutex_lock(&dummy_lock)==0, )", "parent": 318, "children": [321], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 45}}, {"id": 321, "type": "binary_expression", "text": "pthread_mutex_lock(&dummy_lock)==0", "parent": 320, "children": [322, 327, 328], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 42}}, {"id": 322, "type": "call_expression", "text": "pthread_mutex_lock(&dummy_lock)", "parent": 321, "children": [323, 324], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 39}}, {"id": 323, "type": "identifier", "text": "pthread_mutex_lock", "parent": 322, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 26}}, {"id": 324, "type": "argument_list", "text": "(&dummy_lock)", "parent": 322, "children": [325], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 39}}, {"id": 325, "type": "pointer_expression", "text": "&dummy_lock", "parent": 324, "children": [326], "start_point": {"row": 81, "column": 27}, "end_point": {"row": 81, "column": 38}}, {"id": 326, "type": "identifier", "text": "dummy_lock", "parent": 325, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 38}}, {"id": 327, "type": "==", "text": "==", "parent": 321, "children": [], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 41}}, {"id": 328, "type": "number_literal", "text": "0", "parent": 321, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 42}}, {"id": 329, "type": "assignment_expression", "text": "file_sz = dummy_sb[fob->fd].st_size", "parent": 190, "children": [330, 331, 332], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 37}}, {"id": 330, "type": "identifier", "text": "file_sz", "parent": 329, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 9}}, {"id": 331, "type": "=", "text": "=", "parent": 329, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 11}}, {"id": 332, "type": "field_expression", "text": "dummy_sb[fob->fd].st_size", "parent": 329, "children": [333, 338], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 37}}, {"id": 333, "type": "subscript_expression", "text": "dummy_sb[fob->fd]", "parent": 332, "children": [334, 335], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 29}}, {"id": 334, "type": "identifier", "text": "dummy_sb", "parent": 333, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 20}}, {"id": 335, "type": "field_expression", "text": "fob->fd", "parent": 333, "children": [336, 337], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 28}}, {"id": 336, "type": "identifier", "text": "fob", "parent": 335, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 24}}, {"id": 337, "type": "field_identifier", "text": "fd", "parent": 335, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 28}}, {"id": 338, "type": "field_identifier", "text": "st_size", "parent": 332, "children": [], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 37}}, {"id": 339, "type": "call_expression", "text": "pthread_mutex_unlock(&dummy_lock)", "parent": 190, "children": [340, 341], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 35}}, {"id": 340, "type": "identifier", "text": "pthread_mutex_unlock", "parent": 339, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 22}}, {"id": 341, "type": "argument_list", "text": "(&dummy_lock)", "parent": 339, "children": [342], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 35}}, {"id": 342, "type": "pointer_expression", "text": "&dummy_lock", "parent": 341, "children": [343], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 34}}, {"id": 343, "type": "identifier", "text": "dummy_lock", "parent": 342, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 34}}, {"id": 344, "type": "assignment_expression", "text": "sz[0] = file_sz - op->offset", "parent": 190, "children": [345, 348, 349], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 30}}, {"id": 345, "type": "subscript_expression", "text": "sz[0]", "parent": 344, "children": [346, 347], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 7}}, {"id": 346, "type": "identifier", "text": "sz", "parent": 345, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 4}}, {"id": 347, "type": "number_literal", "text": "0", "parent": 345, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 6}}, {"id": 348, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 9}}, {"id": 349, "type": "binary_expression", "text": "file_sz - op->offset", "parent": 344, "children": [350, 351, 352], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 30}}, {"id": 350, "type": "identifier", "text": "file_sz", "parent": 349, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 17}}, {"id": 351, "type": "-", "text": "-", "parent": 349, "children": [], "start_point": {"row": 86, "column": 18}, "end_point": {"row": 86, "column": 19}}, {"id": 352, "type": "field_expression", "text": "op->offset", "parent": 349, "children": [353, 354], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 30}}, {"id": 353, "type": "identifier", "text": "op", "parent": 352, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 22}}, {"id": 354, "type": "field_identifier", "text": "offset", "parent": 352, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 30}}, {"id": 355, "type": "if_statement", "text": "if (sz[0] > fob->blk_sz)\n sz[0] = fob->blk_sz;", "parent": 190, "children": [356], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 89, "column": 24}}, {"id": 356, "type": "parenthesized_expression", "text": "(sz[0] > fob->blk_sz)", "parent": 355, "children": [357], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 26}}, {"id": 357, "type": "binary_expression", "text": "sz[0] > fob->blk_sz", "parent": 356, "children": [358, 361, 362], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 25}}, {"id": 358, "type": "subscript_expression", "text": "sz[0]", "parent": 357, "children": [359, 360], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 11}}, {"id": 359, "type": "identifier", "text": "sz", "parent": 358, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 8}}, {"id": 360, "type": "number_literal", "text": "0", "parent": 358, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 10}}, {"id": 361, "type": ">", "text": ">", "parent": 357, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 13}}, {"id": 362, "type": "field_expression", "text": "fob->blk_sz", "parent": 357, "children": [363, 364], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 25}}, {"id": 363, "type": "identifier", "text": "fob", "parent": 362, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 17}}, {"id": 364, "type": "field_identifier", "text": "blk_sz", "parent": 362, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 25}}, {"id": 365, "type": "assignment_expression", "text": "sz[0] = fob->blk_sz", "parent": 355, "children": [366, 369, 370], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 23}}, {"id": 366, "type": "subscript_expression", "text": "sz[0]", "parent": 365, "children": [367, 368], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 9}}, {"id": 367, "type": "identifier", "text": "sz", "parent": 366, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 6}}, {"id": 368, "type": "number_literal", "text": "0", "parent": 366, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 8}}, {"id": 369, "type": "=", "text": "=", "parent": 365, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 11}}, {"id": 370, "type": "field_expression", "text": "fob->blk_sz", "parent": 365, "children": [371, 372], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 23}}, {"id": 371, "type": "identifier", "text": "fob", "parent": 370, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 15}}, {"id": 372, "type": "field_identifier", "text": "blk_sz", "parent": 370, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 23}}, {"id": 373, "type": "if_statement", "text": "if (op->offset > file_sz)\n sz[0] = 0;", "parent": 190, "children": [374], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 92, "column": 14}}, {"id": 374, "type": "parenthesized_expression", "text": "(op->offset > file_sz)", "parent": 373, "children": [375], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 27}}, {"id": 375, "type": "binary_expression", "text": "op->offset > file_sz", "parent": 374, "children": [376, 379, 380], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 26}}, {"id": 376, "type": "field_expression", "text": "op->offset", "parent": 375, "children": [377, 378], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 16}}, {"id": 377, "type": "identifier", "text": "op", "parent": 376, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 8}}, {"id": 378, "type": "field_identifier", "text": "offset", "parent": 376, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 16}}, {"id": 379, "type": ">", "text": ">", "parent": 375, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 18}}, {"id": 380, "type": "identifier", "text": "file_sz", "parent": 375, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 26}}, {"id": 381, "type": "assignment_expression", "text": "sz[0] = 0", "parent": 373, "children": [382, 385, 386], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 13}}, {"id": 382, "type": "subscript_expression", "text": "sz[0]", "parent": 381, "children": [383, 384], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 9}}, {"id": 383, "type": "identifier", "text": "sz", "parent": 382, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 6}}, {"id": 384, "type": "number_literal", "text": "0", "parent": 382, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 8}}, {"id": 385, "type": "=", "text": "=", "parent": 381, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 11}}, {"id": 386, "type": "number_literal", "text": "0", "parent": 381, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 13}}, {"id": 387, "type": "call_expression", "text": "DBG( \"[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd\", \n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz )", "parent": 190, "children": [388, 389], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 97, "column": 25}}, {"id": 388, "type": "identifier", "text": "DBG", "parent": 387, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 5}}, {"id": 389, "type": "argument_list", "text": "( \"[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd\", \n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz )", "parent": 387, "children": [390, 391, 394, 403, 406, 419, 422], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 97, "column": 25}}, {"id": 390, "type": "string_literal", "text": "\"[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd\"", "parent": 389, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 61}}, {"id": 391, "type": "field_expression", "text": "fob->id", "parent": 389, "children": [392, 393], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 11}}, {"id": 392, "type": "identifier", "text": "fob", "parent": 391, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 7}}, {"id": 393, "type": "field_identifier", "text": "id", "parent": 391, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 11}}, {"id": 394, "type": "conditional_expression", "text": "fob->io_flags & O_WRONLY ? \"write\":\"read\"", "parent": 389, "children": [395, 400, 401, 402], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 54}}, {"id": 395, "type": "binary_expression", "text": "fob->io_flags & O_WRONLY", "parent": 394, "children": [396, 399], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 37}}, {"id": 396, "type": "field_expression", "text": "fob->io_flags", "parent": 395, "children": [397, 398], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 26}}, {"id": 397, "type": "identifier", "text": "fob", "parent": 396, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 16}}, {"id": 398, "type": "field_identifier", "text": "io_flags", "parent": 396, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 26}}, {"id": 399, "type": "identifier", "text": "O_WRONLY", "parent": 395, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 37}}, {"id": 400, "type": "?", "text": "?", "parent": 394, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 39}}, {"id": 401, "type": "string_literal", "text": "\"write\"", "parent": 394, "children": [], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 47}}, {"id": 402, "type": "string_literal", "text": "\"read\"", "parent": 394, "children": [], "start_point": {"row": 95, "column": 48}, "end_point": {"row": 95, "column": 54}}, {"id": 403, "type": "field_expression", "text": "op->fd", "parent": 389, "children": [404, 405], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 10}}, {"id": 404, "type": "identifier", "text": "op", "parent": 403, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 6}}, {"id": 405, "type": "field_identifier", "text": "fd", "parent": 403, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 10}}, {"id": 406, "type": "conditional_expression", "text": "fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz", "parent": 389, "children": [407, 412, 413, 416], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 58}}, {"id": 407, "type": "binary_expression", "text": "fob->io_flags & O_WRONLY", "parent": 406, "children": [408, 411], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 36}}, {"id": 408, "type": "field_expression", "text": "fob->io_flags", "parent": 407, "children": [409, 410], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 25}}, {"id": 409, "type": "identifier", "text": "fob", "parent": 408, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 15}}, {"id": 410, "type": "field_identifier", "text": "io_flags", "parent": 408, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 25}}, {"id": 411, "type": "identifier", "text": "O_WRONLY", "parent": 407, "children": [], "start_point": {"row": 96, "column": 28}, "end_point": {"row": 96, "column": 36}}, {"id": 412, "type": "?", "text": "?", "parent": 406, "children": [], "start_point": {"row": 96, "column": 37}, "end_point": {"row": 96, "column": 38}}, {"id": 413, "type": "field_expression", "text": "op->sz", "parent": 406, "children": [414, 415], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 45}}, {"id": 414, "type": "identifier", "text": "op", "parent": 413, "children": [], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 41}}, {"id": 415, "type": "field_identifier", "text": "sz", "parent": 413, "children": [], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 45}}, {"id": 416, "type": "field_expression", "text": "fob->blk_sz", "parent": 406, "children": [417, 418], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 58}}, {"id": 417, "type": "identifier", "text": "fob", "parent": 416, "children": [], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 50}}, {"id": 418, "type": "field_identifier", "text": "blk_sz", "parent": 416, "children": [], "start_point": {"row": 96, "column": 52}, "end_point": {"row": 96, "column": 58}}, {"id": 419, "type": "field_expression", "text": "op->offset", "parent": 389, "children": [420, 421], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 14}}, {"id": 420, "type": "identifier", "text": "op", "parent": 419, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 6}}, {"id": 421, "type": "field_identifier", "text": "offset", "parent": 419, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 14}}, {"id": 422, "type": "identifier", "text": "file_sz", "parent": 389, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 23}}, {"id": 423, "type": "return_statement", "text": "return (void*) op;", "parent": 190, "children": [424], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 20}}, {"id": 424, "type": "cast_expression", "text": "(void*) op", "parent": 423, "children": [425, 429], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 19}}, {"id": 425, "type": "type_descriptor", "text": "void*", "parent": 424, "children": [426, 427], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 15}}, {"id": 426, "type": "primitive_type", "text": "void", "parent": 425, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 14}}, {"id": 427, "type": "abstract_pointer_declarator", "text": "*", "parent": 425, "children": [428], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 15}}, {"id": 428, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 15}}, {"id": 429, "type": "identifier", "text": "op", "parent": 424, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 19}}, {"id": 430, "type": "function_definition", "text": "void* file_dummycomplete( void* arg, void* arg2 ) {\n return 0;\n}", "parent": null, "children": [431, 432], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 104, "column": 1}}, {"id": 431, "type": "primitive_type", "text": "void", "parent": 430, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 4}}, {"id": 432, "type": "pointer_declarator", "text": "* file_dummycomplete( void* arg, void* arg2 )", "parent": 430, "children": [433, 434], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 49}}, {"id": 433, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 5}}, {"id": 434, "type": "function_declarator", "text": "file_dummycomplete( void* arg, void* arg2 )", "parent": 432, "children": [435, 436], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 49}}, {"id": 435, "type": "identifier", "text": "file_dummycomplete", "parent": 434, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 24}}, {"id": 436, "type": "parameter_list", "text": "( void* arg, void* arg2 )", "parent": 434, "children": [437, 442], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 49}}, {"id": 437, "type": "parameter_declaration", "text": "void* arg", "parent": 436, "children": [438, 439], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 35}}, {"id": 438, "type": "primitive_type", "text": "void", "parent": 437, "children": [], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 30}}, {"id": 439, "type": "pointer_declarator", "text": "* arg", "parent": 437, "children": [440, 441], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 35}}, {"id": 440, "type": "*", "text": "*", "parent": 439, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 31}}, {"id": 441, "type": "identifier", "text": "arg", "parent": 439, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 35}}, {"id": 442, "type": "parameter_declaration", "text": "void* arg2", "parent": 436, "children": [443, 444], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 47}}, {"id": 443, "type": "primitive_type", "text": "void", "parent": 442, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 41}}, {"id": 444, "type": "pointer_declarator", "text": "* arg2", "parent": 442, "children": [445, 446], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 47}}, {"id": 445, "type": "*", "text": "*", "parent": 444, "children": [], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 42}}, {"id": 446, "type": "identifier", "text": "arg2", "parent": 444, "children": [], "start_point": {"row": 102, "column": 43}, "end_point": {"row": 102, "column": 47}}, {"id": 447, "type": "return_statement", "text": "return 0;", "parent": 430, "children": [448], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 11}}, {"id": 448, "type": "number_literal", "text": "0", "parent": 447, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 10}}, {"id": 449, "type": "function_definition", "text": "int file_dummyinit( struct file_object* fob ) {\n struct posix_op *op;\n\n pthread_mutex_init( &dummy_lock, NULL );\n\n op = malloc( sizeof(struct posix_op) );\n VRFY( op, \"bad malloc\" );\n\n op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 );\n VRFY( op->buf != (void*) -1, \"mmap (block_sz=%d)\", fob->blk_sz );\n\n fob->pvdr = op;\n fob->QD = 1;\n\n fob->submit = file_dummysubmit;\n fob->flush = file_posixflush;\n fob->fetch = file_posixfetch;\n fob->complete = file_dummycomplete;\n fob->get = file_posixget;\n fob->set = file_posixset;\n\n fob->open = file_dummyopen;\n fob->close = file_dummyclose;\n fob->fstat = file_dummystat;\n\n return 0;\n}", "parent": null, "children": [450, 451], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 134, "column": 1}}, {"id": 450, "type": "primitive_type", "text": "int", "parent": 449, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 3}}, {"id": 451, "type": "function_declarator", "text": "file_dummyinit( struct file_object* fob )", "parent": 449, "children": [452, 453], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 45}}, {"id": 452, "type": "identifier", "text": "file_dummyinit", "parent": 451, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 18}}, {"id": 453, "type": "parameter_list", "text": "( struct file_object* fob )", "parent": 451, "children": [454], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 45}}, {"id": 454, "type": "parameter_declaration", "text": "struct file_object* fob", "parent": 453, "children": [455, 458], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 43}}, {"id": 455, "type": "struct_specifier", "text": "struct file_object", "parent": 454, "children": [456, 457], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 38}}, {"id": 456, "type": "struct", "text": "struct", "parent": 455, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 26}}, {"id": 457, "type": "type_identifier", "text": "file_object", "parent": 455, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 38}}, {"id": 458, "type": "pointer_declarator", "text": "* fob", "parent": 454, "children": [459, 460], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 43}}, {"id": 459, "type": "*", "text": "*", "parent": 458, "children": [], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 39}}, {"id": 460, "type": "identifier", "text": "fob", "parent": 458, "children": [], "start_point": {"row": 107, "column": 40}, "end_point": {"row": 107, "column": 43}}, {"id": 461, "type": "declaration", "text": "struct posix_op *op;", "parent": 449, "children": [462, 465], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 22}}, {"id": 462, "type": "struct_specifier", "text": "struct posix_op", "parent": 461, "children": [463, 464], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 17}}, {"id": 463, "type": "struct", "text": "struct", "parent": 462, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 8}}, {"id": 464, "type": "type_identifier", "text": "posix_op", "parent": 462, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 17}}, {"id": 465, "type": "pointer_declarator", "text": "*op", "parent": 461, "children": [466, 467], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 21}}, {"id": 466, "type": "*", "text": "*", "parent": 465, "children": [], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 19}}, {"id": 467, "type": "identifier", "text": "op", "parent": 465, "children": [], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 21}}, {"id": 468, "type": "call_expression", "text": "pthread_mutex_init( &dummy_lock, NULL )", "parent": 449, "children": [469, 470], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 41}}, {"id": 469, "type": "identifier", "text": "pthread_mutex_init", "parent": 468, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 20}}, {"id": 470, "type": "argument_list", "text": "( &dummy_lock, NULL )", "parent": 468, "children": [471, 473], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 41}}, {"id": 471, "type": "pointer_expression", "text": "&dummy_lock", "parent": 470, "children": [472], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 33}}, {"id": 472, "type": "identifier", "text": "dummy_lock", "parent": 471, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 33}}, {"id": 473, "type": "null", "text": "NULL", "parent": 470, "children": [474], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 39}}, {"id": 474, "type": "NULL", "text": "NULL", "parent": 473, "children": [], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 39}}, {"id": 475, "type": "assignment_expression", "text": "op = malloc( sizeof(struct posix_op) )", "parent": 449, "children": [476, 477, 478], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 40}}, {"id": 476, "type": "identifier", "text": "op", "parent": 475, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 4}}, {"id": 477, "type": "=", "text": "=", "parent": 475, "children": [], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 6}}, {"id": 478, "type": "call_expression", "text": "malloc( sizeof(struct posix_op) )", "parent": 475, "children": [479, 480], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 40}}, {"id": 479, "type": "identifier", "text": "malloc", "parent": 478, "children": [], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 13}}, {"id": 480, "type": "argument_list", "text": "( sizeof(struct posix_op) )", "parent": 478, "children": [481], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 40}}, {"id": 481, "type": "sizeof_expression", "text": "sizeof(struct posix_op)", "parent": 480, "children": [482], "start_point": {"row": 112, "column": 15}, "end_point": {"row": 112, "column": 38}}, {"id": 482, "type": "type_descriptor", "text": "struct posix_op", "parent": 481, "children": [483], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 37}}, {"id": 483, "type": "struct_specifier", "text": "struct posix_op", "parent": 482, "children": [484, 485], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 37}}, {"id": 484, "type": "struct", "text": "struct", "parent": 483, "children": [], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 28}}, {"id": 485, "type": "type_identifier", "text": "posix_op", "parent": 483, "children": [], "start_point": {"row": 112, "column": 29}, "end_point": {"row": 112, "column": 37}}, {"id": 486, "type": "call_expression", "text": "VRFY( op, \"bad malloc\" )", "parent": 449, "children": [487, 488], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 26}}, {"id": 487, "type": "identifier", "text": "VRFY", "parent": 486, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 6}}, {"id": 488, "type": "argument_list", "text": "( op, \"bad malloc\" )", "parent": 486, "children": [489, 490], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 26}}, {"id": 489, "type": "identifier", "text": "op", "parent": 488, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 10}}, {"id": 490, "type": "string_literal", "text": "\"bad malloc\"", "parent": 488, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 24}}, {"id": 491, "type": "assignment_expression", "text": "op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 )", "parent": 449, "children": [492, 495, 496], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 116, "column": 58}}, {"id": 492, "type": "field_expression", "text": "op->buf", "parent": 491, "children": [493, 494], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 9}}, {"id": 493, "type": "identifier", "text": "op", "parent": 492, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 4}}, {"id": 494, "type": "field_identifier", "text": "buf", "parent": 492, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 9}}, {"id": 495, "type": "=", "text": "=", "parent": 491, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 11}}, {"id": 496, "type": "call_expression", "text": "mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 )", "parent": 491, "children": [497, 498], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 116, "column": 58}}, {"id": 497, "type": "identifier", "text": "mmap", "parent": 496, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 16}}, {"id": 498, "type": "argument_list", "text": "( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 )", "parent": 496, "children": [499, 501, 504, 507, 510, 511], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 116, "column": 58}}, {"id": 499, "type": "null", "text": "NULL", "parent": 498, "children": [500], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 24}}, {"id": 500, "type": "NULL", "text": "NULL", "parent": 499, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 24}}, {"id": 501, "type": "field_expression", "text": "fob->blk_sz", "parent": 498, "children": [502, 503], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 37}}, {"id": 502, "type": "identifier", "text": "fob", "parent": 501, "children": [], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 29}}, {"id": 503, "type": "field_identifier", "text": "blk_sz", "parent": 501, "children": [], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 37}}, {"id": 504, "type": "binary_expression", "text": "PROT_READ|PROT_WRITE", "parent": 498, "children": [505, 506], "start_point": {"row": 115, "column": 39}, "end_point": {"row": 115, "column": 59}}, {"id": 505, "type": "identifier", "text": "PROT_READ", "parent": 504, "children": [], "start_point": {"row": 115, "column": 39}, "end_point": {"row": 115, "column": 48}}, {"id": 506, "type": "identifier", "text": "PROT_WRITE", "parent": 504, "children": [], "start_point": {"row": 115, "column": 49}, "end_point": {"row": 115, "column": 59}}, {"id": 507, "type": "binary_expression", "text": "MAP_SHARED|MAP_ANONYMOUS", "parent": 498, "children": [508, 509], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 49}}, {"id": 508, "type": "identifier", "text": "MAP_SHARED", "parent": 507, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 35}}, {"id": 509, "type": "identifier", "text": "MAP_ANONYMOUS", "parent": 507, "children": [], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 49}}, {"id": 510, "type": "number_literal", "text": "-1", "parent": 498, "children": [], "start_point": {"row": 116, "column": 51}, "end_point": {"row": 116, "column": 53}}, {"id": 511, "type": "number_literal", "text": "0", "parent": 498, "children": [], "start_point": {"row": 116, "column": 55}, "end_point": {"row": 116, "column": 56}}, {"id": 512, "type": "call_expression", "text": "VRFY( op->buf != (void*) -1, \"mmap (block_sz=%d)\", fob->blk_sz )", "parent": 449, "children": [513, 514], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 66}}, {"id": 513, "type": "identifier", "text": "VRFY", "parent": 512, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 6}}, {"id": 514, "type": "argument_list", "text": "( op->buf != (void*) -1, \"mmap (block_sz=%d)\", fob->blk_sz )", "parent": 512, "children": [515, 526, 527], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 66}}, {"id": 515, "type": "binary_expression", "text": "op->buf != (void*) -1", "parent": 514, "children": [516, 519, 520], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 29}}, {"id": 516, "type": "field_expression", "text": "op->buf", "parent": 515, "children": [517, 518], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 15}}, {"id": 517, "type": "identifier", "text": "op", "parent": 516, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 10}}, {"id": 518, "type": "field_identifier", "text": "buf", "parent": 516, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 15}}, {"id": 519, "type": "!=", "text": "!=", "parent": 515, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 18}}, {"id": 520, "type": "cast_expression", "text": "(void*) -1", "parent": 515, "children": [521, 525], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 29}}, {"id": 521, "type": "type_descriptor", "text": "void*", "parent": 520, "children": [522, 523], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 25}}, {"id": 522, "type": "primitive_type", "text": "void", "parent": 521, "children": [], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 24}}, {"id": 523, "type": "abstract_pointer_declarator", "text": "*", "parent": 521, "children": [524], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 25}}, {"id": 524, "type": "*", "text": "*", "parent": 523, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 25}}, {"id": 525, "type": "number_literal", "text": "-1", "parent": 520, "children": [], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 29}}, {"id": 526, "type": "string_literal", "text": "\"mmap (block_sz=%d)\"", "parent": 514, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 51}}, {"id": 527, "type": "field_expression", "text": "fob->blk_sz", "parent": 514, "children": [528, 529], "start_point": {"row": 117, "column": 53}, "end_point": {"row": 117, "column": 64}}, {"id": 528, "type": "identifier", "text": "fob", "parent": 527, "children": [], "start_point": {"row": 117, "column": 53}, "end_point": {"row": 117, "column": 56}}, {"id": 529, "type": "field_identifier", "text": "blk_sz", "parent": 527, "children": [], "start_point": {"row": 117, "column": 58}, "end_point": {"row": 117, "column": 64}}, {"id": 530, "type": "assignment_expression", "text": "fob->pvdr = op", "parent": 449, "children": [531, 534, 535], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 16}}, {"id": 531, "type": "field_expression", "text": "fob->pvdr", "parent": 530, "children": [532, 533], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 11}}, {"id": 532, "type": "identifier", "text": "fob", "parent": 531, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 5}}, {"id": 533, "type": "field_identifier", "text": "pvdr", "parent": 531, "children": [], "start_point": {"row": 119, "column": 7}, "end_point": {"row": 119, "column": 11}}, {"id": 534, "type": "=", "text": "=", "parent": 530, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 13}}, {"id": 535, "type": "identifier", "text": "op", "parent": 530, "children": [], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 16}}, {"id": 536, "type": "assignment_expression", "text": "fob->QD = 1", "parent": 449, "children": [537, 540, 541], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 15}}, {"id": 537, "type": "field_expression", "text": "fob->QD", "parent": 536, "children": [538, 539], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 9}}, {"id": 538, "type": "identifier", "text": "fob", "parent": 537, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 5}}, {"id": 539, "type": "field_identifier", "text": "QD", "parent": 537, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 9}}, {"id": 540, "type": "=", "text": "=", "parent": 536, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 13}}, {"id": 541, "type": "number_literal", "text": "1", "parent": 536, "children": [], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 15}}, {"id": 542, "type": "assignment_expression", "text": "fob->submit = file_dummysubmit", "parent": 449, "children": [543, 546, 547], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 34}}, {"id": 543, "type": "field_expression", "text": "fob->submit", "parent": 542, "children": [544, 545], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 13}}, {"id": 544, "type": "identifier", "text": "fob", "parent": 543, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 5}}, {"id": 545, "type": "field_identifier", "text": "submit", "parent": 543, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 13}}, {"id": 546, "type": "=", "text": "=", "parent": 542, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 17}}, {"id": 547, "type": "identifier", "text": "file_dummysubmit", "parent": 542, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 34}}, {"id": 548, "type": "assignment_expression", "text": "fob->flush = file_posixflush", "parent": 449, "children": [549, 552, 553], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 33}}, {"id": 549, "type": "field_expression", "text": "fob->flush", "parent": 548, "children": [550, 551], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 12}}, {"id": 550, "type": "identifier", "text": "fob", "parent": 549, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 5}}, {"id": 551, "type": "field_identifier", "text": "flush", "parent": 549, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 12}}, {"id": 552, "type": "=", "text": "=", "parent": 548, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 17}}, {"id": 553, "type": "identifier", "text": "file_posixflush", "parent": 548, "children": [], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 33}}, {"id": 554, "type": "assignment_expression", "text": "fob->fetch = file_posixfetch", "parent": 449, "children": [555, 558, 559], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 33}}, {"id": 555, "type": "field_expression", "text": "fob->fetch", "parent": 554, "children": [556, 557], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 12}}, {"id": 556, "type": "identifier", "text": "fob", "parent": 555, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 5}}, {"id": 557, "type": "field_identifier", "text": "fetch", "parent": 555, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 12}}, {"id": 558, "type": "=", "text": "=", "parent": 554, "children": [], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 17}}, {"id": 559, "type": "identifier", "text": "file_posixfetch", "parent": 554, "children": [], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 33}}, {"id": 560, "type": "assignment_expression", "text": "fob->complete = file_dummycomplete", "parent": 449, "children": [561, 564, 565], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 36}}, {"id": 561, "type": "field_expression", "text": "fob->complete", "parent": 560, "children": [562, 563], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 15}}, {"id": 562, "type": "identifier", "text": "fob", "parent": 561, "children": [], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 5}}, {"id": 563, "type": "field_identifier", "text": "complete", "parent": 561, "children": [], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 15}}, {"id": 564, "type": "=", "text": "=", "parent": 560, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 17}}, {"id": 565, "type": "identifier", "text": "file_dummycomplete", "parent": 560, "children": [], "start_point": {"row": 125, "column": 18}, "end_point": {"row": 125, "column": 36}}, {"id": 566, "type": "assignment_expression", "text": "fob->get = file_posixget", "parent": 449, "children": [567, 570, 571], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 31}}, {"id": 567, "type": "field_expression", "text": "fob->get", "parent": 566, "children": [568, 569], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 10}}, {"id": 568, "type": "identifier", "text": "fob", "parent": 567, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 5}}, {"id": 569, "type": "field_identifier", "text": "get", "parent": 567, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 10}}, {"id": 570, "type": "=", "text": "=", "parent": 566, "children": [], "start_point": {"row": 126, "column": 16}, "end_point": {"row": 126, "column": 17}}, {"id": 571, "type": "identifier", "text": "file_posixget", "parent": 566, "children": [], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 31}}, {"id": 572, "type": "assignment_expression", "text": "fob->set = file_posixset", "parent": 449, "children": [573, 576, 577], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 31}}, {"id": 573, "type": "field_expression", "text": "fob->set", "parent": 572, "children": [574, 575], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 10}}, {"id": 574, "type": "identifier", "text": "fob", "parent": 573, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 5}}, {"id": 575, "type": "field_identifier", "text": "set", "parent": 573, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 10}}, {"id": 576, "type": "=", "text": "=", "parent": 572, "children": [], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 17}}, {"id": 577, "type": "identifier", "text": "file_posixset", "parent": 572, "children": [], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 31}}, {"id": 578, "type": "assignment_expression", "text": "fob->open = file_dummyopen", "parent": 449, "children": [579, 582, 583], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 32}}, {"id": 579, "type": "field_expression", "text": "fob->open", "parent": 578, "children": [580, 581], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 11}}, {"id": 580, "type": "identifier", "text": "fob", "parent": 579, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 5}}, {"id": 581, "type": "field_identifier", "text": "open", "parent": 579, "children": [], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 11}}, {"id": 582, "type": "=", "text": "=", "parent": 578, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 17}}, {"id": 583, "type": "identifier", "text": "file_dummyopen", "parent": 578, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 32}}, {"id": 584, "type": "assignment_expression", "text": "fob->close = file_dummyclose", "parent": 449, "children": [585, 588, 589], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 33}}, {"id": 585, "type": "field_expression", "text": "fob->close", "parent": 584, "children": [586, 587], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 12}}, {"id": 586, "type": "identifier", "text": "fob", "parent": 585, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 5}}, {"id": 587, "type": "field_identifier", "text": "close", "parent": 585, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 12}}, {"id": 588, "type": "=", "text": "=", "parent": 584, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 17}}, {"id": 589, "type": "identifier", "text": "file_dummyclose", "parent": 584, "children": [], "start_point": {"row": 130, "column": 18}, "end_point": {"row": 130, "column": 33}}, {"id": 590, "type": "assignment_expression", "text": "fob->fstat = file_dummystat", "parent": 449, "children": [591, 594, 595], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 32}}, {"id": 591, "type": "field_expression", "text": "fob->fstat", "parent": 590, "children": [592, 593], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 12}}, {"id": 592, "type": "identifier", "text": "fob", "parent": 591, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 5}}, {"id": 593, "type": "field_identifier", "text": "fstat", "parent": 591, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 12}}, {"id": 594, "type": "=", "text": "=", "parent": 590, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 17}}, {"id": 595, "type": "identifier", "text": "file_dummystat", "parent": 590, "children": [], "start_point": {"row": 131, "column": 18}, "end_point": {"row": 131, "column": 32}}, {"id": 596, "type": "return_statement", "text": "return 0;", "parent": 449, "children": [597], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 11}}, {"id": 597, "type": "number_literal", "text": "0", "parent": 596, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 10}}]}, "node_categories": {"declarations": {"functions": [59, 61, 144, 146, 161, 163, 190, 194, 430, 434, 449, 451], "variables": [39, 42, 48, 64, 69, 72, 75, 149, 152, 166, 197, 202, 207, 212, 222, 241, 437, 442, 454, 461], "classes": [49, 50, 76, 77, 153, 154, 213, 214, 223, 224, 233, 234, 455, 456, 462, 463, 483, 484], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37], "modules": [], "enums": []}, "statements": {"expressions": [81, 82, 88, 89, 90, 91, 95, 101, 104, 105, 108, 115, 118, 121, 125, 128, 129, 132, 134, 135, 137, 140, 169, 172, 173, 176, 180, 183, 186, 231, 238, 245, 246, 247, 251, 256, 257, 262, 263, 264, 268, 272, 276, 277, 284, 288, 289, 294, 297, 300, 304, 308, 312, 318, 321, 322, 325, 332, 333, 335, 339, 342, 345, 349, 352, 356, 357, 358, 362, 366, 370, 374, 375, 376, 382, 387, 391, 395, 396, 403, 407, 408, 413, 416, 419, 424, 468, 471, 478, 481, 486, 492, 496, 501, 504, 507, 512, 515, 516, 520, 527, 531, 537, 543, 549, 555, 561, 567, 573, 579, 585, 591], "assignments": [112, 303, 329, 344, 365, 381, 475, 491, 530, 536, 542, 548, 554, 560, 566, 572, 578, 584, 590], "loops": [], "conditionals": [40, 41, 45, 51, 54, 55, 62, 68, 71, 74, 78, 79, 80, 83, 84, 87, 92, 94, 96, 102, 106, 109, 113, 117, 119, 122, 124, 126, 130, 131, 133, 136, 138, 141, 143, 147, 151, 155, 158, 164, 168, 170, 174, 177, 182, 184, 187, 195, 201, 206, 211, 215, 219, 221, 225, 229, 235, 239, 240, 243, 244, 248, 249, 252, 253, 258, 259, 261, 265, 266, 267, 269, 273, 274, 275, 278, 279, 280, 285, 286, 287, 290, 291, 292, 295, 296, 298, 299, 301, 302, 305, 309, 310, 317, 319, 323, 326, 330, 334, 336, 337, 338, 340, 343, 346, 350, 353, 354, 355, 359, 363, 364, 367, 371, 372, 373, 377, 378, 380, 383, 388, 392, 393, 394, 397, 398, 399, 404, 405, 406, 409, 410, 411, 414, 415, 417, 418, 420, 421, 422, 429, 435, 441, 446, 452, 457, 460, 464, 467, 469, 472, 476, 479, 485, 487, 489, 493, 494, 497, 502, 503, 505, 506, 508, 509, 513, 517, 518, 528, 529, 532, 533, 535, 538, 539, 544, 545, 547, 550, 551, 553, 556, 557, 559, 562, 563, 565, 568, 569, 571, 574, 575, 577, 580, 581, 583, 586, 587, 589, 592, 593, 595], "returns": [85, 99, 142, 159, 188, 254, 311, 423, 447, 596], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 47, 58, 86, 98, 100, 111, 160, 179, 189, 255, 271, 282, 283, 306, 328, 347, 360, 368, 384, 386, 390, 401, 402, 448, 490, 510, 511, 525, 526, 541, 597], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 59, "universal_type": "function", "name": "file_dummyopen", "text_snippet": "int file_dummyopen( const char* filename, int flags, ... ) {\n int fd;\n struct stat sb;\n\n if (flag"}, {"node_id": 61, "universal_type": "function", "name": "flags,", "text_snippet": "file_dummyopen( const char* filename, int flags, ... )"}, {"node_id": 144, "universal_type": "function", "name": "file_dummystat", "text_snippet": "int file_dummystat( int fd, struct stat *sbuf ) {\n return 0;\n}"}, {"node_id": 146, "universal_type": "function", "name": "fd,", "text_snippet": "file_dummystat( int fd, struct stat *sbuf )"}, {"node_id": 161, "universal_type": "function", "name": "file_dummyclose", "text_snippet": "int file_dummyclose( int fd ) {\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n --dummy_fd_head;\n"}, {"node_id": 163, "universal_type": "function", "name": "fd", "text_snippet": "file_dummyclose( int fd )"}, {"node_id": 190, "universal_type": "function", "name": "file_object*", "text_snippet": "void* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset ) {\n\n struct file_object* fob = ar"}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": "file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset )"}, {"node_id": 430, "universal_type": "function", "name": "unknown", "text_snippet": "void* file_dummycomplete( void* arg, void* arg2 ) {\n return 0;\n}"}, {"node_id": 434, "universal_type": "function", "name": "unknown", "text_snippet": "file_dummycomplete( void* arg, void* arg2 )"}, {"node_id": 449, "universal_type": "function", "name": "file_dummyinit", "text_snippet": "int file_dummyinit( struct file_object* fob ) {\n struct posix_op *op;\n\n pthread_mutex_init( &dummy"}, {"node_id": 451, "universal_type": "function", "name": "file_object*", "text_snippet": "file_dummyinit( struct file_object* fob )"}], "class_declarations": [{"node_id": 49, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 76, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 77, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 153, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 154, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 213, "universal_type": "class", "name": "file_object", "text_snippet": "struct file_object"}, {"node_id": 214, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 223, "universal_type": "class", "name": "posix_op", "text_snippet": "struct posix_op"}, {"node_id": 224, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 233, "universal_type": "class", "name": "posix_op", "text_snippet": "struct posix_op"}, {"node_id": 234, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 455, "universal_type": "class", "name": "file_object", "text_snippet": "struct file_object"}, {"node_id": 456, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 462, "universal_type": "class", "name": "posix_op", "text_snippet": "struct posix_op"}, {"node_id": 463, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 483, "universal_type": "class", "name": "posix_op", "text_snippet": "struct posix_op"}, {"node_id": 484, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdint.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdio.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdlib.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <sys/types.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <sys/stat.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <sys/uio.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <sys/mman.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <sys/time.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <unistd.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <pthread.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <fcntl.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"args.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"file_io.h\"\n"}, {"node_id": 37, "text": "#include"}]}, "original_source_code": "#include <stdint.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <sys/types.h>\n#include <sys/stat.h>\n#include <sys/uio.h>\n#include <sys/mman.h>\n#include <sys/time.h>\n#include <unistd.h>\n#include <pthread.h>\n#include <fcntl.h>\n#include \"args.h\"\n#include \"file_io.h\"\n\npthread_mutex_t dummy_lock;\n\nstatic int dummy_fd_head=0;\nstatic struct stat dummy_sb[THREAD_COUNT] = {0};\n\n\nint file_dummyopen( const char* filename, int flags, ... ) {\n int fd;\n struct stat sb;\n\n if (flags & O_WRONLY)\n return 1;\n\n if ( (stat(filename, &sb) != 0) )\n return -1;\n\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n\n fd = ++dummy_fd_head;\n VRFY( fd < THREAD_COUNT, );\n\n memcpy( &dummy_sb[fd], &sb, sizeof(sb) );\n\n pthread_mutex_unlock(&dummy_lock);\n\n return fd;\n}\n\nint file_dummystat( int fd, struct stat *sbuf ) {\n return 0;\n}\n\nint file_dummyclose( int fd ) {\n VRFY( pthread_mutex_lock(&dummy_lock) == 0, );\n --dummy_fd_head;\n pthread_mutex_unlock(&dummy_lock);\n\n\n return 0;\n}\n\nvoid* file_dummysubmit( void* arg, int32_t* sz, uint64_t* offset ) {\n\n struct file_object* fob = arg;\n struct posix_op* op = (struct posix_op*) fob->pvdr;\n\n int64_t file_sz;\n\n if ( fob->tail >= fob->head )\n return 0;\n\n fob->tail++;\n\n\n\n if (fob->io_flags & O_WRONLY) {\n\n DBG( \"[%2d] %s op fd=%d sz=%zd, offset=%zd\",\n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset );\n\n // If receiver always return requested write size\n sz[0] = op->sz;\n return (void*) op;\n }\n\n VRFY( pthread_mutex_lock(&dummy_lock)==0, );\n file_sz = dummy_sb[fob->fd].st_size;\n pthread_mutex_unlock(&dummy_lock);\n\n\n sz[0] = file_sz - op->offset;\n\n if (sz[0] > fob->blk_sz)\n sz[0] = fob->blk_sz;\n\n if (op->offset > file_sz)\n sz[0] = 0;\n\n DBG( \"[%2d] %s op fd=%d sz=%zd, offset=%zd, file_total=%zd\", \n fob->id, fob->io_flags & O_WRONLY ? \"write\":\"read\",\n op->fd, fob->io_flags & O_WRONLY ? op->sz: fob->blk_sz,\n op->offset, file_sz );\n\n return (void*) op;\n}\n\nvoid* file_dummycomplete( void* arg, void* arg2 ) {\n return 0;\n}\n\n\nint file_dummyinit( struct file_object* fob ) {\n struct posix_op *op;\n\n pthread_mutex_init( &dummy_lock, NULL );\n\n op = malloc( sizeof(struct posix_op) );\n VRFY( op, \"bad malloc\" );\n\n op->buf = mmap ( NULL, fob->blk_sz, PROT_READ|PROT_WRITE,\n MAP_SHARED|MAP_ANONYMOUS, -1, 0 );\n VRFY( op->buf != (void*) -1, \"mmap (block_sz=%d)\", fob->blk_sz );\n\n fob->pvdr = op;\n fob->QD = 1;\n\n fob->submit = file_dummysubmit;\n fob->flush = file_posixflush;\n fob->fetch = file_posixfetch;\n fob->complete = file_dummycomplete;\n fob->get = file_posixget;\n fob->set = file_posixset;\n\n fob->open = file_dummyopen;\n fob->close = file_dummyclose;\n fob->fstat = file_dummystat;\n\n return 0;\n}\n\n\n"}
80,816
c
//////////////////////////////////////////////////////////////////////////////// // BNF2C // // This file is distributed under the 4-clause Berkeley Software Distribution // License. See LICENSE for details. //////////////////////////////////////////////////////////////////////////////// #ifndef ITEM_H #define ITEM_H #include "Symbol.h" class Rule; class ParserState; struct Item { enum class ActionType { SHIFT, REDUCE }; const Rule & rule; SymbolList::const_iterator dottedSymbol; ParserState * nextState; SymbolSet lookaheads; Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState); Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead); bool operator ==(const Item & item) const; bool operator < (const Item & item) const; Item::ActionType getType(void) const; bool isShift(void) const { return getType() == ActionType::SHIFT; } bool isReduce(void) const { return getType() == ActionType::REDUCE; } bool isDotAtEnd(void) const; bool isNextSymbolEqualTo(const std::string & name) const; bool isTerminalInLookaheads(const std::string & terminal) const; }; #endif /* ITEM_H */
34.53
36
(translation_unit) "////////////////////////////////////////////////////////////////////////////////\n// BNF2C\n//\n// This file is distributed under the 4-clause Berkeley Software Distribution\n// License. See LICENSE for details.\n////////////////////////////////////////////////////////////////////////////////\n#ifndef ITEM_H\n#define ITEM_H\n#include "Symbol.h"\n\nclass Rule;\nclass ParserState;\n\nstruct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }\n bool isReduce(void) const { return getType() == ActionType::REDUCE; }\n\n bool isDotAtEnd(void) const;\n bool isNextSymbolEqualTo(const std::string & name) const;\n bool isTerminalInLookaheads(const std::string & terminal) const;\n};\n\n#endif /* ITEM_H */\n\n" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// BNF2C" (comment) "//" (comment) "// This file is distributed under the 4-clause Berkeley Software Distribution" (comment) "// License. See LICENSE for details." (comment) "////////////////////////////////////////////////////////////////////////////////" (preproc_ifdef) "#ifndef ITEM_H\n#define ITEM_H\n#include "Symbol.h"\n\nclass Rule;\nclass ParserState;\n\nstruct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }\n bool isReduce(void) const { return getType() == ActionType::REDUCE; }\n\n bool isDotAtEnd(void) const;\n bool isNextSymbolEqualTo(const std::string & name) const;\n bool isTerminalInLookaheads(const std::string & terminal) const;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "ITEM_H" (preproc_def) "#define ITEM_H\n" (#define) "#define" (identifier) "ITEM_H" (preproc_include) "#include "Symbol.h"\n" (#include) "#include" (string_literal) ""Symbol.h"" (") """ (string_content) "Symbol.h" (") """ (declaration) "class Rule;" (type_identifier) "class" (identifier) "Rule" (;) ";" (declaration) "class ParserState;" (type_identifier) "class" (identifier) "ParserState" (;) ";" (function_definition) "struct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }\n bool isReduce(void) const { return getType() == ActionType::REDUCE; }" (struct_specifier) "struct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }" (struct) "struct" (type_identifier) "Item" (field_declaration_list) "{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }" ({) "{" (field_declaration) "enum class ActionType\n {\n SHIFT,\n REDUCE\n };" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (field_identifier) "ActionType" (ERROR) "{\n SHIFT" ({) "{" (identifier) "SHIFT" (,) "," (field_identifier) "REDUCE" (ERROR) "}" (}) "}" (;) ";" (field_declaration) "const Rule & rule;" (type_qualifier) "const" (const) "const" (type_identifier) "Rule" (ERROR) "&" (&) "&" (field_identifier) "rule" (;) ";" (field_declaration) "SymbolList::const_iterator dottedSymbol;" (type_identifier) "SymbolList" (ERROR) "::const_iterator" (:) ":" (:) ":" (field_identifier) "const_iterator" (field_identifier) "dottedSymbol" (;) ";" (field_declaration) "ParserState * nextState;" (type_identifier) "ParserState" (pointer_declarator) "* nextState" (*) "*" (field_identifier) "nextState" (;) ";" (field_declaration) "SymbolSet lookaheads;" (type_identifier) "SymbolSet" (field_identifier) "lookaheads" (;) ";" (field_declaration) "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);" (macro_type_specifier) "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState)" (identifier) "Item" (() "(" (type_descriptor) "const Rule & rule, SymbolList::const_iterator dot, ParserState *" (type_qualifier) "const" (const) "const" (type_identifier) "Rule" (ERROR) "& rule, SymbolList::const_iterator dot, ParserState" (&) "&" (identifier) "rule" (,) "," (identifier) "SymbolList" (:) ":" (:) ":" (identifier) "const_iterator" (identifier) "dot" (,) "," (identifier) "ParserState" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "nextState" (identifier) "nextState" ()) ")" (;) ";" (field_declaration) "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);" (macro_type_specifier) "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState *" (identifier) "Item" (() "(" (type_descriptor) "const Rule & rule, SymbolList::const_iterator dot, ParserState *" (type_qualifier) "const" (const) "const" (type_identifier) "Rule" (ERROR) "& rule, SymbolList::const_iterator dot, ParserState" (&) "&" (identifier) "rule" (,) "," (identifier) "SymbolList" (:) ":" (:) ":" (identifier) "const_iterator" (identifier) "dot" (,) "," (identifier) "ParserState" (abstract_pointer_declarator) "*" (*) "*" ()) "" (field_identifier) "nextState" (,) "," (field_identifier) "SymbolSet" (ERROR) "&& lookahead)" (&&) "&&" (identifier) "lookahead" ()) ")" (;) ";" (field_declaration) "bool operator ==(const Item & item) const;" (primitive_type) "bool" (field_identifier) "operator" (ERROR) "==(const Item & item) const" (==) "==" (() "(" (const) "const" (identifier) "Item" (&) "&" (identifier) "item" ()) ")" (const) "const" (;) ";" (field_declaration) "bool operator < (const Item & item) const;" (primitive_type) "bool" (function_declarator) "operator < (const Item & item)" (field_identifier) "operator" (ERROR) "<" (<) "<" (parameter_list) "(const Item & item)" (() "(" (parameter_declaration) "const Item & item" (type_qualifier) "const" (const) "const" (type_identifier) "Item" (ERROR) "&" (&) "&" (identifier) "item" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (field_declaration) "Item::ActionType getType(void) const;" (type_identifier) "Item" (ERROR) "::ActionType getType(void)" (:) ":" (:) ":" (field_identifier) "ActionType" (function_declarator) "getType(void)" (field_identifier) "getType" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (field_identifier) "const" (;) ";" (field_declaration) "bool isShift(void) const { return getType() == ActionType::SHIFT;" (primitive_type) "bool" (ERROR) "isShift(void) const { return getType() ==" (function_declarator) "isShift(void)" (field_identifier) "isShift" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "const" ({) "{" (return) "return" (function_declarator) "getType()" (field_identifier) "getType" (parameter_list) "()" (() "(" ()) ")" (==) "==" (field_identifier) "ActionType" (ERROR) ":" (:) ":" (bitfield_clause) ":SHIFT" (:) ":" (identifier) "SHIFT" (;) ";" (}) "}" (ERROR) "bool" (identifier) "bool" (function_declarator) "isReduce(void) const" (identifier) "isReduce" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "const" (compound_statement) "{ return getType() == ActionType::REDUCE; }" ({) "{" (return_statement) "return getType() == ActionType::REDUCE;" (return) "return" (binary_expression) "getType() == ActionType" (call_expression) "getType()" (identifier) "getType" (argument_list) "()" (() "(" ()) ")" (==) "==" (identifier) "ActionType" (ERROR) "::REDUCE" (:) ":" (:) ":" (identifier) "REDUCE" (;) ";" (}) "}" (ERROR) "bool isDotAtEnd(void) const" (primitive_type) "bool" (function_declarator) "isDotAtEnd(void) const" (identifier) "isDotAtEnd" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "bool isNextSymbolEqualTo(const std::string & name) const" (primitive_type) "bool" (function_declarator) "isNextSymbolEqualTo(const std::string & name) const" (identifier) "isNextSymbolEqualTo" (parameter_list) "(const std::string & name)" (() "(" (parameter_declaration) "const std::string & name" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "name" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "bool isTerminalInLookaheads(const std::string & terminal) const;\n}" (primitive_type) "bool" (function_declarator) "isTerminalInLookaheads(const std::string & terminal) const" (identifier) "isTerminalInLookaheads" (parameter_list) "(const std::string & terminal)" (() "(" (parameter_declaration) "const std::string & terminal" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "terminal" ()) ")" (identifier) "const" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/* ITEM_H */"
285
22
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 34.53, "nodes": 158, "errors": 0, "source_hash": "89fa85a99558ec829c43d832569a5047f12d7a6876108023d0d4da5b5966b2f9", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ITEM_H\n#define ITEM_H\n#include \"Symbol.h\"\n\nclass Rule;\nclass ParserState;\n\nstruct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }\n bool isReduce(void) const { return getType() == ActionType::REDUCE; }\n\n bool isDotAtEnd(void) const;\n bool isNextSymbolEqualTo(const std::string & name) const;\n bool isTerminalInLookaheads(const std::string & terminal) const;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 11, 13, 130, 137, 147, 157], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "identifier", "text": "ITEM_H", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 14}}, {"id": 3, "type": "preproc_def", "text": "#define ITEM_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 5, "type": "identifier", "text": "ITEM_H", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include \"Symbol.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Symbol.h\"", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 9, "type": "declaration", "text": "class Rule;", "parent": 0, "children": [10], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 11}}, {"id": 10, "type": "identifier", "text": "Rule", "parent": 9, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 10}}, {"id": 11, "type": "declaration", "text": "class ParserState;", "parent": 0, "children": [12], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 18}}, {"id": 12, "type": "identifier", "text": "ParserState", "parent": 11, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 17}}, {"id": 13, "type": "function_definition", "text": "struct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }\n bool isReduce(void) const { return getType() == ActionType::REDUCE; }", "parent": 0, "children": [14, 114, 116], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 36, "column": 73}}, {"id": 14, "type": "struct_specifier", "text": "struct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }", "parent": 13, "children": [15, 16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 35, "column": 72}}, {"id": 15, "type": "struct", "text": "struct", "parent": 14, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 16, "type": "type_identifier", "text": "Item", "parent": 14, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 11}}, {"id": 17, "type": "field_declaration", "text": "enum class ActionType\n {\n SHIFT,\n REDUCE\n };", "parent": 14, "children": [18, 20, 21, 23], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 19, "column": 6}}, {"id": 18, "type": "enum_specifier", "text": "enum class", "parent": 17, "children": [19], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 14}}, {"id": 19, "type": "enum", "text": "enum", "parent": 18, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 20, "type": "field_identifier", "text": "ActionType", "parent": 17, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 25}}, {"id": 21, "type": "ERROR", "text": "{\n SHIFT", "parent": 17, "children": [22], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 17, "column": 13}}, {"id": 22, "type": "identifier", "text": "SHIFT", "parent": 21, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 13}}, {"id": 23, "type": "field_identifier", "text": "REDUCE", "parent": 17, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 24, "type": "field_declaration", "text": "const Rule & rule;", "parent": 14, "children": [25, 26], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 22}}, {"id": 25, "type": "type_identifier", "text": "Rule", "parent": 24, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 14}}, {"id": 26, "type": "field_identifier", "text": "rule", "parent": 24, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 21}}, {"id": 27, "type": "field_declaration", "text": "SymbolList::const_iterator dottedSymbol;", "parent": 14, "children": [28, 29, 31], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 44}}, {"id": 28, "type": "type_identifier", "text": "SymbolList", "parent": 27, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 14}}, {"id": 29, "type": "ERROR", "text": "::const_iterator", "parent": 27, "children": [30], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 30}}, {"id": 30, "type": "field_identifier", "text": "const_iterator", "parent": 29, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 30}}, {"id": 31, "type": "field_identifier", "text": "dottedSymbol", "parent": 27, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 43}}, {"id": 32, "type": "field_declaration", "text": "ParserState * nextState;", "parent": 14, "children": [33, 34], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 28}}, {"id": 33, "type": "type_identifier", "text": "ParserState", "parent": 32, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 34, "type": "pointer_declarator", "text": "* nextState", "parent": 32, "children": [35, 36], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 27}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 36, "type": "field_identifier", "text": "nextState", "parent": 34, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 27}}, {"id": 37, "type": "field_declaration", "text": "SymbolSet lookaheads;", "parent": 14, "children": [38, 39], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 25}}, {"id": 38, "type": "type_identifier", "text": "SymbolSet", "parent": 37, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 13}}, {"id": 39, "type": "field_identifier", "text": "lookaheads", "parent": 37, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 24}}, {"id": 40, "type": "field_declaration", "text": "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);", "parent": 14, "children": [41], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 85}}, {"id": 41, "type": "macro_type_specifier", "text": "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState)", "parent": 40, "children": [42, 43, 53], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 84}}, {"id": 42, "type": "identifier", "text": "Item", "parent": 41, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 43, "type": "type_descriptor", "text": "const Rule & rule, SymbolList::const_iterator dot, ParserState *", "parent": 41, "children": [44, 45, 51], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 73}}, {"id": 44, "type": "type_identifier", "text": "Rule", "parent": 43, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 19}}, {"id": 45, "type": "ERROR", "text": "& rule, SymbolList::const_iterator dot, ParserState", "parent": 43, "children": [46, 47, 48, 49, 50], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 71}}, {"id": 46, "type": "identifier", "text": "rule", "parent": 45, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 26}}, {"id": 47, "type": "identifier", "text": "SymbolList", "parent": 45, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 38}}, {"id": 48, "type": "identifier", "text": "const_iterator", "parent": 45, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 54}}, {"id": 49, "type": "identifier", "text": "dot", "parent": 45, "children": [], "start_point": {"row": 28, "column": 55}, "end_point": {"row": 28, "column": 58}}, {"id": 50, "type": "identifier", "text": "ParserState", "parent": 45, "children": [], "start_point": {"row": 28, "column": 60}, "end_point": {"row": 28, "column": 71}}, {"id": 51, "type": "abstract_pointer_declarator", "text": "*", "parent": 43, "children": [52], "start_point": {"row": 28, "column": 72}, "end_point": {"row": 28, "column": 73}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 28, "column": 72}, "end_point": {"row": 28, "column": 73}}, {"id": 53, "type": "ERROR", "text": "nextState", "parent": 41, "children": [54], "start_point": {"row": 28, "column": 74}, "end_point": {"row": 28, "column": 83}}, {"id": 54, "type": "identifier", "text": "nextState", "parent": 53, "children": [], "start_point": {"row": 28, "column": 74}, "end_point": {"row": 28, "column": 83}}, {"id": 55, "type": "field_declaration", "text": "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);", "parent": 14, "children": [56, 68, 69, 70], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 109}}, {"id": 56, "type": "macro_type_specifier", "text": "Item(const Rule & rule, SymbolList::const_iterator dot, ParserState *", "parent": 55, "children": [57, 58], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 73}}, {"id": 57, "type": "identifier", "text": "Item", "parent": 56, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 58, "type": "type_descriptor", "text": "const Rule & rule, SymbolList::const_iterator dot, ParserState *", "parent": 56, "children": [59, 60, 66], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 73}}, {"id": 59, "type": "type_identifier", "text": "Rule", "parent": 58, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 19}}, {"id": 60, "type": "ERROR", "text": "& rule, SymbolList::const_iterator dot, ParserState", "parent": 58, "children": [61, 62, 63, 64, 65], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 71}}, {"id": 61, "type": "identifier", "text": "rule", "parent": 60, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 26}}, {"id": 62, "type": "identifier", "text": "SymbolList", "parent": 60, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 38}}, {"id": 63, "type": "identifier", "text": "const_iterator", "parent": 60, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 54}}, {"id": 64, "type": "identifier", "text": "dot", "parent": 60, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 58}}, {"id": 65, "type": "identifier", "text": "ParserState", "parent": 60, "children": [], "start_point": {"row": 29, "column": 60}, "end_point": {"row": 29, "column": 71}}, {"id": 66, "type": "abstract_pointer_declarator", "text": "*", "parent": 58, "children": [67], "start_point": {"row": 29, "column": 72}, "end_point": {"row": 29, "column": 73}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 29, "column": 72}, "end_point": {"row": 29, "column": 73}}, {"id": 68, "type": "field_identifier", "text": "nextState", "parent": 55, "children": [], "start_point": {"row": 29, "column": 74}, "end_point": {"row": 29, "column": 83}}, {"id": 69, "type": "field_identifier", "text": "SymbolSet", "parent": 55, "children": [], "start_point": {"row": 29, "column": 85}, "end_point": {"row": 29, "column": 94}}, {"id": 70, "type": "ERROR", "text": "&& lookahead)", "parent": 55, "children": [71, 72], "start_point": {"row": 29, "column": 95}, "end_point": {"row": 29, "column": 108}}, {"id": 71, "type": "&&", "text": "&&", "parent": 70, "children": [], "start_point": {"row": 29, "column": 95}, "end_point": {"row": 29, "column": 97}}, {"id": 72, "type": "identifier", "text": "lookahead", "parent": 70, "children": [], "start_point": {"row": 29, "column": 98}, "end_point": {"row": 29, "column": 107}}, {"id": 73, "type": "field_declaration", "text": "bool operator ==(const Item & item) const;", "parent": 14, "children": [74, 75, 76], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 46}}, {"id": 74, "type": "primitive_type", "text": "bool", "parent": 73, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 75, "type": "field_identifier", "text": "operator", "parent": 73, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 17}}, {"id": 76, "type": "ERROR", "text": "==(const Item & item) const", "parent": 73, "children": [77, 78, 79], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 45}}, {"id": 77, "type": "==", "text": "==", "parent": 76, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 20}}, {"id": 78, "type": "identifier", "text": "Item", "parent": 76, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 31}}, {"id": 79, "type": "identifier", "text": "item", "parent": 76, "children": [], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 38}}, {"id": 80, "type": "field_declaration", "text": "bool operator < (const Item & item) const;", "parent": 14, "children": [81, 82], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 46}}, {"id": 81, "type": "primitive_type", "text": "bool", "parent": 80, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 8}}, {"id": 82, "type": "function_declarator", "text": "operator < (const Item & item)", "parent": 80, "children": [83, 84, 86], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 39}}, {"id": 83, "type": "field_identifier", "text": "operator", "parent": 82, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 17}}, {"id": 84, "type": "ERROR", "text": "<", "parent": 82, "children": [85], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 19}}, {"id": 85, "type": "<", "text": "<", "parent": 84, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 19}}, {"id": 86, "type": "parameter_list", "text": "(const Item & item)", "parent": 82, "children": [87], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 39}}, {"id": 87, "type": "parameter_declaration", "text": "const Item & item", "parent": 86, "children": [88, 89], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 38}}, {"id": 88, "type": "type_identifier", "text": "Item", "parent": 87, "children": [], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 31}}, {"id": 89, "type": "identifier", "text": "item", "parent": 87, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 38}}, {"id": 90, "type": "field_declaration", "text": "Item::ActionType getType(void) const;", "parent": 14, "children": [91, 92], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 41}}, {"id": 91, "type": "type_identifier", "text": "Item", "parent": 90, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 92, "type": "ERROR", "text": "::ActionType getType(void)", "parent": 90, "children": [93, 94], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 34}}, {"id": 93, "type": "field_identifier", "text": "ActionType", "parent": 92, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 20}}, {"id": 94, "type": "function_declarator", "text": "getType(void)", "parent": 92, "children": [95, 96], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 34}}, {"id": 95, "type": "field_identifier", "text": "getType", "parent": 94, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 28}}, {"id": 96, "type": "parameter_list", "text": "(void)", "parent": 94, "children": [97], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 34}}, {"id": 97, "type": "parameter_declaration", "text": "void", "parent": 96, "children": [98], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 33}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 97, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 33}}, {"id": 99, "type": "field_declaration", "text": "bool isShift(void) const { return getType() == ActionType::SHIFT;", "parent": 14, "children": [100, 101, 111, 112], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 70}}, {"id": 100, "type": "primitive_type", "text": "bool", "parent": 99, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 8}}, {"id": 101, "type": "ERROR", "text": "isShift(void) const { return getType() ==", "parent": 99, "children": [102, 107, 110], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 51}}, {"id": 102, "type": "function_declarator", "text": "isShift(void)", "parent": 101, "children": [103, 104], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 22}}, {"id": 103, "type": "field_identifier", "text": "isShift", "parent": 102, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 16}}, {"id": 104, "type": "parameter_list", "text": "(void)", "parent": 102, "children": [105], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 22}}, {"id": 105, "type": "parameter_declaration", "text": "void", "parent": 104, "children": [106], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 21}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 21}}, {"id": 107, "type": "function_declarator", "text": "getType()", "parent": 101, "children": [108, 109], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 48}}, {"id": 108, "type": "field_identifier", "text": "getType", "parent": 107, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 46}}, {"id": 109, "type": "parameter_list", "text": "()", "parent": 107, "children": [], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 48}}, {"id": 110, "type": "==", "text": "==", "parent": 101, "children": [], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 51}}, {"id": 111, "type": "field_identifier", "text": "ActionType", "parent": 99, "children": [], "start_point": {"row": 35, "column": 52}, "end_point": {"row": 35, "column": 62}}, {"id": 112, "type": "bitfield_clause", "text": ":SHIFT", "parent": 99, "children": [113], "start_point": {"row": 35, "column": 63}, "end_point": {"row": 35, "column": 69}}, {"id": 113, "type": "identifier", "text": "SHIFT", "parent": 112, "children": [], "start_point": {"row": 35, "column": 64}, "end_point": {"row": 35, "column": 69}}, {"id": 114, "type": "ERROR", "text": "bool", "parent": 13, "children": [115], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 115, "type": "identifier", "text": "bool", "parent": 114, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 116, "type": "function_declarator", "text": "isReduce(void) const", "parent": 13, "children": [117, 118], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 29}}, {"id": 117, "type": "identifier", "text": "isReduce", "parent": 116, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 17}}, {"id": 118, "type": "parameter_list", "text": "(void)", "parent": 116, "children": [119], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 23}}, {"id": 119, "type": "parameter_declaration", "text": "void", "parent": 118, "children": [120], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 22}}, {"id": 120, "type": "primitive_type", "text": "void", "parent": 119, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 22}}, {"id": 121, "type": "return_statement", "text": "return getType() == ActionType::REDUCE;", "parent": 13, "children": [122, 128], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 71}}, {"id": 122, "type": "binary_expression", "text": "getType() == ActionType", "parent": 121, "children": [123, 126, 127], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 62}}, {"id": 123, "type": "call_expression", "text": "getType()", "parent": 122, "children": [124, 125], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 48}}, {"id": 124, "type": "identifier", "text": "getType", "parent": 123, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 46}}, {"id": 125, "type": "argument_list", "text": "()", "parent": 123, "children": [], "start_point": {"row": 36, "column": 46}, "end_point": {"row": 36, "column": 48}}, {"id": 126, "type": "==", "text": "==", "parent": 122, "children": [], "start_point": {"row": 36, "column": 49}, "end_point": {"row": 36, "column": 51}}, {"id": 127, "type": "identifier", "text": "ActionType", "parent": 122, "children": [], "start_point": {"row": 36, "column": 52}, "end_point": {"row": 36, "column": 62}}, {"id": 128, "type": "ERROR", "text": "::REDUCE", "parent": 121, "children": [129], "start_point": {"row": 36, "column": 62}, "end_point": {"row": 36, "column": 70}}, {"id": 129, "type": "identifier", "text": "REDUCE", "parent": 128, "children": [], "start_point": {"row": 36, "column": 64}, "end_point": {"row": 36, "column": 70}}, {"id": 130, "type": "ERROR", "text": "bool isDotAtEnd(void) const", "parent": 0, "children": [131, 132], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 31}}, {"id": 131, "type": "primitive_type", "text": "bool", "parent": 130, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 132, "type": "function_declarator", "text": "isDotAtEnd(void) const", "parent": 130, "children": [133, 134], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 31}}, {"id": 133, "type": "identifier", "text": "isDotAtEnd", "parent": 132, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 19}}, {"id": 134, "type": "parameter_list", "text": "(void)", "parent": 132, "children": [135], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 25}}, {"id": 135, "type": "parameter_declaration", "text": "void", "parent": 134, "children": [136], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 24}}, {"id": 136, "type": "primitive_type", "text": "void", "parent": 135, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 24}}, {"id": 137, "type": "ERROR", "text": "bool isNextSymbolEqualTo(const std::string & name) const", "parent": 0, "children": [138, 139], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 60}}, {"id": 138, "type": "primitive_type", "text": "bool", "parent": 137, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 139, "type": "function_declarator", "text": "isNextSymbolEqualTo(const std::string & name) const", "parent": 137, "children": [140, 141], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 60}}, {"id": 140, "type": "identifier", "text": "isNextSymbolEqualTo", "parent": 139, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 28}}, {"id": 141, "type": "parameter_list", "text": "(const std::string & name)", "parent": 139, "children": [142], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 54}}, {"id": 142, "type": "parameter_declaration", "text": "const std::string & name", "parent": 141, "children": [143, 144, 146], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 53}}, {"id": 143, "type": "type_identifier", "text": "std", "parent": 142, "children": [], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 38}}, {"id": 144, "type": "ERROR", "text": "::string &", "parent": 142, "children": [145], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 48}}, {"id": 145, "type": "identifier", "text": "string", "parent": 144, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 46}}, {"id": 146, "type": "identifier", "text": "name", "parent": 142, "children": [], "start_point": {"row": 39, "column": 49}, "end_point": {"row": 39, "column": 53}}, {"id": 147, "type": "ERROR", "text": "bool isTerminalInLookaheads(const std::string & terminal) const;\n}", "parent": 0, "children": [148, 149], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 41, "column": 1}}, {"id": 148, "type": "primitive_type", "text": "bool", "parent": 147, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 149, "type": "function_declarator", "text": "isTerminalInLookaheads(const std::string & terminal) const", "parent": 147, "children": [150, 151], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 67}}, {"id": 150, "type": "identifier", "text": "isTerminalInLookaheads", "parent": 149, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 31}}, {"id": 151, "type": "parameter_list", "text": "(const std::string & terminal)", "parent": 149, "children": [152], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 61}}, {"id": 152, "type": "parameter_declaration", "text": "const std::string & terminal", "parent": 151, "children": [153, 154, 156], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 60}}, {"id": 153, "type": "type_identifier", "text": "std", "parent": 152, "children": [], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 41}}, {"id": 154, "type": "ERROR", "text": "::string &", "parent": 152, "children": [155], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 51}}, {"id": 155, "type": "identifier", "text": "string", "parent": 154, "children": [], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 49}}, {"id": 156, "type": "identifier", "text": "terminal", "parent": 152, "children": [], "start_point": {"row": 40, "column": 52}, "end_point": {"row": 40, "column": 60}}, {"id": 157, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}]}, "node_categories": {"declarations": {"functions": [13, 82, 94, 102, 107, 116, 132, 139, 149], "variables": [9, 11, 17, 24, 27, 32, 37, 40, 55, 73, 80, 87, 90, 97, 99, 105, 119, 135, 142, 152], "classes": [14, 15], "imports": [6, 7], "modules": [], "enums": [18, 19]}, "statements": {"expressions": [122, 123], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 16, 20, 22, 23, 25, 26, 28, 30, 31, 33, 36, 38, 39, 41, 42, 44, 46, 47, 48, 49, 50, 54, 56, 57, 59, 61, 62, 63, 64, 65, 68, 69, 72, 75, 78, 79, 83, 88, 89, 91, 93, 95, 103, 108, 111, 113, 115, 117, 124, 127, 129, 133, 140, 143, 145, 146, 150, 153, 155, 156, 157], "returns": [121], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [112]}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "Item", "text_snippet": "struct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule "}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "operator < (const Item & item)"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "getType(void)"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "isShift(void)"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "getType()"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "isReduce(void) const"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "isDotAtEnd(void) const"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "isNextSymbolEqualTo(const std::string & name) const"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "isTerminalInLookaheads(const std::string & terminal) const"}], "class_declarations": [{"node_id": 14, "universal_type": "class", "name": "Item", "text_snippet": "struct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule "}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"Symbol.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "////////////////////////////////////////////////////////////////////////////////\n// BNF2C\n//\n// This file is distributed under the 4-clause Berkeley Software Distribution\n// License. See LICENSE for details.\n////////////////////////////////////////////////////////////////////////////////\n#ifndef ITEM_H\n#define ITEM_H\n#include \"Symbol.h\"\n\nclass Rule;\nclass ParserState;\n\nstruct Item\n{\n enum class ActionType\n {\n SHIFT,\n REDUCE\n };\n\n\n const Rule & rule;\n SymbolList::const_iterator dottedSymbol;\n ParserState * nextState;\n SymbolSet lookaheads;\n\n\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState);\n Item(const Rule & rule, SymbolList::const_iterator dot, ParserState * nextState, SymbolSet && lookahead);\n\n bool operator ==(const Item & item) const;\n bool operator < (const Item & item) const;\n\n Item::ActionType getType(void) const;\n bool isShift(void) const { return getType() == ActionType::SHIFT; }\n bool isReduce(void) const { return getType() == ActionType::REDUCE; }\n\n bool isDotAtEnd(void) const;\n bool isNextSymbolEqualTo(const std::string & name) const;\n bool isTerminalInLookaheads(const std::string & terminal) const;\n};\n\n#endif /* ITEM_H */\n\n"}
80,817
c
/* * Copyright (c) 2001 Sendmail, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. */ #include <sm/gen.h> SM_IDSTR(id, "@(#)$Id$") #include <sm/limits.h> #include <sm/io.h> #include <sm/string.h> #include <sm/test.h> #include <sm/types.h> int main(argc, argv) int argc; char **argv; { int i, d, h; char buf[128]; char *r; sm_test_begin(argc, argv, "test scanf point stuff"); #if !SM_CONF_BROKEN_SIZE_T (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, "If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\ If that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\ and start over. Otherwise contact sendmail.org.\n"); #endif /* !SM_CONF_BROKEN_SIZE_T */ d = 2; sm_snprintf(buf, sizeof(buf), "%d", d); r = "2"; if (!SM_TEST(strcmp(buf, r) == 0)) (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "got %s instead\n", buf); i = sm_io_sscanf(buf, "%d", &h); SM_TEST(i == 1); SM_TEST(h == 2); d = 2; sm_snprintf(buf, sizeof(buf), "%d\n", d); r = "2\n"; if (!SM_TEST(strcmp(buf, r) == 0)) (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "got %s instead\n", buf); i = sm_io_sscanf(buf, "%d", &h); SM_TEST(i == 1); SM_TEST(h == 2); return sm_test_end(); }
27.76
49
(translation_unit) "/*\n * Copyright (c) 2001 Sendmail, Inc. and its suppliers.\n * All rights reserved.\n *\n * By using this file, you agree to the terms and conditions set\n * forth in the LICENSE file which can be found at the top level of\n * the sendmail distribution.\n */\n\n#include <sm/gen.h>\nSM_IDSTR(id, "@(#)$Id$")\n\n#include <sm/limits.h>\n#include <sm/io.h>\n#include <sm/string.h>\n#include <sm/test.h>\n#include <sm/types.h>\n\nint\nmain(argc, argv)\n int argc;\n char **argv;\n{\n int i, d, h;\n char buf[128];\n char *r;\n\n sm_test_begin(argc, argv, "test scanf point stuff");\n#if !SM_CONF_BROKEN_SIZE_T\n (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n");\n#endif /* !SM_CONF_BROKEN_SIZE_T */\n\n d = 2;\n sm_snprintf(buf, sizeof(buf), "%d", d);\n r = "2";\n if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);\n\n i = sm_io_sscanf(buf, "%d", &h);\n SM_TEST(i == 1);\n SM_TEST(h == 2);\n\n d = 2;\n sm_snprintf(buf, sizeof(buf), "%d\n", d);\n r = "2\n";\n if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);\n\n i = sm_io_sscanf(buf, "%d", &h);\n SM_TEST(i == 1);\n SM_TEST(h == 2);\n\n return sm_test_end();\n}\n" (comment) "/*\n * Copyright (c) 2001 Sendmail, Inc. and its suppliers.\n * All rights reserved.\n *\n * By using this file, you agree to the terms and conditions set\n * forth in the LICENSE file which can be found at the top level of\n * the sendmail distribution.\n */" (preproc_include) "#include <sm/gen.h>\n" (#include) "#include" (system_lib_string) "<sm/gen.h>" (expression_statement) "SM_IDSTR(id, "@(#)$Id$")" (call_expression) "SM_IDSTR(id, "@(#)$Id$")" (identifier) "SM_IDSTR" (argument_list) "(id, "@(#)$Id$")" (() "(" (identifier) "id" (,) "," (string_literal) ""@(#)$Id$"" (") """ (string_content) "@(#)$Id$" (") """ ()) ")" (;) "" (preproc_include) "#include <sm/limits.h>\n" (#include) "#include" (system_lib_string) "<sm/limits.h>" (preproc_include) "#include <sm/io.h>\n" (#include) "#include" (system_lib_string) "<sm/io.h>" (preproc_include) "#include <sm/string.h>\n" (#include) "#include" (system_lib_string) "<sm/string.h>" (preproc_include) "#include <sm/test.h>\n" (#include) "#include" (system_lib_string) "<sm/test.h>" (preproc_include) "#include <sm/types.h>\n" (#include) "#include" (system_lib_string) "<sm/types.h>" (function_definition) "int\nmain(argc, argv)\n int argc;\n char **argv;\n{\n int i, d, h;\n char buf[128];\n char *r;\n\n sm_test_begin(argc, argv, "test scanf point stuff");\n#if !SM_CONF_BROKEN_SIZE_T\n (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n");\n#endif /* !SM_CONF_BROKEN_SIZE_T */\n\n d = 2;\n sm_snprintf(buf, sizeof(buf), "%d", d);\n r = "2";\n if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);\n\n i = sm_io_sscanf(buf, "%d", &h);\n SM_TEST(i == 1);\n SM_TEST(h == 2);\n\n d = 2;\n sm_snprintf(buf, sizeof(buf), "%d\n", d);\n r = "2\n";\n if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);\n\n i = sm_io_sscanf(buf, "%d", &h);\n SM_TEST(i == 1);\n SM_TEST(h == 2);\n\n return sm_test_end();\n}" (primitive_type) "int" (function_declarator) "main(argc, argv)" (identifier) "main" (parameter_list) "(argc, argv)" (() "(" (identifier) "argc" (,) "," (identifier) "argv" ()) ")" (declaration) "int argc;" (primitive_type) "int" (identifier) "argc" (;) ";" (declaration) "char **argv;" (primitive_type) "char" (pointer_declarator) "**argv" (*) "*" (pointer_declarator) "*argv" (*) "*" (identifier) "argv" (;) ";" (compound_statement) "{\n int i, d, h;\n char buf[128];\n char *r;\n\n sm_test_begin(argc, argv, "test scanf point stuff");\n#if !SM_CONF_BROKEN_SIZE_T\n (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n");\n#endif /* !SM_CONF_BROKEN_SIZE_T */\n\n d = 2;\n sm_snprintf(buf, sizeof(buf), "%d", d);\n r = "2";\n if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);\n\n i = sm_io_sscanf(buf, "%d", &h);\n SM_TEST(i == 1);\n SM_TEST(h == 2);\n\n d = 2;\n sm_snprintf(buf, sizeof(buf), "%d\n", d);\n r = "2\n";\n if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);\n\n i = sm_io_sscanf(buf, "%d", &h);\n SM_TEST(i == 1);\n SM_TEST(h == 2);\n\n return sm_test_end();\n}" ({) "{" (declaration) "int i, d, h;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "d" (,) "," (identifier) "h" (;) ";" (declaration) "char buf[128];" (primitive_type) "char" (array_declarator) "buf[128]" (identifier) "buf" ([) "[" (number_literal) "128" (]) "]" (;) ";" (declaration) "char *r;" (primitive_type) "char" (pointer_declarator) "*r" (*) "*" (identifier) "r" (;) ";" (expression_statement) "sm_test_begin(argc, argv, "test scanf point stuff");" (call_expression) "sm_test_begin(argc, argv, "test scanf point stuff")" (identifier) "sm_test_begin" (argument_list) "(argc, argv, "test scanf point stuff")" (() "(" (identifier) "argc" (,) "," (identifier) "argv" (,) "," (string_literal) ""test scanf point stuff"" (") """ (string_content) "test scanf point stuff" (") """ ()) ")" (;) ";" (preproc_if) "#if !SM_CONF_BROKEN_SIZE_T\n (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n");\n#endif" (#if) "#if" (unary_expression) "!SM_CONF_BROKEN_SIZE_T" (!) "!" (identifier) "SM_CONF_BROKEN_SIZE_T" ( ) "\n" (expression_statement) "(void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n");" (cast_expression) "(void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n")" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n")" (identifier) "sm_io_fprintf" (argument_list) "(smioout, SM_TIME_DEFAULT,\n"If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n")" (() "(" (identifier) "smioout" (,) "," (identifier) "SM_TIME_DEFAULT" (,) "," (string_literal) ""If tests for \"h == 2\" fail, check whether size_t is signed on your OS.\n\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\n\\nand start over. Otherwise contact sendmail.org.\n"" (") """ (string_content) "If tests for " (escape_sequence) "\"" (string_content) "h == 2" (escape_sequence) "\"" (string_content) " fail, check whether size_t is signed on your OS." (escape_sequence) "\n" (escape_sequence) "\\n" (string_content) "If that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF" (escape_sequence) "\n" (escape_sequence) "\\n" (string_content) "and start over. Otherwise contact sendmail.org." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (#endif) "#endif" (comment) "/* !SM_CONF_BROKEN_SIZE_T */" (expression_statement) "d = 2;" (assignment_expression) "d = 2" (identifier) "d" (=) "=" (number_literal) "2" (;) ";" (expression_statement) "sm_snprintf(buf, sizeof(buf), "%d", d);" (call_expression) "sm_snprintf(buf, sizeof(buf), "%d", d)" (identifier) "sm_snprintf" (argument_list) "(buf, sizeof(buf), "%d", d)" (() "(" (identifier) "buf" (,) "," (sizeof_expression) "sizeof(buf)" (sizeof) "sizeof" (parenthesized_expression) "(buf)" (() "(" (identifier) "buf" ()) ")" (,) "," (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (identifier) "d" ()) ")" (;) ";" (expression_statement) "r = "2";" (assignment_expression) "r = "2"" (identifier) "r" (=) "=" (string_literal) ""2"" (") """ (string_content) "2" (") """ (;) ";" (if_statement) "if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);" (if) "if" (parenthesized_expression) "(!SM_TEST(strcmp(buf, r) == 0))" (() "(" (unary_expression) "!SM_TEST(strcmp(buf, r) == 0)" (!) "!" (call_expression) "SM_TEST(strcmp(buf, r) == 0)" (identifier) "SM_TEST" (argument_list) "(strcmp(buf, r) == 0)" (() "(" (binary_expression) "strcmp(buf, r) == 0" (call_expression) "strcmp(buf, r)" (identifier) "strcmp" (argument_list) "(buf, r)" (() "(" (identifier) "buf" (,) "," (identifier) "r" ()) ")" (==) "==" (number_literal) "0" ()) ")" ()) ")" (expression_statement) "(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);" (cast_expression) "(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf)" (identifier) "sm_io_fprintf" (argument_list) "(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf)" (() "(" (identifier) "smioerr" (,) "," (identifier) "SM_TIME_DEFAULT" (,) "," (string_literal) ""got %s instead\n"" (") """ (string_content) "got %s instead" (escape_sequence) "\n" (") """ (,) "," (identifier) "buf" ()) ")" (;) ";" (expression_statement) "i = sm_io_sscanf(buf, "%d", &h);" (assignment_expression) "i = sm_io_sscanf(buf, "%d", &h)" (identifier) "i" (=) "=" (call_expression) "sm_io_sscanf(buf, "%d", &h)" (identifier) "sm_io_sscanf" (argument_list) "(buf, "%d", &h)" (() "(" (identifier) "buf" (,) "," (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&h" (&) "&" (identifier) "h" ()) ")" (;) ";" (expression_statement) "SM_TEST(i == 1);" (call_expression) "SM_TEST(i == 1)" (identifier) "SM_TEST" (argument_list) "(i == 1)" (() "(" (binary_expression) "i == 1" (identifier) "i" (==) "==" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "SM_TEST(h == 2);" (call_expression) "SM_TEST(h == 2)" (identifier) "SM_TEST" (argument_list) "(h == 2)" (() "(" (binary_expression) "h == 2" (identifier) "h" (==) "==" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "d = 2;" (assignment_expression) "d = 2" (identifier) "d" (=) "=" (number_literal) "2" (;) ";" (expression_statement) "sm_snprintf(buf, sizeof(buf), "%d\n", d);" (call_expression) "sm_snprintf(buf, sizeof(buf), "%d\n", d)" (identifier) "sm_snprintf" (argument_list) "(buf, sizeof(buf), "%d\n", d)" (() "(" (identifier) "buf" (,) "," (sizeof_expression) "sizeof(buf)" (sizeof) "sizeof" (parenthesized_expression) "(buf)" (() "(" (identifier) "buf" ()) ")" (,) "," (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (identifier) "d" ()) ")" (;) ";" (expression_statement) "r = "2\n";" (assignment_expression) "r = "2\n"" (identifier) "r" (=) "=" (string_literal) ""2\n"" (") """ (string_content) "2" (escape_sequence) "\n" (") """ (;) ";" (if_statement) "if (!SM_TEST(strcmp(buf, r) == 0))\n (void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);" (if) "if" (parenthesized_expression) "(!SM_TEST(strcmp(buf, r) == 0))" (() "(" (unary_expression) "!SM_TEST(strcmp(buf, r) == 0)" (!) "!" (call_expression) "SM_TEST(strcmp(buf, r) == 0)" (identifier) "SM_TEST" (argument_list) "(strcmp(buf, r) == 0)" (() "(" (binary_expression) "strcmp(buf, r) == 0" (call_expression) "strcmp(buf, r)" (identifier) "strcmp" (argument_list) "(buf, r)" (() "(" (identifier) "buf" (,) "," (identifier) "r" ()) ")" (==) "==" (number_literal) "0" ()) ")" ()) ")" (expression_statement) "(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf);" (cast_expression) "(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf)" (identifier) "sm_io_fprintf" (argument_list) "(smioerr, SM_TIME_DEFAULT,\n "got %s instead\n", buf)" (() "(" (identifier) "smioerr" (,) "," (identifier) "SM_TIME_DEFAULT" (,) "," (string_literal) ""got %s instead\n"" (") """ (string_content) "got %s instead" (escape_sequence) "\n" (") """ (,) "," (identifier) "buf" ()) ")" (;) ";" (expression_statement) "i = sm_io_sscanf(buf, "%d", &h);" (assignment_expression) "i = sm_io_sscanf(buf, "%d", &h)" (identifier) "i" (=) "=" (call_expression) "sm_io_sscanf(buf, "%d", &h)" (identifier) "sm_io_sscanf" (argument_list) "(buf, "%d", &h)" (() "(" (identifier) "buf" (,) "," (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&h" (&) "&" (identifier) "h" ()) ")" (;) ";" (expression_statement) "SM_TEST(i == 1);" (call_expression) "SM_TEST(i == 1)" (identifier) "SM_TEST" (argument_list) "(i == 1)" (() "(" (binary_expression) "i == 1" (identifier) "i" (==) "==" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "SM_TEST(h == 2);" (call_expression) "SM_TEST(h == 2)" (identifier) "SM_TEST" (argument_list) "(h == 2)" (() "(" (binary_expression) "h == 2" (identifier) "h" (==) "==" (number_literal) "2" ()) ")" (;) ";" (return_statement) "return sm_test_end();" (return) "return" (call_expression) "sm_test_end()" (identifier) "sm_test_end" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}"
394
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 27.76, "nodes": 224, "errors": 0, "source_hash": "a86c6734fd64f49064bc4aa6d534f0808441ce09ab15a0d5c3692bcaf4ee0025", "categorized_nodes": 159}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <sm/gen.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<sm/gen.h>", "parent": 0, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 3, "type": "call_expression", "text": "SM_IDSTR(id, \"@(#)$Id$\")", "parent": null, "children": [4, 5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 24}}, {"id": 4, "type": "identifier", "text": "SM_IDSTR", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 5, "type": "argument_list", "text": "(id, \"@(#)$Id$\")", "parent": 3, "children": [6, 7], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 24}}, {"id": 6, "type": "identifier", "text": "id", "parent": 5, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 11}}, {"id": 7, "type": "string_literal", "text": "\"@(#)$Id$\"", "parent": 5, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 23}}, {"id": 8, "type": "preproc_include", "text": "#include <sm/limits.h>\n", "parent": null, "children": [9, 10], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 9, "type": "#include", "text": "#include", "parent": 8, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 10, "type": "system_lib_string", "text": "<sm/limits.h>", "parent": 8, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 11, "type": "preproc_include", "text": "#include <sm/io.h>\n", "parent": null, "children": [12, 13], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 13, "type": "system_lib_string", "text": "<sm/io.h>", "parent": 11, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 18}}, {"id": 14, "type": "preproc_include", "text": "#include <sm/string.h>\n", "parent": null, "children": [15, 16], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 16, "type": "system_lib_string", "text": "<sm/string.h>", "parent": 14, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 22}}, {"id": 17, "type": "preproc_include", "text": "#include <sm/test.h>\n", "parent": null, "children": [18, 19], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 19, "type": "system_lib_string", "text": "<sm/test.h>", "parent": 17, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 20}}, {"id": 20, "type": "preproc_include", "text": "#include <sm/types.h>\n", "parent": null, "children": [21, 22], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 22, "type": "system_lib_string", "text": "<sm/types.h>", "parent": 20, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 21}}, {"id": 23, "type": "function_definition", "text": "int\nmain(argc, argv)\n\tint argc;\n\tchar **argv;\n{\n\tint i, d, h;\n\tchar buf[128];\n\tchar *r;\n\n\tsm_test_begin(argc, argv, \"test scanf point stuff\");\n#if !SM_CONF_BROKEN_SIZE_T\n\t(void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n\"If tests for \\\"h == 2\\\" fail, check whether size_t is signed on your OS.\\n\\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\\n\\\nand start over. Otherwise contact sendmail.org.\\n\");\n#endif /* !SM_CONF_BROKEN_SIZE_T */\n\n\td = 2;\n\tsm_snprintf(buf, sizeof(buf), \"%d\", d);\n\tr = \"2\";\n\tif (!SM_TEST(strcmp(buf, r) == 0))\n\t\t(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf);\n\n\ti = sm_io_sscanf(buf, \"%d\", &h);\n\tSM_TEST(i == 1);\n\tSM_TEST(h == 2);\n\n\td = 2;\n\tsm_snprintf(buf, sizeof(buf), \"%d\\n\", d);\n\tr = \"2\\n\";\n\tif (!SM_TEST(strcmp(buf, r) == 0))\n\t\t(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf);\n\n\ti = sm_io_sscanf(buf, \"%d\", &h);\n\tSM_TEST(i == 1);\n\tSM_TEST(h == 2);\n\n\treturn sm_test_end();\n}", "parent": null, "children": [24, 25, 30, 33], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 3}}, {"id": 25, "type": "function_declarator", "text": "main(argc, argv)", "parent": 23, "children": [26, 27], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 16}}, {"id": 26, "type": "identifier", "text": "main", "parent": 25, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 27, "type": "parameter_list", "text": "(argc, argv)", "parent": 25, "children": [28, 29], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 16}}, {"id": 28, "type": "identifier", "text": "argc", "parent": 27, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 9}}, {"id": 29, "type": "identifier", "text": "argv", "parent": 27, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 15}}, {"id": 30, "type": "declaration", "text": "int argc;", "parent": 23, "children": [31, 32], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 10}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 4}}, {"id": 32, "type": "identifier", "text": "argc", "parent": 30, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 9}}, {"id": 33, "type": "declaration", "text": "char **argv;", "parent": 23, "children": [34, 35], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 13}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 5}}, {"id": 35, "type": "pointer_declarator", "text": "**argv", "parent": 33, "children": [36, 37], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 12}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 7}}, {"id": 37, "type": "pointer_declarator", "text": "*argv", "parent": 35, "children": [38, 39], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 12}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 8}}, {"id": 39, "type": "identifier", "text": "argv", "parent": 37, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 12}}, {"id": 40, "type": "declaration", "text": "int i, d, h;", "parent": 23, "children": [41, 42, 43, 44], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 13}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 4}}, {"id": 42, "type": "identifier", "text": "i", "parent": 40, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 6}}, {"id": 43, "type": "identifier", "text": "d", "parent": 40, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 44, "type": "identifier", "text": "h", "parent": 40, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 45, "type": "declaration", "text": "char buf[128];", "parent": 23, "children": [46, 47], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 15}}, {"id": 46, "type": "primitive_type", "text": "char", "parent": 45, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 47, "type": "array_declarator", "text": "buf[128]", "parent": 45, "children": [48, 49], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 14}}, {"id": 48, "type": "identifier", "text": "buf", "parent": 47, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 9}}, {"id": 49, "type": "number_literal", "text": "128", "parent": 47, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 50, "type": "declaration", "text": "char *r;", "parent": 23, "children": [51, 52], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 51, "type": "primitive_type", "text": "char", "parent": 50, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 52, "type": "pointer_declarator", "text": "*r", "parent": 50, "children": [53, 54], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 8}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 7}}, {"id": 54, "type": "identifier", "text": "r", "parent": 52, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 8}}, {"id": 55, "type": "call_expression", "text": "sm_test_begin(argc, argv, \"test scanf point stuff\")", "parent": 23, "children": [56, 57], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 52}}, {"id": 56, "type": "identifier", "text": "sm_test_begin", "parent": 55, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 14}}, {"id": 57, "type": "argument_list", "text": "(argc, argv, \"test scanf point stuff\")", "parent": 55, "children": [58, 59, 60], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 52}}, {"id": 58, "type": "identifier", "text": "argc", "parent": 57, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 19}}, {"id": 59, "type": "identifier", "text": "argv", "parent": 57, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 25}}, {"id": 60, "type": "string_literal", "text": "\"test scanf point stuff\"", "parent": 57, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 51}}, {"id": 61, "type": "preproc_if", "text": "#if !SM_CONF_BROKEN_SIZE_T\n\t(void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n\"If tests for \\\"h == 2\\\" fail, check whether size_t is signed on your OS.\\n\\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\\n\\\nand start over. Otherwise contact sendmail.org.\\n\");\n#endif", "parent": 23, "children": [62, 63, 66, 83], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 62, "type": "#if", "text": "#if", "parent": 61, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 3}}, {"id": 63, "type": "unary_expression", "text": "!SM_CONF_BROKEN_SIZE_T", "parent": 61, "children": [64, 65], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 26}}, {"id": 64, "type": "!", "text": "!", "parent": 63, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 5}}, {"id": 65, "type": "identifier", "text": "SM_CONF_BROKEN_SIZE_T", "parent": 63, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 26}}, {"id": 66, "type": "\n", "text": "\n", "parent": 61, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 29, "column": 0}}, {"id": 67, "type": "cast_expression", "text": "(void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n\"If tests for \\\"h == 2\\\" fail, check whether size_t is signed on your OS.\\n\\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\\n\\\nand start over. Otherwise contact sendmail.org.\\n\")", "parent": 61, "children": [68, 70], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 32, "column": 51}}, {"id": 68, "type": "type_descriptor", "text": "void", "parent": 67, "children": [69], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 70, "type": "call_expression", "text": "sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n\"If tests for \\\"h == 2\\\" fail, check whether size_t is signed on your OS.\\n\\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\\n\\\nand start over. Otherwise contact sendmail.org.\\n\")", "parent": 67, "children": [71, 72], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 32, "column": 51}}, {"id": 71, "type": "identifier", "text": "sm_io_fprintf", "parent": 70, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 21}}, {"id": 72, "type": "argument_list", "text": "(smioout, SM_TIME_DEFAULT,\n\"If tests for \\\"h == 2\\\" fail, check whether size_t is signed on your OS.\\n\\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\\n\\\nand start over. Otherwise contact sendmail.org.\\n\")", "parent": 70, "children": [73, 74, 75], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 32, "column": 51}}, {"id": 73, "type": "identifier", "text": "smioout", "parent": 72, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 29}}, {"id": 74, "type": "identifier", "text": "SM_TIME_DEFAULT", "parent": 72, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 46}}, {"id": 75, "type": "string_literal", "text": "\"If tests for \\\"h == 2\\\" fail, check whether size_t is signed on your OS.\\n\\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\\n\\\nand start over. Otherwise contact sendmail.org.\\n\"", "parent": 72, "children": [76, 77, 78, 79, 80, 81, 82], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 32, "column": 50}}, {"id": 76, "type": "escape_sequence", "text": "\\\"", "parent": 75, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 16}}, {"id": 77, "type": "escape_sequence", "text": "\\\"", "parent": 75, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 24}}, {"id": 78, "type": "escape_sequence", "text": "\\n", "parent": 75, "children": [], "start_point": {"row": 30, "column": 73}, "end_point": {"row": 30, "column": 75}}, {"id": 79, "type": "escape_sequence", "text": "\\\n", "parent": 75, "children": [], "start_point": {"row": 30, "column": 75}, "end_point": {"row": 31, "column": 0}}, {"id": 80, "type": "escape_sequence", "text": "\\n", "parent": 75, "children": [], "start_point": {"row": 31, "column": 62}, "end_point": {"row": 31, "column": 64}}, {"id": 81, "type": "escape_sequence", "text": "\\\n", "parent": 75, "children": [], "start_point": {"row": 31, "column": 64}, "end_point": {"row": 32, "column": 0}}, {"id": 82, "type": "escape_sequence", "text": "\\n", "parent": 75, "children": [], "start_point": {"row": 32, "column": 47}, "end_point": {"row": 32, "column": 49}}, {"id": 83, "type": "#endif", "text": "#endif", "parent": 61, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 84, "type": "assignment_expression", "text": "d = 2", "parent": 23, "children": [85, 86, 87], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 6}}, {"id": 85, "type": "identifier", "text": "d", "parent": 84, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 2}}, {"id": 86, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 4}}, {"id": 87, "type": "number_literal", "text": "2", "parent": 84, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 6}}, {"id": 88, "type": "call_expression", "text": "sm_snprintf(buf, sizeof(buf), \"%d\", d)", "parent": 23, "children": [89, 90], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 39}}, {"id": 89, "type": "identifier", "text": "sm_snprintf", "parent": 88, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 12}}, {"id": 90, "type": "argument_list", "text": "(buf, sizeof(buf), \"%d\", d)", "parent": 88, "children": [91, 92, 95, 96], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 39}}, {"id": 91, "type": "identifier", "text": "buf", "parent": 90, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 16}}, {"id": 92, "type": "sizeof_expression", "text": "sizeof(buf)", "parent": 90, "children": [93], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 29}}, {"id": 93, "type": "parenthesized_expression", "text": "(buf)", "parent": 92, "children": [94], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 29}}, {"id": 94, "type": "identifier", "text": "buf", "parent": 93, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 28}}, {"id": 95, "type": "string_literal", "text": "\"%d\"", "parent": 90, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 35}}, {"id": 96, "type": "identifier", "text": "d", "parent": 90, "children": [], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 38}}, {"id": 97, "type": "assignment_expression", "text": "r = \"2\"", "parent": 23, "children": [98, 99, 100], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 8}}, {"id": 98, "type": "identifier", "text": "r", "parent": 97, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 2}}, {"id": 99, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 4}}, {"id": 100, "type": "string_literal", "text": "\"2\"", "parent": 97, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 8}}, {"id": 101, "type": "if_statement", "text": "if (!SM_TEST(strcmp(buf, r) == 0))\n\t\t(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf);", "parent": 23, "children": [102], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 40, "column": 34}}, {"id": 102, "type": "parenthesized_expression", "text": "(!SM_TEST(strcmp(buf, r) == 0))", "parent": 101, "children": [103], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 35}}, {"id": 103, "type": "unary_expression", "text": "!SM_TEST(strcmp(buf, r) == 0)", "parent": 102, "children": [104, 105], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 34}}, {"id": 104, "type": "!", "text": "!", "parent": 103, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 6}}, {"id": 105, "type": "call_expression", "text": "SM_TEST(strcmp(buf, r) == 0)", "parent": 103, "children": [106, 107], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 34}}, {"id": 106, "type": "identifier", "text": "SM_TEST", "parent": 105, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 13}}, {"id": 107, "type": "argument_list", "text": "(strcmp(buf, r) == 0)", "parent": 105, "children": [108], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 34}}, {"id": 108, "type": "binary_expression", "text": "strcmp(buf, r) == 0", "parent": 107, "children": [109, 114, 115], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 33}}, {"id": 109, "type": "call_expression", "text": "strcmp(buf, r)", "parent": 108, "children": [110, 111], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 28}}, {"id": 110, "type": "identifier", "text": "strcmp", "parent": 109, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 20}}, {"id": 111, "type": "argument_list", "text": "(buf, r)", "parent": 109, "children": [112, 113], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 28}}, {"id": 112, "type": "identifier", "text": "buf", "parent": 111, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 24}}, {"id": 113, "type": "identifier", "text": "r", "parent": 111, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 27}}, {"id": 114, "type": "==", "text": "==", "parent": 108, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 31}}, {"id": 115, "type": "number_literal", "text": "0", "parent": 108, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 33}}, {"id": 116, "type": "cast_expression", "text": "(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf)", "parent": 101, "children": [117, 119], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 40, "column": 33}}, {"id": 117, "type": "type_descriptor", "text": "void", "parent": 116, "children": [118], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 7}}, {"id": 118, "type": "primitive_type", "text": "void", "parent": 117, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 7}}, {"id": 119, "type": "call_expression", "text": "sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf)", "parent": 116, "children": [120, 121], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 40, "column": 33}}, {"id": 120, "type": "identifier", "text": "sm_io_fprintf", "parent": 119, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 22}}, {"id": 121, "type": "argument_list", "text": "(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf)", "parent": 119, "children": [122, 123, 124, 126], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 40, "column": 33}}, {"id": 122, "type": "identifier", "text": "smioerr", "parent": 121, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 30}}, {"id": 123, "type": "identifier", "text": "SM_TIME_DEFAULT", "parent": 121, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 47}}, {"id": 124, "type": "string_literal", "text": "\"got %s instead\\n\"", "parent": 121, "children": [125], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 27}}, {"id": 125, "type": "escape_sequence", "text": "\\n", "parent": 124, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 26}}, {"id": 126, "type": "identifier", "text": "buf", "parent": 121, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 32}}, {"id": 127, "type": "assignment_expression", "text": "i = sm_io_sscanf(buf, \"%d\", &h)", "parent": 23, "children": [128, 129, 130], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 32}}, {"id": 128, "type": "identifier", "text": "i", "parent": 127, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 2}}, {"id": 129, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 4}}, {"id": 130, "type": "call_expression", "text": "sm_io_sscanf(buf, \"%d\", &h)", "parent": 127, "children": [131, 132], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 32}}, {"id": 131, "type": "identifier", "text": "sm_io_sscanf", "parent": 130, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 17}}, {"id": 132, "type": "argument_list", "text": "(buf, \"%d\", &h)", "parent": 130, "children": [133, 134, 135], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 32}}, {"id": 133, "type": "identifier", "text": "buf", "parent": 132, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 21}}, {"id": 134, "type": "string_literal", "text": "\"%d\"", "parent": 132, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 27}}, {"id": 135, "type": "pointer_expression", "text": "&h", "parent": 132, "children": [136], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 31}}, {"id": 136, "type": "identifier", "text": "h", "parent": 135, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 31}}, {"id": 137, "type": "call_expression", "text": "SM_TEST(i == 1)", "parent": 23, "children": [138, 139], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 16}}, {"id": 138, "type": "identifier", "text": "SM_TEST", "parent": 137, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 139, "type": "argument_list", "text": "(i == 1)", "parent": 137, "children": [140], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 140, "type": "binary_expression", "text": "i == 1", "parent": 139, "children": [141, 142, 143], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 15}}, {"id": 141, "type": "identifier", "text": "i", "parent": 140, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 10}}, {"id": 142, "type": "==", "text": "==", "parent": 140, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 13}}, {"id": 143, "type": "number_literal", "text": "1", "parent": 140, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 144, "type": "call_expression", "text": "SM_TEST(h == 2)", "parent": 23, "children": [145, 146], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 16}}, {"id": 145, "type": "identifier", "text": "SM_TEST", "parent": 144, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 146, "type": "argument_list", "text": "(h == 2)", "parent": 144, "children": [147], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 16}}, {"id": 147, "type": "binary_expression", "text": "h == 2", "parent": 146, "children": [148, 149, 150], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 15}}, {"id": 148, "type": "identifier", "text": "h", "parent": 147, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 149, "type": "==", "text": "==", "parent": 147, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 13}}, {"id": 150, "type": "number_literal", "text": "2", "parent": 147, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 15}}, {"id": 151, "type": "assignment_expression", "text": "d = 2", "parent": 23, "children": [152, 153, 154], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 6}}, {"id": 152, "type": "identifier", "text": "d", "parent": 151, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 153, "type": "=", "text": "=", "parent": 151, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 4}}, {"id": 154, "type": "number_literal", "text": "2", "parent": 151, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 6}}, {"id": 155, "type": "call_expression", "text": "sm_snprintf(buf, sizeof(buf), \"%d\\n\", d)", "parent": 23, "children": [156, 157], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 41}}, {"id": 156, "type": "identifier", "text": "sm_snprintf", "parent": 155, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 12}}, {"id": 157, "type": "argument_list", "text": "(buf, sizeof(buf), \"%d\\n\", d)", "parent": 155, "children": [158, 159, 162, 164], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 41}}, {"id": 158, "type": "identifier", "text": "buf", "parent": 157, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 16}}, {"id": 159, "type": "sizeof_expression", "text": "sizeof(buf)", "parent": 157, "children": [160], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 29}}, {"id": 160, "type": "parenthesized_expression", "text": "(buf)", "parent": 159, "children": [161], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 29}}, {"id": 161, "type": "identifier", "text": "buf", "parent": 160, "children": [], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 28}}, {"id": 162, "type": "string_literal", "text": "\"%d\\n\"", "parent": 157, "children": [163], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 37}}, {"id": 163, "type": "escape_sequence", "text": "\\n", "parent": 162, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 36}}, {"id": 164, "type": "identifier", "text": "d", "parent": 157, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 40}}, {"id": 165, "type": "assignment_expression", "text": "r = \"2\\n\"", "parent": 23, "children": [166, 167, 168], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 10}}, {"id": 166, "type": "identifier", "text": "r", "parent": 165, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 2}}, {"id": 167, "type": "=", "text": "=", "parent": 165, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 4}}, {"id": 168, "type": "string_literal", "text": "\"2\\n\"", "parent": 165, "children": [169], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 10}}, {"id": 169, "type": "escape_sequence", "text": "\\n", "parent": 168, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 9}}, {"id": 170, "type": "if_statement", "text": "if (!SM_TEST(strcmp(buf, r) == 0))\n\t\t(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf);", "parent": 23, "children": [171], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 51, "column": 34}}, {"id": 171, "type": "parenthesized_expression", "text": "(!SM_TEST(strcmp(buf, r) == 0))", "parent": 170, "children": [172], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 35}}, {"id": 172, "type": "unary_expression", "text": "!SM_TEST(strcmp(buf, r) == 0)", "parent": 171, "children": [173, 174], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 34}}, {"id": 173, "type": "!", "text": "!", "parent": 172, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 6}}, {"id": 174, "type": "call_expression", "text": "SM_TEST(strcmp(buf, r) == 0)", "parent": 172, "children": [175, 176], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 34}}, {"id": 175, "type": "identifier", "text": "SM_TEST", "parent": 174, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 13}}, {"id": 176, "type": "argument_list", "text": "(strcmp(buf, r) == 0)", "parent": 174, "children": [177], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 34}}, {"id": 177, "type": "binary_expression", "text": "strcmp(buf, r) == 0", "parent": 176, "children": [178, 183, 184], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 33}}, {"id": 178, "type": "call_expression", "text": "strcmp(buf, r)", "parent": 177, "children": [179, 180], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 28}}, {"id": 179, "type": "identifier", "text": "strcmp", "parent": 178, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 20}}, {"id": 180, "type": "argument_list", "text": "(buf, r)", "parent": 178, "children": [181, 182], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 28}}, {"id": 181, "type": "identifier", "text": "buf", "parent": 180, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 24}}, {"id": 182, "type": "identifier", "text": "r", "parent": 180, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 27}}, {"id": 183, "type": "==", "text": "==", "parent": 177, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 31}}, {"id": 184, "type": "number_literal", "text": "0", "parent": 177, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 33}}, {"id": 185, "type": "cast_expression", "text": "(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf)", "parent": 170, "children": [186, 188], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 51, "column": 33}}, {"id": 186, "type": "type_descriptor", "text": "void", "parent": 185, "children": [187], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 7}}, {"id": 187, "type": "primitive_type", "text": "void", "parent": 186, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 7}}, {"id": 188, "type": "call_expression", "text": "sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf)", "parent": 185, "children": [189, 190], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 51, "column": 33}}, {"id": 189, "type": "identifier", "text": "sm_io_fprintf", "parent": 188, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 22}}, {"id": 190, "type": "argument_list", "text": "(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf)", "parent": 188, "children": [191, 192, 193, 195], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 51, "column": 33}}, {"id": 191, "type": "identifier", "text": "smioerr", "parent": 190, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 30}}, {"id": 192, "type": "identifier", "text": "SM_TIME_DEFAULT", "parent": 190, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 47}}, {"id": 193, "type": "string_literal", "text": "\"got %s instead\\n\"", "parent": 190, "children": [194], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 27}}, {"id": 194, "type": "escape_sequence", "text": "\\n", "parent": 193, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 26}}, {"id": 195, "type": "identifier", "text": "buf", "parent": 190, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 32}}, {"id": 196, "type": "assignment_expression", "text": "i = sm_io_sscanf(buf, \"%d\", &h)", "parent": 23, "children": [197, 198, 199], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 32}}, {"id": 197, "type": "identifier", "text": "i", "parent": 196, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 2}}, {"id": 198, "type": "=", "text": "=", "parent": 196, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 4}}, {"id": 199, "type": "call_expression", "text": "sm_io_sscanf(buf, \"%d\", &h)", "parent": 196, "children": [200, 201], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 32}}, {"id": 200, "type": "identifier", "text": "sm_io_sscanf", "parent": 199, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 17}}, {"id": 201, "type": "argument_list", "text": "(buf, \"%d\", &h)", "parent": 199, "children": [202, 203, 204], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 32}}, {"id": 202, "type": "identifier", "text": "buf", "parent": 201, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 21}}, {"id": 203, "type": "string_literal", "text": "\"%d\"", "parent": 201, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 27}}, {"id": 204, "type": "pointer_expression", "text": "&h", "parent": 201, "children": [205], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 31}}, {"id": 205, "type": "identifier", "text": "h", "parent": 204, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 31}}, {"id": 206, "type": "call_expression", "text": "SM_TEST(i == 1)", "parent": 23, "children": [207, 208], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 16}}, {"id": 207, "type": "identifier", "text": "SM_TEST", "parent": 206, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 8}}, {"id": 208, "type": "argument_list", "text": "(i == 1)", "parent": 206, "children": [209], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 16}}, {"id": 209, "type": "binary_expression", "text": "i == 1", "parent": 208, "children": [210, 211, 212], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 15}}, {"id": 210, "type": "identifier", "text": "i", "parent": 209, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 10}}, {"id": 211, "type": "==", "text": "==", "parent": 209, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 13}}, {"id": 212, "type": "number_literal", "text": "1", "parent": 209, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 15}}, {"id": 213, "type": "call_expression", "text": "SM_TEST(h == 2)", "parent": 23, "children": [214, 215], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 16}}, {"id": 214, "type": "identifier", "text": "SM_TEST", "parent": 213, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 8}}, {"id": 215, "type": "argument_list", "text": "(h == 2)", "parent": 213, "children": [216], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 16}}, {"id": 216, "type": "binary_expression", "text": "h == 2", "parent": 215, "children": [217, 218, 219], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 15}}, {"id": 217, "type": "identifier", "text": "h", "parent": 216, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 10}}, {"id": 218, "type": "==", "text": "==", "parent": 216, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 13}}, {"id": 219, "type": "number_literal", "text": "2", "parent": 216, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 220, "type": "return_statement", "text": "return sm_test_end();", "parent": 23, "children": [221], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 22}}, {"id": 221, "type": "call_expression", "text": "sm_test_end()", "parent": 220, "children": [222, 223], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 21}}, {"id": 222, "type": "identifier", "text": "sm_test_end", "parent": 221, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 19}}, {"id": 223, "type": "argument_list", "text": "()", "parent": 221, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 21}}]}, "node_categories": {"declarations": {"functions": [23, 25], "variables": [30, 33, 40, 45, 50], "classes": [], "imports": [0, 1, 8, 9, 11, 12, 14, 15, 17, 18, 20, 21], "modules": [], "enums": []}, "statements": {"expressions": [3, 55, 63, 67, 70, 88, 92, 93, 102, 103, 105, 108, 109, 116, 119, 130, 135, 137, 140, 144, 147, 155, 159, 160, 171, 172, 174, 177, 178, 185, 188, 199, 204, 206, 209, 213, 216, 221], "assignments": [84, 97, 127, 151, 165, 196], "loops": [], "conditionals": [4, 6, 26, 28, 29, 32, 39, 42, 43, 44, 48, 54, 56, 58, 59, 61, 62, 65, 71, 73, 74, 83, 85, 89, 91, 94, 96, 98, 101, 106, 110, 112, 113, 120, 122, 123, 126, 128, 131, 133, 136, 138, 141, 145, 148, 152, 156, 158, 161, 164, 166, 170, 175, 179, 181, 182, 189, 191, 192, 195, 197, 200, 202, 205, 207, 210, 214, 217, 222], "returns": [220], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 7, 10, 13, 16, 19, 22, 49, 60, 75, 87, 95, 100, 115, 124, 134, 143, 150, 154, 162, 168, 184, 193, 203, 212, 219], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "main", "text_snippet": "int\nmain(argc, argv)\n\tint argc;\n\tchar **argv;\n{\n\tint i, d, h;\n\tchar buf[128];\n\tchar *r;\n\n\tsm_test_be"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "main(argc, argv)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <sm/gen.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 8, "text": "#include <sm/limits.h>\n"}, {"node_id": 9, "text": "#include"}, {"node_id": 11, "text": "#include <sm/io.h>\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include <sm/string.h>\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 17, "text": "#include <sm/test.h>\n"}, {"node_id": 18, "text": "#include"}, {"node_id": 20, "text": "#include <sm/types.h>\n"}, {"node_id": 21, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2001 Sendmail, Inc. and its suppliers.\n *\tAll rights reserved.\n *\n * By using this file, you agree to the terms and conditions set\n * forth in the LICENSE file which can be found at the top level of\n * the sendmail distribution.\n */\n\n#include <sm/gen.h>\nSM_IDSTR(id, \"@(#)$Id$\")\n\n#include <sm/limits.h>\n#include <sm/io.h>\n#include <sm/string.h>\n#include <sm/test.h>\n#include <sm/types.h>\n\nint\nmain(argc, argv)\n\tint argc;\n\tchar **argv;\n{\n\tint i, d, h;\n\tchar buf[128];\n\tchar *r;\n\n\tsm_test_begin(argc, argv, \"test scanf point stuff\");\n#if !SM_CONF_BROKEN_SIZE_T\n\t(void) sm_io_fprintf(smioout, SM_TIME_DEFAULT,\n\"If tests for \\\"h == 2\\\" fail, check whether size_t is signed on your OS.\\n\\\nIf that is the case, add -DSM_CONF_BROKEN_SIZE_T to confENVDEF\\n\\\nand start over. Otherwise contact sendmail.org.\\n\");\n#endif /* !SM_CONF_BROKEN_SIZE_T */\n\n\td = 2;\n\tsm_snprintf(buf, sizeof(buf), \"%d\", d);\n\tr = \"2\";\n\tif (!SM_TEST(strcmp(buf, r) == 0))\n\t\t(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf);\n\n\ti = sm_io_sscanf(buf, \"%d\", &h);\n\tSM_TEST(i == 1);\n\tSM_TEST(h == 2);\n\n\td = 2;\n\tsm_snprintf(buf, sizeof(buf), \"%d\\n\", d);\n\tr = \"2\\n\";\n\tif (!SM_TEST(strcmp(buf, r) == 0))\n\t\t(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT,\n\t\t\t\t \"got %s instead\\n\", buf);\n\n\ti = sm_io_sscanf(buf, \"%d\", &h);\n\tSM_TEST(i == 1);\n\tSM_TEST(h == 2);\n\n\treturn sm_test_end();\n}\n"}
80,818
c
#include <stdio.h> #include <string.h> int x[100000+10]; int y[100000+10]; int main(){ int a, b, i, counta, countb, input; while(scanf("%d %d", &a, &b) && a && b){ memset(x,0,sizeof(x)); memset(y,0,sizeof(y)); counta=0; countb=0; for(i = 0; i < a; i++){ scanf("%d", &input); x[input]++; } for(i = 0; i < b; i++){ scanf("%d", &input); y[input]++; } for(i = 1; i <= 100000; i++){ if(x[i] && !y[i]) counta++; if(y[i] && !x[i]) countb++; } if(counta <= countb) printf("%d\n", counta); else printf("%d\n", countb); } }
18.48
29
(translation_unit) "#include <stdio.h>\n#include <string.h>\n\nint x[100000+10];\nint y[100000+10];\n\nint main(){\n int a, b, i, counta, countb, input;\n while(scanf("%d %d", &a, &b) && a && b){\n memset(x,0,sizeof(x));\n memset(y,0,sizeof(y));\n counta=0;\n countb=0;\n for(i = 0; i < a; i++){\n scanf("%d", &input);\n x[input]++;\n }\n for(i = 0; i < b; i++){\n scanf("%d", &input);\n y[input]++;\n }\n\n for(i = 1; i <= 100000; i++){\n if(x[i] && !y[i]) counta++;\n if(y[i] && !x[i]) countb++;\n }\n if(counta <= countb)\n printf("%d\n", counta);\n else\n printf("%d\n", countb);\n }\n}\n\n" (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) "int x[100000+10];" (primitive_type) "int" (array_declarator) "x[100000+10]" (identifier) "x" ([) "[" (binary_expression) "100000+10" (number_literal) "100000" (+) "+" (number_literal) "10" (]) "]" (;) ";" (declaration) "int y[100000+10];" (primitive_type) "int" (array_declarator) "y[100000+10]" (identifier) "y" ([) "[" (binary_expression) "100000+10" (number_literal) "100000" (+) "+" (number_literal) "10" (]) "]" (;) ";" (function_definition) "int main(){\n int a, b, i, counta, countb, input;\n while(scanf("%d %d", &a, &b) && a && b){\n memset(x,0,sizeof(x));\n memset(y,0,sizeof(y));\n counta=0;\n countb=0;\n for(i = 0; i < a; i++){\n scanf("%d", &input);\n x[input]++;\n }\n for(i = 0; i < b; i++){\n scanf("%d", &input);\n y[input]++;\n }\n\n for(i = 1; i <= 100000; i++){\n if(x[i] && !y[i]) counta++;\n if(y[i] && !x[i]) countb++;\n }\n if(counta <= countb)\n printf("%d\n", counta);\n else\n printf("%d\n", countb);\n }\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int a, b, i, counta, countb, input;\n while(scanf("%d %d", &a, &b) && a && b){\n memset(x,0,sizeof(x));\n memset(y,0,sizeof(y));\n counta=0;\n countb=0;\n for(i = 0; i < a; i++){\n scanf("%d", &input);\n x[input]++;\n }\n for(i = 0; i < b; i++){\n scanf("%d", &input);\n y[input]++;\n }\n\n for(i = 1; i <= 100000; i++){\n if(x[i] && !y[i]) counta++;\n if(y[i] && !x[i]) countb++;\n }\n if(counta <= countb)\n printf("%d\n", counta);\n else\n printf("%d\n", countb);\n }\n}" ({) "{" (declaration) "int a, b, i, counta, countb, input;" (primitive_type) "int" (identifier) "a" (,) "," (identifier) "b" (,) "," (identifier) "i" (,) "," (identifier) "counta" (,) "," (identifier) "countb" (,) "," (identifier) "input" (;) ";" (while_statement) "while(scanf("%d %d", &a, &b) && a && b){\n memset(x,0,sizeof(x));\n memset(y,0,sizeof(y));\n counta=0;\n countb=0;\n for(i = 0; i < a; i++){\n scanf("%d", &input);\n x[input]++;\n }\n for(i = 0; i < b; i++){\n scanf("%d", &input);\n y[input]++;\n }\n\n for(i = 1; i <= 100000; i++){\n if(x[i] && !y[i]) counta++;\n if(y[i] && !x[i]) countb++;\n }\n if(counta <= countb)\n printf("%d\n", counta);\n else\n printf("%d\n", countb);\n }" (while) "while" (parenthesized_expression) "(scanf("%d %d", &a, &b) && a && b)" (() "(" (binary_expression) "scanf("%d %d", &a, &b) && a && b" (binary_expression) "scanf("%d %d", &a, &b) && a" (call_expression) "scanf("%d %d", &a, &b)" (identifier) "scanf" (argument_list) "("%d %d", &a, &b)" (() "(" (string_literal) ""%d %d"" (") """ (string_content) "%d %d" (") """ (,) "," (pointer_expression) "&a" (&) "&" (identifier) "a" (,) "," (pointer_expression) "&b" (&) "&" (identifier) "b" ()) ")" (&&) "&&" (identifier) "a" (&&) "&&" (identifier) "b" ()) ")" (compound_statement) "{\n memset(x,0,sizeof(x));\n memset(y,0,sizeof(y));\n counta=0;\n countb=0;\n for(i = 0; i < a; i++){\n scanf("%d", &input);\n x[input]++;\n }\n for(i = 0; i < b; i++){\n scanf("%d", &input);\n y[input]++;\n }\n\n for(i = 1; i <= 100000; i++){\n if(x[i] && !y[i]) counta++;\n if(y[i] && !x[i]) countb++;\n }\n if(counta <= countb)\n printf("%d\n", counta);\n else\n printf("%d\n", countb);\n }" ({) "{" (expression_statement) "memset(x,0,sizeof(x));" (call_expression) "memset(x,0,sizeof(x))" (identifier) "memset" (argument_list) "(x,0,sizeof(x))" (() "(" (identifier) "x" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(x)" (sizeof) "sizeof" (parenthesized_expression) "(x)" (() "(" (identifier) "x" ()) ")" ()) ")" (;) ";" (expression_statement) "memset(y,0,sizeof(y));" (call_expression) "memset(y,0,sizeof(y))" (identifier) "memset" (argument_list) "(y,0,sizeof(y))" (() "(" (identifier) "y" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(y)" (sizeof) "sizeof" (parenthesized_expression) "(y)" (() "(" (identifier) "y" ()) ")" ()) ")" (;) ";" (expression_statement) "counta=0;" (assignment_expression) "counta=0" (identifier) "counta" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "countb=0;" (assignment_expression) "countb=0" (identifier) "countb" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(i = 0; i < a; i++){\n scanf("%d", &input);\n x[input]++;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < a" (identifier) "i" (<) "<" (identifier) "a" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n scanf("%d", &input);\n x[input]++;\n }" ({) "{" (expression_statement) "scanf("%d", &input);" (call_expression) "scanf("%d", &input)" (identifier) "scanf" (argument_list) "("%d", &input)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&input" (&) "&" (identifier) "input" ()) ")" (;) ";" (expression_statement) "x[input]++;" (update_expression) "x[input]++" (subscript_expression) "x[input]" (identifier) "x" ([) "[" (identifier) "input" (]) "]" (++) "++" (;) ";" (}) "}" (for_statement) "for(i = 0; i < b; i++){\n scanf("%d", &input);\n y[input]++;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < b" (identifier) "i" (<) "<" (identifier) "b" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n scanf("%d", &input);\n y[input]++;\n }" ({) "{" (expression_statement) "scanf("%d", &input);" (call_expression) "scanf("%d", &input)" (identifier) "scanf" (argument_list) "("%d", &input)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&input" (&) "&" (identifier) "input" ()) ")" (;) ";" (expression_statement) "y[input]++;" (update_expression) "y[input]++" (subscript_expression) "y[input]" (identifier) "y" ([) "[" (identifier) "input" (]) "]" (++) "++" (;) ";" (}) "}" (for_statement) "for(i = 1; i <= 100000; i++){\n if(x[i] && !y[i]) counta++;\n if(y[i] && !x[i]) countb++;\n }" (for) "for" (() "(" (assignment_expression) "i = 1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i <= 100000" (identifier) "i" (<=) "<=" (number_literal) "100000" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if(x[i] && !y[i]) counta++;\n if(y[i] && !x[i]) countb++;\n }" ({) "{" (if_statement) "if(x[i] && !y[i]) counta++;" (if) "if" (parenthesized_expression) "(x[i] && !y[i])" (() "(" (binary_expression) "x[i] && !y[i]" (subscript_expression) "x[i]" (identifier) "x" ([) "[" (identifier) "i" (]) "]" (&&) "&&" (unary_expression) "!y[i]" (!) "!" (subscript_expression) "y[i]" (identifier) "y" ([) "[" (identifier) "i" (]) "]" ()) ")" (expression_statement) "counta++;" (update_expression) "counta++" (identifier) "counta" (++) "++" (;) ";" (if_statement) "if(y[i] && !x[i]) countb++;" (if) "if" (parenthesized_expression) "(y[i] && !x[i])" (() "(" (binary_expression) "y[i] && !x[i]" (subscript_expression) "y[i]" (identifier) "y" ([) "[" (identifier) "i" (]) "]" (&&) "&&" (unary_expression) "!x[i]" (!) "!" (subscript_expression) "x[i]" (identifier) "x" ([) "[" (identifier) "i" (]) "]" ()) ")" (expression_statement) "countb++;" (update_expression) "countb++" (identifier) "countb" (++) "++" (;) ";" (}) "}" (if_statement) "if(counta <= countb)\n printf("%d\n", counta);\n else\n printf("%d\n", countb);" (if) "if" (parenthesized_expression) "(counta <= countb)" (() "(" (binary_expression) "counta <= countb" (identifier) "counta" (<=) "<=" (identifier) "countb" ()) ")" (expression_statement) "printf("%d\n", counta);" (call_expression) "printf("%d\n", counta)" (identifier) "printf" (argument_list) "("%d\n", counta)" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (identifier) "counta" ()) ")" (;) ";" (else_clause) "else\n printf("%d\n", countb);" (else) "else" (expression_statement) "printf("%d\n", countb);" (call_expression) "printf("%d\n", countb)" (identifier) "printf" (argument_list) "("%d\n", countb)" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (identifier) "countb" ()) ")" (;) ";" (}) "}" (}) "}"
325
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 18.48, "nodes": 182, "errors": 0, "source_hash": "ddae4319f51462d96a5dedb96b8a5b39e72a0567c9b7f56746bb6ad0e9492962", "categorized_nodes": 141}, "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 <string.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": "<string.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "declaration", "text": "int x[100000+10];", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 17}}, {"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": "array_declarator", "text": "x[100000+10]", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 16}}, {"id": 9, "type": "identifier", "text": "x", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 5}}, {"id": 10, "type": "binary_expression", "text": "100000+10", "parent": 8, "children": [11, 12, 13], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 15}}, {"id": 11, "type": "number_literal", "text": "100000", "parent": 10, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 12}}, {"id": 12, "type": "+", "text": "+", "parent": 10, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 13}}, {"id": 13, "type": "number_literal", "text": "10", "parent": 10, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 15}}, {"id": 14, "type": "declaration", "text": "int y[100000+10];", "parent": null, "children": [15, 16], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 17}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 16, "type": "array_declarator", "text": "y[100000+10]", "parent": 14, "children": [17, 18], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 16}}, {"id": 17, "type": "identifier", "text": "y", "parent": 16, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 5}}, {"id": 18, "type": "binary_expression", "text": "100000+10", "parent": 16, "children": [19, 20, 21], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 15}}, {"id": 19, "type": "number_literal", "text": "100000", "parent": 18, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 12}}, {"id": 20, "type": "+", "text": "+", "parent": 18, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 13}}, {"id": 21, "type": "number_literal", "text": "10", "parent": 18, "children": [], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 15}}, {"id": 22, "type": "function_definition", "text": "int main(){\n\tint a, b, i, counta, countb, input;\n\twhile(scanf(\"%d %d\", &a, &b) && a && b){\n\t\tmemset(x,0,sizeof(x));\n\t\tmemset(y,0,sizeof(y));\n\t\tcounta=0;\n\t\tcountb=0;\n\t\tfor(i = 0; i < a; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\tx[input]++;\n\t\t}\n\t\tfor(i = 0; i < b; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\ty[input]++;\n\t\t}\n\n\t\tfor(i = 1; i <= 100000; i++){\n\t\t\tif(x[i] && !y[i]) counta++;\n\t\t\tif(y[i] && !x[i]) countb++;\n\t\t}\n\t\tif(counta <= countb)\n\t\t\tprintf(\"%d\\n\", counta);\n\t\telse\n\t\t\tprintf(\"%d\\n\", countb);\n\t}\n}", "parent": null, "children": [23, 24], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 24, "type": "function_declarator", "text": "main()", "parent": 22, "children": [25, 26], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 10}}, {"id": 25, "type": "identifier", "text": "main", "parent": 24, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 8}}, {"id": 26, "type": "parameter_list", "text": "()", "parent": 24, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 10}}, {"id": 27, "type": "declaration", "text": "int a, b, i, counta, countb, input;", "parent": 22, "children": [28, 29, 30, 31, 32, 33, 34], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 36}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 4}}, {"id": 29, "type": "identifier", "text": "a", "parent": 27, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 6}}, {"id": 30, "type": "identifier", "text": "b", "parent": 27, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 9}}, {"id": 31, "type": "identifier", "text": "i", "parent": 27, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 32, "type": "identifier", "text": "counta", "parent": 27, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 20}}, {"id": 33, "type": "identifier", "text": "countb", "parent": 27, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 28}}, {"id": 34, "type": "identifier", "text": "input", "parent": 27, "children": [], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 35}}, {"id": 35, "type": "while_statement", "text": "while(scanf(\"%d %d\", &a, &b) && a && b){\n\t\tmemset(x,0,sizeof(x));\n\t\tmemset(y,0,sizeof(y));\n\t\tcounta=0;\n\t\tcountb=0;\n\t\tfor(i = 0; i < a; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\tx[input]++;\n\t\t}\n\t\tfor(i = 0; i < b; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\ty[input]++;\n\t\t}\n\n\t\tfor(i = 1; i <= 100000; i++){\n\t\t\tif(x[i] && !y[i]) counta++;\n\t\t\tif(y[i] && !x[i]) countb++;\n\t\t}\n\t\tif(counta <= countb)\n\t\t\tprintf(\"%d\\n\", counta);\n\t\telse\n\t\t\tprintf(\"%d\\n\", countb);\n\t}", "parent": 22, "children": [36], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 36, "type": "parenthesized_expression", "text": "(scanf(\"%d %d\", &a, &b) && a && b)", "parent": 35, "children": [37], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 40}}, {"id": 37, "type": "binary_expression", "text": "scanf(\"%d %d\", &a, &b) && a && b", "parent": 36, "children": [38, 49, 50], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 39}}, {"id": 38, "type": "binary_expression", "text": "scanf(\"%d %d\", &a, &b) && a", "parent": 37, "children": [39, 47, 48], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 34}}, {"id": 39, "type": "call_expression", "text": "scanf(\"%d %d\", &a, &b)", "parent": 38, "children": [40, 41], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 29}}, {"id": 40, "type": "identifier", "text": "scanf", "parent": 39, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 12}}, {"id": 41, "type": "argument_list", "text": "(\"%d %d\", &a, &b)", "parent": 39, "children": [42, 43, 45], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 29}}, {"id": 42, "type": "string_literal", "text": "\"%d %d\"", "parent": 41, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 20}}, {"id": 43, "type": "pointer_expression", "text": "&a", "parent": 41, "children": [44], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 24}}, {"id": 44, "type": "identifier", "text": "a", "parent": 43, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 24}}, {"id": 45, "type": "pointer_expression", "text": "&b", "parent": 41, "children": [46], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 28}}, {"id": 46, "type": "identifier", "text": "b", "parent": 45, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 28}}, {"id": 47, "type": "&&", "text": "&&", "parent": 38, "children": [], "start_point": {"row": 8, "column": 30}, "end_point": {"row": 8, "column": 32}}, {"id": 48, "type": "identifier", "text": "a", "parent": 38, "children": [], "start_point": {"row": 8, "column": 33}, "end_point": {"row": 8, "column": 34}}, {"id": 49, "type": "&&", "text": "&&", "parent": 37, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 37}}, {"id": 50, "type": "identifier", "text": "b", "parent": 37, "children": [], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 39}}, {"id": 51, "type": "call_expression", "text": "memset(x,0,sizeof(x))", "parent": 35, "children": [52, 53], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 23}}, {"id": 52, "type": "identifier", "text": "memset", "parent": 51, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 8}}, {"id": 53, "type": "argument_list", "text": "(x,0,sizeof(x))", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 54, "type": "identifier", "text": "x", "parent": 53, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 10}}, {"id": 55, "type": "number_literal", "text": "0", "parent": 53, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 56, "type": "sizeof_expression", "text": "sizeof(x)", "parent": 53, "children": [57], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 22}}, {"id": 57, "type": "parenthesized_expression", "text": "(x)", "parent": 56, "children": [58], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 22}}, {"id": 58, "type": "identifier", "text": "x", "parent": 57, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 21}}, {"id": 59, "type": "call_expression", "text": "memset(y,0,sizeof(y))", "parent": 35, "children": [60, 61], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 23}}, {"id": 60, "type": "identifier", "text": "memset", "parent": 59, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 8}}, {"id": 61, "type": "argument_list", "text": "(y,0,sizeof(y))", "parent": 59, "children": [62, 63, 64], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 23}}, {"id": 62, "type": "identifier", "text": "y", "parent": 61, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 10}}, {"id": 63, "type": "number_literal", "text": "0", "parent": 61, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 64, "type": "sizeof_expression", "text": "sizeof(y)", "parent": 61, "children": [65], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 22}}, {"id": 65, "type": "parenthesized_expression", "text": "(y)", "parent": 64, "children": [66], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 22}}, {"id": 66, "type": "identifier", "text": "y", "parent": 65, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 21}}, {"id": 67, "type": "assignment_expression", "text": "counta=0", "parent": 35, "children": [68, 69, 70], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 10}}, {"id": 68, "type": "identifier", "text": "counta", "parent": 67, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 8}}, {"id": 69, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 9}}, {"id": 70, "type": "number_literal", "text": "0", "parent": 67, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 71, "type": "assignment_expression", "text": "countb=0", "parent": 35, "children": [72, 73, 74], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 10}}, {"id": 72, "type": "identifier", "text": "countb", "parent": 71, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 8}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 9}}, {"id": 74, "type": "number_literal", "text": "0", "parent": 71, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 75, "type": "for_statement", "text": "for(i = 0; i < a; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\tx[input]++;\n\t\t}", "parent": 35, "children": [76, 80, 84], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 16, "column": 3}}, {"id": 76, "type": "assignment_expression", "text": "i = 0", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 11}}, {"id": 77, "type": "identifier", "text": "i", "parent": 76, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 7}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 79, "type": "number_literal", "text": "0", "parent": 76, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 80, "type": "binary_expression", "text": "i < a", "parent": 75, "children": [81, 82, 83], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 18}}, {"id": 81, "type": "identifier", "text": "i", "parent": 80, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 82, "type": "<", "text": "<", "parent": 80, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 83, "type": "identifier", "text": "a", "parent": 80, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 18}}, {"id": 84, "type": "update_expression", "text": "i++", "parent": 75, "children": [85, 86], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 23}}, {"id": 85, "type": "identifier", "text": "i", "parent": 84, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 21}}, {"id": 86, "type": "++", "text": "++", "parent": 84, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 23}}, {"id": 87, "type": "call_expression", "text": "scanf(\"%d\", &input)", "parent": 75, "children": [88, 89], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 22}}, {"id": 88, "type": "identifier", "text": "scanf", "parent": 87, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 8}}, {"id": 89, "type": "argument_list", "text": "(\"%d\", &input)", "parent": 87, "children": [90, 91], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 22}}, {"id": 90, "type": "string_literal", "text": "\"%d\"", "parent": 89, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 13}}, {"id": 91, "type": "pointer_expression", "text": "&input", "parent": 89, "children": [92], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 21}}, {"id": 92, "type": "identifier", "text": "input", "parent": 91, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 21}}, {"id": 93, "type": "update_expression", "text": "x[input]++", "parent": 75, "children": [94, 97], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 13}}, {"id": 94, "type": "subscript_expression", "text": "x[input]", "parent": 93, "children": [95, 96], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 11}}, {"id": 95, "type": "identifier", "text": "x", "parent": 94, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 4}}, {"id": 96, "type": "identifier", "text": "input", "parent": 94, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 10}}, {"id": 97, "type": "++", "text": "++", "parent": 93, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 13}}, {"id": 98, "type": "for_statement", "text": "for(i = 0; i < b; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\ty[input]++;\n\t\t}", "parent": 35, "children": [99, 103, 107], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 20, "column": 3}}, {"id": 99, "type": "assignment_expression", "text": "i = 0", "parent": 98, "children": [100, 101, 102], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 11}}, {"id": 100, "type": "identifier", "text": "i", "parent": 99, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 7}}, {"id": 101, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 102, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 103, "type": "binary_expression", "text": "i < b", "parent": 98, "children": [104, 105, 106], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 18}}, {"id": 104, "type": "identifier", "text": "i", "parent": 103, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 14}}, {"id": 105, "type": "<", "text": "<", "parent": 103, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 16}}, {"id": 106, "type": "identifier", "text": "b", "parent": 103, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 18}}, {"id": 107, "type": "update_expression", "text": "i++", "parent": 98, "children": [108, 109], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 23}}, {"id": 108, "type": "identifier", "text": "i", "parent": 107, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 109, "type": "++", "text": "++", "parent": 107, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 23}}, {"id": 110, "type": "call_expression", "text": "scanf(\"%d\", &input)", "parent": 98, "children": [111, 112], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 22}}, {"id": 111, "type": "identifier", "text": "scanf", "parent": 110, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 8}}, {"id": 112, "type": "argument_list", "text": "(\"%d\", &input)", "parent": 110, "children": [113, 114], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 22}}, {"id": 113, "type": "string_literal", "text": "\"%d\"", "parent": 112, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 114, "type": "pointer_expression", "text": "&input", "parent": 112, "children": [115], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 21}}, {"id": 115, "type": "identifier", "text": "input", "parent": 114, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 21}}, {"id": 116, "type": "update_expression", "text": "y[input]++", "parent": 98, "children": [117, 120], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 13}}, {"id": 117, "type": "subscript_expression", "text": "y[input]", "parent": 116, "children": [118, 119], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 11}}, {"id": 118, "type": "identifier", "text": "y", "parent": 117, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 4}}, {"id": 119, "type": "identifier", "text": "input", "parent": 117, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 10}}, {"id": 120, "type": "++", "text": "++", "parent": 116, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 13}}, {"id": 121, "type": "for_statement", "text": "for(i = 1; i <= 100000; i++){\n\t\t\tif(x[i] && !y[i]) counta++;\n\t\t\tif(y[i] && !x[i]) countb++;\n\t\t}", "parent": 35, "children": [122, 126, 130], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 122, "type": "assignment_expression", "text": "i = 1", "parent": 121, "children": [123, 124, 125], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 11}}, {"id": 123, "type": "identifier", "text": "i", "parent": 122, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 124, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 125, "type": "number_literal", "text": "1", "parent": 122, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 126, "type": "binary_expression", "text": "i <= 100000", "parent": 121, "children": [127, 128, 129], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 24}}, {"id": 127, "type": "identifier", "text": "i", "parent": 126, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 14}}, {"id": 128, "type": "<=", "text": "<=", "parent": 126, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 17}}, {"id": 129, "type": "number_literal", "text": "100000", "parent": 126, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 24}}, {"id": 130, "type": "update_expression", "text": "i++", "parent": 121, "children": [131, 132], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 29}}, {"id": 131, "type": "identifier", "text": "i", "parent": 130, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 27}}, {"id": 132, "type": "++", "text": "++", "parent": 130, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 29}}, {"id": 133, "type": "if_statement", "text": "if(x[i] && !y[i]) counta++;", "parent": 121, "children": [134], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 30}}, {"id": 134, "type": "parenthesized_expression", "text": "(x[i] && !y[i])", "parent": 133, "children": [135], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 20}}, {"id": 135, "type": "binary_expression", "text": "x[i] && !y[i]", "parent": 134, "children": [136, 139, 140], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 19}}, {"id": 136, "type": "subscript_expression", "text": "x[i]", "parent": 135, "children": [137, 138], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 10}}, {"id": 137, "type": "identifier", "text": "x", "parent": 136, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 138, "type": "identifier", "text": "i", "parent": 136, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 139, "type": "&&", "text": "&&", "parent": 135, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 13}}, {"id": 140, "type": "unary_expression", "text": "!y[i]", "parent": 135, "children": [141, 142], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 19}}, {"id": 141, "type": "!", "text": "!", "parent": 140, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 15}}, {"id": 142, "type": "subscript_expression", "text": "y[i]", "parent": 140, "children": [143, 144], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 19}}, {"id": 143, "type": "identifier", "text": "y", "parent": 142, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 144, "type": "identifier", "text": "i", "parent": 142, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 145, "type": "update_expression", "text": "counta++", "parent": 133, "children": [146, 147], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 29}}, {"id": 146, "type": "identifier", "text": "counta", "parent": 145, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 27}}, {"id": 147, "type": "++", "text": "++", "parent": 145, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 29}}, {"id": 148, "type": "if_statement", "text": "if(y[i] && !x[i]) countb++;", "parent": 121, "children": [149], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 30}}, {"id": 149, "type": "parenthesized_expression", "text": "(y[i] && !x[i])", "parent": 148, "children": [150], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 20}}, {"id": 150, "type": "binary_expression", "text": "y[i] && !x[i]", "parent": 149, "children": [151, 154, 155], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 19}}, {"id": 151, "type": "subscript_expression", "text": "y[i]", "parent": 150, "children": [152, 153], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 10}}, {"id": 152, "type": "identifier", "text": "y", "parent": 151, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 7}}, {"id": 153, "type": "identifier", "text": "i", "parent": 151, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 154, "type": "&&", "text": "&&", "parent": 150, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 13}}, {"id": 155, "type": "unary_expression", "text": "!x[i]", "parent": 150, "children": [156, 157], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 19}}, {"id": 156, "type": "!", "text": "!", "parent": 155, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 157, "type": "subscript_expression", "text": "x[i]", "parent": 155, "children": [158, 159], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 19}}, {"id": 158, "type": "identifier", "text": "x", "parent": 157, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 16}}, {"id": 159, "type": "identifier", "text": "i", "parent": 157, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 160, "type": "update_expression", "text": "countb++", "parent": 148, "children": [161, 162], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 29}}, {"id": 161, "type": "identifier", "text": "countb", "parent": 160, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 27}}, {"id": 162, "type": "++", "text": "++", "parent": 160, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 29}}, {"id": 163, "type": "if_statement", "text": "if(counta <= countb)\n\t\t\tprintf(\"%d\\n\", counta);\n\t\telse\n\t\t\tprintf(\"%d\\n\", countb);", "parent": 35, "children": [164, 175], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 29, "column": 26}}, {"id": 164, "type": "parenthesized_expression", "text": "(counta <= countb)", "parent": 163, "children": [165], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 22}}, {"id": 165, "type": "binary_expression", "text": "counta <= countb", "parent": 164, "children": [166, 167, 168], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 21}}, {"id": 166, "type": "identifier", "text": "counta", "parent": 165, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 11}}, {"id": 167, "type": "<=", "text": "<=", "parent": 165, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 14}}, {"id": 168, "type": "identifier", "text": "countb", "parent": 165, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 21}}, {"id": 169, "type": "call_expression", "text": "printf(\"%d\\n\", counta)", "parent": 163, "children": [170, 171], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 25}}, {"id": 170, "type": "identifier", "text": "printf", "parent": 169, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 9}}, {"id": 171, "type": "argument_list", "text": "(\"%d\\n\", counta)", "parent": 169, "children": [172, 174], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 25}}, {"id": 172, "type": "string_literal", "text": "\"%d\\n\"", "parent": 171, "children": [173], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 16}}, {"id": 173, "type": "escape_sequence", "text": "\\n", "parent": 172, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 15}}, {"id": 174, "type": "identifier", "text": "counta", "parent": 171, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 24}}, {"id": 175, "type": "else_clause", "text": "else\n\t\t\tprintf(\"%d\\n\", countb);", "parent": 163, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 29, "column": 26}}, {"id": 176, "type": "call_expression", "text": "printf(\"%d\\n\", countb)", "parent": 175, "children": [177, 178], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 25}}, {"id": 177, "type": "identifier", "text": "printf", "parent": 176, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 9}}, {"id": 178, "type": "argument_list", "text": "(\"%d\\n\", countb)", "parent": 176, "children": [179, 181], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 25}}, {"id": 179, "type": "string_literal", "text": "\"%d\\n\"", "parent": 178, "children": [180], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 16}}, {"id": 180, "type": "escape_sequence", "text": "\\n", "parent": 179, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 15}}, {"id": 181, "type": "identifier", "text": "countb", "parent": 178, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 24}}]}, "node_categories": {"declarations": {"functions": [22, 24], "variables": [6, 14, 27], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [10, 18, 36, 37, 38, 39, 43, 45, 51, 56, 57, 59, 64, 65, 80, 84, 87, 91, 93, 94, 103, 107, 110, 114, 116, 117, 126, 130, 134, 135, 136, 140, 142, 145, 149, 150, 151, 155, 157, 160, 164, 165, 169, 176], "assignments": [67, 71, 76, 99, 122], "loops": [35, 75, 98, 121], "conditionals": [9, 17, 25, 29, 30, 31, 32, 33, 34, 40, 44, 46, 48, 50, 52, 54, 58, 60, 62, 66, 68, 72, 77, 81, 83, 85, 88, 92, 95, 96, 100, 104, 106, 108, 111, 115, 118, 119, 123, 127, 131, 133, 137, 138, 143, 144, 146, 148, 152, 153, 158, 159, 161, 163, 166, 168, 170, 174, 177, 181], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 11, 13, 19, 21, 42, 55, 63, 70, 74, 79, 90, 102, 113, 125, 129, 172, 179], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "main", "text_snippet": "int main(){\n\tint a, b, i, counta, countb, input;\n\twhile(scanf(\"%d %d\", &a, &b) && a && b){\n\t\tmemset("}, {"node_id": 24, "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 <string.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <string.h>\n\nint x[100000+10];\nint y[100000+10];\n\nint main(){\n\tint a, b, i, counta, countb, input;\n\twhile(scanf(\"%d %d\", &a, &b) && a && b){\n\t\tmemset(x,0,sizeof(x));\n\t\tmemset(y,0,sizeof(y));\n\t\tcounta=0;\n\t\tcountb=0;\n\t\tfor(i = 0; i < a; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\tx[input]++;\n\t\t}\n\t\tfor(i = 0; i < b; i++){\n\t\t\tscanf(\"%d\", &input);\n\t\t\ty[input]++;\n\t\t}\n\n\t\tfor(i = 1; i <= 100000; i++){\n\t\t\tif(x[i] && !y[i]) counta++;\n\t\t\tif(y[i] && !x[i]) countb++;\n\t\t}\n\t\tif(counta <= countb)\n\t\t\tprintf(\"%d\\n\", counta);\n\t\telse\n\t\t\tprintf(\"%d\\n\", countb);\n\t}\n}\n\n"}
80,819
c
/************************************************************************** * This file is part of PVIO * * Copyright (c) ZJU-SenseTime Joint Lab of 3D Vision. 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 PVIO_TRACK_H #define PVIO_TRACK_H #include <pvio/common.h> #include <pvio/estimation/state.h> #include <pvio/map/frame.h> #include <pvio/map/map.h> #include <pvio/utility/identifiable.h> namespace pvio { enum class TrackFlag { TF_VALID = 0, TF_TRIANGULATED, TF_PLANE, FLAG_NUM }; class Track : public Flagged<TrackFlag>, public Identifiable<Track> { friend class Map; size_t map_index; Map *map; Track(); public: Track(const Map::construct_by_map_t &) : Track() { } virtual ~Track(); size_t keypoint_num() const { return keypoint_refs.size(); } std::pair<Frame *, size_t> first_keypoint() const { return *keypoint_refs.begin(); } std::pair<Frame *, size_t> last_keypoint() const { return *keypoint_refs.rbegin(); } Frame *first_frame() const { return keypoint_refs.begin()->first; } Frame *last_frame() const { return keypoint_refs.rbegin()->first; } const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const { return keypoint_refs; } bool has_keypoint(Frame *frame) const { return keypoint_refs.count(frame) > 0; } size_t get_keypoint_index(Frame *frame) const { if (has_keypoint(frame)) { return keypoint_refs.at(frame); } else { return nil(); } } const vector<2> &get_keypoint(Frame *frame) const; void add_keypoint(Frame *frame, size_t keypoint_index); void remove_keypoint(Frame *frame, bool suicide_if_empty = true); bool triangulate(); bool try_triangulate(vector<3> &p); double compute_parallax() const; double compute_baseline() const; vector<3> get_landmark_point() const; void set_landmark_point(const vector<3> &p); std::unique_lock<std::mutex> lock() const { return map->lock(); } LandmarkState landmark; size_t life; private: std::map<Frame *, size_t, compare<Frame *>> keypoint_refs; }; } // namespace pvio #endif // PVIO_TRACK_H
31.48
88
(translation_unit) "/**************************************************************************\n* This file is part of PVIO\n*\n* Copyright (c) ZJU-SenseTime Joint Lab of 3D Vision. 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#ifndef PVIO_TRACK_H\n#define PVIO_TRACK_H\n\n#include <pvio/common.h>\n#include <pvio/estimation/state.h>\n#include <pvio/map/frame.h>\n#include <pvio/map/map.h>\n#include <pvio/utility/identifiable.h>\n\nnamespace pvio {\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n};\n\n} // namespace pvio\n\n#endif // PVIO_TRACK_H\n" (comment) "/**************************************************************************\n* This file is part of PVIO\n*\n* Copyright (c) ZJU-SenseTime Joint Lab of 3D Vision. 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 PVIO_TRACK_H\n#define PVIO_TRACK_H\n\n#include <pvio/common.h>\n#include <pvio/estimation/state.h>\n#include <pvio/map/frame.h>\n#include <pvio/map/map.h>\n#include <pvio/utility/identifiable.h>\n\nnamespace pvio {\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n};\n\n} // namespace pvio\n\n#endif" (#ifndef) "#ifndef" (identifier) "PVIO_TRACK_H" (preproc_def) "#define PVIO_TRACK_H\n" (#define) "#define" (identifier) "PVIO_TRACK_H" (preproc_include) "#include <pvio/common.h>\n" (#include) "#include" (system_lib_string) "<pvio/common.h>" (preproc_include) "#include <pvio/estimation/state.h>\n" (#include) "#include" (system_lib_string) "<pvio/estimation/state.h>" (preproc_include) "#include <pvio/map/frame.h>\n" (#include) "#include" (system_lib_string) "<pvio/map/frame.h>" (preproc_include) "#include <pvio/map/map.h>\n" (#include) "#include" (system_lib_string) "<pvio/map/map.h>" (preproc_include) "#include <pvio/utility/identifiable.h>\n" (#include) "#include" (system_lib_string) "<pvio/utility/identifiable.h>" (function_definition) "namespace pvio {\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n};\n\n}" (type_identifier) "namespace" (identifier) "pvio" (compound_statement) "{\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n};\n\n}" ({) "{" (function_definition) "enum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n}" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "TrackFlag" (compound_statement) "{\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n}" ({) "{" (expression_statement) "TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};" (comma_expression) "TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM" (assignment_expression) "TF_VALID = 0" (identifier) "TF_VALID" (=) "=" (number_literal) "0" (,) "," (comma_expression) "TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM" (identifier) "TF_TRIANGULATED" (,) "," (comma_expression) "TF_PLANE,\n FLAG_NUM" (identifier) "TF_PLANE" (,) "," (identifier) "FLAG_NUM" (ERROR) "}" (}) "}" (;) ";" (declaration) "class Track : public" (type_identifier) "class" (ERROR) "Track :" (identifier) "Track" (:) ":" (identifier) "public" (;) "" (ERROR) "Flagged<TrackFlag>, public Identifiable<Track>" (binary_expression) "Flagged<TrackFlag>, public Identifiable<Track" (binary_expression) "Flagged<TrackFlag>, public Identifiable" (binary_expression) "Flagged<TrackFlag" (identifier) "Flagged" (<) "<" (identifier) "TrackFlag" (>) ">" (ERROR) ", public" (,) "," (identifier) "public" (identifier) "Identifiable" (<) "<" (identifier) "Track" (>) ">" (compound_statement) "{\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }" ({) "{" (declaration) "friend class Map;" (type_identifier) "friend" (identifier) "class" (ERROR) "Map" (identifier) "Map" (;) ";" (declaration) "size_t map_index;" (primitive_type) "size_t" (identifier) "map_index" (;) ";" (declaration) "Map *map;" (type_identifier) "Map" (pointer_declarator) "*map" (*) "*" (identifier) "map" (;) ";" (expression_statement) "Track();" (call_expression) "Track()" (identifier) "Track" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }" (statement_identifier) "public" (:) ":" (labeled_statement) "Track(const Map::construct_by_map_t &) :\n Track() {\n }" (statement_identifier) "Track" (ERROR) "(const Map::construct_by_map_t &)" (() "(" (type_descriptor) "const Map" (type_qualifier) "const" (const) "const" (type_identifier) "Map" (:) ":" (:) ":" (identifier) "construct_by_map_t" (&) "&" ()) ")" (:) ":" (ERROR) "Track()" (call_expression) "Track()" (identifier) "Track" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (declaration) "virtual ~Track();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Track()" (identifier) "Track" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "size_t keypoint_num() const" (primitive_type) "size_t" (function_declarator) "keypoint_num()" (identifier) "keypoint_num" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return keypoint_refs.size();\n }" ({) "{" (return_statement) "return keypoint_refs.size();" (return) "return" (call_expression) "keypoint_refs.size()" (field_expression) "keypoint_refs.size" (identifier) "keypoint_refs" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (labeled_statement) "std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }" (statement_identifier) "std" (:) ":" (ERROR) ":pair<Frame *, size_t> first_keypoint() const" (:) ":" (comma_expression) "pair<Frame *, size_t> first_keypoint()" (binary_expression) "pair<Frame" (identifier) "pair" (<) "<" (identifier) "Frame" (ERROR) "*" (*) "*" (,) "," (binary_expression) "size_t> first_keypoint()" (identifier) "size_t" (>) ">" (call_expression) "first_keypoint()" (identifier) "first_keypoint" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return *keypoint_refs.begin();\n }" ({) "{" (return_statement) "return *keypoint_refs.begin();" (return) "return" (pointer_expression) "*keypoint_refs.begin()" (*) "*" (call_expression) "keypoint_refs.begin()" (field_expression) "keypoint_refs.begin" (identifier) "keypoint_refs" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (labeled_statement) "std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }" (statement_identifier) "std" (:) ":" (ERROR) ":pair<Frame *, size_t> last_keypoint() const" (:) ":" (comma_expression) "pair<Frame *, size_t> last_keypoint()" (binary_expression) "pair<Frame" (identifier) "pair" (<) "<" (identifier) "Frame" (ERROR) "*" (*) "*" (,) "," (binary_expression) "size_t> last_keypoint()" (identifier) "size_t" (>) ">" (call_expression) "last_keypoint()" (identifier) "last_keypoint" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return *keypoint_refs.rbegin();\n }" ({) "{" (return_statement) "return *keypoint_refs.rbegin();" (return) "return" (pointer_expression) "*keypoint_refs.rbegin()" (*) "*" (call_expression) "keypoint_refs.rbegin()" (field_expression) "keypoint_refs.rbegin" (identifier) "keypoint_refs" (.) "." (field_identifier) "rbegin" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }" (type_identifier) "Frame" (pointer_declarator) "*first_frame() const" (*) "*" (function_declarator) "first_frame() const" (identifier) "first_frame" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return keypoint_refs.begin()->first;\n }" ({) "{" (return_statement) "return keypoint_refs.begin()->first;" (return) "return" (field_expression) "keypoint_refs.begin()->first" (call_expression) "keypoint_refs.begin()" (field_expression) "keypoint_refs.begin" (identifier) "keypoint_refs" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "first" (;) ";" (}) "}" (function_definition) "Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }" (type_identifier) "Frame" (pointer_declarator) "*last_frame() const" (*) "*" (function_declarator) "last_frame() const" (identifier) "last_frame" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return keypoint_refs.rbegin()->first;\n }" ({) "{" (return_statement) "return keypoint_refs.rbegin()->first;" (return) "return" (field_expression) "keypoint_refs.rbegin()->first" (call_expression) "keypoint_refs.rbegin()" (field_expression) "keypoint_refs.rbegin" (identifier) "keypoint_refs" (.) "." (field_identifier) "rbegin" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "first" (;) ";" (}) "}" (declaration) "const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::map<" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "Frame" (ERROR) "*" (*) "*" (,) "," (identifier) "size_t" (,) "," (ERROR) "compare<Frame *>> &keypoint_map() const {\n return" (identifier) "compare" (<) "<" (identifier) "Frame" (*) "*" (>>) ">>" (&) "&" (function_declarator) "keypoint_map() const" (identifier) "keypoint_map" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "keypoint_refs" (;) ";" (}) "}" (function_definition) "bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }" (primitive_type) "bool" (function_declarator) "has_keypoint(Frame *frame) const" (identifier) "has_keypoint" (parameter_list) "(Frame *frame)" (() "(" (parameter_declaration) "Frame *frame" (type_identifier) "Frame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" ()) ")" (identifier) "const" (compound_statement) "{\n return keypoint_refs.count(frame) > 0;\n }" ({) "{" (return_statement) "return keypoint_refs.count(frame) > 0;" (return) "return" (binary_expression) "keypoint_refs.count(frame) > 0" (call_expression) "keypoint_refs.count(frame)" (field_expression) "keypoint_refs.count" (identifier) "keypoint_refs" (.) "." (field_identifier) "count" (argument_list) "(frame)" (() "(" (identifier) "frame" ()) ")" (>) ">" (number_literal) "0" (;) ";" (}) "}" (function_definition) "size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }" (primitive_type) "size_t" (function_declarator) "get_keypoint_index(Frame *frame) const" (identifier) "get_keypoint_index" (parameter_list) "(Frame *frame)" (() "(" (parameter_declaration) "Frame *frame" (type_identifier) "Frame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" ()) ")" (identifier) "const" (compound_statement) "{\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }" ({) "{" (if_statement) "if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }" (if) "if" (parenthesized_expression) "(has_keypoint(frame))" (() "(" (call_expression) "has_keypoint(frame)" (identifier) "has_keypoint" (argument_list) "(frame)" (() "(" (identifier) "frame" ()) ")" ()) ")" (compound_statement) "{\n return keypoint_refs.at(frame);\n }" ({) "{" (return_statement) "return keypoint_refs.at(frame);" (return) "return" (call_expression) "keypoint_refs.at(frame)" (field_expression) "keypoint_refs.at" (identifier) "keypoint_refs" (.) "." (field_identifier) "at" (argument_list) "(frame)" (() "(" (identifier) "frame" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n return nil();\n }" (else) "else" (compound_statement) "{\n return nil();\n }" ({) "{" (return_statement) "return nil();" (return) "return" (call_expression) "nil()" (identifier) "nil" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (ERROR) "const vector<" (type_qualifier) "const" (const) "const" (type_identifier) "vector" (<) "<" (expression_statement) "2> &get_keypoint(Frame *frame) const;" (binary_expression) "2> &get_keypoint(Frame *frame)" (number_literal) "2" (>) ">" (pointer_expression) "&get_keypoint(Frame *frame)" (&) "&" (call_expression) "get_keypoint(Frame *frame)" (identifier) "get_keypoint" (argument_list) "(Frame *frame)" (() "(" (binary_expression) "Frame *frame" (identifier) "Frame" (*) "*" (identifier) "frame" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (declaration) "void add_keypoint(Frame *frame, size_t keypoint_index);" (primitive_type) "void" (function_declarator) "add_keypoint(Frame *frame, size_t keypoint_index)" (identifier) "add_keypoint" (parameter_list) "(Frame *frame, size_t keypoint_index)" (() "(" (parameter_declaration) "Frame *frame" (type_identifier) "Frame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" (,) "," (parameter_declaration) "size_t keypoint_index" (primitive_type) "size_t" (identifier) "keypoint_index" ()) ")" (;) ";" (declaration) "void remove_keypoint(Frame *frame, bool suicide_if_empty = true);" (primitive_type) "void" (init_declarator) "remove_keypoint(Frame *frame, bool suicide_if_empty = true" (function_declarator) "remove_keypoint(Frame *frame, bool suicide_if_empty" (identifier) "remove_keypoint" (parameter_list) "(Frame *frame, bool suicide_if_empty" (() "(" (parameter_declaration) "Frame *frame" (type_identifier) "Frame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" (,) "," (parameter_declaration) "bool suicide_if_empty" (primitive_type) "bool" (identifier) "suicide_if_empty" ()) "" (=) "=" (true) "true" (ERROR) ")" ()) ")" (;) ";" (declaration) "bool triangulate();" (primitive_type) "bool" (function_declarator) "triangulate()" (identifier) "triangulate" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool try_triangulate(vector<3> &p);" (primitive_type) "bool" (function_declarator) "try_triangulate(vector<3> &p)" (identifier) "try_triangulate" (parameter_list) "(vector<3> &p)" (() "(" (parameter_declaration) "vector<3> &p" (type_identifier) "vector" (ERROR) "<3> &" (<) "<" (number_literal) "3" (>) ">" (&) "&" (identifier) "p" ()) ")" (;) ";" (function_definition) "double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }" (primitive_type) "double" (function_declarator) "compute_parallax()" (identifier) "compute_parallax" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "double" (ERROR) "compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void" (function_declarator) "compute_baseline() const" (identifier) "compute_baseline" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "vector" (<) "<" (number_literal) "3" (>) ">" (function_declarator) "get_landmark_point() const" (identifier) "get_landmark_point" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "set_landmark_point(const vector<3> &p)" (identifier) "set_landmark_point" (parameter_list) "(const vector<3> &p)" (() "(" (parameter_declaration) "const vector<3> &p" (type_qualifier) "const" (const) "const" (type_identifier) "vector" (ERROR) "<3> &" (<) "<" (number_literal) "3" (>) ">" (&) "&" (identifier) "p" ()) ")" (;) ";" (ERROR) "std::unique_lock<std::mutex> lock() const" (type_identifier) "std" (ERROR) "::unique_lock<std::mutex>" (:) ":" (:) ":" (identifier) "unique_lock" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "mutex" (>) ">" (function_declarator) "lock() const" (identifier) "lock" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n return map->lock();\n }" ({) "{" (return_statement) "return map->lock();" (return) "return" (call_expression) "map->lock()" (field_expression) "map->lock" (identifier) "map" (->) "->" (field_identifier) "lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (declaration) "LandmarkState landmark;" (type_identifier) "LandmarkState" (identifier) "landmark" (;) ";" (declaration) "size_t life;" (primitive_type) "size_t" (identifier) "life" (;) ";" (labeled_statement) "private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "map<Frame *, size_t, compare<Frame *>> keypoint_refs;" (comma_expression) "map<Frame *, size_t, compare<Frame *>> keypoint_refs" (binary_expression) "map<Frame" (identifier) "map" (<) "<" (identifier) "Frame" (ERROR) "*" (*) "*" (,) "," (comma_expression) "size_t, compare<Frame *>> keypoint_refs" (identifier) "size_t" (,) "," (binary_expression) "compare<Frame *>> keypoint_refs" (identifier) "compare" (<) "<" (binary_expression) "Frame *>> keypoint_refs" (identifier) "Frame" (*) "*" (ERROR) ">>" (>>) ">>" (identifier) "keypoint_refs" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace pvio" (#endif) "#endif" (comment) "// PVIO_TRACK_H"
619
28
{"language": "c", "success": true, "metadata": {"lines": 88, "avg_line_length": 31.48, "nodes": 375, "errors": 0, "source_hash": "54c8b84f72b29c5d1f6786896e75301de8cd8d3b83ee139a82209f7f43e52070", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PVIO_TRACK_H\n#define PVIO_TRACK_H\n\n#include <pvio/common.h>\n#include <pvio/estimation/state.h>\n#include <pvio/map/frame.h>\n#include <pvio/map/map.h>\n#include <pvio/utility/identifiable.h>\n\nnamespace pvio {\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n};\n\n} // namespace pvio\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 374], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 2, "type": "identifier", "text": "PVIO_TRACK_H", "parent": 0, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define PVIO_TRACK_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 5, "type": "identifier", "text": "PVIO_TRACK_H", "parent": 3, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include <pvio/common.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<pvio/common.h>", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include <pvio/estimation/state.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<pvio/estimation/state.h>", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 34}}, {"id": 12, "type": "preproc_include", "text": "#include <pvio/map/frame.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<pvio/map/frame.h>", "parent": 12, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 27}}, {"id": 15, "type": "preproc_include", "text": "#include <pvio/map/map.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<pvio/map/map.h>", "parent": 15, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 25}}, {"id": 18, "type": "preproc_include", "text": "#include <pvio/utility/identifiable.h>\n", "parent": 0, "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": "<pvio/utility/identifiable.h>", "parent": 18, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 38}}, {"id": 21, "type": "function_definition", "text": "namespace pvio {\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n};\n\n}", "parent": 0, "children": [22, 23], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 9}}, {"id": 23, "type": "identifier", "text": "pvio", "parent": 21, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 14}}, {"id": 24, "type": "function_definition", "text": "enum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n}", "parent": 21, "children": [25, 27], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 25, "type": "enum_specifier", "text": "enum class", "parent": 24, "children": [26], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 10}}, {"id": 26, "type": "enum", "text": "enum", "parent": 25, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 4}}, {"id": 27, "type": "identifier", "text": "TrackFlag", "parent": 24, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 20}}, {"id": 28, "type": "comma_expression", "text": "TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM", "parent": 24, "children": [29, 33], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 32, "column": 12}}, {"id": 29, "type": "assignment_expression", "text": "TF_VALID = 0", "parent": 28, "children": [30, 31, 32], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 16}}, {"id": 30, "type": "identifier", "text": "TF_VALID", "parent": 29, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 14}}, {"id": 32, "type": "number_literal", "text": "0", "parent": 29, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 33, "type": "comma_expression", "text": "TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM", "parent": 28, "children": [34, 35], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 32, "column": 12}}, {"id": 34, "type": "identifier", "text": "TF_TRIANGULATED", "parent": 33, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 19}}, {"id": 35, "type": "comma_expression", "text": "TF_PLANE,\n FLAG_NUM", "parent": 33, "children": [36, 37], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 32, "column": 12}}, {"id": 36, "type": "identifier", "text": "TF_PLANE", "parent": 35, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 12}}, {"id": 37, "type": "identifier", "text": "FLAG_NUM", "parent": 35, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 12}}, {"id": 38, "type": "declaration", "text": "class Track : public", "parent": 24, "children": [39], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 20}}, {"id": 39, "type": "ERROR", "text": "Track :", "parent": 38, "children": [40], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 13}}, {"id": 40, "type": "identifier", "text": "Track", "parent": 39, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 11}}, {"id": 41, "type": "ERROR", "text": "Flagged<TrackFlag>, public Identifiable<Track>", "parent": 24, "children": [42, 53], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 67}}, {"id": 42, "type": "binary_expression", "text": "Flagged<TrackFlag>, public Identifiable<Track", "parent": 41, "children": [43, 51, 52], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 66}}, {"id": 43, "type": "binary_expression", "text": "Flagged<TrackFlag>, public Identifiable", "parent": 42, "children": [44, 48, 49, 50], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 60}}, {"id": 44, "type": "binary_expression", "text": "Flagged<TrackFlag", "parent": 43, "children": [45, 46, 47], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 38}}, {"id": 45, "type": "identifier", "text": "Flagged", "parent": 44, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 28}}, {"id": 46, "type": "<", "text": "<", "parent": 44, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 29}}, {"id": 47, "type": "identifier", "text": "TrackFlag", "parent": 44, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 38}}, {"id": 48, "type": ">", "text": ">", "parent": 43, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 39}}, {"id": 49, "type": "ERROR", "text": ", public", "parent": 43, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 47}}, {"id": 50, "type": "identifier", "text": "Identifiable", "parent": 43, "children": [], "start_point": {"row": 35, "column": 48}, "end_point": {"row": 35, "column": 60}}, {"id": 51, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 35, "column": 60}, "end_point": {"row": 35, "column": 61}}, {"id": 52, "type": "identifier", "text": "Track", "parent": 42, "children": [], "start_point": {"row": 35, "column": 61}, "end_point": {"row": 35, "column": 66}}, {"id": 53, "type": ">", "text": ">", "parent": 41, "children": [], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 67}}, {"id": 54, "type": "declaration", "text": "friend class Map;", "parent": 24, "children": [55, 56], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 21}}, {"id": 55, "type": "type_identifier", "text": "friend", "parent": 54, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 10}}, {"id": 56, "type": "ERROR", "text": "Map", "parent": 54, "children": [57], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 20}}, {"id": 57, "type": "identifier", "text": "Map", "parent": 56, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 20}}, {"id": 58, "type": "declaration", "text": "size_t map_index;", "parent": 24, "children": [59, 60], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 21}}, {"id": 59, "type": "primitive_type", "text": "size_t", "parent": 58, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 10}}, {"id": 60, "type": "identifier", "text": "map_index", "parent": 58, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 20}}, {"id": 61, "type": "declaration", "text": "Map *map;", "parent": 24, "children": [62, 63], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 13}}, {"id": 62, "type": "type_identifier", "text": "Map", "parent": 61, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 7}}, {"id": 63, "type": "pointer_declarator", "text": "*map", "parent": 61, "children": [64, 65], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 12}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 65, "type": "identifier", "text": "map", "parent": 63, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 12}}, {"id": 66, "type": "call_expression", "text": "Track()", "parent": 24, "children": [67, 68], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 11}}, {"id": 67, "type": "identifier", "text": "Track", "parent": 66, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 9}}, {"id": 68, "type": "argument_list", "text": "()", "parent": 66, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 11}}, {"id": 69, "type": "labeled_statement", "text": "public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }", "parent": 24, "children": [70], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 44, "column": 5}}, {"id": 70, "type": "labeled_statement", "text": "Track(const Map::construct_by_map_t &) :\n Track() {\n }", "parent": 69, "children": [71, 72, 76], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 44, "column": 5}}, {"id": 71, "type": "statement_identifier", "text": "Track", "parent": 70, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 9}}, {"id": 72, "type": "ERROR", "text": "(const Map::construct_by_map_t &)", "parent": 70, "children": [73, 75], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 42}}, {"id": 73, "type": "type_descriptor", "text": "const Map", "parent": 72, "children": [74], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 19}}, {"id": 74, "type": "type_identifier", "text": "Map", "parent": 73, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 19}}, {"id": 75, "type": "identifier", "text": "construct_by_map_t", "parent": 72, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 39}}, {"id": 76, "type": "ERROR", "text": "Track()", "parent": 70, "children": [77], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 15}}, {"id": 77, "type": "call_expression", "text": "Track()", "parent": 76, "children": [78, 79], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 15}}, {"id": 78, "type": "identifier", "text": "Track", "parent": 77, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 13}}, {"id": 79, "type": "argument_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 15}}, {"id": 80, "type": "declaration", "text": "virtual ~Track();", "parent": 24, "children": [81, 82, 84], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 21}}, {"id": 81, "type": "type_identifier", "text": "virtual", "parent": 80, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 11}}, {"id": 82, "type": "ERROR", "text": "~", "parent": 80, "children": [83], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 83, "type": "~", "text": "~", "parent": 82, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 84, "type": "function_declarator", "text": "Track()", "parent": 80, "children": [85, 86], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 20}}, {"id": 85, "type": "identifier", "text": "Track", "parent": 84, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 18}}, {"id": 86, "type": "parameter_list", "text": "()", "parent": 84, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 20}}, {"id": 87, "type": "ERROR", "text": "size_t keypoint_num() const", "parent": 24, "children": [88, 89], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 31}}, {"id": 88, "type": "primitive_type", "text": "size_t", "parent": 87, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 10}}, {"id": 89, "type": "function_declarator", "text": "keypoint_num()", "parent": 87, "children": [90, 91], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 25}}, {"id": 90, "type": "identifier", "text": "keypoint_num", "parent": 89, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 23}}, {"id": 91, "type": "parameter_list", "text": "()", "parent": 89, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 25}}, {"id": 92, "type": "return_statement", "text": "return keypoint_refs.size();", "parent": 24, "children": [93], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 36}}, {"id": 93, "type": "call_expression", "text": "keypoint_refs.size()", "parent": 92, "children": [94, 97], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 35}}, {"id": 94, "type": "field_expression", "text": "keypoint_refs.size", "parent": 93, "children": [95, 96], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 33}}, {"id": 95, "type": "identifier", "text": "keypoint_refs", "parent": 94, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 28}}, {"id": 96, "type": "field_identifier", "text": "size", "parent": 94, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 33}}, {"id": 97, "type": "argument_list", "text": "()", "parent": 93, "children": [], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 35}}, {"id": 98, "type": "labeled_statement", "text": "std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }", "parent": 24, "children": [99, 100], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 54, "column": 5}}, {"id": 99, "type": "statement_identifier", "text": "std", "parent": 98, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 7}}, {"id": 100, "type": "ERROR", "text": ":pair<Frame *, size_t> first_keypoint() const", "parent": 98, "children": [101], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 53}}, {"id": 101, "type": "comma_expression", "text": "pair<Frame *, size_t> first_keypoint()", "parent": 100, "children": [102, 106, 108], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 47}}, {"id": 102, "type": "binary_expression", "text": "pair<Frame", "parent": 101, "children": [103, 104, 105], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 19}}, {"id": 103, "type": "identifier", "text": "pair", "parent": 102, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 13}}, {"id": 104, "type": "<", "text": "<", "parent": 102, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 14}}, {"id": 105, "type": "identifier", "text": "Frame", "parent": 102, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 19}}, {"id": 106, "type": "ERROR", "text": "*", "parent": 101, "children": [107], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 108, "type": "binary_expression", "text": "size_t> first_keypoint()", "parent": 101, "children": [109, 110, 111], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 47}}, {"id": 109, "type": "identifier", "text": "size_t", "parent": 108, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 29}}, {"id": 110, "type": ">", "text": ">", "parent": 108, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 30}}, {"id": 111, "type": "call_expression", "text": "first_keypoint()", "parent": 108, "children": [112, 113], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 47}}, {"id": 112, "type": "identifier", "text": "first_keypoint", "parent": 111, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 45}}, {"id": 113, "type": "argument_list", "text": "()", "parent": 111, "children": [], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 47}}, {"id": 114, "type": "return_statement", "text": "return *keypoint_refs.begin();", "parent": 98, "children": [115], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 38}}, {"id": 115, "type": "pointer_expression", "text": "*keypoint_refs.begin()", "parent": 114, "children": [116, 117], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 37}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 117, "type": "call_expression", "text": "keypoint_refs.begin()", "parent": 115, "children": [118, 120], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 37}}, {"id": 118, "type": "field_expression", "text": "keypoint_refs.begin", "parent": 117, "children": [119], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 35}}, {"id": 119, "type": "identifier", "text": "keypoint_refs", "parent": 118, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 29}}, {"id": 120, "type": "argument_list", "text": "()", "parent": 117, "children": [], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 37}}, {"id": 121, "type": "labeled_statement", "text": "std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }", "parent": 24, "children": [122, 123], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 58, "column": 5}}, {"id": 122, "type": "statement_identifier", "text": "std", "parent": 121, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 123, "type": "ERROR", "text": ":pair<Frame *, size_t> last_keypoint() const", "parent": 121, "children": [124], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 52}}, {"id": 124, "type": "comma_expression", "text": "pair<Frame *, size_t> last_keypoint()", "parent": 123, "children": [125, 129, 131], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 46}}, {"id": 125, "type": "binary_expression", "text": "pair<Frame", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 19}}, {"id": 126, "type": "identifier", "text": "pair", "parent": 125, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 13}}, {"id": 127, "type": "<", "text": "<", "parent": 125, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 14}}, {"id": 128, "type": "identifier", "text": "Frame", "parent": 125, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 19}}, {"id": 129, "type": "ERROR", "text": "*", "parent": 124, "children": [130], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 131, "type": "binary_expression", "text": "size_t> last_keypoint()", "parent": 124, "children": [132, 133, 134], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 46}}, {"id": 132, "type": "identifier", "text": "size_t", "parent": 131, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 29}}, {"id": 133, "type": ">", "text": ">", "parent": 131, "children": [], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 30}}, {"id": 134, "type": "call_expression", "text": "last_keypoint()", "parent": 131, "children": [135, 136], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 46}}, {"id": 135, "type": "identifier", "text": "last_keypoint", "parent": 134, "children": [], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 44}}, {"id": 136, "type": "argument_list", "text": "()", "parent": 134, "children": [], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 46}}, {"id": 137, "type": "return_statement", "text": "return *keypoint_refs.rbegin();", "parent": 121, "children": [138], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 39}}, {"id": 138, "type": "pointer_expression", "text": "*keypoint_refs.rbegin()", "parent": 137, "children": [139, 140], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 38}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 140, "type": "call_expression", "text": "keypoint_refs.rbegin()", "parent": 138, "children": [141, 144], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 38}}, {"id": 141, "type": "field_expression", "text": "keypoint_refs.rbegin", "parent": 140, "children": [142, 143], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 36}}, {"id": 142, "type": "identifier", "text": "keypoint_refs", "parent": 141, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 29}}, {"id": 143, "type": "field_identifier", "text": "rbegin", "parent": 141, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 36}}, {"id": 144, "type": "argument_list", "text": "()", "parent": 140, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 38}}, {"id": 145, "type": "function_definition", "text": "Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }", "parent": 24, "children": [146, 147], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 62, "column": 5}}, {"id": 146, "type": "type_identifier", "text": "Frame", "parent": 145, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 9}}, {"id": 147, "type": "pointer_declarator", "text": "*first_frame() const", "parent": 145, "children": [148, 149], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 30}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 11}}, {"id": 149, "type": "function_declarator", "text": "first_frame() const", "parent": 147, "children": [150, 151], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 30}}, {"id": 150, "type": "identifier", "text": "first_frame", "parent": 149, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 22}}, {"id": 151, "type": "parameter_list", "text": "()", "parent": 149, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 24}}, {"id": 152, "type": "return_statement", "text": "return keypoint_refs.begin()->first;", "parent": 145, "children": [153], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 44}}, {"id": 153, "type": "field_expression", "text": "keypoint_refs.begin()->first", "parent": 152, "children": [154, 158], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 43}}, {"id": 154, "type": "call_expression", "text": "keypoint_refs.begin()", "parent": 153, "children": [155, 157], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 36}}, {"id": 155, "type": "field_expression", "text": "keypoint_refs.begin", "parent": 154, "children": [156], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 34}}, {"id": 156, "type": "identifier", "text": "keypoint_refs", "parent": 155, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 28}}, {"id": 157, "type": "argument_list", "text": "()", "parent": 154, "children": [], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 36}}, {"id": 158, "type": "field_identifier", "text": "first", "parent": 153, "children": [], "start_point": {"row": 61, "column": 38}, "end_point": {"row": 61, "column": 43}}, {"id": 159, "type": "function_definition", "text": "Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }", "parent": 24, "children": [160, 161], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 66, "column": 5}}, {"id": 160, "type": "type_identifier", "text": "Frame", "parent": 159, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 9}}, {"id": 161, "type": "pointer_declarator", "text": "*last_frame() const", "parent": 159, "children": [162, 163], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 29}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 163, "type": "function_declarator", "text": "last_frame() const", "parent": 161, "children": [164, 165], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 29}}, {"id": 164, "type": "identifier", "text": "last_frame", "parent": 163, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 21}}, {"id": 165, "type": "parameter_list", "text": "()", "parent": 163, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 23}}, {"id": 166, "type": "return_statement", "text": "return keypoint_refs.rbegin()->first;", "parent": 159, "children": [167], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 45}}, {"id": 167, "type": "field_expression", "text": "keypoint_refs.rbegin()->first", "parent": 166, "children": [168, 173], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 44}}, {"id": 168, "type": "call_expression", "text": "keypoint_refs.rbegin()", "parent": 167, "children": [169, 172], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 37}}, {"id": 169, "type": "field_expression", "text": "keypoint_refs.rbegin", "parent": 168, "children": [170, 171], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 35}}, {"id": 170, "type": "identifier", "text": "keypoint_refs", "parent": 169, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 28}}, {"id": 171, "type": "field_identifier", "text": "rbegin", "parent": 169, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 35}}, {"id": 172, "type": "argument_list", "text": "()", "parent": 168, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 37}}, {"id": 173, "type": "field_identifier", "text": "first", "parent": 167, "children": [], "start_point": {"row": 65, "column": 39}, "end_point": {"row": 65, "column": 44}}, {"id": 174, "type": "declaration", "text": "const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;", "parent": 24, "children": [175, 176, 179, 180, 182, 183, 192], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 69, "column": 29}}, {"id": 175, "type": "type_identifier", "text": "std", "parent": 174, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 13}}, {"id": 176, "type": "ERROR", "text": "::map<", "parent": 174, "children": [177, 178], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 19}}, {"id": 177, "type": "identifier", "text": "map", "parent": 176, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 18}}, {"id": 178, "type": "<", "text": "<", "parent": 176, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 19}}, {"id": 179, "type": "identifier", "text": "Frame", "parent": 174, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 24}}, {"id": 180, "type": "ERROR", "text": "*", "parent": 174, "children": [181], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 26}}, {"id": 181, "type": "*", "text": "*", "parent": 180, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 26}}, {"id": 182, "type": "identifier", "text": "size_t", "parent": 174, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 34}}, {"id": 183, "type": "ERROR", "text": "compare<Frame *>> &keypoint_map() const {\n return", "parent": 174, "children": [184, 185, 186, 187, 188, 189], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 69, "column": 14}}, {"id": 184, "type": "identifier", "text": "compare", "parent": 183, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 43}}, {"id": 185, "type": "<", "text": "<", "parent": 183, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 44}}, {"id": 186, "type": "identifier", "text": "Frame", "parent": 183, "children": [], "start_point": {"row": 68, "column": 44}, "end_point": {"row": 68, "column": 49}}, {"id": 187, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 68, "column": 50}, "end_point": {"row": 68, "column": 51}}, {"id": 188, "type": ">>", "text": ">>", "parent": 183, "children": [], "start_point": {"row": 68, "column": 51}, "end_point": {"row": 68, "column": 53}}, {"id": 189, "type": "function_declarator", "text": "keypoint_map() const", "parent": 183, "children": [190, 191], "start_point": {"row": 68, "column": 55}, "end_point": {"row": 68, "column": 75}}, {"id": 190, "type": "identifier", "text": "keypoint_map", "parent": 189, "children": [], "start_point": {"row": 68, "column": 55}, "end_point": {"row": 68, "column": 67}}, {"id": 191, "type": "parameter_list", "text": "()", "parent": 189, "children": [], "start_point": {"row": 68, "column": 67}, "end_point": {"row": 68, "column": 69}}, {"id": 192, "type": "identifier", "text": "keypoint_refs", "parent": 174, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 28}}, {"id": 193, "type": "function_definition", "text": "bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }", "parent": 24, "children": [194, 195], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 74, "column": 5}}, {"id": 194, "type": "primitive_type", "text": "bool", "parent": 193, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 8}}, {"id": 195, "type": "function_declarator", "text": "has_keypoint(Frame *frame) const", "parent": 193, "children": [196, 197], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 41}}, {"id": 196, "type": "identifier", "text": "has_keypoint", "parent": 195, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 21}}, {"id": 197, "type": "parameter_list", "text": "(Frame *frame)", "parent": 195, "children": [198], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 35}}, {"id": 198, "type": "parameter_declaration", "text": "Frame *frame", "parent": 197, "children": [199, 200], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 34}}, {"id": 199, "type": "type_identifier", "text": "Frame", "parent": 198, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 27}}, {"id": 200, "type": "pointer_declarator", "text": "*frame", "parent": 198, "children": [201, 202], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 34}}, {"id": 201, "type": "*", "text": "*", "parent": 200, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 29}}, {"id": 202, "type": "identifier", "text": "frame", "parent": 200, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 34}}, {"id": 203, "type": "return_statement", "text": "return keypoint_refs.count(frame) > 0;", "parent": 193, "children": [204], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 46}}, {"id": 204, "type": "binary_expression", "text": "keypoint_refs.count(frame) > 0", "parent": 203, "children": [205, 211, 212], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 45}}, {"id": 205, "type": "call_expression", "text": "keypoint_refs.count(frame)", "parent": 204, "children": [206, 209], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 41}}, {"id": 206, "type": "field_expression", "text": "keypoint_refs.count", "parent": 205, "children": [207, 208], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 34}}, {"id": 207, "type": "identifier", "text": "keypoint_refs", "parent": 206, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 28}}, {"id": 208, "type": "field_identifier", "text": "count", "parent": 206, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 34}}, {"id": 209, "type": "argument_list", "text": "(frame)", "parent": 205, "children": [210], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 41}}, {"id": 210, "type": "identifier", "text": "frame", "parent": 209, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 40}}, {"id": 211, "type": ">", "text": ">", "parent": 204, "children": [], "start_point": {"row": 73, "column": 42}, "end_point": {"row": 73, "column": 43}}, {"id": 212, "type": "number_literal", "text": "0", "parent": 204, "children": [], "start_point": {"row": 73, "column": 44}, "end_point": {"row": 73, "column": 45}}, {"id": 213, "type": "function_definition", "text": "size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }", "parent": 24, "children": [214, 215], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 82, "column": 5}}, {"id": 214, "type": "primitive_type", "text": "size_t", "parent": 213, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 10}}, {"id": 215, "type": "function_declarator", "text": "get_keypoint_index(Frame *frame) const", "parent": 213, "children": [216, 217], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 49}}, {"id": 216, "type": "identifier", "text": "get_keypoint_index", "parent": 215, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 29}}, {"id": 217, "type": "parameter_list", "text": "(Frame *frame)", "parent": 215, "children": [218], "start_point": {"row": 76, "column": 29}, "end_point": {"row": 76, "column": 43}}, {"id": 218, "type": "parameter_declaration", "text": "Frame *frame", "parent": 217, "children": [219, 220], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 42}}, {"id": 219, "type": "type_identifier", "text": "Frame", "parent": 218, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 35}}, {"id": 220, "type": "pointer_declarator", "text": "*frame", "parent": 218, "children": [221, 222], "start_point": {"row": 76, "column": 36}, "end_point": {"row": 76, "column": 42}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 76, "column": 36}, "end_point": {"row": 76, "column": 37}}, {"id": 222, "type": "identifier", "text": "frame", "parent": 220, "children": [], "start_point": {"row": 76, "column": 37}, "end_point": {"row": 76, "column": 42}}, {"id": 223, "type": "if_statement", "text": "if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }", "parent": 213, "children": [224, 236], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 81, "column": 9}}, {"id": 224, "type": "parenthesized_expression", "text": "(has_keypoint(frame))", "parent": 223, "children": [225], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 32}}, {"id": 225, "type": "call_expression", "text": "has_keypoint(frame)", "parent": 224, "children": [226, 227], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 31}}, {"id": 226, "type": "identifier", "text": "has_keypoint", "parent": 225, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 24}}, {"id": 227, "type": "argument_list", "text": "(frame)", "parent": 225, "children": [228], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 31}}, {"id": 228, "type": "identifier", "text": "frame", "parent": 227, "children": [], "start_point": {"row": 77, "column": 25}, "end_point": {"row": 77, "column": 30}}, {"id": 229, "type": "return_statement", "text": "return keypoint_refs.at(frame);", "parent": 223, "children": [230], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 43}}, {"id": 230, "type": "call_expression", "text": "keypoint_refs.at(frame)", "parent": 229, "children": [231, 234], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 42}}, {"id": 231, "type": "field_expression", "text": "keypoint_refs.at", "parent": 230, "children": [232, 233], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 35}}, {"id": 232, "type": "identifier", "text": "keypoint_refs", "parent": 231, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 32}}, {"id": 233, "type": "field_identifier", "text": "at", "parent": 231, "children": [], "start_point": {"row": 78, "column": 33}, "end_point": {"row": 78, "column": 35}}, {"id": 234, "type": "argument_list", "text": "(frame)", "parent": 230, "children": [235], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 42}}, {"id": 235, "type": "identifier", "text": "frame", "parent": 234, "children": [], "start_point": {"row": 78, "column": 36}, "end_point": {"row": 78, "column": 41}}, {"id": 236, "type": "else_clause", "text": "else {\n return nil();\n }", "parent": 223, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 81, "column": 9}}, {"id": 237, "type": "return_statement", "text": "return nil();", "parent": 236, "children": [238], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 25}}, {"id": 238, "type": "call_expression", "text": "nil()", "parent": 237, "children": [239, 240], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 24}}, {"id": 239, "type": "identifier", "text": "nil", "parent": 238, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 22}}, {"id": 240, "type": "argument_list", "text": "()", "parent": 238, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 24}}, {"id": 241, "type": "ERROR", "text": "const vector<", "parent": 24, "children": [242, 243], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 17}}, {"id": 242, "type": "type_identifier", "text": "vector", "parent": 241, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 16}}, {"id": 243, "type": "<", "text": "<", "parent": 241, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 17}}, {"id": 244, "type": "binary_expression", "text": "2> &get_keypoint(Frame *frame)", "parent": 24, "children": [245, 246, 247], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 47}}, {"id": 245, "type": "number_literal", "text": "2", "parent": 244, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 18}}, {"id": 246, "type": ">", "text": ">", "parent": 244, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 19}}, {"id": 247, "type": "pointer_expression", "text": "&get_keypoint(Frame *frame)", "parent": 244, "children": [248], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 47}}, {"id": 248, "type": "call_expression", "text": "get_keypoint(Frame *frame)", "parent": 247, "children": [249, 250], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 47}}, {"id": 249, "type": "identifier", "text": "get_keypoint", "parent": 248, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 33}}, {"id": 250, "type": "argument_list", "text": "(Frame *frame)", "parent": 248, "children": [251], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 47}}, {"id": 251, "type": "binary_expression", "text": "Frame *frame", "parent": 250, "children": [252, 253, 254], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 46}}, {"id": 252, "type": "identifier", "text": "Frame", "parent": 251, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 39}}, {"id": 253, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 84, "column": 40}, "end_point": {"row": 84, "column": 41}}, {"id": 254, "type": "identifier", "text": "frame", "parent": 251, "children": [], "start_point": {"row": 84, "column": 41}, "end_point": {"row": 84, "column": 46}}, {"id": 255, "type": "declaration", "text": "void add_keypoint(Frame *frame, size_t keypoint_index);", "parent": 24, "children": [256, 257], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 59}}, {"id": 256, "type": "primitive_type", "text": "void", "parent": 255, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 8}}, {"id": 257, "type": "function_declarator", "text": "add_keypoint(Frame *frame, size_t keypoint_index)", "parent": 255, "children": [258, 259], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 58}}, {"id": 258, "type": "identifier", "text": "add_keypoint", "parent": 257, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 21}}, {"id": 259, "type": "parameter_list", "text": "(Frame *frame, size_t keypoint_index)", "parent": 257, "children": [260, 265], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 58}}, {"id": 260, "type": "parameter_declaration", "text": "Frame *frame", "parent": 259, "children": [261, 262], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 34}}, {"id": 261, "type": "type_identifier", "text": "Frame", "parent": 260, "children": [], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 27}}, {"id": 262, "type": "pointer_declarator", "text": "*frame", "parent": 260, "children": [263, 264], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 34}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 29}}, {"id": 264, "type": "identifier", "text": "frame", "parent": 262, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 34}}, {"id": 265, "type": "parameter_declaration", "text": "size_t keypoint_index", "parent": 259, "children": [266, 267], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 57}}, {"id": 266, "type": "primitive_type", "text": "size_t", "parent": 265, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 42}}, {"id": 267, "type": "identifier", "text": "keypoint_index", "parent": 265, "children": [], "start_point": {"row": 85, "column": 43}, "end_point": {"row": 85, "column": 57}}, {"id": 268, "type": "declaration", "text": "void remove_keypoint(Frame *frame, bool suicide_if_empty = true);", "parent": 24, "children": [269, 270], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 69}}, {"id": 269, "type": "primitive_type", "text": "void", "parent": 268, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 270, "type": "init_declarator", "text": "remove_keypoint(Frame *frame, bool suicide_if_empty = true", "parent": 268, "children": [271, 282, 283], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 67}}, {"id": 271, "type": "function_declarator", "text": "remove_keypoint(Frame *frame, bool suicide_if_empty", "parent": 270, "children": [272, 273], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 60}}, {"id": 272, "type": "identifier", "text": "remove_keypoint", "parent": 271, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 24}}, {"id": 273, "type": "parameter_list", "text": "(Frame *frame, bool suicide_if_empty", "parent": 271, "children": [274, 279], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 60}}, {"id": 274, "type": "parameter_declaration", "text": "Frame *frame", "parent": 273, "children": [275, 276], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 37}}, {"id": 275, "type": "type_identifier", "text": "Frame", "parent": 274, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 30}}, {"id": 276, "type": "pointer_declarator", "text": "*frame", "parent": 274, "children": [277, 278], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 37}}, {"id": 277, "type": "*", "text": "*", "parent": 276, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 32}}, {"id": 278, "type": "identifier", "text": "frame", "parent": 276, "children": [], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 37}}, {"id": 279, "type": "parameter_declaration", "text": "bool suicide_if_empty", "parent": 273, "children": [280, 281], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 60}}, {"id": 280, "type": "primitive_type", "text": "bool", "parent": 279, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 43}}, {"id": 281, "type": "identifier", "text": "suicide_if_empty", "parent": 279, "children": [], "start_point": {"row": 86, "column": 44}, "end_point": {"row": 86, "column": 60}}, {"id": 282, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 86, "column": 61}, "end_point": {"row": 86, "column": 62}}, {"id": 283, "type": "true", "text": "true", "parent": 270, "children": [], "start_point": {"row": 86, "column": 63}, "end_point": {"row": 86, "column": 67}}, {"id": 284, "type": "declaration", "text": "bool triangulate();", "parent": 24, "children": [285, 286], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 23}}, {"id": 285, "type": "primitive_type", "text": "bool", "parent": 284, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 8}}, {"id": 286, "type": "function_declarator", "text": "triangulate()", "parent": 284, "children": [287, 288], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 22}}, {"id": 287, "type": "identifier", "text": "triangulate", "parent": 286, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 20}}, {"id": 288, "type": "parameter_list", "text": "()", "parent": 286, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 22}}, {"id": 289, "type": "declaration", "text": "bool try_triangulate(vector<3> &p);", "parent": 24, "children": [290, 291], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 39}}, {"id": 290, "type": "primitive_type", "text": "bool", "parent": 289, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 8}}, {"id": 291, "type": "function_declarator", "text": "try_triangulate(vector<3> &p)", "parent": 289, "children": [292, 293], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 38}}, {"id": 292, "type": "identifier", "text": "try_triangulate", "parent": 291, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 24}}, {"id": 293, "type": "parameter_list", "text": "(vector<3> &p)", "parent": 291, "children": [294], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 38}}, {"id": 294, "type": "parameter_declaration", "text": "vector<3> &p", "parent": 293, "children": [295, 296, 300], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 37}}, {"id": 295, "type": "type_identifier", "text": "vector", "parent": 294, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 31}}, {"id": 296, "type": "ERROR", "text": "<3> &", "parent": 294, "children": [297, 298, 299], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 36}}, {"id": 297, "type": "<", "text": "<", "parent": 296, "children": [], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 32}}, {"id": 298, "type": "number_literal", "text": "3", "parent": 296, "children": [], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 33}}, {"id": 299, "type": ">", "text": ">", "parent": 296, "children": [], "start_point": {"row": 89, "column": 33}, "end_point": {"row": 89, "column": 34}}, {"id": 300, "type": "identifier", "text": "p", "parent": 294, "children": [], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 37}}, {"id": 301, "type": "function_definition", "text": "double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }", "parent": 24, "children": [302, 303, 306, 330], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 99, "column": 5}}, {"id": 302, "type": "primitive_type", "text": "double", "parent": 301, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 10}}, {"id": 303, "type": "function_declarator", "text": "compute_parallax()", "parent": 301, "children": [304, 305], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 29}}, {"id": 304, "type": "identifier", "text": "compute_parallax", "parent": 303, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 27}}, {"id": 305, "type": "parameter_list", "text": "()", "parent": 303, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 29}}, {"id": 306, "type": "declaration", "text": "const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);", "parent": 301, "children": [307, 308, 320], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 95, "column": 48}}, {"id": 307, "type": "primitive_type", "text": "double", "parent": 306, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 10}}, {"id": 308, "type": "ERROR", "text": "compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void", "parent": 306, "children": [309, 312, 313, 314, 315, 316, 319], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 95, "column": 8}}, {"id": 309, "type": "function_declarator", "text": "compute_baseline() const", "parent": 308, "children": [310, 311], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 35}}, {"id": 310, "type": "identifier", "text": "compute_baseline", "parent": 309, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 27}}, {"id": 311, "type": "parameter_list", "text": "()", "parent": 309, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 29}}, {"id": 312, "type": "identifier", "text": "vector", "parent": 308, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 10}}, {"id": 313, "type": "<", "text": "<", "parent": 308, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 11}}, {"id": 314, "type": "number_literal", "text": "3", "parent": 308, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 12}}, {"id": 315, "type": ">", "text": ">", "parent": 308, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 13}}, {"id": 316, "type": "function_declarator", "text": "get_landmark_point() const", "parent": 308, "children": [317, 318], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 40}}, {"id": 317, "type": "identifier", "text": "get_landmark_point", "parent": 316, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 32}}, {"id": 318, "type": "parameter_list", "text": "()", "parent": 316, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 34}}, {"id": 319, "type": "primitive_type", "text": "void", "parent": 308, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 8}}, {"id": 320, "type": "function_declarator", "text": "set_landmark_point(const vector<3> &p)", "parent": 306, "children": [321, 322], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 47}}, {"id": 321, "type": "identifier", "text": "set_landmark_point", "parent": 320, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 27}}, {"id": 322, "type": "parameter_list", "text": "(const vector<3> &p)", "parent": 320, "children": [323], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 47}}, {"id": 323, "type": "parameter_declaration", "text": "const vector<3> &p", "parent": 322, "children": [324, 325, 329], "start_point": {"row": 95, "column": 28}, "end_point": {"row": 95, "column": 46}}, {"id": 324, "type": "type_identifier", "text": "vector", "parent": 323, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 40}}, {"id": 325, "type": "ERROR", "text": "<3> &", "parent": 323, "children": [326, 327, 328], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 45}}, {"id": 326, "type": "<", "text": "<", "parent": 325, "children": [], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 41}}, {"id": 327, "type": "number_literal", "text": "3", "parent": 325, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 42}}, {"id": 328, "type": ">", "text": ">", "parent": 325, "children": [], "start_point": {"row": 95, "column": 42}, "end_point": {"row": 95, "column": 43}}, {"id": 329, "type": "identifier", "text": "p", "parent": 323, "children": [], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 46}}, {"id": 330, "type": "ERROR", "text": "std::unique_lock<std::mutex> lock() const", "parent": 301, "children": [331, 332, 338], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 45}}, {"id": 331, "type": "type_identifier", "text": "std", "parent": 330, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 7}}, {"id": 332, "type": "ERROR", "text": "::unique_lock<std::mutex>", "parent": 330, "children": [333, 334, 335, 336, 337], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 32}}, {"id": 333, "type": "identifier", "text": "unique_lock", "parent": 332, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 20}}, {"id": 334, "type": "<", "text": "<", "parent": 332, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 21}}, {"id": 335, "type": "identifier", "text": "std", "parent": 332, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 24}}, {"id": 336, "type": "identifier", "text": "mutex", "parent": 332, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 31}}, {"id": 337, "type": ">", "text": ">", "parent": 332, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 32}}, {"id": 338, "type": "function_declarator", "text": "lock() const", "parent": 330, "children": [339, 340], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 45}}, {"id": 339, "type": "identifier", "text": "lock", "parent": 338, "children": [], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 37}}, {"id": 340, "type": "parameter_list", "text": "()", "parent": 338, "children": [], "start_point": {"row": 97, "column": 37}, "end_point": {"row": 97, "column": 39}}, {"id": 341, "type": "return_statement", "text": "return map->lock();", "parent": 301, "children": [342], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 27}}, {"id": 342, "type": "call_expression", "text": "map->lock()", "parent": 341, "children": [343, 346], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 26}}, {"id": 343, "type": "field_expression", "text": "map->lock", "parent": 342, "children": [344, 345], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 24}}, {"id": 344, "type": "identifier", "text": "map", "parent": 343, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 18}}, {"id": 345, "type": "field_identifier", "text": "lock", "parent": 343, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 24}}, {"id": 346, "type": "argument_list", "text": "()", "parent": 342, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 26}}, {"id": 347, "type": "declaration", "text": "LandmarkState landmark;", "parent": 24, "children": [348, 349], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 27}}, {"id": 348, "type": "type_identifier", "text": "LandmarkState", "parent": 347, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 17}}, {"id": 349, "type": "identifier", "text": "landmark", "parent": 347, "children": [], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 26}}, {"id": 350, "type": "declaration", "text": "size_t life;", "parent": 24, "children": [351, 352], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 16}}, {"id": 351, "type": "primitive_type", "text": "size_t", "parent": 350, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 10}}, {"id": 352, "type": "identifier", "text": "life", "parent": 350, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 15}}, {"id": 353, "type": "labeled_statement", "text": "private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;", "parent": 24, "children": [354], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 105, "column": 62}}, {"id": 354, "type": "labeled_statement", "text": "std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;", "parent": 353, "children": [355], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 62}}, {"id": 355, "type": "statement_identifier", "text": "std", "parent": 354, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 7}}, {"id": 356, "type": "comma_expression", "text": "map<Frame *, size_t, compare<Frame *>> keypoint_refs", "parent": 354, "children": [357, 361, 363], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 61}}, {"id": 357, "type": "binary_expression", "text": "map<Frame", "parent": 356, "children": [358, 359, 360], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 18}}, {"id": 358, "type": "identifier", "text": "map", "parent": 357, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 12}}, {"id": 359, "type": "<", "text": "<", "parent": 357, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 13}}, {"id": 360, "type": "identifier", "text": "Frame", "parent": 357, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 18}}, {"id": 361, "type": "ERROR", "text": "*", "parent": 356, "children": [362], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 20}}, {"id": 362, "type": "*", "text": "*", "parent": 361, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 20}}, {"id": 363, "type": "comma_expression", "text": "size_t, compare<Frame *>> keypoint_refs", "parent": 356, "children": [364, 365], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 61}}, {"id": 364, "type": "identifier", "text": "size_t", "parent": 363, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 28}}, {"id": 365, "type": "binary_expression", "text": "compare<Frame *>> keypoint_refs", "parent": 363, "children": [366, 367, 368], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 61}}, {"id": 366, "type": "identifier", "text": "compare", "parent": 365, "children": [], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 37}}, {"id": 367, "type": "<", "text": "<", "parent": 365, "children": [], "start_point": {"row": 105, "column": 37}, "end_point": {"row": 105, "column": 38}}, {"id": 368, "type": "binary_expression", "text": "Frame *>> keypoint_refs", "parent": 365, "children": [369, 370, 371, 373], "start_point": {"row": 105, "column": 38}, "end_point": {"row": 105, "column": 61}}, {"id": 369, "type": "identifier", "text": "Frame", "parent": 368, "children": [], "start_point": {"row": 105, "column": 38}, "end_point": {"row": 105, "column": 43}}, {"id": 370, "type": "*", "text": "*", "parent": 368, "children": [], "start_point": {"row": 105, "column": 44}, "end_point": {"row": 105, "column": 45}}, {"id": 371, "type": "ERROR", "text": ">>", "parent": 368, "children": [372], "start_point": {"row": 105, "column": 45}, "end_point": {"row": 105, "column": 47}}, {"id": 372, "type": ">>", "text": ">>", "parent": 371, "children": [], "start_point": {"row": 105, "column": 45}, "end_point": {"row": 105, "column": 47}}, {"id": 373, "type": "identifier", "text": "keypoint_refs", "parent": 368, "children": [], "start_point": {"row": 105, "column": 48}, "end_point": {"row": 105, "column": 61}}, {"id": 374, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 24, 84, 89, 145, 149, 159, 163, 189, 193, 195, 213, 215, 257, 271, 286, 291, 301, 303, 309, 316, 320, 338], "variables": [38, 54, 58, 61, 80, 174, 198, 218, 255, 260, 265, 268, 274, 279, 284, 289, 294, 306, 323, 347, 350], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": [25, 26]}, "statements": {"expressions": [28, 33, 35, 42, 43, 44, 66, 77, 93, 94, 101, 102, 108, 111, 115, 117, 118, 124, 125, 131, 134, 138, 140, 141, 153, 154, 155, 167, 168, 169, 204, 205, 206, 224, 225, 230, 231, 238, 244, 247, 248, 251, 342, 343, 356, 357, 363, 365, 368], "assignments": [29], "loops": [], "conditionals": [0, 1, 2, 5, 22, 23, 27, 30, 34, 36, 37, 40, 45, 47, 50, 52, 55, 57, 60, 62, 65, 67, 71, 74, 75, 78, 81, 85, 90, 95, 96, 99, 103, 105, 109, 112, 119, 122, 126, 128, 132, 135, 142, 143, 146, 150, 156, 158, 160, 164, 170, 171, 173, 175, 177, 179, 182, 184, 186, 190, 192, 196, 199, 202, 207, 208, 210, 216, 219, 222, 223, 226, 228, 232, 233, 235, 239, 242, 249, 252, 254, 258, 261, 264, 267, 272, 275, 278, 281, 287, 292, 295, 300, 304, 310, 312, 317, 321, 324, 329, 331, 333, 335, 336, 339, 344, 345, 348, 349, 352, 355, 358, 360, 364, 366, 369, 373, 374], "returns": [92, 114, 137, 152, 166, 203, 229, 237, 341], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 32, 212, 245, 298, 314, 327], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "TrackFlag", "text_snippet": "namespace pvio {\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FL"}, {"node_id": 24, "universal_type": "function", "name": "TrackFlag", "text_snippet": "enum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass T"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "Track()"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "keypoint_num()"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "first_frame() const"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }"}, {"node_id": 163, "universal_type": "function", "name": "unknown", "text_snippet": "last_frame() const"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "keypoint_map() const"}, {"node_id": 193, "universal_type": "function", "name": "has_keypoint", "text_snippet": "bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "has_keypoint(Frame *frame) const"}, {"node_id": 213, "universal_type": "function", "name": "unknown", "text_snippet": "size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n retur"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "get_keypoint_index(Frame *frame) const"}, {"node_id": 257, "universal_type": "function", "name": "unknown", "text_snippet": "add_keypoint(Frame *frame, size_t keypoint_index)"}, {"node_id": 271, "universal_type": "function", "name": "suicide_if_empty", "text_snippet": "remove_keypoint(Frame *frame, bool suicide_if_empty"}, {"node_id": 286, "universal_type": "function", "name": "unknown", "text_snippet": "triangulate()"}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "try_triangulate(vector<3> &p)"}, {"node_id": 301, "universal_type": "function", "name": "set_landmark_point", "text_snippet": "double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_po"}, {"node_id": 303, "universal_type": "function", "name": "unknown", "text_snippet": "compute_parallax()"}, {"node_id": 309, "universal_type": "function", "name": "unknown", "text_snippet": "compute_baseline() const"}, {"node_id": 316, "universal_type": "function", "name": "unknown", "text_snippet": "get_landmark_point() const"}, {"node_id": 320, "universal_type": "function", "name": "unknown", "text_snippet": "set_landmark_point(const vector<3> &p)"}, {"node_id": 338, "universal_type": "function", "name": "unknown", "text_snippet": "lock() const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <pvio/common.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <pvio/estimation/state.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <pvio/map/frame.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <pvio/map/map.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <pvio/utility/identifiable.h>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/**************************************************************************\n* This file is part of PVIO\n*\n* Copyright (c) ZJU-SenseTime Joint Lab of 3D Vision. 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#ifndef PVIO_TRACK_H\n#define PVIO_TRACK_H\n\n#include <pvio/common.h>\n#include <pvio/estimation/state.h>\n#include <pvio/map/frame.h>\n#include <pvio/map/map.h>\n#include <pvio/utility/identifiable.h>\n\nnamespace pvio {\n\nenum class TrackFlag {\n TF_VALID = 0,\n TF_TRIANGULATED,\n TF_PLANE,\n FLAG_NUM\n};\n\nclass Track : public Flagged<TrackFlag>, public Identifiable<Track> {\n friend class Map;\n size_t map_index;\n Map *map;\n Track();\n\n public:\n Track(const Map::construct_by_map_t &) :\n Track() {\n }\n\n virtual ~Track();\n\n size_t keypoint_num() const {\n return keypoint_refs.size();\n }\n\n std::pair<Frame *, size_t> first_keypoint() const {\n return *keypoint_refs.begin();\n }\n\n std::pair<Frame *, size_t> last_keypoint() const {\n return *keypoint_refs.rbegin();\n }\n\n Frame *first_frame() const {\n return keypoint_refs.begin()->first;\n }\n\n Frame *last_frame() const {\n return keypoint_refs.rbegin()->first;\n }\n\n const std::map<Frame *, size_t, compare<Frame *>> &keypoint_map() const {\n return keypoint_refs;\n }\n\n bool has_keypoint(Frame *frame) const {\n return keypoint_refs.count(frame) > 0;\n }\n\n size_t get_keypoint_index(Frame *frame) const {\n if (has_keypoint(frame)) {\n return keypoint_refs.at(frame);\n } else {\n return nil();\n }\n }\n\n const vector<2> &get_keypoint(Frame *frame) const;\n void add_keypoint(Frame *frame, size_t keypoint_index);\n void remove_keypoint(Frame *frame, bool suicide_if_empty = true);\n\n bool triangulate();\n bool try_triangulate(vector<3> &p);\n\n double compute_parallax() const;\n double compute_baseline() const;\n\n vector<3> get_landmark_point() const;\n void set_landmark_point(const vector<3> &p);\n\n std::unique_lock<std::mutex> lock() const {\n return map->lock();\n }\n\n LandmarkState landmark;\n size_t life;\n\n private:\n std::map<Frame *, size_t, compare<Frame *>> keypoint_refs;\n};\n\n} // namespace pvio\n\n#endif // PVIO_TRACK_H\n"}
80,820
c
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13). // // Copyright (C) 1997-2019 <NAME>. // #import <UIKit/NSTextStorage.h> @interface NSTextStorage (Podcasts) - (long long)writingDirectionOfLine:(long long)arg1 usingLayoutManager:(id)arg2 textContainer:(id)arg3; // IMP=0x0000000100192504 @end
40
9
(translation_unit) "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <UIKit/NSTextStorage.h>\n\n@interface NSTextStorage (Podcasts)\n- (long long)writingDirectionOfLine:(long long)arg1 usingLayoutManager:(id)arg2 textContainer:(id)arg3; // IMP=0x0000000100192504\n@end\n\n" (comment) "//" (comment) "// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13)." (comment) "//" (comment) "// Copyright (C) 1997-2019 <NAME>." (comment) "//" (preproc_call) "#import <UIKit/NSTextStorage.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/NSTextStorage.h>" (ERROR) "@interface NSTextStorage (Podcasts)\n- (long long)writingDirectionOfLine:(" (ERROR) "@" (type_identifier) "interface" (function_declarator) "NSTextStorage (Podcasts)" (identifier) "NSTextStorage" (parameter_list) "(Podcasts)" (() "(" (identifier) "Podcasts" ()) ")" (unary_expression) "- (long long)writingDirectionOfLine" (-) "-" (cast_expression) "(long long)writingDirectionOfLine" (() "(" (type_descriptor) "long long" (sized_type_specifier) "long long" (long) "long" (long) "long" ()) ")" (identifier) "writingDirectionOfLine" (:) ":" (() "(" (declaration) "long long)arg1 usingLayoutManager:(id)arg2 textContainer:(id)arg3;" (sized_type_specifier) "long long)arg1" (long) "long" (long) "long" (ERROR) ")" ()) ")" (type_identifier) "arg1" (ERROR) "usingLayoutManager:(id)arg2 textContainer:(id)" (identifier) "usingLayoutManager" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "textContainer" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (;) ";" (comment) "// IMP=0x0000000100192504" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
57
6
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 40.0, "nodes": 32, "errors": 0, "source_hash": "7f764a16e15ba199a41c919b95b6da72efa75227ff8a28d78a618974810318f8", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/NSTextStorage.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<UIKit/NSTextStorage.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 31}}, {"id": 3, "type": "ERROR", "text": "@interface NSTextStorage (Podcasts)\n- (long long)writingDirectionOfLine:(", "parent": null, "children": [4, 5, 6, 10], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 37}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "interface", "parent": 3, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "NSTextStorage (Podcasts)", "parent": 3, "children": [7, 8], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 35}}, {"id": 7, "type": "identifier", "text": "NSTextStorage", "parent": 6, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 24}}, {"id": 8, "type": "parameter_list", "text": "(Podcasts)", "parent": 6, "children": [9], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 35}}, {"id": 9, "type": "identifier", "text": "Podcasts", "parent": 8, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 34}}, {"id": 10, "type": "unary_expression", "text": "- (long long)writingDirectionOfLine", "parent": 3, "children": [11, 12], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 35}}, {"id": 11, "type": "-", "text": "-", "parent": 10, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 12, "type": "cast_expression", "text": "(long long)writingDirectionOfLine", "parent": 10, "children": [13, 17], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 35}}, {"id": 13, "type": "type_descriptor", "text": "long long", "parent": 12, "children": [14], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 12}}, {"id": 14, "type": "sized_type_specifier", "text": "long long", "parent": 13, "children": [15, 16], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 12}}, {"id": 15, "type": "long", "text": "long", "parent": 14, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 7}}, {"id": 16, "type": "long", "text": "long", "parent": 14, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 12}}, {"id": 17, "type": "identifier", "text": "writingDirectionOfLine", "parent": 12, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 35}}, {"id": 18, "type": "declaration", "text": "long long)arg1 usingLayoutManager:(id)arg2 textContainer:(id)arg3;", "parent": null, "children": [19, 23, 29], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 103}}, {"id": 19, "type": "sized_type_specifier", "text": "long long)arg1", "parent": 18, "children": [20, 21, 22], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 51}}, {"id": 20, "type": "long", "text": "long", "parent": 19, "children": [], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 41}}, {"id": 21, "type": "long", "text": "long", "parent": 19, "children": [], "start_point": {"row": 9, "column": 42}, "end_point": {"row": 9, "column": 46}}, {"id": 22, "type": "type_identifier", "text": "arg1", "parent": 19, "children": [], "start_point": {"row": 9, "column": 47}, "end_point": {"row": 9, "column": 51}}, {"id": 23, "type": "ERROR", "text": "usingLayoutManager:(id)arg2 textContainer:(id)", "parent": 18, "children": [24, 25, 26, 27, 28], "start_point": {"row": 9, "column": 52}, "end_point": {"row": 9, "column": 98}}, {"id": 24, "type": "identifier", "text": "usingLayoutManager", "parent": 23, "children": [], "start_point": {"row": 9, "column": 52}, "end_point": {"row": 9, "column": 70}}, {"id": 25, "type": "identifier", "text": "id", "parent": 23, "children": [], "start_point": {"row": 9, "column": 72}, "end_point": {"row": 9, "column": 74}}, {"id": 26, "type": "identifier", "text": "arg2", "parent": 23, "children": [], "start_point": {"row": 9, "column": 75}, "end_point": {"row": 9, "column": 79}}, {"id": 27, "type": "identifier", "text": "textContainer", "parent": 23, "children": [], "start_point": {"row": 9, "column": 80}, "end_point": {"row": 9, "column": 93}}, {"id": 28, "type": "identifier", "text": "id", "parent": 23, "children": [], "start_point": {"row": 9, "column": 95}, "end_point": {"row": 9, "column": 97}}, {"id": 29, "type": "identifier", "text": "arg3", "parent": 18, "children": [], "start_point": {"row": 9, "column": 98}, "end_point": {"row": 9, "column": 102}}, {"id": 30, "type": "ERROR", "text": "@", "parent": null, "children": [31], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 31, "type": "ERROR", "text": "@", "parent": 30, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [18], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 12], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 14, 17, 19, 22, 24, 25, 26, 27, 28, 29], "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": "NSTextStorage (Podcasts)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <UIKit/NSTextStorage.h>\n\n@interface NSTextStorage (Podcasts)\n- (long long)writingDirectionOfLine:(long long)arg1 usingLayoutManager:(id)arg2 textContainer:(id)arg3;\t// IMP=0x0000000100192504\n@end\n\n"}
80,821
c
#include <stdio.h> #include <stdlib.h> typedef struct _el { int key; int ricerche; struct _el* next; struct _el* prev; } el; int Ricerca(el* l, int cercato) { int risultato = -1; int posizione = 0; while(risultato == -1 && l != NULL) { if((*l).key == cercato) { risultato = posizione; (*l).ricerche++; } l = (*l).next; posizione++; } return risultato; } el* Aggiusta(el* l, int pos) { if(pos != -1) { int i; el* incasinatore = l; for(i=0; i<pos; i++) incasinatore = (*incasinatore).next; el* pre = (*incasinatore).prev; while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche) { if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre; if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore; (*pre).next = (*incasinatore).next; (*incasinatore).next = pre; (*incasinatore).prev = (*pre).prev; (*pre).prev = incasinatore; pre = (*incasinatore).prev; } if(pre == NULL) l = incasinatore; } return l; } int main() { int n; scanf("%d", &n); //Crea la lista int input; scanf("%d", &input); el* testa = malloc(sizeof(el)); (*testa).ricerche = 0; (*testa).key = input; (*testa).prev = NULL; (*testa).next = NULL; n--; //Accoda in lista el* l = testa; for(; n>0; n--) { scanf("%d", &input); el* new = malloc(sizeof(el)); (*new).ricerche = 0; (*new).key = input; (*new).prev = l; (*new).next = NULL; (*l).next = new; l = new; } //Ricerche scanf("%d", &input); int pos = Ricerca(testa, input); printf("%d\n", pos); testa = Aggiusta(testa, pos); while(pos != -1) { scanf("%d", &input); pos = Ricerca(testa, input); printf("%d\n", pos); testa = Aggiusta(testa, pos); } return 0; }
18.22
89
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct _el\n{\n int key;\n int ricerche;\n struct _el* next;\n struct _el* prev;\n} el;\n\nint Ricerca(el* l, int cercato)\n{\n int risultato = -1;\n int posizione = 0;\n while(risultato == -1 && l != NULL)\n {\n if((*l).key == cercato)\n {\n risultato = posizione;\n (*l).ricerche++;\n }\n l = (*l).next;\n posizione++;\n }\n return risultato;\n}\n\nel* Aggiusta(el* l, int pos)\n{\n if(pos != -1)\n {\n int i;\n el* incasinatore = l;\n for(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n el* pre = (*incasinatore).prev;\n \n while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n {\n if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n (*pre).next = (*incasinatore).next;\n (*incasinatore).next = pre;\n (*incasinatore).prev = (*pre).prev;\n (*pre).prev = incasinatore;\n pre = (*incasinatore).prev;\n }\n \n if(pre == NULL) l = incasinatore;\n }\n return l;\n}\n\nint main()\n{\n int n;\n scanf("%d", &n);\n\n //Crea la lista\n int input;\n scanf("%d", &input);\n\n el* testa = malloc(sizeof(el));\n (*testa).ricerche = 0;\n (*testa).key = input;\n (*testa).prev = NULL;\n (*testa).next = NULL;\n n--;\n\n //Accoda in lista\n el* l = testa;\n for(; n>0; n--)\n {\n scanf("%d", &input);\n el* new = malloc(sizeof(el));\n (*new).ricerche = 0;\n (*new).key = input;\n (*new).prev = l;\n (*new).next = NULL;\n (*l).next = new;\n l = new;\n }\n\n //Ricerche\n scanf("%d", &input);\n int pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n while(pos != -1)\n {\n scanf("%d", &input);\n pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n }\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>" (type_definition) "typedef struct _el\n{\n int key;\n int ricerche;\n struct _el* next;\n struct _el* prev;\n} el;" (typedef) "typedef" (struct_specifier) "struct _el\n{\n int key;\n int ricerche;\n struct _el* next;\n struct _el* prev;\n}" (struct) "struct" (type_identifier) "_el" (field_declaration_list) "{\n int key;\n int ricerche;\n struct _el* next;\n struct _el* prev;\n}" ({) "{" (field_declaration) "int key;" (primitive_type) "int" (field_identifier) "key" (;) ";" (field_declaration) "int ricerche;" (primitive_type) "int" (field_identifier) "ricerche" (;) ";" (field_declaration) "struct _el* next;" (struct_specifier) "struct _el" (struct) "struct" (type_identifier) "_el" (pointer_declarator) "* next" (*) "*" (field_identifier) "next" (;) ";" (field_declaration) "struct _el* prev;" (struct_specifier) "struct _el" (struct) "struct" (type_identifier) "_el" (pointer_declarator) "* prev" (*) "*" (field_identifier) "prev" (;) ";" (}) "}" (type_identifier) "el" (;) ";" (function_definition) "int Ricerca(el* l, int cercato)\n{\n int risultato = -1;\n int posizione = 0;\n while(risultato == -1 && l != NULL)\n {\n if((*l).key == cercato)\n {\n risultato = posizione;\n (*l).ricerche++;\n }\n l = (*l).next;\n posizione++;\n }\n return risultato;\n}" (primitive_type) "int" (function_declarator) "Ricerca(el* l, int cercato)" (identifier) "Ricerca" (parameter_list) "(el* l, int cercato)" (() "(" (parameter_declaration) "el* l" (type_identifier) "el" (pointer_declarator) "* l" (*) "*" (identifier) "l" (,) "," (parameter_declaration) "int cercato" (primitive_type) "int" (identifier) "cercato" ()) ")" (compound_statement) "{\n int risultato = -1;\n int posizione = 0;\n while(risultato == -1 && l != NULL)\n {\n if((*l).key == cercato)\n {\n risultato = posizione;\n (*l).ricerche++;\n }\n l = (*l).next;\n posizione++;\n }\n return risultato;\n}" ({) "{" (declaration) "int risultato = -1;" (primitive_type) "int" (init_declarator) "risultato = -1" (identifier) "risultato" (=) "=" (number_literal) "-1" (;) ";" (declaration) "int posizione = 0;" (primitive_type) "int" (init_declarator) "posizione = 0" (identifier) "posizione" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while(risultato == -1 && l != NULL)\n {\n if((*l).key == cercato)\n {\n risultato = posizione;\n (*l).ricerche++;\n }\n l = (*l).next;\n posizione++;\n }" (while) "while" (parenthesized_expression) "(risultato == -1 && l != NULL)" (() "(" (binary_expression) "risultato == -1 && l != NULL" (binary_expression) "risultato == -1" (identifier) "risultato" (==) "==" (number_literal) "-1" (&&) "&&" (binary_expression) "l != NULL" (identifier) "l" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n if((*l).key == cercato)\n {\n risultato = posizione;\n (*l).ricerche++;\n }\n l = (*l).next;\n posizione++;\n }" ({) "{" (if_statement) "if((*l).key == cercato)\n {\n risultato = posizione;\n (*l).ricerche++;\n }" (if) "if" (parenthesized_expression) "((*l).key == cercato)" (() "(" (binary_expression) "(*l).key == cercato" (field_expression) "(*l).key" (parenthesized_expression) "(*l)" (() "(" (pointer_expression) "*l" (*) "*" (identifier) "l" ()) ")" (.) "." (field_identifier) "key" (==) "==" (identifier) "cercato" ()) ")" (compound_statement) "{\n risultato = posizione;\n (*l).ricerche++;\n }" ({) "{" (expression_statement) "risultato = posizione;" (assignment_expression) "risultato = posizione" (identifier) "risultato" (=) "=" (identifier) "posizione" (;) ";" (expression_statement) "(*l).ricerche++;" (update_expression) "(*l).ricerche++" (field_expression) "(*l).ricerche" (parenthesized_expression) "(*l)" (() "(" (pointer_expression) "*l" (*) "*" (identifier) "l" ()) ")" (.) "." (field_identifier) "ricerche" (++) "++" (;) ";" (}) "}" (expression_statement) "l = (*l).next;" (assignment_expression) "l = (*l).next" (identifier) "l" (=) "=" (field_expression) "(*l).next" (parenthesized_expression) "(*l)" (() "(" (pointer_expression) "*l" (*) "*" (identifier) "l" ()) ")" (.) "." (field_identifier) "next" (;) ";" (expression_statement) "posizione++;" (update_expression) "posizione++" (identifier) "posizione" (++) "++" (;) ";" (}) "}" (return_statement) "return risultato;" (return) "return" (identifier) "risultato" (;) ";" (}) "}" (function_definition) "el* Aggiusta(el* l, int pos)\n{\n if(pos != -1)\n {\n int i;\n el* incasinatore = l;\n for(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n el* pre = (*incasinatore).prev;\n \n while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n {\n if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n (*pre).next = (*incasinatore).next;\n (*incasinatore).next = pre;\n (*incasinatore).prev = (*pre).prev;\n (*pre).prev = incasinatore;\n pre = (*incasinatore).prev;\n }\n \n if(pre == NULL) l = incasinatore;\n }\n return l;\n}" (type_identifier) "el" (pointer_declarator) "* Aggiusta(el* l, int pos)" (*) "*" (function_declarator) "Aggiusta(el* l, int pos)" (identifier) "Aggiusta" (parameter_list) "(el* l, int pos)" (() "(" (parameter_declaration) "el* l" (type_identifier) "el" (pointer_declarator) "* l" (*) "*" (identifier) "l" (,) "," (parameter_declaration) "int pos" (primitive_type) "int" (identifier) "pos" ()) ")" (compound_statement) "{\n if(pos != -1)\n {\n int i;\n el* incasinatore = l;\n for(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n el* pre = (*incasinatore).prev;\n \n while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n {\n if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n (*pre).next = (*incasinatore).next;\n (*incasinatore).next = pre;\n (*incasinatore).prev = (*pre).prev;\n (*pre).prev = incasinatore;\n pre = (*incasinatore).prev;\n }\n \n if(pre == NULL) l = incasinatore;\n }\n return l;\n}" ({) "{" (if_statement) "if(pos != -1)\n {\n int i;\n el* incasinatore = l;\n for(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n el* pre = (*incasinatore).prev;\n \n while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n {\n if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n (*pre).next = (*incasinatore).next;\n (*incasinatore).next = pre;\n (*incasinatore).prev = (*pre).prev;\n (*pre).prev = incasinatore;\n pre = (*incasinatore).prev;\n }\n \n if(pre == NULL) l = incasinatore;\n }" (if) "if" (parenthesized_expression) "(pos != -1)" (() "(" (binary_expression) "pos != -1" (identifier) "pos" (!=) "!=" (number_literal) "-1" ()) ")" (compound_statement) "{\n int i;\n el* incasinatore = l;\n for(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n el* pre = (*incasinatore).prev;\n \n while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n {\n if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n (*pre).next = (*incasinatore).next;\n (*incasinatore).next = pre;\n (*incasinatore).prev = (*pre).prev;\n (*pre).prev = incasinatore;\n pre = (*incasinatore).prev;\n }\n \n if(pre == NULL) l = incasinatore;\n }" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "el* incasinatore = l;" (type_identifier) "el" (init_declarator) "* incasinatore = l" (pointer_declarator) "* incasinatore" (*) "*" (identifier) "incasinatore" (=) "=" (identifier) "l" (;) ";" (for_statement) "for(i=0; i<pos; i++) incasinatore = (*incasinatore).next;" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<pos" (identifier) "i" (<) "<" (identifier) "pos" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "incasinatore = (*incasinatore).next;" (assignment_expression) "incasinatore = (*incasinatore).next" (identifier) "incasinatore" (=) "=" (field_expression) "(*incasinatore).next" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "next" (;) ";" (declaration) "el* pre = (*incasinatore).prev;" (type_identifier) "el" (init_declarator) "* pre = (*incasinatore).prev" (pointer_declarator) "* pre" (*) "*" (identifier) "pre" (=) "=" (field_expression) "(*incasinatore).prev" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "prev" (;) ";" (while_statement) "while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n {\n if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n (*pre).next = (*incasinatore).next;\n (*incasinatore).next = pre;\n (*incasinatore).prev = (*pre).prev;\n (*pre).prev = incasinatore;\n pre = (*incasinatore).prev;\n }" (while) "while" (parenthesized_expression) "(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)" (() "(" (binary_expression) "pre != NULL && (*incasinatore).ricerche > (*pre).ricerche" (binary_expression) "pre != NULL" (identifier) "pre" (!=) "!=" (null) "NULL" (NULL) "NULL" (&&) "&&" (binary_expression) "(*incasinatore).ricerche > (*pre).ricerche" (field_expression) "(*incasinatore).ricerche" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "ricerche" (>) ">" (field_expression) "(*pre).ricerche" (parenthesized_expression) "(*pre)" (() "(" (pointer_expression) "*pre" (*) "*" (identifier) "pre" ()) ")" (.) "." (field_identifier) "ricerche" ()) ")" (compound_statement) "{\n if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n (*pre).next = (*incasinatore).next;\n (*incasinatore).next = pre;\n (*incasinatore).prev = (*pre).prev;\n (*pre).prev = incasinatore;\n pre = (*incasinatore).prev;\n }" ({) "{" (if_statement) "if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;" (if) "if" (parenthesized_expression) "((*incasinatore).next != NULL)" (() "(" (binary_expression) "(*incasinatore).next != NULL" (field_expression) "(*incasinatore).next" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "next" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "(*(*incasinatore).next).prev = pre;" (assignment_expression) "(*(*incasinatore).next).prev = pre" (field_expression) "(*(*incasinatore).next).prev" (parenthesized_expression) "(*(*incasinatore).next)" (() "(" (pointer_expression) "*(*incasinatore).next" (*) "*" (field_expression) "(*incasinatore).next" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "next" ()) ")" (.) "." (field_identifier) "prev" (=) "=" (identifier) "pre" (;) ";" (if_statement) "if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;" (if) "if" (parenthesized_expression) "((*pre).prev != NULL)" (() "(" (binary_expression) "(*pre).prev != NULL" (field_expression) "(*pre).prev" (parenthesized_expression) "(*pre)" (() "(" (pointer_expression) "*pre" (*) "*" (identifier) "pre" ()) ")" (.) "." (field_identifier) "prev" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "(*(*pre).prev).next = incasinatore;" (assignment_expression) "(*(*pre).prev).next = incasinatore" (field_expression) "(*(*pre).prev).next" (parenthesized_expression) "(*(*pre).prev)" (() "(" (pointer_expression) "*(*pre).prev" (*) "*" (field_expression) "(*pre).prev" (parenthesized_expression) "(*pre)" (() "(" (pointer_expression) "*pre" (*) "*" (identifier) "pre" ()) ")" (.) "." (field_identifier) "prev" ()) ")" (.) "." (field_identifier) "next" (=) "=" (identifier) "incasinatore" (;) ";" (expression_statement) "(*pre).next = (*incasinatore).next;" (assignment_expression) "(*pre).next = (*incasinatore).next" (field_expression) "(*pre).next" (parenthesized_expression) "(*pre)" (() "(" (pointer_expression) "*pre" (*) "*" (identifier) "pre" ()) ")" (.) "." (field_identifier) "next" (=) "=" (field_expression) "(*incasinatore).next" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "next" (;) ";" (expression_statement) "(*incasinatore).next = pre;" (assignment_expression) "(*incasinatore).next = pre" (field_expression) "(*incasinatore).next" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "next" (=) "=" (identifier) "pre" (;) ";" (expression_statement) "(*incasinatore).prev = (*pre).prev;" (assignment_expression) "(*incasinatore).prev = (*pre).prev" (field_expression) "(*incasinatore).prev" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "prev" (=) "=" (field_expression) "(*pre).prev" (parenthesized_expression) "(*pre)" (() "(" (pointer_expression) "*pre" (*) "*" (identifier) "pre" ()) ")" (.) "." (field_identifier) "prev" (;) ";" (expression_statement) "(*pre).prev = incasinatore;" (assignment_expression) "(*pre).prev = incasinatore" (field_expression) "(*pre).prev" (parenthesized_expression) "(*pre)" (() "(" (pointer_expression) "*pre" (*) "*" (identifier) "pre" ()) ")" (.) "." (field_identifier) "prev" (=) "=" (identifier) "incasinatore" (;) ";" (expression_statement) "pre = (*incasinatore).prev;" (assignment_expression) "pre = (*incasinatore).prev" (identifier) "pre" (=) "=" (field_expression) "(*incasinatore).prev" (parenthesized_expression) "(*incasinatore)" (() "(" (pointer_expression) "*incasinatore" (*) "*" (identifier) "incasinatore" ()) ")" (.) "." (field_identifier) "prev" (;) ";" (}) "}" (if_statement) "if(pre == NULL) l = incasinatore;" (if) "if" (parenthesized_expression) "(pre == NULL)" (() "(" (binary_expression) "pre == NULL" (identifier) "pre" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "l = incasinatore;" (assignment_expression) "l = incasinatore" (identifier) "l" (=) "=" (identifier) "incasinatore" (;) ";" (}) "}" (return_statement) "return l;" (return) "return" (identifier) "l" (;) ";" (}) "}" (function_definition) "int main()\n{\n int n;\n scanf("%d", &n);\n\n //Crea la lista\n int input;\n scanf("%d", &input);\n\n el* testa = malloc(sizeof(el));\n (*testa).ricerche = 0;\n (*testa).key = input;\n (*testa).prev = NULL;\n (*testa).next = NULL;\n n--;\n\n //Accoda in lista\n el* l = testa;\n for(; n>0; n--)\n {\n scanf("%d", &input);\n el* new = malloc(sizeof(el));\n (*new).ricerche = 0;\n (*new).key = input;\n (*new).prev = l;\n (*new).next = NULL;\n (*l).next = new;\n l = new;\n }\n\n //Ricerche\n scanf("%d", &input);\n int pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n while(pos != -1)\n {\n scanf("%d", &input);\n pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n }\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int n;\n scanf("%d", &n);\n\n //Crea la lista\n int input;\n scanf("%d", &input);\n\n el* testa = malloc(sizeof(el));\n (*testa).ricerche = 0;\n (*testa).key = input;\n (*testa).prev = NULL;\n (*testa).next = NULL;\n n--;\n\n //Accoda in lista\n el* l = testa;\n for(; n>0; n--)\n {\n scanf("%d", &input);\n el* new = malloc(sizeof(el));\n (*new).ricerche = 0;\n (*new).key = input;\n (*new).prev = l;\n (*new).next = NULL;\n (*l).next = new;\n l = new;\n }\n\n //Ricerche\n scanf("%d", &input);\n int pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n while(pos != -1)\n {\n scanf("%d", &input);\n pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n }\n\n return 0;\n}" ({) "{" (declaration) "int n;" (primitive_type) "int" (identifier) "n" (;) ";" (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" ()) ")" (;) ";" (comment) "//Crea la lista" (declaration) "int input;" (primitive_type) "int" (identifier) "input" (;) ";" (expression_statement) "scanf("%d", &input);" (call_expression) "scanf("%d", &input)" (identifier) "scanf" (argument_list) "("%d", &input)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&input" (&) "&" (identifier) "input" ()) ")" (;) ";" (declaration) "el* testa = malloc(sizeof(el));" (type_identifier) "el" (init_declarator) "* testa = malloc(sizeof(el))" (pointer_declarator) "* testa" (*) "*" (identifier) "testa" (=) "=" (call_expression) "malloc(sizeof(el))" (identifier) "malloc" (argument_list) "(sizeof(el))" (() "(" (sizeof_expression) "sizeof(el)" (sizeof) "sizeof" (parenthesized_expression) "(el)" (() "(" (identifier) "el" ()) ")" ()) ")" (;) ";" (expression_statement) "(*testa).ricerche = 0;" (assignment_expression) "(*testa).ricerche = 0" (field_expression) "(*testa).ricerche" (parenthesized_expression) "(*testa)" (() "(" (pointer_expression) "*testa" (*) "*" (identifier) "testa" ()) ")" (.) "." (field_identifier) "ricerche" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "(*testa).key = input;" (assignment_expression) "(*testa).key = input" (field_expression) "(*testa).key" (parenthesized_expression) "(*testa)" (() "(" (pointer_expression) "*testa" (*) "*" (identifier) "testa" ()) ")" (.) "." (field_identifier) "key" (=) "=" (identifier) "input" (;) ";" (expression_statement) "(*testa).prev = NULL;" (assignment_expression) "(*testa).prev = NULL" (field_expression) "(*testa).prev" (parenthesized_expression) "(*testa)" (() "(" (pointer_expression) "*testa" (*) "*" (identifier) "testa" ()) ")" (.) "." (field_identifier) "prev" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "(*testa).next = NULL;" (assignment_expression) "(*testa).next = NULL" (field_expression) "(*testa).next" (parenthesized_expression) "(*testa)" (() "(" (pointer_expression) "*testa" (*) "*" (identifier) "testa" ()) ")" (.) "." (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "n--;" (update_expression) "n--" (identifier) "n" (--) "--" (;) ";" (comment) "//Accoda in lista" (declaration) "el* l = testa;" (type_identifier) "el" (init_declarator) "* l = testa" (pointer_declarator) "* l" (*) "*" (identifier) "l" (=) "=" (identifier) "testa" (;) ";" (for_statement) "for(; n>0; n--)\n {\n scanf("%d", &input);\n el* new = malloc(sizeof(el));\n (*new).ricerche = 0;\n (*new).key = input;\n (*new).prev = l;\n (*new).next = NULL;\n (*l).next = new;\n l = new;\n }" (for) "for" (() "(" (;) ";" (binary_expression) "n>0" (identifier) "n" (>) ">" (number_literal) "0" (;) ";" (update_expression) "n--" (identifier) "n" (--) "--" ()) ")" (compound_statement) "{\n scanf("%d", &input);\n el* new = malloc(sizeof(el));\n (*new).ricerche = 0;\n (*new).key = input;\n (*new).prev = l;\n (*new).next = NULL;\n (*l).next = new;\n l = new;\n }" ({) "{" (expression_statement) "scanf("%d", &input);" (call_expression) "scanf("%d", &input)" (identifier) "scanf" (argument_list) "("%d", &input)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&input" (&) "&" (identifier) "input" ()) ")" (;) ";" (declaration) "el* new = malloc(sizeof(el));" (type_identifier) "el" (init_declarator) "* new = malloc(sizeof(el))" (pointer_declarator) "* new" (*) "*" (identifier) "new" (=) "=" (call_expression) "malloc(sizeof(el))" (identifier) "malloc" (argument_list) "(sizeof(el))" (() "(" (sizeof_expression) "sizeof(el)" (sizeof) "sizeof" (parenthesized_expression) "(el)" (() "(" (identifier) "el" ()) ")" ()) ")" (;) ";" (expression_statement) "(*new).ricerche = 0;" (assignment_expression) "(*new).ricerche = 0" (field_expression) "(*new).ricerche" (parenthesized_expression) "(*new)" (() "(" (pointer_expression) "*new" (*) "*" (identifier) "new" ()) ")" (.) "." (field_identifier) "ricerche" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "(*new).key = input;" (assignment_expression) "(*new).key = input" (field_expression) "(*new).key" (parenthesized_expression) "(*new)" (() "(" (pointer_expression) "*new" (*) "*" (identifier) "new" ()) ")" (.) "." (field_identifier) "key" (=) "=" (identifier) "input" (;) ";" (expression_statement) "(*new).prev = l;" (assignment_expression) "(*new).prev = l" (field_expression) "(*new).prev" (parenthesized_expression) "(*new)" (() "(" (pointer_expression) "*new" (*) "*" (identifier) "new" ()) ")" (.) "." (field_identifier) "prev" (=) "=" (identifier) "l" (;) ";" (expression_statement) "(*new).next = NULL;" (assignment_expression) "(*new).next = NULL" (field_expression) "(*new).next" (parenthesized_expression) "(*new)" (() "(" (pointer_expression) "*new" (*) "*" (identifier) "new" ()) ")" (.) "." (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "(*l).next = new;" (assignment_expression) "(*l).next = new" (field_expression) "(*l).next" (parenthesized_expression) "(*l)" (() "(" (pointer_expression) "*l" (*) "*" (identifier) "l" ()) ")" (.) "." (field_identifier) "next" (=) "=" (identifier) "new" (;) ";" (expression_statement) "l = new;" (assignment_expression) "l = new" (identifier) "l" (=) "=" (identifier) "new" (;) ";" (}) "}" (comment) "//Ricerche" (expression_statement) "scanf("%d", &input);" (call_expression) "scanf("%d", &input)" (identifier) "scanf" (argument_list) "("%d", &input)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&input" (&) "&" (identifier) "input" ()) ")" (;) ";" (declaration) "int pos = Ricerca(testa, input);" (primitive_type) "int" (init_declarator) "pos = Ricerca(testa, input)" (identifier) "pos" (=) "=" (call_expression) "Ricerca(testa, input)" (identifier) "Ricerca" (argument_list) "(testa, input)" (() "(" (identifier) "testa" (,) "," (identifier) "input" ()) ")" (;) ";" (expression_statement) "printf("%d\n", pos);" (call_expression) "printf("%d\n", pos)" (identifier) "printf" (argument_list) "("%d\n", pos)" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (identifier) "pos" ()) ")" (;) ";" (expression_statement) "testa = Aggiusta(testa, pos);" (assignment_expression) "testa = Aggiusta(testa, pos)" (identifier) "testa" (=) "=" (call_expression) "Aggiusta(testa, pos)" (identifier) "Aggiusta" (argument_list) "(testa, pos)" (() "(" (identifier) "testa" (,) "," (identifier) "pos" ()) ")" (;) ";" (while_statement) "while(pos != -1)\n {\n scanf("%d", &input);\n pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n }" (while) "while" (parenthesized_expression) "(pos != -1)" (() "(" (binary_expression) "pos != -1" (identifier) "pos" (!=) "!=" (number_literal) "-1" ()) ")" (compound_statement) "{\n scanf("%d", &input);\n pos = Ricerca(testa, input);\n printf("%d\n", pos);\n testa = Aggiusta(testa, pos);\n }" ({) "{" (expression_statement) "scanf("%d", &input);" (call_expression) "scanf("%d", &input)" (identifier) "scanf" (argument_list) "("%d", &input)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&input" (&) "&" (identifier) "input" ()) ")" (;) ";" (expression_statement) "pos = Ricerca(testa, input);" (assignment_expression) "pos = Ricerca(testa, input)" (identifier) "pos" (=) "=" (call_expression) "Ricerca(testa, input)" (identifier) "Ricerca" (argument_list) "(testa, input)" (() "(" (identifier) "testa" (,) "," (identifier) "input" ()) ")" (;) ";" (expression_statement) "printf("%d\n", pos);" (call_expression) "printf("%d\n", pos)" (identifier) "printf" (argument_list) "("%d\n", pos)" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (identifier) "pos" ()) ")" (;) ";" (expression_statement) "testa = Aggiusta(testa, pos);" (assignment_expression) "testa = Aggiusta(testa, pos)" (identifier) "testa" (=) "=" (call_expression) "Aggiusta(testa, pos)" (identifier) "Aggiusta" (argument_list) "(testa, pos)" (() "(" (identifier) "testa" (,) "," (identifier) "pos" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
866
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 18.22, "nodes": 537, "errors": 0, "source_hash": "003296deba0b06621e27aeb2d33338f396aaab6fb938ccf2c3a63347d0c1dc55", "categorized_nodes": 381}, "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": "type_definition", "text": "typedef struct _el\n{\n\tint key;\n\tint ricerche;\n\tstruct _el* next;\n\tstruct _el* prev;\n} el;", "parent": null, "children": [7, 8, 31], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "struct_specifier", "text": "struct _el\n{\n\tint key;\n\tint ricerche;\n\tstruct _el* next;\n\tstruct _el* prev;\n}", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 9, "column": 1}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 10, "type": "type_identifier", "text": "_el", "parent": 8, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 18}}, {"id": 11, "type": "field_declaration", "text": "int key;", "parent": 8, "children": [12, 13], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 9}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 4}}, {"id": 13, "type": "field_identifier", "text": "key", "parent": 11, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "field_declaration", "text": "int ricerche;", "parent": 8, "children": [15, 16], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 14}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 4}}, {"id": 16, "type": "field_identifier", "text": "ricerche", "parent": 14, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 13}}, {"id": 17, "type": "field_declaration", "text": "struct _el* next;", "parent": 8, "children": [18, 21], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 18}}, {"id": 18, "type": "struct_specifier", "text": "struct _el", "parent": 17, "children": [19, 20], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 11}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 7}}, {"id": 20, "type": "type_identifier", "text": "_el", "parent": 18, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 11}}, {"id": 21, "type": "pointer_declarator", "text": "* next", "parent": 17, "children": [22, 23], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 17}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 23, "type": "field_identifier", "text": "next", "parent": 21, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 17}}, {"id": 24, "type": "field_declaration", "text": "struct _el* prev;", "parent": 8, "children": [25, 28], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 18}}, {"id": 25, "type": "struct_specifier", "text": "struct _el", "parent": 24, "children": [26, 27], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 11}}, {"id": 26, "type": "struct", "text": "struct", "parent": 25, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 7}}, {"id": 27, "type": "type_identifier", "text": "_el", "parent": 25, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 28, "type": "pointer_declarator", "text": "* prev", "parent": 24, "children": [29, 30], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 17}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 30, "type": "field_identifier", "text": "prev", "parent": 28, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 17}}, {"id": 31, "type": "type_identifier", "text": "el", "parent": 6, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 4}}, {"id": 32, "type": "function_definition", "text": "int Ricerca(el* l, int cercato)\n{\n\tint risultato = -1;\n\tint posizione = 0;\n\twhile(risultato == -1 && l != NULL)\n\t{\n\t\tif((*l).key == cercato)\n\t\t{\n\t\t\trisultato = posizione;\n\t\t\t(*l).ricerche++;\n\t\t}\n\t\tl = (*l).next;\n\t\tposizione++;\n\t}\n\treturn risultato;\n}", "parent": null, "children": [33, 34], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 3}}, {"id": 34, "type": "function_declarator", "text": "Ricerca(el* l, int cercato)", "parent": 32, "children": [35, 36], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 31}}, {"id": 35, "type": "identifier", "text": "Ricerca", "parent": 34, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 11}}, {"id": 36, "type": "parameter_list", "text": "(el* l, int cercato)", "parent": 34, "children": [37, 42], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 31}}, {"id": 37, "type": "parameter_declaration", "text": "el* l", "parent": 36, "children": [38, 39], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 17}}, {"id": 38, "type": "type_identifier", "text": "el", "parent": 37, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 14}}, {"id": 39, "type": "pointer_declarator", "text": "* l", "parent": 37, "children": [40, 41], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 17}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 41, "type": "identifier", "text": "l", "parent": 39, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 42, "type": "parameter_declaration", "text": "int cercato", "parent": 36, "children": [43, 44], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 30}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 22}}, {"id": 44, "type": "identifier", "text": "cercato", "parent": 42, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 30}}, {"id": 45, "type": "declaration", "text": "int risultato = -1;", "parent": 32, "children": [46, 47], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 20}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 4}}, {"id": 47, "type": "init_declarator", "text": "risultato = -1", "parent": 45, "children": [48, 49, 50], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 19}}, {"id": 48, "type": "identifier", "text": "risultato", "parent": 47, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 14}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 50, "type": "number_literal", "text": "-1", "parent": 47, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 19}}, {"id": 51, "type": "declaration", "text": "int posizione = 0;", "parent": 32, "children": [52, 53], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 19}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}, {"id": 53, "type": "init_declarator", "text": "posizione = 0", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 18}}, {"id": 54, "type": "identifier", "text": "posizione", "parent": 53, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 14}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 56, "type": "number_literal", "text": "0", "parent": 53, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 57, "type": "while_statement", "text": "while(risultato == -1 && l != NULL)\n\t{\n\t\tif((*l).key == cercato)\n\t\t{\n\t\t\trisultato = posizione;\n\t\t\t(*l).ricerche++;\n\t\t}\n\t\tl = (*l).next;\n\t\tposizione++;\n\t}", "parent": 32, "children": [58], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 24, "column": 2}}, {"id": 58, "type": "parenthesized_expression", "text": "(risultato == -1 && l != NULL)", "parent": 57, "children": [59], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 36}}, {"id": 59, "type": "binary_expression", "text": "risultato == -1 && l != NULL", "parent": 58, "children": [60, 64, 65], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 35}}, {"id": 60, "type": "binary_expression", "text": "risultato == -1", "parent": 59, "children": [61, 62, 63], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 22}}, {"id": 61, "type": "identifier", "text": "risultato", "parent": 60, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 16}}, {"id": 62, "type": "==", "text": "==", "parent": 60, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 19}}, {"id": 63, "type": "number_literal", "text": "-1", "parent": 60, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 22}}, {"id": 64, "type": "&&", "text": "&&", "parent": 59, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 25}}, {"id": 65, "type": "binary_expression", "text": "l != NULL", "parent": 59, "children": [66, 67, 68], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 35}}, {"id": 66, "type": "identifier", "text": "l", "parent": 65, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 27}}, {"id": 67, "type": "!=", "text": "!=", "parent": 65, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 30}}, {"id": 68, "type": "null", "text": "NULL", "parent": 65, "children": [69], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 35}}, {"id": 69, "type": "NULL", "text": "NULL", "parent": 68, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 35}}, {"id": 70, "type": "if_statement", "text": "if((*l).key == cercato)\n\t\t{\n\t\t\trisultato = posizione;\n\t\t\t(*l).ricerche++;\n\t\t}", "parent": 57, "children": [71], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 21, "column": 3}}, {"id": 71, "type": "parenthesized_expression", "text": "((*l).key == cercato)", "parent": 70, "children": [72], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 25}}, {"id": 72, "type": "binary_expression", "text": "(*l).key == cercato", "parent": 71, "children": [73, 79, 80], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 24}}, {"id": 73, "type": "field_expression", "text": "(*l).key", "parent": 72, "children": [74, 78], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 13}}, {"id": 74, "type": "parenthesized_expression", "text": "(*l)", "parent": 73, "children": [75], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 9}}, {"id": 75, "type": "pointer_expression", "text": "*l", "parent": 74, "children": [76, 77], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 8}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 7}}, {"id": 77, "type": "identifier", "text": "l", "parent": 75, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 8}}, {"id": 78, "type": "field_identifier", "text": "key", "parent": 73, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 13}}, {"id": 79, "type": "==", "text": "==", "parent": 72, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 16}}, {"id": 80, "type": "identifier", "text": "cercato", "parent": 72, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 24}}, {"id": 81, "type": "assignment_expression", "text": "risultato = posizione", "parent": 70, "children": [82, 83, 84], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 24}}, {"id": 82, "type": "identifier", "text": "risultato", "parent": 81, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 12}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 84, "type": "identifier", "text": "posizione", "parent": 81, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 24}}, {"id": 85, "type": "update_expression", "text": "(*l).ricerche++", "parent": 70, "children": [86, 92], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 18}}, {"id": 86, "type": "field_expression", "text": "(*l).ricerche", "parent": 85, "children": [87, 91], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 16}}, {"id": 87, "type": "parenthesized_expression", "text": "(*l)", "parent": 86, "children": [88], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 88, "type": "pointer_expression", "text": "*l", "parent": 87, "children": [89, 90], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 6}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 5}}, {"id": 90, "type": "identifier", "text": "l", "parent": 88, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 6}}, {"id": 91, "type": "field_identifier", "text": "ricerche", "parent": 86, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 92, "type": "++", "text": "++", "parent": 85, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 18}}, {"id": 93, "type": "assignment_expression", "text": "l = (*l).next", "parent": 57, "children": [94, 95, 96], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 15}}, {"id": 94, "type": "identifier", "text": "l", "parent": 93, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 3}}, {"id": 95, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 5}}, {"id": 96, "type": "field_expression", "text": "(*l).next", "parent": 93, "children": [97, 101], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 15}}, {"id": 97, "type": "parenthesized_expression", "text": "(*l)", "parent": 96, "children": [98], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 10}}, {"id": 98, "type": "pointer_expression", "text": "*l", "parent": 97, "children": [99, 100], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 9}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 8}}, {"id": 100, "type": "identifier", "text": "l", "parent": 98, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 9}}, {"id": 101, "type": "field_identifier", "text": "next", "parent": 96, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 15}}, {"id": 102, "type": "update_expression", "text": "posizione++", "parent": 57, "children": [103, 104], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 13}}, {"id": 103, "type": "identifier", "text": "posizione", "parent": 102, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 11}}, {"id": 104, "type": "++", "text": "++", "parent": 102, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 13}}, {"id": 105, "type": "return_statement", "text": "return risultato;", "parent": 32, "children": [106], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 18}}, {"id": 106, "type": "identifier", "text": "risultato", "parent": 105, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 17}}, {"id": 107, "type": "function_definition", "text": "el* Aggiusta(el* l, int pos)\n{\n\tif(pos != -1)\n\t{\n\t\tint i;\n\t\tel* incasinatore = l;\n\t\tfor(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n\t\tel* pre = (*incasinatore).prev;\n\t\n\t\twhile(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n\t\t{\n\t\t\tif((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n\t\t\tif((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n\t\t\t(*pre).next = (*incasinatore).next;\n\t\t\t(*incasinatore).next = pre;\n\t\t\t(*incasinatore).prev = (*pre).prev;\n\t\t\t(*pre).prev = incasinatore;\n\t\t\tpre = (*incasinatore).prev;\n\t\t}\n\t\n\t\tif(pre == NULL) l = incasinatore;\n\t}\n\treturn l;\n}", "parent": null, "children": [108, 109], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 108, "type": "type_identifier", "text": "el", "parent": 107, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 2}}, {"id": 109, "type": "pointer_declarator", "text": "* Aggiusta(el* l, int pos)", "parent": 107, "children": [110, 111], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 28}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 3}}, {"id": 111, "type": "function_declarator", "text": "Aggiusta(el* l, int pos)", "parent": 109, "children": [112, 113], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 28}}, {"id": 112, "type": "identifier", "text": "Aggiusta", "parent": 111, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 12}}, {"id": 113, "type": "parameter_list", "text": "(el* l, int pos)", "parent": 111, "children": [114, 119], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 28}}, {"id": 114, "type": "parameter_declaration", "text": "el* l", "parent": 113, "children": [115, 116], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 18}}, {"id": 115, "type": "type_identifier", "text": "el", "parent": 114, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 15}}, {"id": 116, "type": "pointer_declarator", "text": "* l", "parent": 114, "children": [117, 118], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 18}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 118, "type": "identifier", "text": "l", "parent": 116, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 18}}, {"id": 119, "type": "parameter_declaration", "text": "int pos", "parent": 113, "children": [120, 121], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 27}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 23}}, {"id": 121, "type": "identifier", "text": "pos", "parent": 119, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 27}}, {"id": 122, "type": "if_statement", "text": "if(pos != -1)\n\t{\n\t\tint i;\n\t\tel* incasinatore = l;\n\t\tfor(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n\t\tel* pre = (*incasinatore).prev;\n\t\n\t\twhile(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n\t\t{\n\t\t\tif((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n\t\t\tif((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n\t\t\t(*pre).next = (*incasinatore).next;\n\t\t\t(*incasinatore).next = pre;\n\t\t\t(*incasinatore).prev = (*pre).prev;\n\t\t\t(*pre).prev = incasinatore;\n\t\t\tpre = (*incasinatore).prev;\n\t\t}\n\t\n\t\tif(pre == NULL) l = incasinatore;\n\t}", "parent": 107, "children": [123], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 49, "column": 2}}, {"id": 123, "type": "parenthesized_expression", "text": "(pos != -1)", "parent": 122, "children": [124], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 14}}, {"id": 124, "type": "binary_expression", "text": "pos != -1", "parent": 123, "children": [125, 126, 127], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 125, "type": "identifier", "text": "pos", "parent": 124, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 7}}, {"id": 126, "type": "!=", "text": "!=", "parent": 124, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 10}}, {"id": 127, "type": "number_literal", "text": "-1", "parent": 124, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 13}}, {"id": 128, "type": "declaration", "text": "int i;", "parent": 122, "children": [129, 130], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 8}}, {"id": 129, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 5}}, {"id": 130, "type": "identifier", "text": "i", "parent": 128, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 7}}, {"id": 131, "type": "declaration", "text": "el* incasinatore = l;", "parent": 122, "children": [132, 133], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 23}}, {"id": 132, "type": "type_identifier", "text": "el", "parent": 131, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 4}}, {"id": 133, "type": "init_declarator", "text": "* incasinatore = l", "parent": 131, "children": [134, 137, 138], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 22}}, {"id": 134, "type": "pointer_declarator", "text": "* incasinatore", "parent": 133, "children": [135, 136], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 18}}, {"id": 135, "type": "*", "text": "*", "parent": 134, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 5}}, {"id": 136, "type": "identifier", "text": "incasinatore", "parent": 134, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 18}}, {"id": 137, "type": "=", "text": "=", "parent": 133, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 138, "type": "identifier", "text": "l", "parent": 133, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 139, "type": "for_statement", "text": "for(i=0; i<pos; i++) incasinatore = (*incasinatore).next;", "parent": 122, "children": [140, 144, 148], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 59}}, {"id": 140, "type": "assignment_expression", "text": "i=0", "parent": 139, "children": [141, 142, 143], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 9}}, {"id": 141, "type": "identifier", "text": "i", "parent": 140, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 7}}, {"id": 142, "type": "=", "text": "=", "parent": 140, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 8}}, {"id": 143, "type": "number_literal", "text": "0", "parent": 140, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 9}}, {"id": 144, "type": "binary_expression", "text": "i<pos", "parent": 139, "children": [145, 146, 147], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 16}}, {"id": 145, "type": "identifier", "text": "i", "parent": 144, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 12}}, {"id": 146, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 147, "type": "identifier", "text": "pos", "parent": 144, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 16}}, {"id": 148, "type": "update_expression", "text": "i++", "parent": 139, "children": [149, 150], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 21}}, {"id": 149, "type": "identifier", "text": "i", "parent": 148, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 19}}, {"id": 150, "type": "++", "text": "++", "parent": 148, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 21}}, {"id": 151, "type": "assignment_expression", "text": "incasinatore = (*incasinatore).next", "parent": 139, "children": [152, 153, 154], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 58}}, {"id": 152, "type": "identifier", "text": "incasinatore", "parent": 151, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 35}}, {"id": 153, "type": "=", "text": "=", "parent": 151, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 37}}, {"id": 154, "type": "field_expression", "text": "(*incasinatore).next", "parent": 151, "children": [155, 159], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 58}}, {"id": 155, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 154, "children": [156], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 53}}, {"id": 156, "type": "pointer_expression", "text": "*incasinatore", "parent": 155, "children": [157, 158], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 52}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 40}}, {"id": 158, "type": "identifier", "text": "incasinatore", "parent": 156, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 52}}, {"id": 159, "type": "field_identifier", "text": "next", "parent": 154, "children": [], "start_point": {"row": 34, "column": 54}, "end_point": {"row": 34, "column": 58}}, {"id": 160, "type": "declaration", "text": "el* pre = (*incasinatore).prev;", "parent": 122, "children": [161, 162], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 33}}, {"id": 161, "type": "type_identifier", "text": "el", "parent": 160, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 4}}, {"id": 162, "type": "init_declarator", "text": "* pre = (*incasinatore).prev", "parent": 160, "children": [163, 166, 167], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 32}}, {"id": 163, "type": "pointer_declarator", "text": "* pre", "parent": 162, "children": [164, 165], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 9}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 5}}, {"id": 165, "type": "identifier", "text": "pre", "parent": 163, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 9}}, {"id": 166, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 11}}, {"id": 167, "type": "field_expression", "text": "(*incasinatore).prev", "parent": 162, "children": [168, 172], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 32}}, {"id": 168, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 167, "children": [169], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 27}}, {"id": 169, "type": "pointer_expression", "text": "*incasinatore", "parent": 168, "children": [170, 171], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 26}}, {"id": 170, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 14}}, {"id": 171, "type": "identifier", "text": "incasinatore", "parent": 169, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 26}}, {"id": 172, "type": "field_identifier", "text": "prev", "parent": 167, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 32}}, {"id": 173, "type": "while_statement", "text": "while(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n\t\t{\n\t\t\tif((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n\t\t\tif((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n\t\t\t(*pre).next = (*incasinatore).next;\n\t\t\t(*incasinatore).next = pre;\n\t\t\t(*incasinatore).prev = (*pre).prev;\n\t\t\t(*pre).prev = incasinatore;\n\t\t\tpre = (*incasinatore).prev;\n\t\t}", "parent": 122, "children": [174], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 46, "column": 3}}, {"id": 174, "type": "parenthesized_expression", "text": "(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)", "parent": 173, "children": [175], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 66}}, {"id": 175, "type": "binary_expression", "text": "pre != NULL && (*incasinatore).ricerche > (*pre).ricerche", "parent": 174, "children": [176, 181, 182], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 65}}, {"id": 176, "type": "binary_expression", "text": "pre != NULL", "parent": 175, "children": [177, 178, 179], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 19}}, {"id": 177, "type": "identifier", "text": "pre", "parent": 176, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 11}}, {"id": 178, "type": "!=", "text": "!=", "parent": 176, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 14}}, {"id": 179, "type": "null", "text": "NULL", "parent": 176, "children": [180], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 19}}, {"id": 180, "type": "NULL", "text": "NULL", "parent": 179, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 19}}, {"id": 181, "type": "&&", "text": "&&", "parent": 175, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 22}}, {"id": 182, "type": "binary_expression", "text": "(*incasinatore).ricerche > (*pre).ricerche", "parent": 175, "children": [183, 189, 190], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 65}}, {"id": 183, "type": "field_expression", "text": "(*incasinatore).ricerche", "parent": 182, "children": [184, 188], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 47}}, {"id": 184, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 183, "children": [185], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 38}}, {"id": 185, "type": "pointer_expression", "text": "*incasinatore", "parent": 184, "children": [186, 187], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 37}}, {"id": 186, "type": "*", "text": "*", "parent": 185, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 25}}, {"id": 187, "type": "identifier", "text": "incasinatore", "parent": 185, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 37}}, {"id": 188, "type": "field_identifier", "text": "ricerche", "parent": 183, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 47}}, {"id": 189, "type": ">", "text": ">", "parent": 182, "children": [], "start_point": {"row": 37, "column": 48}, "end_point": {"row": 37, "column": 49}}, {"id": 190, "type": "field_expression", "text": "(*pre).ricerche", "parent": 182, "children": [191, 195], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 65}}, {"id": 191, "type": "parenthesized_expression", "text": "(*pre)", "parent": 190, "children": [192], "start_point": {"row": 37, "column": 50}, "end_point": {"row": 37, "column": 56}}, {"id": 192, "type": "pointer_expression", "text": "*pre", "parent": 191, "children": [193, 194], "start_point": {"row": 37, "column": 51}, "end_point": {"row": 37, "column": 55}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 37, "column": 51}, "end_point": {"row": 37, "column": 52}}, {"id": 194, "type": "identifier", "text": "pre", "parent": 192, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 55}}, {"id": 195, "type": "field_identifier", "text": "ricerche", "parent": 190, "children": [], "start_point": {"row": 37, "column": 57}, "end_point": {"row": 37, "column": 65}}, {"id": 196, "type": "if_statement", "text": "if((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;", "parent": 173, "children": [197], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 71}}, {"id": 197, "type": "parenthesized_expression", "text": "((*incasinatore).next != NULL)", "parent": 196, "children": [198], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 35}}, {"id": 198, "type": "binary_expression", "text": "(*incasinatore).next != NULL", "parent": 197, "children": [199, 205, 206], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 34}}, {"id": 199, "type": "field_expression", "text": "(*incasinatore).next", "parent": 198, "children": [200, 204], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 26}}, {"id": 200, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 199, "children": [201], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 21}}, {"id": 201, "type": "pointer_expression", "text": "*incasinatore", "parent": 200, "children": [202, 203], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 20}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 8}}, {"id": 203, "type": "identifier", "text": "incasinatore", "parent": 201, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 20}}, {"id": 204, "type": "field_identifier", "text": "next", "parent": 199, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 26}}, {"id": 205, "type": "!=", "text": "!=", "parent": 198, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 29}}, {"id": 206, "type": "null", "text": "NULL", "parent": 198, "children": [207], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 207, "type": "NULL", "text": "NULL", "parent": 206, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 208, "type": "assignment_expression", "text": "(*(*incasinatore).next).prev = pre", "parent": 196, "children": [209, 220, 221], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 70}}, {"id": 209, "type": "field_expression", "text": "(*(*incasinatore).next).prev", "parent": 208, "children": [210, 219], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 64}}, {"id": 210, "type": "parenthesized_expression", "text": "(*(*incasinatore).next)", "parent": 209, "children": [211], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 59}}, {"id": 211, "type": "pointer_expression", "text": "*(*incasinatore).next", "parent": 210, "children": [212, 213], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 58}}, {"id": 212, "type": "*", "text": "*", "parent": 211, "children": [], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 38}}, {"id": 213, "type": "field_expression", "text": "(*incasinatore).next", "parent": 211, "children": [214, 218], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 58}}, {"id": 214, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 213, "children": [215], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 53}}, {"id": 215, "type": "pointer_expression", "text": "*incasinatore", "parent": 214, "children": [216, 217], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 52}}, {"id": 216, "type": "*", "text": "*", "parent": 215, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 40}}, {"id": 217, "type": "identifier", "text": "incasinatore", "parent": 215, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 52}}, {"id": 218, "type": "field_identifier", "text": "next", "parent": 213, "children": [], "start_point": {"row": 39, "column": 54}, "end_point": {"row": 39, "column": 58}}, {"id": 219, "type": "field_identifier", "text": "prev", "parent": 209, "children": [], "start_point": {"row": 39, "column": 60}, "end_point": {"row": 39, "column": 64}}, {"id": 220, "type": "=", "text": "=", "parent": 208, "children": [], "start_point": {"row": 39, "column": 65}, "end_point": {"row": 39, "column": 66}}, {"id": 221, "type": "identifier", "text": "pre", "parent": 208, "children": [], "start_point": {"row": 39, "column": 67}, "end_point": {"row": 39, "column": 70}}, {"id": 222, "type": "if_statement", "text": "if((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;", "parent": 173, "children": [223], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 62}}, {"id": 223, "type": "parenthesized_expression", "text": "((*pre).prev != NULL)", "parent": 222, "children": [224], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 26}}, {"id": 224, "type": "binary_expression", "text": "(*pre).prev != NULL", "parent": 223, "children": [225, 231, 232], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 25}}, {"id": 225, "type": "field_expression", "text": "(*pre).prev", "parent": 224, "children": [226, 230], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 17}}, {"id": 226, "type": "parenthesized_expression", "text": "(*pre)", "parent": 225, "children": [227], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 12}}, {"id": 227, "type": "pointer_expression", "text": "*pre", "parent": 226, "children": [228, 229], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 11}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 8}}, {"id": 229, "type": "identifier", "text": "pre", "parent": 227, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 11}}, {"id": 230, "type": "field_identifier", "text": "prev", "parent": 225, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 17}}, {"id": 231, "type": "!=", "text": "!=", "parent": 224, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 20}}, {"id": 232, "type": "null", "text": "NULL", "parent": 224, "children": [233], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 25}}, {"id": 233, "type": "NULL", "text": "NULL", "parent": 232, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 25}}, {"id": 234, "type": "assignment_expression", "text": "(*(*pre).prev).next = incasinatore", "parent": 222, "children": [235, 246, 247], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 61}}, {"id": 235, "type": "field_expression", "text": "(*(*pre).prev).next", "parent": 234, "children": [236, 245], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 46}}, {"id": 236, "type": "parenthesized_expression", "text": "(*(*pre).prev)", "parent": 235, "children": [237], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 41}}, {"id": 237, "type": "pointer_expression", "text": "*(*pre).prev", "parent": 236, "children": [238, 239], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 40}}, {"id": 238, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 29}}, {"id": 239, "type": "field_expression", "text": "(*pre).prev", "parent": 237, "children": [240, 244], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 40}}, {"id": 240, "type": "parenthesized_expression", "text": "(*pre)", "parent": 239, "children": [241], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 35}}, {"id": 241, "type": "pointer_expression", "text": "*pre", "parent": 240, "children": [242, 243], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 34}}, {"id": 242, "type": "*", "text": "*", "parent": 241, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 31}}, {"id": 243, "type": "identifier", "text": "pre", "parent": 241, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 34}}, {"id": 244, "type": "field_identifier", "text": "prev", "parent": 239, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 40}}, {"id": 245, "type": "field_identifier", "text": "next", "parent": 235, "children": [], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 46}}, {"id": 246, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 40, "column": 47}, "end_point": {"row": 40, "column": 48}}, {"id": 247, "type": "identifier", "text": "incasinatore", "parent": 234, "children": [], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 61}}, {"id": 248, "type": "assignment_expression", "text": "(*pre).next = (*incasinatore).next", "parent": 173, "children": [249, 255, 256], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 37}}, {"id": 249, "type": "field_expression", "text": "(*pre).next", "parent": 248, "children": [250, 254], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 14}}, {"id": 250, "type": "parenthesized_expression", "text": "(*pre)", "parent": 249, "children": [251], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 9}}, {"id": 251, "type": "pointer_expression", "text": "*pre", "parent": 250, "children": [252, 253], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 8}}, {"id": 252, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 5}}, {"id": 253, "type": "identifier", "text": "pre", "parent": 251, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 8}}, {"id": 254, "type": "field_identifier", "text": "next", "parent": 249, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 14}}, {"id": 255, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 16}}, {"id": 256, "type": "field_expression", "text": "(*incasinatore).next", "parent": 248, "children": [257, 261], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 37}}, {"id": 257, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 256, "children": [258], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 32}}, {"id": 258, "type": "pointer_expression", "text": "*incasinatore", "parent": 257, "children": [259, 260], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 31}}, {"id": 259, "type": "*", "text": "*", "parent": 258, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 260, "type": "identifier", "text": "incasinatore", "parent": 258, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 31}}, {"id": 261, "type": "field_identifier", "text": "next", "parent": 256, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 37}}, {"id": 262, "type": "assignment_expression", "text": "(*incasinatore).next = pre", "parent": 173, "children": [263, 269, 270], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 29}}, {"id": 263, "type": "field_expression", "text": "(*incasinatore).next", "parent": 262, "children": [264, 268], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 23}}, {"id": 264, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 263, "children": [265], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 18}}, {"id": 265, "type": "pointer_expression", "text": "*incasinatore", "parent": 264, "children": [266, 267], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 17}}, {"id": 266, "type": "*", "text": "*", "parent": 265, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 5}}, {"id": 267, "type": "identifier", "text": "incasinatore", "parent": 265, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 17}}, {"id": 268, "type": "field_identifier", "text": "next", "parent": 263, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 23}}, {"id": 269, "type": "=", "text": "=", "parent": 262, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 25}}, {"id": 270, "type": "identifier", "text": "pre", "parent": 262, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 29}}, {"id": 271, "type": "assignment_expression", "text": "(*incasinatore).prev = (*pre).prev", "parent": 173, "children": [272, 278, 279], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 37}}, {"id": 272, "type": "field_expression", "text": "(*incasinatore).prev", "parent": 271, "children": [273, 277], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 23}}, {"id": 273, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 272, "children": [274], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 18}}, {"id": 274, "type": "pointer_expression", "text": "*incasinatore", "parent": 273, "children": [275, 276], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 17}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 5}}, {"id": 276, "type": "identifier", "text": "incasinatore", "parent": 274, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 17}}, {"id": 277, "type": "field_identifier", "text": "prev", "parent": 272, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 23}}, {"id": 278, "type": "=", "text": "=", "parent": 271, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 25}}, {"id": 279, "type": "field_expression", "text": "(*pre).prev", "parent": 271, "children": [280, 284], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 37}}, {"id": 280, "type": "parenthesized_expression", "text": "(*pre)", "parent": 279, "children": [281], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 32}}, {"id": 281, "type": "pointer_expression", "text": "*pre", "parent": 280, "children": [282, 283], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 31}}, {"id": 282, "type": "*", "text": "*", "parent": 281, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 28}}, {"id": 283, "type": "identifier", "text": "pre", "parent": 281, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 31}}, {"id": 284, "type": "field_identifier", "text": "prev", "parent": 279, "children": [], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 37}}, {"id": 285, "type": "assignment_expression", "text": "(*pre).prev = incasinatore", "parent": 173, "children": [286, 292, 293], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 29}}, {"id": 286, "type": "field_expression", "text": "(*pre).prev", "parent": 285, "children": [287, 291], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 14}}, {"id": 287, "type": "parenthesized_expression", "text": "(*pre)", "parent": 286, "children": [288], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 9}}, {"id": 288, "type": "pointer_expression", "text": "*pre", "parent": 287, "children": [289, 290], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 289, "type": "*", "text": "*", "parent": 288, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 5}}, {"id": 290, "type": "identifier", "text": "pre", "parent": 288, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 8}}, {"id": 291, "type": "field_identifier", "text": "prev", "parent": 286, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 14}}, {"id": 292, "type": "=", "text": "=", "parent": 285, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 16}}, {"id": 293, "type": "identifier", "text": "incasinatore", "parent": 285, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 29}}, {"id": 294, "type": "assignment_expression", "text": "pre = (*incasinatore).prev", "parent": 173, "children": [295, 296, 297], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 29}}, {"id": 295, "type": "identifier", "text": "pre", "parent": 294, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 6}}, {"id": 296, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 8}}, {"id": 297, "type": "field_expression", "text": "(*incasinatore).prev", "parent": 294, "children": [298, 302], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 29}}, {"id": 298, "type": "parenthesized_expression", "text": "(*incasinatore)", "parent": 297, "children": [299], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 24}}, {"id": 299, "type": "pointer_expression", "text": "*incasinatore", "parent": 298, "children": [300, 301], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 23}}, {"id": 300, "type": "*", "text": "*", "parent": 299, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 11}}, {"id": 301, "type": "identifier", "text": "incasinatore", "parent": 299, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 23}}, {"id": 302, "type": "field_identifier", "text": "prev", "parent": 297, "children": [], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 29}}, {"id": 303, "type": "if_statement", "text": "if(pre == NULL) l = incasinatore;", "parent": 122, "children": [304], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 35}}, {"id": 304, "type": "parenthesized_expression", "text": "(pre == NULL)", "parent": 303, "children": [305], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 17}}, {"id": 305, "type": "binary_expression", "text": "pre == NULL", "parent": 304, "children": [306, 307, 308], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 16}}, {"id": 306, "type": "identifier", "text": "pre", "parent": 305, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 8}}, {"id": 307, "type": "==", "text": "==", "parent": 305, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 11}}, {"id": 308, "type": "null", "text": "NULL", "parent": 305, "children": [309], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 16}}, {"id": 309, "type": "NULL", "text": "NULL", "parent": 308, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 16}}, {"id": 310, "type": "assignment_expression", "text": "l = incasinatore", "parent": 303, "children": [311, 312, 313], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 34}}, {"id": 311, "type": "identifier", "text": "l", "parent": 310, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 312, "type": "=", "text": "=", "parent": 310, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 21}}, {"id": 313, "type": "identifier", "text": "incasinatore", "parent": 310, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 34}}, {"id": 314, "type": "return_statement", "text": "return l;", "parent": 107, "children": [315], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 10}}, {"id": 315, "type": "identifier", "text": "l", "parent": 314, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 9}}, {"id": 316, "type": "function_definition", "text": "int main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\n\t//Crea la lista\n\tint input;\n\tscanf(\"%d\", &input);\n\n\tel* testa = malloc(sizeof(el));\n\t(*testa).ricerche = 0;\n\t(*testa).key = input;\n\t(*testa).prev = NULL;\n\t(*testa).next = NULL;\n\tn--;\n\n\t//Accoda in lista\n\tel* l = testa;\n\tfor(; n>0; n--)\n\t{\n\t\tscanf(\"%d\", &input);\n\t\tel* new = malloc(sizeof(el));\n\t\t(*new).ricerche = 0;\n\t\t(*new).key = input;\n\t\t(*new).prev = l;\n\t\t(*new).next = NULL;\n\t\t(*l).next = new;\n\t\tl = new;\n\t}\n\n\t//Ricerche\n\tscanf(\"%d\", &input);\n\tint pos = Ricerca(testa, input);\n\tprintf(\"%d\\n\", pos);\n\ttesta = Aggiusta(testa, pos);\n\twhile(pos != -1)\n\t{\n\t\tscanf(\"%d\", &input);\n\t\tpos = Ricerca(testa, input);\n\t\tprintf(\"%d\\n\", pos);\n\t\ttesta = Aggiusta(testa, pos);\n\t}\n\n\treturn 0;\n}", "parent": null, "children": [317, 318], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 97, "column": 1}}, {"id": 317, "type": "primitive_type", "text": "int", "parent": 316, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 3}}, {"id": 318, "type": "function_declarator", "text": "main()", "parent": 316, "children": [319, 320], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 10}}, {"id": 319, "type": "identifier", "text": "main", "parent": 318, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 320, "type": "parameter_list", "text": "()", "parent": 318, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 10}}, {"id": 321, "type": "declaration", "text": "int n;", "parent": 316, "children": [322, 323], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 7}}, {"id": 322, "type": "primitive_type", "text": "int", "parent": 321, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 4}}, {"id": 323, "type": "identifier", "text": "n", "parent": 321, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 6}}, {"id": 324, "type": "call_expression", "text": "scanf(\"%d\", &n)", "parent": 316, "children": [325, 326], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 16}}, {"id": 325, "type": "identifier", "text": "scanf", "parent": 324, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 6}}, {"id": 326, "type": "argument_list", "text": "(\"%d\", &n)", "parent": 324, "children": [327, 328], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 16}}, {"id": 327, "type": "string_literal", "text": "\"%d\"", "parent": 326, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 11}}, {"id": 328, "type": "pointer_expression", "text": "&n", "parent": 326, "children": [329], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 15}}, {"id": 329, "type": "identifier", "text": "n", "parent": 328, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 15}}, {"id": 330, "type": "declaration", "text": "int input;", "parent": 316, "children": [331, 332], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 11}}, {"id": 331, "type": "primitive_type", "text": "int", "parent": 330, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 4}}, {"id": 332, "type": "identifier", "text": "input", "parent": 330, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 10}}, {"id": 333, "type": "call_expression", "text": "scanf(\"%d\", &input)", "parent": 316, "children": [334, 335], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 20}}, {"id": 334, "type": "identifier", "text": "scanf", "parent": 333, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 6}}, {"id": 335, "type": "argument_list", "text": "(\"%d\", &input)", "parent": 333, "children": [336, 337], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 20}}, {"id": 336, "type": "string_literal", "text": "\"%d\"", "parent": 335, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 11}}, {"id": 337, "type": "pointer_expression", "text": "&input", "parent": 335, "children": [338], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 19}}, {"id": 338, "type": "identifier", "text": "input", "parent": 337, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 19}}, {"id": 339, "type": "declaration", "text": "el* testa = malloc(sizeof(el));", "parent": 316, "children": [340, 341], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 32}}, {"id": 340, "type": "type_identifier", "text": "el", "parent": 339, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 3}}, {"id": 341, "type": "init_declarator", "text": "* testa = malloc(sizeof(el))", "parent": 339, "children": [342, 345, 346], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 31}}, {"id": 342, "type": "pointer_declarator", "text": "* testa", "parent": 341, "children": [343, 344], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 10}}, {"id": 343, "type": "*", "text": "*", "parent": 342, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 4}}, {"id": 344, "type": "identifier", "text": "testa", "parent": 342, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 10}}, {"id": 345, "type": "=", "text": "=", "parent": 341, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 346, "type": "call_expression", "text": "malloc(sizeof(el))", "parent": 341, "children": [347, 348], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 31}}, {"id": 347, "type": "identifier", "text": "malloc", "parent": 346, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 19}}, {"id": 348, "type": "argument_list", "text": "(sizeof(el))", "parent": 346, "children": [349], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 31}}, {"id": 349, "type": "sizeof_expression", "text": "sizeof(el)", "parent": 348, "children": [350], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 30}}, {"id": 350, "type": "parenthesized_expression", "text": "(el)", "parent": 349, "children": [351], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 30}}, {"id": 351, "type": "identifier", "text": "el", "parent": 350, "children": [], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 29}}, {"id": 352, "type": "assignment_expression", "text": "(*testa).ricerche = 0", "parent": 316, "children": [353, 359, 360], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 22}}, {"id": 353, "type": "field_expression", "text": "(*testa).ricerche", "parent": 352, "children": [354, 358], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 18}}, {"id": 354, "type": "parenthesized_expression", "text": "(*testa)", "parent": 353, "children": [355], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 9}}, {"id": 355, "type": "pointer_expression", "text": "*testa", "parent": 354, "children": [356, 357], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 8}}, {"id": 356, "type": "*", "text": "*", "parent": 355, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 3}}, {"id": 357, "type": "identifier", "text": "testa", "parent": 355, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 8}}, {"id": 358, "type": "field_identifier", "text": "ricerche", "parent": 353, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 18}}, {"id": 359, "type": "=", "text": "=", "parent": 352, "children": [], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 20}}, {"id": 360, "type": "number_literal", "text": "0", "parent": 352, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 22}}, {"id": 361, "type": "assignment_expression", "text": "(*testa).key = input", "parent": 316, "children": [362, 368, 369], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 21}}, {"id": 362, "type": "field_expression", "text": "(*testa).key", "parent": 361, "children": [363, 367], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 13}}, {"id": 363, "type": "parenthesized_expression", "text": "(*testa)", "parent": 362, "children": [364], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 9}}, {"id": 364, "type": "pointer_expression", "text": "*testa", "parent": 363, "children": [365, 366], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 8}}, {"id": 365, "type": "*", "text": "*", "parent": 364, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 3}}, {"id": 366, "type": "identifier", "text": "testa", "parent": 364, "children": [], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 8}}, {"id": 367, "type": "field_identifier", "text": "key", "parent": 362, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 13}}, {"id": 368, "type": "=", "text": "=", "parent": 361, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 15}}, {"id": 369, "type": "identifier", "text": "input", "parent": 361, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 21}}, {"id": 370, "type": "assignment_expression", "text": "(*testa).prev = NULL", "parent": 316, "children": [371, 377, 378], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 21}}, {"id": 371, "type": "field_expression", "text": "(*testa).prev", "parent": 370, "children": [372, 376], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 14}}, {"id": 372, "type": "parenthesized_expression", "text": "(*testa)", "parent": 371, "children": [373], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 9}}, {"id": 373, "type": "pointer_expression", "text": "*testa", "parent": 372, "children": [374, 375], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 8}}, {"id": 374, "type": "*", "text": "*", "parent": 373, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 3}}, {"id": 375, "type": "identifier", "text": "testa", "parent": 373, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 8}}, {"id": 376, "type": "field_identifier", "text": "prev", "parent": 371, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 14}}, {"id": 377, "type": "=", "text": "=", "parent": 370, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 16}}, {"id": 378, "type": "null", "text": "NULL", "parent": 370, "children": [379], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 21}}, {"id": 379, "type": "NULL", "text": "NULL", "parent": 378, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 21}}, {"id": 380, "type": "assignment_expression", "text": "(*testa).next = NULL", "parent": 316, "children": [381, 387, 388], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 21}}, {"id": 381, "type": "field_expression", "text": "(*testa).next", "parent": 380, "children": [382, 386], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 14}}, {"id": 382, "type": "parenthesized_expression", "text": "(*testa)", "parent": 381, "children": [383], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 9}}, {"id": 383, "type": "pointer_expression", "text": "*testa", "parent": 382, "children": [384, 385], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 8}}, {"id": 384, "type": "*", "text": "*", "parent": 383, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 3}}, {"id": 385, "type": "identifier", "text": "testa", "parent": 383, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 8}}, {"id": 386, "type": "field_identifier", "text": "next", "parent": 381, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 14}}, {"id": 387, "type": "=", "text": "=", "parent": 380, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 16}}, {"id": 388, "type": "null", "text": "NULL", "parent": 380, "children": [389], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 21}}, {"id": 389, "type": "NULL", "text": "NULL", "parent": 388, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 21}}, {"id": 390, "type": "update_expression", "text": "n--", "parent": 316, "children": [391, 392], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 4}}, {"id": 391, "type": "identifier", "text": "n", "parent": 390, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 2}}, {"id": 392, "type": "--", "text": "--", "parent": 390, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 4}}, {"id": 393, "type": "declaration", "text": "el* l = testa;", "parent": 316, "children": [394, 395], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 15}}, {"id": 394, "type": "type_identifier", "text": "el", "parent": 393, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 3}}, {"id": 395, "type": "init_declarator", "text": "* l = testa", "parent": 393, "children": [396, 399, 400], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 14}}, {"id": 396, "type": "pointer_declarator", "text": "* l", "parent": 395, "children": [397, 398], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 6}}, {"id": 397, "type": "*", "text": "*", "parent": 396, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 4}}, {"id": 398, "type": "identifier", "text": "l", "parent": 396, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 6}}, {"id": 399, "type": "=", "text": "=", "parent": 395, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 8}}, {"id": 400, "type": "identifier", "text": "testa", "parent": 395, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 14}}, {"id": 401, "type": "for_statement", "text": "for(; n>0; n--)\n\t{\n\t\tscanf(\"%d\", &input);\n\t\tel* new = malloc(sizeof(el));\n\t\t(*new).ricerche = 0;\n\t\t(*new).key = input;\n\t\t(*new).prev = l;\n\t\t(*new).next = NULL;\n\t\t(*l).next = new;\n\t\tl = new;\n\t}", "parent": 316, "children": [402, 406], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 81, "column": 2}}, {"id": 402, "type": "binary_expression", "text": "n>0", "parent": 401, "children": [403, 404, 405], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 10}}, {"id": 403, "type": "identifier", "text": "n", "parent": 402, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 8}}, {"id": 404, "type": ">", "text": ">", "parent": 402, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 9}}, {"id": 405, "type": "number_literal", "text": "0", "parent": 402, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 406, "type": "update_expression", "text": "n--", "parent": 401, "children": [407, 408], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 15}}, {"id": 407, "type": "identifier", "text": "n", "parent": 406, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 13}}, {"id": 408, "type": "--", "text": "--", "parent": 406, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 15}}, {"id": 409, "type": "call_expression", "text": "scanf(\"%d\", &input)", "parent": 401, "children": [410, 411], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 21}}, {"id": 410, "type": "identifier", "text": "scanf", "parent": 409, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 7}}, {"id": 411, "type": "argument_list", "text": "(\"%d\", &input)", "parent": 409, "children": [412, 413], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 21}}, {"id": 412, "type": "string_literal", "text": "\"%d\"", "parent": 411, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 12}}, {"id": 413, "type": "pointer_expression", "text": "&input", "parent": 411, "children": [414], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 20}}, {"id": 414, "type": "identifier", "text": "input", "parent": 413, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 20}}, {"id": 415, "type": "declaration", "text": "el* new = malloc(sizeof(el));", "parent": 401, "children": [416, 417], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 31}}, {"id": 416, "type": "type_identifier", "text": "el", "parent": 415, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 4}}, {"id": 417, "type": "init_declarator", "text": "* new = malloc(sizeof(el))", "parent": 415, "children": [418, 420, 421], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 30}}, {"id": 418, "type": "pointer_declarator", "text": "* new", "parent": 417, "children": [419], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 9}}, {"id": 419, "type": "*", "text": "*", "parent": 418, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 5}}, {"id": 420, "type": "=", "text": "=", "parent": 417, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 11}}, {"id": 421, "type": "call_expression", "text": "malloc(sizeof(el))", "parent": 417, "children": [422, 423], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 30}}, {"id": 422, "type": "identifier", "text": "malloc", "parent": 421, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 18}}, {"id": 423, "type": "argument_list", "text": "(sizeof(el))", "parent": 421, "children": [424], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 30}}, {"id": 424, "type": "sizeof_expression", "text": "sizeof(el)", "parent": 423, "children": [425], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 29}}, {"id": 425, "type": "parenthesized_expression", "text": "(el)", "parent": 424, "children": [426], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 29}}, {"id": 426, "type": "identifier", "text": "el", "parent": 425, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 28}}, {"id": 427, "type": "assignment_expression", "text": "(*new).ricerche = 0", "parent": 401, "children": [428, 433, 434], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 21}}, {"id": 428, "type": "field_expression", "text": "(*new).ricerche", "parent": 427, "children": [429, 432], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 17}}, {"id": 429, "type": "parenthesized_expression", "text": "(*new)", "parent": 428, "children": [430], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 8}}, {"id": 430, "type": "pointer_expression", "text": "*new", "parent": 429, "children": [431], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 7}}, {"id": 431, "type": "*", "text": "*", "parent": 430, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 4}}, {"id": 432, "type": "field_identifier", "text": "ricerche", "parent": 428, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 17}}, {"id": 433, "type": "=", "text": "=", "parent": 427, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 19}}, {"id": 434, "type": "number_literal", "text": "0", "parent": 427, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 21}}, {"id": 435, "type": "assignment_expression", "text": "(*new).key = input", "parent": 401, "children": [436, 441, 442], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 20}}, {"id": 436, "type": "field_expression", "text": "(*new).key", "parent": 435, "children": [437, 440], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 12}}, {"id": 437, "type": "parenthesized_expression", "text": "(*new)", "parent": 436, "children": [438], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 8}}, {"id": 438, "type": "pointer_expression", "text": "*new", "parent": 437, "children": [439], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 7}}, {"id": 439, "type": "*", "text": "*", "parent": 438, "children": [], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 4}}, {"id": 440, "type": "field_identifier", "text": "key", "parent": 436, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 12}}, {"id": 441, "type": "=", "text": "=", "parent": 435, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 14}}, {"id": 442, "type": "identifier", "text": "input", "parent": 435, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 20}}, {"id": 443, "type": "assignment_expression", "text": "(*new).prev = l", "parent": 401, "children": [444, 449, 450], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 17}}, {"id": 444, "type": "field_expression", "text": "(*new).prev", "parent": 443, "children": [445, 448], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 13}}, {"id": 445, "type": "parenthesized_expression", "text": "(*new)", "parent": 444, "children": [446], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 8}}, {"id": 446, "type": "pointer_expression", "text": "*new", "parent": 445, "children": [447], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 7}}, {"id": 447, "type": "*", "text": "*", "parent": 446, "children": [], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 4}}, {"id": 448, "type": "field_identifier", "text": "prev", "parent": 444, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 13}}, {"id": 449, "type": "=", "text": "=", "parent": 443, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 15}}, {"id": 450, "type": "identifier", "text": "l", "parent": 443, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 17}}, {"id": 451, "type": "assignment_expression", "text": "(*new).next = NULL", "parent": 401, "children": [452, 457, 458], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 20}}, {"id": 452, "type": "field_expression", "text": "(*new).next", "parent": 451, "children": [453, 456], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 13}}, {"id": 453, "type": "parenthesized_expression", "text": "(*new)", "parent": 452, "children": [454], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 8}}, {"id": 454, "type": "pointer_expression", "text": "*new", "parent": 453, "children": [455], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 7}}, {"id": 455, "type": "*", "text": "*", "parent": 454, "children": [], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 4}}, {"id": 456, "type": "field_identifier", "text": "next", "parent": 452, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 13}}, {"id": 457, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 15}}, {"id": 458, "type": "null", "text": "NULL", "parent": 451, "children": [459], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 20}}, {"id": 459, "type": "NULL", "text": "NULL", "parent": 458, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 20}}, {"id": 460, "type": "assignment_expression", "text": "(*l).next = new", "parent": 401, "children": [461, 467], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 17}}, {"id": 461, "type": "field_expression", "text": "(*l).next", "parent": 460, "children": [462, 466], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 11}}, {"id": 462, "type": "parenthesized_expression", "text": "(*l)", "parent": 461, "children": [463], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 6}}, {"id": 463, "type": "pointer_expression", "text": "*l", "parent": 462, "children": [464, 465], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 5}}, {"id": 464, "type": "*", "text": "*", "parent": 463, "children": [], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 4}}, {"id": 465, "type": "identifier", "text": "l", "parent": 463, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 5}}, {"id": 466, "type": "field_identifier", "text": "next", "parent": 461, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 11}}, {"id": 467, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 13}}, {"id": 468, "type": "assignment_expression", "text": "l = new", "parent": 401, "children": [469, 470], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 9}}, {"id": 469, "type": "identifier", "text": "l", "parent": 468, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 3}}, {"id": 470, "type": "=", "text": "=", "parent": 468, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 5}}, {"id": 471, "type": "call_expression", "text": "scanf(\"%d\", &input)", "parent": 316, "children": [472, 473], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 20}}, {"id": 472, "type": "identifier", "text": "scanf", "parent": 471, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 6}}, {"id": 473, "type": "argument_list", "text": "(\"%d\", &input)", "parent": 471, "children": [474, 475], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 20}}, {"id": 474, "type": "string_literal", "text": "\"%d\"", "parent": 473, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 11}}, {"id": 475, "type": "pointer_expression", "text": "&input", "parent": 473, "children": [476], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 19}}, {"id": 476, "type": "identifier", "text": "input", "parent": 475, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 19}}, {"id": 477, "type": "declaration", "text": "int pos = Ricerca(testa, input);", "parent": 316, "children": [478, 479], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 33}}, {"id": 478, "type": "primitive_type", "text": "int", "parent": 477, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 4}}, {"id": 479, "type": "init_declarator", "text": "pos = Ricerca(testa, input)", "parent": 477, "children": [480, 481, 482], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 32}}, {"id": 480, "type": "identifier", "text": "pos", "parent": 479, "children": [], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 8}}, {"id": 481, "type": "=", "text": "=", "parent": 479, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 10}}, {"id": 482, "type": "call_expression", "text": "Ricerca(testa, input)", "parent": 479, "children": [483, 484], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 32}}, {"id": 483, "type": "identifier", "text": "Ricerca", "parent": 482, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 18}}, {"id": 484, "type": "argument_list", "text": "(testa, input)", "parent": 482, "children": [485, 486], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 32}}, {"id": 485, "type": "identifier", "text": "testa", "parent": 484, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 24}}, {"id": 486, "type": "identifier", "text": "input", "parent": 484, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 31}}, {"id": 487, "type": "call_expression", "text": "printf(\"%d\\n\", pos)", "parent": 316, "children": [488, 489], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 20}}, {"id": 488, "type": "identifier", "text": "printf", "parent": 487, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 7}}, {"id": 489, "type": "argument_list", "text": "(\"%d\\n\", pos)", "parent": 487, "children": [490, 492], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 20}}, {"id": 490, "type": "string_literal", "text": "\"%d\\n\"", "parent": 489, "children": [491], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 14}}, {"id": 491, "type": "escape_sequence", "text": "\\n", "parent": 490, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 13}}, {"id": 492, "type": "identifier", "text": "pos", "parent": 489, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 19}}, {"id": 493, "type": "assignment_expression", "text": "testa = Aggiusta(testa, pos)", "parent": 316, "children": [494, 495, 496], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 29}}, {"id": 494, "type": "identifier", "text": "testa", "parent": 493, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 6}}, {"id": 495, "type": "=", "text": "=", "parent": 493, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 8}}, {"id": 496, "type": "call_expression", "text": "Aggiusta(testa, pos)", "parent": 493, "children": [497, 498], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 29}}, {"id": 497, "type": "identifier", "text": "Aggiusta", "parent": 496, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 17}}, {"id": 498, "type": "argument_list", "text": "(testa, pos)", "parent": 496, "children": [499, 500], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 29}}, {"id": 499, "type": "identifier", "text": "testa", "parent": 498, "children": [], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 23}}, {"id": 500, "type": "identifier", "text": "pos", "parent": 498, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 28}}, {"id": 501, "type": "while_statement", "text": "while(pos != -1)\n\t{\n\t\tscanf(\"%d\", &input);\n\t\tpos = Ricerca(testa, input);\n\t\tprintf(\"%d\\n\", pos);\n\t\ttesta = Aggiusta(testa, pos);\n\t}", "parent": 316, "children": [502], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 94, "column": 2}}, {"id": 502, "type": "parenthesized_expression", "text": "(pos != -1)", "parent": 501, "children": [503], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 17}}, {"id": 503, "type": "binary_expression", "text": "pos != -1", "parent": 502, "children": [504, 505, 506], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 16}}, {"id": 504, "type": "identifier", "text": "pos", "parent": 503, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 10}}, {"id": 505, "type": "!=", "text": "!=", "parent": 503, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 13}}, {"id": 506, "type": "number_literal", "text": "-1", "parent": 503, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 16}}, {"id": 507, "type": "call_expression", "text": "scanf(\"%d\", &input)", "parent": 501, "children": [508, 509], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 21}}, {"id": 508, "type": "identifier", "text": "scanf", "parent": 507, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 7}}, {"id": 509, "type": "argument_list", "text": "(\"%d\", &input)", "parent": 507, "children": [510, 511], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 21}}, {"id": 510, "type": "string_literal", "text": "\"%d\"", "parent": 509, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 12}}, {"id": 511, "type": "pointer_expression", "text": "&input", "parent": 509, "children": [512], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 20}}, {"id": 512, "type": "identifier", "text": "input", "parent": 511, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 20}}, {"id": 513, "type": "assignment_expression", "text": "pos = Ricerca(testa, input)", "parent": 501, "children": [514, 515, 516], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 29}}, {"id": 514, "type": "identifier", "text": "pos", "parent": 513, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 5}}, {"id": 515, "type": "=", "text": "=", "parent": 513, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 7}}, {"id": 516, "type": "call_expression", "text": "Ricerca(testa, input)", "parent": 513, "children": [517, 518], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 29}}, {"id": 517, "type": "identifier", "text": "Ricerca", "parent": 516, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 15}}, {"id": 518, "type": "argument_list", "text": "(testa, input)", "parent": 516, "children": [519, 520], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 29}}, {"id": 519, "type": "identifier", "text": "testa", "parent": 518, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 21}}, {"id": 520, "type": "identifier", "text": "input", "parent": 518, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 28}}, {"id": 521, "type": "call_expression", "text": "printf(\"%d\\n\", pos)", "parent": 501, "children": [522, 523], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 21}}, {"id": 522, "type": "identifier", "text": "printf", "parent": 521, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 8}}, {"id": 523, "type": "argument_list", "text": "(\"%d\\n\", pos)", "parent": 521, "children": [524, 526], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 21}}, {"id": 524, "type": "string_literal", "text": "\"%d\\n\"", "parent": 523, "children": [525], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 15}}, {"id": 525, "type": "escape_sequence", "text": "\\n", "parent": 524, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 14}}, {"id": 526, "type": "identifier", "text": "pos", "parent": 523, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 20}}, {"id": 527, "type": "assignment_expression", "text": "testa = Aggiusta(testa, pos)", "parent": 501, "children": [528, 529, 530], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 30}}, {"id": 528, "type": "identifier", "text": "testa", "parent": 527, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 7}}, {"id": 529, "type": "=", "text": "=", "parent": 527, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 530, "type": "call_expression", "text": "Aggiusta(testa, pos)", "parent": 527, "children": [531, 532], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 30}}, {"id": 531, "type": "identifier", "text": "Aggiusta", "parent": 530, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 18}}, {"id": 532, "type": "argument_list", "text": "(testa, pos)", "parent": 530, "children": [533, 534], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 30}}, {"id": 533, "type": "identifier", "text": "testa", "parent": 532, "children": [], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 24}}, {"id": 534, "type": "identifier", "text": "pos", "parent": 532, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 29}}, {"id": 535, "type": "return_statement", "text": "return 0;", "parent": 316, "children": [536], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 10}}, {"id": 536, "type": "number_literal", "text": "0", "parent": 535, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 9}}]}, "node_categories": {"declarations": {"functions": [32, 34, 107, 111, 316, 318], "variables": [6, 11, 14, 17, 24, 37, 42, 45, 51, 114, 119, 128, 131, 160, 321, 330, 339, 393, 415, 477], "classes": [8, 9, 18, 19, 25, 26], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [58, 59, 60, 65, 71, 72, 73, 74, 75, 85, 86, 87, 88, 96, 97, 98, 102, 123, 124, 144, 148, 154, 155, 156, 167, 168, 169, 174, 175, 176, 182, 183, 184, 185, 190, 191, 192, 197, 198, 199, 200, 201, 209, 210, 211, 213, 214, 215, 223, 224, 225, 226, 227, 235, 236, 237, 239, 240, 241, 249, 250, 251, 256, 257, 258, 263, 264, 265, 272, 273, 274, 279, 280, 281, 286, 287, 288, 297, 298, 299, 304, 305, 324, 328, 333, 337, 346, 349, 350, 353, 354, 355, 362, 363, 364, 371, 372, 373, 381, 382, 383, 390, 402, 406, 409, 413, 421, 424, 425, 428, 429, 430, 436, 437, 438, 444, 445, 446, 452, 453, 454, 461, 462, 463, 471, 475, 482, 487, 496, 502, 503, 507, 511, 516, 521, 530], "assignments": [81, 93, 140, 151, 208, 234, 248, 262, 271, 285, 294, 310, 352, 361, 370, 380, 427, 435, 443, 451, 460, 468, 493, 513, 527], "loops": [57, 139, 173, 401, 501], "conditionals": [10, 13, 16, 20, 23, 27, 30, 31, 35, 38, 41, 44, 48, 54, 61, 66, 70, 77, 78, 80, 82, 84, 90, 91, 94, 100, 101, 103, 106, 108, 112, 115, 118, 121, 122, 125, 130, 132, 136, 138, 141, 145, 147, 149, 152, 158, 159, 161, 165, 171, 172, 177, 187, 188, 194, 195, 196, 203, 204, 217, 218, 219, 221, 222, 229, 230, 243, 244, 245, 247, 253, 254, 260, 261, 267, 268, 270, 276, 277, 283, 284, 290, 291, 293, 295, 301, 302, 303, 306, 311, 313, 315, 319, 323, 325, 329, 332, 334, 338, 340, 344, 347, 351, 357, 358, 366, 367, 369, 375, 376, 385, 386, 391, 394, 398, 400, 403, 407, 410, 414, 416, 422, 426, 432, 440, 442, 448, 450, 456, 465, 466, 469, 472, 476, 480, 483, 485, 486, 488, 492, 494, 497, 499, 500, 504, 508, 512, 514, 517, 519, 520, 522, 526, 528, 531, 533, 534], "returns": [105, 314, 535], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 50, 56, 63, 127, 143, 327, 336, 360, 405, 412, 434, 474, 490, 506, 510, 524, 536], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 32, "universal_type": "function", "name": "Ricerca", "text_snippet": "int Ricerca(el* l, int cercato)\n{\n\tint risultato = -1;\n\tint posizione = 0;\n\twhile(risultato == -1 &&"}, {"node_id": 34, "universal_type": "function", "name": "cercato)", "text_snippet": "Ricerca(el* l, int cercato)"}, {"node_id": 107, "universal_type": "function", "name": "pos)", "text_snippet": "el* Aggiusta(el* l, int pos)\n{\n\tif(pos != -1)\n\t{\n\t\tint i;\n\t\tel* incasinatore = l;\n\t\tfor(i=0; i<pos; "}, {"node_id": 111, "universal_type": "function", "name": "pos)", "text_snippet": "Aggiusta(el* l, int pos)"}, {"node_id": 316, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\n\t//Crea la lista\n\tint input;\n\tscanf(\"%d\", &input);\n\n\tel* tes"}, {"node_id": 318, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 8, "universal_type": "class", "name": "_el", "text_snippet": "struct _el\n{\n\tint key;\n\tint ricerche;\n\tstruct _el* next;\n\tstruct _el* prev;\n}"}, {"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 18, "universal_type": "class", "name": "_el", "text_snippet": "struct _el"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 25, "universal_type": "class", "name": "_el", "text_snippet": "struct _el"}, {"node_id": 26, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct _el\n{\n\tint key;\n\tint ricerche;\n\tstruct _el* next;\n\tstruct _el* prev;\n} el;\n\nint Ricerca(el* l, int cercato)\n{\n\tint risultato = -1;\n\tint posizione = 0;\n\twhile(risultato == -1 && l != NULL)\n\t{\n\t\tif((*l).key == cercato)\n\t\t{\n\t\t\trisultato = posizione;\n\t\t\t(*l).ricerche++;\n\t\t}\n\t\tl = (*l).next;\n\t\tposizione++;\n\t}\n\treturn risultato;\n}\n\nel* Aggiusta(el* l, int pos)\n{\n\tif(pos != -1)\n\t{\n\t\tint i;\n\t\tel* incasinatore = l;\n\t\tfor(i=0; i<pos; i++) incasinatore = (*incasinatore).next;\n\t\tel* pre = (*incasinatore).prev;\n\t\n\t\twhile(pre != NULL && (*incasinatore).ricerche > (*pre).ricerche)\n\t\t{\n\t\t\tif((*incasinatore).next != NULL) (*(*incasinatore).next).prev = pre;\n\t\t\tif((*pre).prev != NULL) (*(*pre).prev).next = incasinatore;\n\t\t\t(*pre).next = (*incasinatore).next;\n\t\t\t(*incasinatore).next = pre;\n\t\t\t(*incasinatore).prev = (*pre).prev;\n\t\t\t(*pre).prev = incasinatore;\n\t\t\tpre = (*incasinatore).prev;\n\t\t}\n\t\n\t\tif(pre == NULL) l = incasinatore;\n\t}\n\treturn l;\n}\n\nint main()\n{\n\tint n;\n\tscanf(\"%d\", &n);\n\n\t//Crea la lista\n\tint input;\n\tscanf(\"%d\", &input);\n\n\tel* testa = malloc(sizeof(el));\n\t(*testa).ricerche = 0;\n\t(*testa).key = input;\n\t(*testa).prev = NULL;\n\t(*testa).next = NULL;\n\tn--;\n\n\t//Accoda in lista\n\tel* l = testa;\n\tfor(; n>0; n--)\n\t{\n\t\tscanf(\"%d\", &input);\n\t\tel* new = malloc(sizeof(el));\n\t\t(*new).ricerche = 0;\n\t\t(*new).key = input;\n\t\t(*new).prev = l;\n\t\t(*new).next = NULL;\n\t\t(*l).next = new;\n\t\tl = new;\n\t}\n\n\t//Ricerche\n\tscanf(\"%d\", &input);\n\tint pos = Ricerca(testa, input);\n\tprintf(\"%d\\n\", pos);\n\ttesta = Aggiusta(testa, pos);\n\twhile(pos != -1)\n\t{\n\t\tscanf(\"%d\", &input);\n\t\tpos = Ricerca(testa, input);\n\t\tprintf(\"%d\\n\", pos);\n\t\ttesta = Aggiusta(testa, pos);\n\t}\n\n\treturn 0;\n}\n"}
80,822
c
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/gamelift/GameLift_EXPORTS.h> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GameLift { namespace Model { /** * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a * target-based policy that tracks the GameLift FleetIQ metric * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the * metric. As player usage changes, the policy triggers to adjust the game server * group capacity so that the metric returns to the target value. </p><p><h3>See * Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS * API Reference</a></p> */ class AWS_GAMELIFT_API TargetTrackingConfiguration { public: TargetTrackingConfiguration(); TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue); TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>Desired value to use with a game server group target-based scaling policy. * </p> */ inline double GetTargetValue() const{ return m_targetValue; } /** * <p>Desired value to use with a game server group target-based scaling policy. * </p> */ inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; } /** * <p>Desired value to use with a game server group target-based scaling policy. * </p> */ inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; } /** * <p>Desired value to use with a game server group target-based scaling policy. * </p> */ inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;} private: double m_targetValue; bool m_targetValueHasBeenSet; }; } // namespace Model } // namespace GameLift } // namespace Aws
33.75
67
(translation_unit) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/gamelift/GameLift_EXPORTS.h>\n\nnamespace Aws\n{\nnamespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} // namespace Utils\nnamespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} // namespace GameLift\n} // namespace Aws\n" (comment) "*\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n" (preproc_call) "ragma once\n#i" (preproc_directive) "ragma o" (preproc_arg) "ce\n#" (preproc_include) "nclude <aws/gamelift/GameLift_EXPORTS.h>\n\nn" (#include) "nclude <" (system_lib_string) "ws/gamelift/GameLift_EXPORTS.h>\n\n" (function_definition) "mespace Aws\n{\nnamespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} // namespace Utils\nnamespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} // namespace GameLift\n} /" (type_identifier) "mespace A" (identifier) "s\n{" (compound_statement) "namespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} // namespace Utils\nnamespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} // namespace GameLift\n} /" ({) "n" (function_definition) "mespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} /" (type_identifier) "mespace U" (identifier) "ils\n{" (compound_statement) "namespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} /" ({) "n" (function_definition) "mespace Json\n{\n class JsonValue;\n class JsonView;\n} /" (type_identifier) "mespace J" (identifier) "on\n{" (compound_statement) " class JsonValue;\n class JsonView;\n} /" ({) " " (declaration) "ass JsonValue;\n " (type_identifier) "ass J" (identifier) "onValue;\n" (;) " " (declaration) "ass JsonView;\n}" (type_identifier) "ass J" (identifier) "onView;\n" (;) "}" (}) "/" (comment) " namespace Json\n}" (}) "/" (comment) " namespace Utils\nn" (function_definition) "mespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} /" (type_identifier) "mespace G" (identifier) "meLift\n{" (compound_statement) "namespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} /" ({) "n" (function_definition) "mespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} /" (type_identifier) "mespace M" (identifier) "del\n{" (compound_statement) "\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} /" ({) "\n" (comment) "*\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>"PercentUtilizedGameServers"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration">AWS\n * API Reference</a></p>\n */\n " (function_definition) "ass AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n" (type_identifier) "ass A" (ERROR) "S_GAMELIFT_API T" (identifier) "S_GAMELIFT_API T" (identifier) "rgetTrackingConfiguration\n " (compound_statement) " public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n" ({) " " (labeled_statement) "blic:\n TargetTrackingConfiguration();\n " (statement_identifier) "blic:\n" (:) " " (expression_statement) "rgetTrackingConfiguration();\n " (call_expression) "rgetTrackingConfiguration();\n" (identifier) "rgetTrackingConfiguration()" (argument_list) ";\n" (() ";" ()) "\n" (;) " " (labeled_statement) "rgetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n " (statement_identifier) "rgetTrackingConfiguration(A" (ERROR) "ws::U" (() "w" (type_descriptor) "s::" (type_identifier) "s::" (:) "U" (:) "t" (labeled_statement) "ils::Json::JsonView jsonValue);\n " (statement_identifier) "ils::" (:) "J" (ERROR) "s" (:) "s" (labeled_statement) "on::JsonView jsonValue);\n " (statement_identifier) "on::" (:) "J" (ERROR) "s" (:) "s" (declaration) "onView jsonValue);\n " (type_identifier) "onView j" (identifier) "onValue);" (ERROR) "\n" ()) "\n" (;) " " (expression_statement) "rgetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n " (binary_expression) "rgetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n" (identifier) "rgetTrackingConfiguration& " (&) "o" (assignment_expression) "erator=(Aws::Utils::Json::JsonView jsonValue);\n" (identifier) "erator=(" (=) "A" (parenthesized_expression) "ws::Utils::Json::JsonView jsonValue);\n" (() "w" (ERROR) "s::Utils::Json::JsonView j" (identifier) "s::" (:) "U" (:) "t" (identifier) "ils::" (:) "J" (:) "s" (identifier) "on::" (:) "J" (:) "s" (identifier) "onView j" (identifier) "onValue);" ()) "\n" (;) " " (labeled_statement) "s::Utils::Json::JsonValue Jsonize() const;\n\n" (statement_identifier) "s::" (:) "U" (ERROR) "t" (:) "t" (labeled_statement) "ils::Json::JsonValue Jsonize() const;\n\n" (statement_identifier) "ils::" (:) "J" (ERROR) "s" (:) "s" (labeled_statement) "on::JsonValue Jsonize() const;\n\n" (statement_identifier) "on::" (:) "J" (ERROR) "sonValue Jsonize() const;\n" (:) "s" (type_identifier) "onValue J" (function_declarator) "onize() const;\n" (identifier) "onize()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst;\n" (expression_statement) "\n" (;) "\n" (comment) "*\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n " (ERROR) "line double GetTargetValue() const{ " (storage_class_specifier) "line d" (inline) "line d" (primitive_type) "uble G" (function_declarator) "tTargetValue() c" (identifier) "tTargetValue()" (parameter_list) " c" (() " " ()) "c" (type_qualifier) "nst{ " (const) "nst{ " (compound_statement) "return m_targetValue; }\n\n" ({) "r" (return_statement) "turn m_targetValue; }" (return) "turn m" (identifier) "targetValue; " (;) "}" (}) "\n" (comment) "*\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n " (ERROR) "line bool TargetValueHasBeenSet() const {" (storage_class_specifier) "line b" (inline) "line b" (primitive_type) "ol T" (function_declarator) "rgetValueHasBeenSet() c" (identifier) "rgetValueHasBeenSet()" (parameter_list) " c" (() " " ()) "c" (type_qualifier) "nst {" (const) "nst {" (compound_statement) "return m_targetValueHasBeenSet; }\n\n" ({) "r" (return_statement) "turn m_targetValueHasBeenSet; }" (return) "turn m" (identifier) "targetValueHasBeenSet; " (;) "}" (}) "\n" (comment) "*\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n " (function_definition) "line void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n" (storage_class_specifier) "line v" (inline) "line v" (primitive_type) "id S" (function_declarator) "tTargetValue(double value) {" (identifier) "tTargetValue(d" (parameter_list) "ouble value) {" (() "o" (parameter_declaration) "uble value) " (primitive_type) "uble v" (identifier) "lue) " ()) "{" (compound_statement) "m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n" ({) "m" (expression_statement) "targetValueHasBeenSet = true; m" (assignment_expression) "targetValueHasBeenSet = true; " (identifier) "targetValueHasBeenSet =" (=) "t" (true) "ue; " (;) "m" (expression_statement) "targetValue = value; }" (assignment_expression) "targetValue = value; " (identifier) "targetValue =" (=) "v" (identifier) "lue; " (;) "}" (}) "\n" (comment) "*\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n " (function_definition) "line TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n" (storage_class_specifier) "line T" (inline) "line T" (type_identifier) "rgetTrackingConfiguration& " (ERROR) "W" (&) "W" (function_declarator) "thTargetValue(double value) {" (identifier) "thTargetValue(d" (parameter_list) "ouble value) {" (() "o" (parameter_declaration) "uble value) " (primitive_type) "uble v" (identifier) "lue) " ()) "{" (compound_statement) "SetTargetValue(value); return *this;}\n\n" ({) "S" (expression_statement) "tTargetValue(value); r" (call_expression) "tTargetValue(value); " (identifier) "tTargetValue(v" (argument_list) "alue); " (() "a" (identifier) "lue);" ()) " " (;) "r" (return_statement) "turn *this;}\n" (return) "turn *" (pointer_expression) "his;}" (*) "h" (identifier) "is;}" (;) "\n" (}) "\n" (labeled_statement) "ivate:\n\n double m_targetValue;\n " (statement_identifier) "ivate:\n" (:) "\n" (declaration) "uble m_targetValue;\n " (primitive_type) "uble m" (identifier) "targetValue;\n" (;) " " (declaration) "ol m_targetValueHasBeenSet;\n " (primitive_type) "ol m" (identifier) "targetValueHasBeenSet;\n" (;) " " (}) "\n" (expression_statement) "\n" (;) "\n" (}) "/" (comment) " namespace Model\n}" (}) "/" (comment) " namespace GameLift\n}" (}) "/" (comment) " namespace Aws\n"
252
12
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 33.75, "nodes": 144, "errors": 0, "source_hash": "46c6a2eefac2010c08e4fa763e927b297a673e1b066cfe1dc6f42120932a8978", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\n#i", "parent": null, "children": [1, 2], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ragma o", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "ce\n#", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "nclude <aws/gamelift/GameLift_EXPORTS.h>\n\nn", "parent": null, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude <", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "ws/gamelift/GameLift_EXPORTS.h>\n\n", "parent": 3, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 42}}, {"id": 6, "type": "function_definition", "text": "mespace Aws\n{\nnamespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} // namespace Utils\nnamespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>\"PercentUtilizedGameServers\"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href=\"http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration\">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} // namespace GameLift\n} /", "parent": null, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "mespace A", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 8, "type": "identifier", "text": "s\n{", "parent": 6, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 13}}, {"id": 9, "type": "function_definition", "text": "mespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} /", "parent": 6, "children": [10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "mespace U", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 11, "type": "identifier", "text": "ils\n{", "parent": 9, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 15}}, {"id": 12, "type": "function_definition", "text": "mespace Json\n{\n class JsonValue;\n class JsonView;\n} /", "parent": 9, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "mespace J", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 9}}, {"id": 14, "type": "identifier", "text": "on\n{", "parent": 12, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 14}}, {"id": 15, "type": "declaration", "text": "ass JsonValue;\n ", "parent": 12, "children": [16, 17], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 18}}, {"id": 16, "type": "type_identifier", "text": "ass J", "parent": 15, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 7}}, {"id": 17, "type": "identifier", "text": "onValue;\n", "parent": 15, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 17}}, {"id": 18, "type": "declaration", "text": "ass JsonView;\n}", "parent": 12, "children": [19, 20], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 17}}, {"id": 19, "type": "type_identifier", "text": "ass J", "parent": 18, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 7}}, {"id": 20, "type": "identifier", "text": "onView;\n", "parent": 18, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 16}}, {"id": 21, "type": "function_definition", "text": "mespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>\"PercentUtilizedGameServers\"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href=\"http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration\">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} /", "parent": 6, "children": [22, 23], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 75, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "mespace G", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 9}}, {"id": 23, "type": "identifier", "text": "meLift\n{", "parent": 21, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 18}}, {"id": 24, "type": "function_definition", "text": "mespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>\"PercentUtilizedGameServers\"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href=\"http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration\">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} /", "parent": 21, "children": [25, 26], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 25, "type": "type_identifier", "text": "mespace M", "parent": 24, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 26, "type": "identifier", "text": "del\n{", "parent": 24, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 15}}, {"id": 27, "type": "function_definition", "text": "ass AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n", "parent": 24, "children": [28, 29, 31], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 72, "column": 3}}, {"id": 28, "type": "type_identifier", "text": "ass A", "parent": 27, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 7}}, {"id": 29, "type": "ERROR", "text": "S_GAMELIFT_API T", "parent": 27, "children": [30], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 24}}, {"id": 30, "type": "identifier", "text": "S_GAMELIFT_API T", "parent": 29, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 24}}, {"id": 31, "type": "identifier", "text": "rgetTrackingConfiguration\n ", "parent": 27, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 52}}, {"id": 32, "type": "labeled_statement", "text": "blic:\n TargetTrackingConfiguration();\n ", "parent": 27, "children": [33], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 38, "column": 34}}, {"id": 33, "type": "statement_identifier", "text": "blic:\n", "parent": 32, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 8}}, {"id": 34, "type": "call_expression", "text": "rgetTrackingConfiguration();\n", "parent": 32, "children": [35], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 33}}, {"id": 35, "type": "identifier", "text": "rgetTrackingConfiguration()", "parent": 34, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 31}}, {"id": 36, "type": "labeled_statement", "text": "rgetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n ", "parent": 27, "children": [37, 38, 41], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 70}}, {"id": 37, "type": "statement_identifier", "text": "rgetTrackingConfiguration(A", "parent": 36, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 31}}, {"id": 38, "type": "ERROR", "text": "ws::U", "parent": 36, "children": [39], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 36}}, {"id": 39, "type": "type_descriptor", "text": "s::", "parent": 38, "children": [40], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 35}}, {"id": 40, "type": "type_identifier", "text": "s::", "parent": 39, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 35}}, {"id": 41, "type": "labeled_statement", "text": "ils::Json::JsonView jsonValue);\n ", "parent": 36, "children": [42, 43, 44], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 70}}, {"id": 42, "type": "statement_identifier", "text": "ils::", "parent": 41, "children": [], "start_point": {"row": 39, "column": 37}, "end_point": {"row": 39, "column": 42}}, {"id": 43, "type": "ERROR", "text": "s", "parent": 41, "children": [], "start_point": {"row": 39, "column": 43}, "end_point": {"row": 39, "column": 44}}, {"id": 44, "type": "labeled_statement", "text": "on::JsonView jsonValue);\n ", "parent": 41, "children": [45, 46, 47], "start_point": {"row": 39, "column": 44}, "end_point": {"row": 39, "column": 70}}, {"id": 45, "type": "statement_identifier", "text": "on::", "parent": 44, "children": [], "start_point": {"row": 39, "column": 44}, "end_point": {"row": 39, "column": 48}}, {"id": 46, "type": "ERROR", "text": "s", "parent": 44, "children": [], "start_point": {"row": 39, "column": 49}, "end_point": {"row": 39, "column": 50}}, {"id": 47, "type": "declaration", "text": "onView jsonValue);\n ", "parent": 44, "children": [48, 49, 50], "start_point": {"row": 39, "column": 50}, "end_point": {"row": 39, "column": 70}}, {"id": 48, "type": "type_identifier", "text": "onView j", "parent": 47, "children": [], "start_point": {"row": 39, "column": 50}, "end_point": {"row": 39, "column": 58}}, {"id": 49, "type": "identifier", "text": "onValue);", "parent": 47, "children": [], "start_point": {"row": 39, "column": 59}, "end_point": {"row": 39, "column": 68}}, {"id": 50, "type": "ERROR", "text": "\n", "parent": 47, "children": [], "start_point": {"row": 39, "column": 68}, "end_point": {"row": 39, "column": 69}}, {"id": 51, "type": "binary_expression", "text": "rgetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n", "parent": 27, "children": [52, 53, 54], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 80}}, {"id": 52, "type": "identifier", "text": "rgetTrackingConfiguration& ", "parent": 51, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 31}}, {"id": 53, "type": "&", "text": "o", "parent": 51, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 54, "type": "assignment_expression", "text": "erator=(Aws::Utils::Json::JsonView jsonValue);\n", "parent": 51, "children": [55, 56, 57], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 80}}, {"id": 55, "type": "identifier", "text": "erator=(", "parent": 54, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 41}}, {"id": 56, "type": "=", "text": "A", "parent": 54, "children": [], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 42}}, {"id": 57, "type": "parenthesized_expression", "text": "ws::Utils::Json::JsonView jsonValue);\n", "parent": 54, "children": [58, 63], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 80}}, {"id": 58, "type": "ERROR", "text": "s::Utils::Json::JsonView j", "parent": 57, "children": [59, 60, 61, 62], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 69}}, {"id": 59, "type": "identifier", "text": "s::", "parent": 58, "children": [], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 46}}, {"id": 60, "type": "identifier", "text": "ils::", "parent": 58, "children": [], "start_point": {"row": 40, "column": 48}, "end_point": {"row": 40, "column": 53}}, {"id": 61, "type": "identifier", "text": "on::", "parent": 58, "children": [], "start_point": {"row": 40, "column": 55}, "end_point": {"row": 40, "column": 59}}, {"id": 62, "type": "identifier", "text": "onView j", "parent": 58, "children": [], "start_point": {"row": 40, "column": 61}, "end_point": {"row": 40, "column": 69}}, {"id": 63, "type": "identifier", "text": "onValue);", "parent": 57, "children": [], "start_point": {"row": 40, "column": 70}, "end_point": {"row": 40, "column": 79}}, {"id": 64, "type": "labeled_statement", "text": "s::Utils::Json::JsonValue Jsonize() const;\n\n", "parent": 27, "children": [65, 66, 67], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 48}}, {"id": 65, "type": "statement_identifier", "text": "s::", "parent": 64, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 66, "type": "ERROR", "text": "t", "parent": 64, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 67, "type": "labeled_statement", "text": "ils::Json::JsonValue Jsonize() const;\n\n", "parent": 64, "children": [68, 69, 70], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 48}}, {"id": 68, "type": "statement_identifier", "text": "ils::", "parent": 67, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 14}}, {"id": 69, "type": "ERROR", "text": "s", "parent": 67, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 16}}, {"id": 70, "type": "labeled_statement", "text": "on::JsonValue Jsonize() const;\n\n", "parent": 67, "children": [71, 72], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 48}}, {"id": 71, "type": "statement_identifier", "text": "on::", "parent": 70, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 20}}, {"id": 72, "type": "ERROR", "text": "sonValue Jsonize() const;\n", "parent": 70, "children": [73, 74], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 47}}, {"id": 73, "type": "type_identifier", "text": "onValue J", "parent": 72, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 31}}, {"id": 74, "type": "function_declarator", "text": "onize() const;\n", "parent": 72, "children": [75, 76, 77], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 47}}, {"id": 75, "type": "identifier", "text": "onize()", "parent": 74, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 39}}, {"id": 76, "type": "parameter_list", "text": " c", "parent": 74, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 41}}, {"id": 77, "type": "identifier", "text": "nst;\n", "parent": 74, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 47}}, {"id": 78, "type": "ERROR", "text": "line double GetTargetValue() const{ ", "parent": 27, "children": [79, 81, 82, 85], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 40}}, {"id": 79, "type": "storage_class_specifier", "text": "line d", "parent": 78, "children": [80], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 10}}, {"id": 80, "type": "inline", "text": "line d", "parent": 79, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 10}}, {"id": 81, "type": "primitive_type", "text": "uble G", "parent": 78, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 17}}, {"id": 82, "type": "function_declarator", "text": "tTargetValue() c", "parent": 78, "children": [83, 84], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 34}}, {"id": 83, "type": "identifier", "text": "tTargetValue()", "parent": 82, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 32}}, {"id": 84, "type": "parameter_list", "text": " c", "parent": 82, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 34}}, {"id": 85, "type": "type_qualifier", "text": "nst{ ", "parent": 78, "children": [], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 40}}, {"id": 86, "type": "return_statement", "text": "turn m_targetValue; }", "parent": 27, "children": [87], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 63}}, {"id": 87, "type": "identifier", "text": "targetValue; ", "parent": 86, "children": [], "start_point": {"row": 48, "column": 49}, "end_point": {"row": 48, "column": 62}}, {"id": 88, "type": "ERROR", "text": "line bool TargetValueHasBeenSet() const {", "parent": 27, "children": [89, 91, 92, 95], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 45}}, {"id": 89, "type": "storage_class_specifier", "text": "line b", "parent": 88, "children": [90], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 10}}, {"id": 90, "type": "inline", "text": "line b", "parent": 89, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 10}}, {"id": 91, "type": "primitive_type", "text": "ol T", "parent": 88, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 15}}, {"id": 92, "type": "function_declarator", "text": "rgetValueHasBeenSet() c", "parent": 88, "children": [93, 94], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 39}}, {"id": 93, "type": "identifier", "text": "rgetValueHasBeenSet()", "parent": 92, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 37}}, {"id": 94, "type": "parameter_list", "text": " c", "parent": 92, "children": [], "start_point": {"row": 54, "column": 37}, "end_point": {"row": 54, "column": 39}}, {"id": 95, "type": "type_qualifier", "text": "nst {", "parent": 88, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 45}}, {"id": 96, "type": "return_statement", "text": "turn m_targetValueHasBeenSet; }", "parent": 27, "children": [97], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 79}}, {"id": 97, "type": "identifier", "text": "targetValueHasBeenSet; ", "parent": 96, "children": [], "start_point": {"row": 54, "column": 55}, "end_point": {"row": 54, "column": 78}}, {"id": 98, "type": "function_definition", "text": "line void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n", "parent": 27, "children": [99, 101, 102], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 103}}, {"id": 99, "type": "storage_class_specifier", "text": "line v", "parent": 98, "children": [100], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 10}}, {"id": 100, "type": "inline", "text": "line v", "parent": 99, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 10}}, {"id": 101, "type": "primitive_type", "text": "id S", "parent": 98, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 15}}, {"id": 102, "type": "function_declarator", "text": "tTargetValue(double value) {", "parent": 98, "children": [103, 104], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 44}}, {"id": 103, "type": "identifier", "text": "tTargetValue(d", "parent": 102, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 30}}, {"id": 104, "type": "parameter_list", "text": "ouble value) {", "parent": 102, "children": [105], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 44}}, {"id": 105, "type": "parameter_declaration", "text": "uble value) ", "parent": 104, "children": [106, 107], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 43}}, {"id": 106, "type": "primitive_type", "text": "uble v", "parent": 105, "children": [], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 37}}, {"id": 107, "type": "identifier", "text": "lue) ", "parent": 105, "children": [], "start_point": {"row": 60, "column": 38}, "end_point": {"row": 60, "column": 43}}, {"id": 108, "type": "assignment_expression", "text": "targetValueHasBeenSet = true; ", "parent": 98, "children": [109, 110, 111], "start_point": {"row": 60, "column": 47}, "end_point": {"row": 60, "column": 77}}, {"id": 109, "type": "identifier", "text": "targetValueHasBeenSet =", "parent": 108, "children": [], "start_point": {"row": 60, "column": 47}, "end_point": {"row": 60, "column": 70}}, {"id": 110, "type": "=", "text": "t", "parent": 108, "children": [], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 72}}, {"id": 111, "type": "true", "text": "ue; ", "parent": 108, "children": [], "start_point": {"row": 60, "column": 73}, "end_point": {"row": 60, "column": 77}}, {"id": 112, "type": "assignment_expression", "text": "targetValue = value; ", "parent": 98, "children": [113, 114, 115], "start_point": {"row": 60, "column": 79}, "end_point": {"row": 60, "column": 100}}, {"id": 113, "type": "identifier", "text": "targetValue =", "parent": 112, "children": [], "start_point": {"row": 60, "column": 79}, "end_point": {"row": 60, "column": 92}}, {"id": 114, "type": "=", "text": "v", "parent": 112, "children": [], "start_point": {"row": 60, "column": 93}, "end_point": {"row": 60, "column": 94}}, {"id": 115, "type": "identifier", "text": "lue; ", "parent": 112, "children": [], "start_point": {"row": 60, "column": 95}, "end_point": {"row": 60, "column": 100}}, {"id": 116, "type": "function_definition", "text": "line TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n", "parent": 27, "children": [117, 119, 120, 122], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 109}}, {"id": 117, "type": "storage_class_specifier", "text": "line T", "parent": 116, "children": [118], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 118, "type": "inline", "text": "line T", "parent": 117, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 119, "type": "type_identifier", "text": "rgetTrackingConfiguration& ", "parent": 116, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 38}}, {"id": 120, "type": "ERROR", "text": "W", "parent": 116, "children": [121], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 39}}, {"id": 121, "type": "&", "text": "W", "parent": 120, "children": [], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 39}}, {"id": 122, "type": "function_declarator", "text": "thTargetValue(double value) {", "parent": 116, "children": [123, 124], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 69}}, {"id": 123, "type": "identifier", "text": "thTargetValue(d", "parent": 122, "children": [], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 55}}, {"id": 124, "type": "parameter_list", "text": "ouble value) {", "parent": 122, "children": [125], "start_point": {"row": 66, "column": 55}, "end_point": {"row": 66, "column": 69}}, {"id": 125, "type": "parameter_declaration", "text": "uble value) ", "parent": 124, "children": [126, 127], "start_point": {"row": 66, "column": 56}, "end_point": {"row": 66, "column": 68}}, {"id": 126, "type": "primitive_type", "text": "uble v", "parent": 125, "children": [], "start_point": {"row": 66, "column": 56}, "end_point": {"row": 66, "column": 62}}, {"id": 127, "type": "identifier", "text": "lue) ", "parent": 125, "children": [], "start_point": {"row": 66, "column": 63}, "end_point": {"row": 66, "column": 68}}, {"id": 128, "type": "call_expression", "text": "tTargetValue(value); ", "parent": 116, "children": [129, 130], "start_point": {"row": 66, "column": 72}, "end_point": {"row": 66, "column": 93}}, {"id": 129, "type": "identifier", "text": "tTargetValue(v", "parent": 128, "children": [], "start_point": {"row": 66, "column": 72}, "end_point": {"row": 66, "column": 86}}, {"id": 130, "type": "argument_list", "text": "alue); ", "parent": 128, "children": [131], "start_point": {"row": 66, "column": 86}, "end_point": {"row": 66, "column": 93}}, {"id": 131, "type": "identifier", "text": "lue);", "parent": 130, "children": [], "start_point": {"row": 66, "column": 87}, "end_point": {"row": 66, "column": 92}}, {"id": 132, "type": "return_statement", "text": "turn *this;}\n", "parent": 116, "children": [133], "start_point": {"row": 66, "column": 95}, "end_point": {"row": 66, "column": 108}}, {"id": 133, "type": "pointer_expression", "text": "his;}", "parent": 132, "children": [134, 135], "start_point": {"row": 66, "column": 102}, "end_point": {"row": 66, "column": 107}}, {"id": 134, "type": "*", "text": "h", "parent": 133, "children": [], "start_point": {"row": 66, "column": 102}, "end_point": {"row": 66, "column": 103}}, {"id": 135, "type": "identifier", "text": "is;}", "parent": 133, "children": [], "start_point": {"row": 66, "column": 103}, "end_point": {"row": 66, "column": 107}}, {"id": 136, "type": "labeled_statement", "text": "ivate:\n\n double m_targetValue;\n ", "parent": 27, "children": [137, 138], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 70, "column": 25}}, {"id": 137, "type": "statement_identifier", "text": "ivate:\n", "parent": 136, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 9}}, {"id": 138, "type": "declaration", "text": "uble m_targetValue;\n ", "parent": 136, "children": [139, 140], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 25}}, {"id": 139, "type": "primitive_type", "text": "uble m", "parent": 138, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 10}}, {"id": 140, "type": "identifier", "text": "targetValue;\n", "parent": 138, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 24}}, {"id": 141, "type": "declaration", "text": "ol m_targetValueHasBeenSet;\n ", "parent": 27, "children": [142, 143], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 33}}, {"id": 142, "type": "primitive_type", "text": "ol m", "parent": 141, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 143, "type": "identifier", "text": "targetValueHasBeenSet;\n", "parent": 141, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 32}}]}, "node_categories": {"declarations": {"functions": [6, 9, 12, 21, 24, 27, 74, 82, 92, 98, 102, 116, 122], "variables": [15, 18, 47, 105, 125, 138, 141], "classes": [79, 89, 99, 117], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [34, 51, 57, 128, 133], "assignments": [54, 108, 112], "loops": [], "conditionals": [7, 8, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26, 28, 30, 31, 33, 35, 37, 40, 42, 45, 48, 49, 52, 55, 59, 60, 61, 62, 63, 65, 68, 71, 73, 75, 77, 83, 85, 87, 93, 95, 97, 103, 107, 109, 113, 115, 119, 123, 127, 129, 131, 135, 137, 140, 143], "returns": [86, 96, 132], "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": "JsonValue;", "text_snippet": "mespace Aws\n{\nnamespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace"}, {"node_id": 9, "universal_type": "function", "name": "JsonValue;", "text_snippet": "mespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} /"}, {"node_id": 12, "universal_type": "function", "name": "JsonValue;", "text_snippet": "mespace Json\n{\n class JsonValue;\n class JsonView;\n} /"}, {"node_id": 21, "universal_type": "function", "name": "AWS_GAMELIFT_API", "text_snippet": "mespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameL"}, {"node_id": 24, "universal_type": "function", "name": "AWS_GAMELIFT_API", "text_snippet": "mespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game "}, {"node_id": 27, "universal_type": "function", "name": "TargetValueHasBeenSet", "text_snippet": "ass AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n "}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "onize() const;\n"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "tTargetValue() c"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "rgetValueHasBeenSet() c"}, {"node_id": 98, "universal_type": "function", "name": "SetTargetValue", "text_snippet": "line void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "tTargetValue(double value) {"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "line TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *thi"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "thTargetValue(double value) {"}], "class_declarations": [{"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "line d"}, {"node_id": 89, "universal_type": "class", "name": "unknown", "text_snippet": "line b"}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "line v"}, {"node_id": 117, "universal_type": "class", "name": "unknown", "text_snippet": "line T"}], "import_statements": [{"node_id": 3, "text": "nclude <aws/gamelift/GameLift_EXPORTS.h>\n\nn"}, {"node_id": 4, "text": "nclude <"}]}, "original_source_code": "\ufeff/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0.\n */\n\n#pragma once\n#include <aws/gamelift/GameLift_EXPORTS.h>\n\nnamespace Aws\n{\nnamespace Utils\n{\nnamespace Json\n{\n class JsonValue;\n class JsonView;\n} // namespace Json\n} // namespace Utils\nnamespace GameLift\n{\nnamespace Model\n{\n\n /**\n * <p> <b>This data type is used with the Amazon GameLift FleetIQ and game server\n * groups.</b> </p> <p>Settings for a target-based scaling policy as part of a\n * <a>GameServerGroupAutoScalingPolicy</a>. These settings are used to create a\n * target-based policy that tracks the GameLift FleetIQ metric\n * <code>\"PercentUtilizedGameServers\"</code> and specifies a target value for the\n * metric. As player usage changes, the policy triggers to adjust the game server\n * group capacity so that the metric returns to the target value. </p><p><h3>See\n * Also:</h3> <a\n * href=\"http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/TargetTrackingConfiguration\">AWS\n * API Reference</a></p>\n */\n class AWS_GAMELIFT_API TargetTrackingConfiguration\n {\n public:\n TargetTrackingConfiguration();\n TargetTrackingConfiguration(Aws::Utils::Json::JsonView jsonValue);\n TargetTrackingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);\n Aws::Utils::Json::JsonValue Jsonize() const;\n\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline double GetTargetValue() const{ return m_targetValue; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline bool TargetValueHasBeenSet() const { return m_targetValueHasBeenSet; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline void SetTargetValue(double value) { m_targetValueHasBeenSet = true; m_targetValue = value; }\n\n /**\n * <p>Desired value to use with a game server group target-based scaling policy.\n * </p>\n */\n inline TargetTrackingConfiguration& WithTargetValue(double value) { SetTargetValue(value); return *this;}\n\n private:\n\n double m_targetValue;\n bool m_targetValueHasBeenSet;\n };\n\n} // namespace Model\n} // namespace GameLift\n} // namespace Aws\n"}
80,823
c
/** * @file resched.h * @brief 遅延スケジューリングに使用する宣言と定数。 */ //! 遅延リスケジューリングの開始 #define DEFER_START 1 //! 遅延リスケジューリングの停止 #define DEFER_STOP 2 /** * @struct defer * @brief 遅延リスケジューリングに関連する項目を集約した構造体 */ struct defer { //! 未処理の延期プロセスの数 int32 ndefers; //! 延期中に再スケジューリングが実行されたかどうか bool8 attempt; }; //! defer構造体のextern宣言 extern struct defer Defer;
15.57
21
(translation_unit) "/**\n * @file resched.h\n * @brief 遅延スケジューリングに使用する宣言と定数。\n */\n\n//! 遅延リスケジューリングの開始\n#define DEFER_START 1\n//! 遅延リスケジューリングの停止\n#define DEFER_STOP 2\n\n/**\n * @struct defer\n * @brief 遅延リスケジューリングに関連する項目を集約した構造体\n */\nstruct defer\n{\n //! 未処理の延期プロセスの数\n int32 ndefers;\n //! 延期中に再スケジューリングが実行されたかどうか\n bool8 attempt;\n};\n\n//! defer構造体のextern宣言\nextern struct defer Defer;\n" (comment) "/**\n * @file resched.h\n * @brief 遅延スケジューリングに使用する宣言と定数。\n */\n\n//! 遅延リスケジューリングの開始\n#define DEFER_START 1" (comment) "/! 遅延リスケジューリングの停止\n#define DEFER_STOP 2\n\n/**\n *" (preproc_def) "@struct defer\n * @brie" (#define) "@struct" (identifier) "defer\n * @b" (preproc_arg) "i" (comment) "f 遅延リスケジューリングに関連する項目を集約した構造体\n */\nstruct defer\n" (preproc_def) "\n //! 未処理の延期プロセスの数\n i" (#define) "\n //! 未" (identifier) "理の延期プロセスの数" (preproc_arg) " " (comment) "t32 ndefers;\n //! 延期中に再スケジューリングが実行されたかどうか\n bool8 attempt;\n};\n\n//! defer構造体のextern宣言\nextern struct defer Defer;\n" (struct_specifier) "" (struct) "" (type_identifier) "" (field_declaration_list) "" ({) "" (comment) "" (field_declaration) "" (type_identifier) "" (field_identifier) "" (;) "" (comment) "" (field_declaration) "" (type_identifier) "" (field_identifier) "" (;) "" (}) "" (;) "" (comment) "" (declaration) "" (storage_class_specifier) "" (extern) "" (struct_specifier) "" (struct) "" (type_identifier) "" (identifier) "" (;) ""
39
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 15.57, "nodes": 24, "errors": 0, "source_hash": "928268dbe3bb8718d14e848b4acb9b828087400c335098a6168b725f2119bf0b", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "@struct defer\n * @brie", "parent": null, "children": [1, 2, 3], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "#define", "text": "@struct", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "identifier", "text": "defer\n * @b", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 19}}, {"id": 3, "type": "preproc_arg", "text": "i", "parent": 0, "children": [], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 21}}, {"id": 4, "type": "preproc_def", "text": "\n\t//! \u672a\u51e6\u7406\u306e\u5ef6\u671f\u30d7\u30ed\u30bb\u30b9\u306e\u6570\n\ti", "parent": null, "children": [5, 6, 7], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 5, "type": "#define", "text": "\n\t//! \u672a", "parent": 4, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 6, "type": "identifier", "text": "\u7406\u306e\u5ef6\u671f\u30d7\u30ed\u30bb\u30b9\u306e\u6570", "parent": 4, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 18}}, {"id": 7, "type": "preproc_arg", "text": "\t", "parent": 4, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 20}}, {"id": 8, "type": "struct_specifier", "text": "", "parent": null, "children": [9, 10], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 9, "type": "struct", "text": "", "parent": 8, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 10, "type": "type_identifier", "text": "", "parent": 8, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 12}}, {"id": 11, "type": "field_declaration", "text": "", "parent": 8, "children": [12, 13], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 15}}, {"id": 12, "type": "type_identifier", "text": "", "parent": 11, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 6}}, {"id": 13, "type": "field_identifier", "text": "", "parent": 11, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 14}}, {"id": 14, "type": "field_declaration", "text": "", "parent": 8, "children": [15, 16], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 15}}, {"id": 15, "type": "type_identifier", "text": "", "parent": 14, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 6}}, {"id": 16, "type": "field_identifier", "text": "", "parent": 14, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 14}}, {"id": 17, "type": "declaration", "text": "", "parent": null, "children": [18, 20, 23], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 26}}, {"id": 18, "type": "storage_class_specifier", "text": "", "parent": 17, "children": [19], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 19, "type": "extern", "text": "", "parent": 18, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 20, "type": "struct_specifier", "text": "", "parent": 17, "children": [21, 22], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 19}}, {"id": 21, "type": "struct", "text": "", "parent": 20, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 22, "type": "type_identifier", "text": "", "parent": 20, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 19}}, {"id": 23, "type": "identifier", "text": "", "parent": 17, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 25}}]}, "node_categories": {"declarations": {"functions": [], "variables": [11, 14, 17], "classes": [8, 9, 18, 20, 21], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 6, 10, 12, 13, 15, 16, 22, 23], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "\n/**\n * @file resched.h\n * @brief \u9045\u5ef6\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u306b\u4f7f\u7528\u3059\u308b\u5ba3\u8a00\u3068\u5b9a\u6570\u3002\n */\n\n//! \u9045\u5ef6\u30ea\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u306e\u958b\u59cb\n#define DEFER_START 1\n//! \u9045\u5ef6\u30ea\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u306e\u505c\u6b62\n#define DEFER_STOP 2\n\n/**\n * @struct defer\n * @brief \u9045\u5ef6\u30ea\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u306b\u95a2\u9023\u3059\u308b\u9805\u76ee\u3092\u96c6\u7d04\u3057\u305f\u69cb\u9020\u4f53\n */\nstruct defer\n{\n\t//! \u672a\u51e6\u7406\u306e\u5ef6\u671f\u30d7\u30ed\u30bb\u30b9\u306e\u6570\n\tint32 ndefers;\n\t//! \u5ef6\u671f\u4e2d\u306b\u518d\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u304c\u5b9f\u884c\u3055\u308c\u305f\u304b\u3069\u3046\u304b\n\tbool8 attempt;\n};\n\n//! defer\u69cb\u9020\u4f53\u306eextern\u5ba3\u8a00\nextern struct defer Defer;\n"}
80,824
c
// // NSDate+TB.h // TBLibrary // // Created by 杨亚坤 on 2017/3/13. // Copyright © 2017年 yyk. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate (TB) + (NSString *)timeIntervalFromDate:(NSDate *)date; + (NSDate *)dateFromTimeInterval:(NSTimeInterval)timeInterval; + (NSString *)stringFromTimeInterval:(NSTimeInterval)timeInterval withDateFormat:(NSString *)dateFormat; + (NSString *)stringFromDate:(NSDate *)date withDateFormat:(NSString *)dateFormat; @end
33.57
14
(translation_unit) "//\n// NSDate+TB.h\n// TBLibrary\n//\n// Created by 杨亚坤 on 2017/3/13.\n// Copyright © 2017年 yyk. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDate (TB)\n\n+ (NSString *)timeIntervalFromDate:(NSDate *)date;\n+ (NSDate *)dateFromTimeInterval:(NSTimeInterval)timeInterval;\n+ (NSString *)stringFromTimeInterval:(NSTimeInterval)timeInterval withDateFormat:(NSString *)dateFormat;\n+ (NSString *)stringFromDate:(NSDate *)date withDateFormat:(NSString *)dateFormat;\n\n@end\n" (comment) "//" (comment) "// NSDate+TB.h" (comment) "// TBLibrary" (comment) "//" (comment) "// Created by 杨亚坤 on 2017/3/13.\n// C" (comment) "pyright © 2017年 yyk. All rights reserved.\n//\n\n#imp" (comment) "rt" (preproc_call) "Foundation/Foundation.h>\n\n@interfa" (preproc_directive) "Foundat" (preproc_arg) "on/Foundation.h>\n\n@interf" (ERROR) "e NSDate (TB)\n\n+ (NSString *)timeIntervalFromDate:(NSDate *)date;\n+ (NSDa" (ERROR) "e" (type_identifier) " NSDate (" (function_declarator) "B)\n\n+ (NSSt" (identifier) "B)\n\n+ " (parameter_list) "NSSt" (() "N" (identifier) "SS" ()) "t" (unary_expression) "ng *)timeIntervalFromDate:(NSDate " (+) "n" (cast_expression) " *)timeIntervalFromDate:(NSDate " (() " " (type_descriptor) "*)timeInte" (type_identifier) "*)timeIn" (abstract_pointer_declarator) "e" (*) "e" ()) "r" (identifier) "valFromDate:(NSDate " (:) "*" (() ")" (binary_expression) "date;\n+ (NSDa" (identifier) "date;\n" (*) " " (ERROR) "(" ()) "(" (identifier) "NSDa" (expression_statement) "t" (;) "t" (expression_statement) " *)dateFromTimeInterval:(NSTimeInterval)timeInterval;\n+ (NSStr" (unary_expression) " *)dateFromTimeInterval:(NSTimeI" (+) " " (cast_expression) ")dateFromTimeInterval:(NSTimeI" (() ")" (type_descriptor) "dateFrom" (type_identifier) "dateFr" (abstract_pointer_declarator) "m" (*) "m" ()) "T" (identifier) "imeInterval:(NSTimeI" (ERROR) "nterval)timeInterval;\n+ (NSSt" (:) "n" (() "t" (identifier) "erval)timeInte" ()) "r" (identifier) "val;\n+ (NSSt" (;) "r" (ERROR) "ng *)stringFromTimeInterval:(NSTimeInterval)timeInter" (unary_expression) "ng *)stringFromTimeInterval:(NSTimeI" (+) "n" (cast_expression) " *)stringFromTimeInterval:(NSTimeI" (() " " (type_descriptor) "*)stringFr" (type_identifier) "*)string" (abstract_pointer_declarator) "r" (*) "r" ()) "o" (identifier) "mTimeInterval:(NSTimeI" (:) "n" (() "t" (identifier) "erval)timeInte" ()) "r" (declaration) "val withDateFormat:(NSString *)dateFormat;\n+ (NSStr" (type_identifier) "val withDate" (identifier) "ormat:(NSStrin" (ERROR) "g *)dateFormat;\n+ (NSSt" (:) "g" (() " " (identifier) "*)dateFo" (*) "m" ()) "a" (identifier) "t;\n+ (NSSt" (;) "r" (ERROR) "ng *)stringFromDate:(NSDate *)date withDateFormat:(NSString *)dateFormat;\n\n@end\n" (binary_expression) "ng *)stringFromDate:(NSDate *)date withDateFormat:(NSString *)dateFormat;\n\n@end\n" (binary_expression) "ng *)stringFromDate:(NSDate *)date withDateFormat:(NSStrin" (unary_expression) "ng *)stringFromDate:(NSDate " (+) "n" (cast_expression) " *)stringFromDate:(NSDate " (() " " (type_descriptor) "*)stringFr" (type_identifier) "*)string" (abstract_pointer_declarator) "r" (*) "r" ()) "o" (identifier) "mDate:(NSDate " (ERROR) "*)date w" (:) "*" (() ")" (identifier) "date w" (*) "t" (ERROR) "hDate" ()) "h" (identifier) "Date" (identifier) "ormat:(NSStrin" (ERROR) "g *)dateFo" (:) "g" (() " " (identifier) "*)dateFo" (*) "m" (ERROR) "a" ()) "a" (identifier) "t;\n\n@end\n" (;) "" (ERROR) "" (identifier) ""
117
12
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 33.57, "nodes": 74, "errors": 0, "source_hash": "b3758098fa520844e353ce251d6c35d344b0f7f3462380c7be22ab487f78ef1a", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundation/Foundation.h>\n\n@interfa", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "Foundat", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "on/Foundation.h>\n\n@interf", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": "e NSDate (TB)\n\n+ (NSString *)timeIntervalFromDate:(NSDate *)date;\n+ (NSDa", "parent": null, "children": [4, 5, 6, 10, 18], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 49}}, {"id": 4, "type": "ERROR", "text": "e", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": " NSDate (", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "B)\n\n+ (NSSt", "parent": 3, "children": [7, 8], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 22}}, {"id": 7, "type": "identifier", "text": "B)\n\n+ ", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 17}}, {"id": 8, "type": "parameter_list", "text": "NSSt", "parent": 6, "children": [9], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 22}}, {"id": 9, "type": "identifier", "text": "SS", "parent": 8, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 21}}, {"id": 10, "type": "unary_expression", "text": "ng *)timeIntervalFromDate:(NSDate ", "parent": 3, "children": [11, 12], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 34}}, {"id": 11, "type": "+", "text": "n", "parent": 10, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "cast_expression", "text": " *)timeIntervalFromDate:(NSDate ", "parent": 10, "children": [13, 17], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 34}}, {"id": 13, "type": "type_descriptor", "text": "*)timeInte", "parent": 12, "children": [14, 15], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 13}}, {"id": 14, "type": "type_identifier", "text": "*)timeIn", "parent": 13, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 11}}, {"id": 15, "type": "abstract_pointer_declarator", "text": "e", "parent": 13, "children": [16], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 16, "type": "*", "text": "e", "parent": 15, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 17, "type": "identifier", "text": "valFromDate:(NSDate ", "parent": 12, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 34}}, {"id": 18, "type": "binary_expression", "text": "date;\n+ (NSDa", "parent": 3, "children": [19, 20, 21], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 49}}, {"id": 19, "type": "identifier", "text": "date;\n", "parent": 18, "children": [], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 42}}, {"id": 20, "type": "*", "text": " ", "parent": 18, "children": [], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 44}}, {"id": 21, "type": "identifier", "text": "NSDa", "parent": 18, "children": [], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 49}}, {"id": 22, "type": "unary_expression", "text": " *)dateFromTimeInterval:(NSTimeI", "parent": null, "children": [23, 24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 32}}, {"id": 23, "type": "+", "text": " ", "parent": 22, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 24, "type": "cast_expression", "text": ")dateFromTimeInterval:(NSTimeI", "parent": 22, "children": [25, 29], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 32}}, {"id": 25, "type": "type_descriptor", "text": "dateFrom", "parent": 24, "children": [26, 27], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 11}}, {"id": 26, "type": "type_identifier", "text": "dateFr", "parent": 25, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 9}}, {"id": 27, "type": "abstract_pointer_declarator", "text": "m", "parent": 25, "children": [28], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 28, "type": "*", "text": "m", "parent": 27, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 29, "type": "identifier", "text": "imeInterval:(NSTimeI", "parent": 24, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 32}}, {"id": 30, "type": "ERROR", "text": "nterval)timeInterval;\n+ (NSSt", "parent": null, "children": [31, 32], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 61}}, {"id": 31, "type": "identifier", "text": "erval)timeInte", "parent": 30, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 48}}, {"id": 32, "type": "identifier", "text": "val;\n+ (NSSt", "parent": 30, "children": [], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 61}}, {"id": 33, "type": "ERROR", "text": "ng *)stringFromTimeInterval:(NSTimeInterval)timeInter", "parent": null, "children": [34, 42], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 53}}, {"id": 34, "type": "unary_expression", "text": "ng *)stringFromTimeInterval:(NSTimeI", "parent": 33, "children": [35, 36], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 36}}, {"id": 35, "type": "+", "text": "n", "parent": 34, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 36, "type": "cast_expression", "text": " *)stringFromTimeInterval:(NSTimeI", "parent": 34, "children": [37, 41], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 36}}, {"id": 37, "type": "type_descriptor", "text": "*)stringFr", "parent": 36, "children": [38, 39], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 13}}, {"id": 38, "type": "type_identifier", "text": "*)string", "parent": 37, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 11}}, {"id": 39, "type": "abstract_pointer_declarator", "text": "r", "parent": 37, "children": [40], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 40, "type": "*", "text": "r", "parent": 39, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 41, "type": "identifier", "text": "mTimeInterval:(NSTimeI", "parent": 36, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 36}}, {"id": 42, "type": "identifier", "text": "erval)timeInte", "parent": 33, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 52}}, {"id": 43, "type": "declaration", "text": "val withDateFormat:(NSString *)dateFormat;\n+ (NSStr", "parent": null, "children": [44, 45, 46], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 104}}, {"id": 44, "type": "type_identifier", "text": "val withDate", "parent": 43, "children": [], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 65}}, {"id": 45, "type": "identifier", "text": "ormat:(NSStrin", "parent": 43, "children": [], "start_point": {"row": 14, "column": 66}, "end_point": {"row": 14, "column": 80}}, {"id": 46, "type": "ERROR", "text": "g *)dateFormat;\n+ (NSSt", "parent": 43, "children": [47, 48, 49], "start_point": {"row": 14, "column": 80}, "end_point": {"row": 14, "column": 103}}, {"id": 47, "type": "identifier", "text": "*)dateFo", "parent": 46, "children": [], "start_point": {"row": 14, "column": 82}, "end_point": {"row": 14, "column": 90}}, {"id": 48, "type": "*", "text": "m", "parent": 46, "children": [], "start_point": {"row": 14, "column": 91}, "end_point": {"row": 14, "column": 92}}, {"id": 49, "type": "identifier", "text": "t;\n+ (NSSt", "parent": 46, "children": [], "start_point": {"row": 14, "column": 93}, "end_point": {"row": 14, "column": 103}}, {"id": 50, "type": "ERROR", "text": "ng *)stringFromDate:(NSDate *)date withDateFormat:(NSString *)dateFormat;\n\n@end\n", "parent": null, "children": [51, 72, 73], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 51, "type": "binary_expression", "text": "ng *)stringFromDate:(NSDate *)date withDateFormat:(NSString *)dateFormat;\n\n@end\n", "parent": 50, "children": [52, 67, 69, 70, 71], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 81}}, {"id": 52, "type": "binary_expression", "text": "ng *)stringFromDate:(NSDate *)date withDateFormat:(NSStrin", "parent": 51, "children": [53, 61, 63, 64, 66], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 58}}, {"id": 53, "type": "unary_expression", "text": "ng *)stringFromDate:(NSDate ", "parent": 52, "children": [54, 55], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 28}}, {"id": 54, "type": "+", "text": "n", "parent": 53, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 55, "type": "cast_expression", "text": " *)stringFromDate:(NSDate ", "parent": 53, "children": [56, 60], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 28}}, {"id": 56, "type": "type_descriptor", "text": "*)stringFr", "parent": 55, "children": [57, 58], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 13}}, {"id": 57, "type": "type_identifier", "text": "*)string", "parent": 56, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 11}}, {"id": 58, "type": "abstract_pointer_declarator", "text": "r", "parent": 56, "children": [59], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 59, "type": "*", "text": "r", "parent": 58, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 60, "type": "identifier", "text": "mDate:(NSDate ", "parent": 55, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 28}}, {"id": 61, "type": "ERROR", "text": "*)date w", "parent": 52, "children": [62], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 36}}, {"id": 62, "type": "identifier", "text": "date w", "parent": 61, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 36}}, {"id": 63, "type": "*", "text": "t", "parent": 52, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 38}}, {"id": 64, "type": "ERROR", "text": "hDate", "parent": 52, "children": [65], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 43}}, {"id": 65, "type": "identifier", "text": "Date", "parent": 64, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 43}}, {"id": 66, "type": "identifier", "text": "ormat:(NSStrin", "parent": 52, "children": [], "start_point": {"row": 15, "column": 44}, "end_point": {"row": 15, "column": 58}}, {"id": 67, "type": "ERROR", "text": "g *)dateFo", "parent": 51, "children": [68], "start_point": {"row": 15, "column": 58}, "end_point": {"row": 15, "column": 68}}, {"id": 68, "type": "identifier", "text": "*)dateFo", "parent": 67, "children": [], "start_point": {"row": 15, "column": 60}, "end_point": {"row": 15, "column": 68}}, {"id": 69, "type": "*", "text": "m", "parent": 51, "children": [], "start_point": {"row": 15, "column": 69}, "end_point": {"row": 15, "column": 70}}, {"id": 70, "type": "ERROR", "text": "a", "parent": 51, "children": [], "start_point": {"row": 15, "column": 70}, "end_point": {"row": 15, "column": 71}}, {"id": 71, "type": "identifier", "text": "t;\n\n@end\n", "parent": 51, "children": [], "start_point": {"row": 15, "column": 71}, "end_point": {"row": 15, "column": 81}}, {"id": 72, "type": "ERROR", "text": "", "parent": 50, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 73, "type": "identifier", "text": "", "parent": 50, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [43], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 12, 18, 22, 24, 34, 36, 51, 52, 53, 55], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 14, 17, 19, 21, 26, 29, 31, 32, 38, 41, 42, 44, 45, 47, 49, 57, 60, 62, 65, 66, 68, 71, 73], "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": "B)\n\n+ (NSSt"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// NSDate+TB.h\n// TBLibrary\n//\n// Created by \u6768\u4e9a\u5764 on 2017/3/13.\n// Copyright \u00a9 2017\u5e74 yyk. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSDate (TB)\n\n+ (NSString *)timeIntervalFromDate:(NSDate *)date;\n+ (NSDate *)dateFromTimeInterval:(NSTimeInterval)timeInterval;\n+ (NSString *)stringFromTimeInterval:(NSTimeInterval)timeInterval withDateFormat:(NSString *)dateFormat;\n+ (NSString *)stringFromDate:(NSDate *)date withDateFormat:(NSString *)dateFormat;\n\n@end\n"}
80,825
c
/****************************************************************************** Copyright [2016] [Comcast] Comcast Proprietary and Confidential All Rights Reserved. Unauthorized copying of this file, via any medium is strictly prohibited ******************************************************************************/ #ifndef _SVCAGT_SYSTEMCTL_H #define _SVCAGT_SYSTEMCTL_H #include <stdbool.h> /** * Invoke systemctl to query the status of a service * * @param svc_name * @return 0 service stopped, 1 service running, -1 on error */ int svcagt_get_service_state (const char *svc_name); /** * Invoke systemctl to start or stop a service * * @param svc_name * @param state true=running, false=stopped * @return 0 on success, else an error code */ int svcagt_set_service_state (const char *svc_name, bool state); #endif
32.72
25
(translation_unit) "/******************************************************************************\n Copyright [2016] [Comcast]\n\n Comcast Proprietary and Confidential\n\n All Rights Reserved.\n\n Unauthorized copying of this file, via any medium is strictly prohibited\n\n******************************************************************************/\n#ifndef _SVCAGT_SYSTEMCTL_H\n#define _SVCAGT_SYSTEMCTL_H\n\n#include <stdbool.h>\n\n/**\n * Invoke systemctl to query the status of a service\n *\n * @param svc_name\n * @return 0 service stopped, 1 service running, -1 on error\n */\nint svcagt_get_service_state (const char *svc_name);\n\n/**\n * Invoke systemctl to start or stop a service\n *\n * @param svc_name\n * @param state true=running, false=stopped\n * @return 0 on success, else an error code\n */\nint svcagt_set_service_state (const char *svc_name, bool state);\n\n#endif\n" (comment) "/******************************************************************************\n Copyright [2016] [Comcast]\n\n Comcast Proprietary and Confidential\n\n All Rights Reserved.\n\n Unauthorized copying of this file, via any medium is strictly prohibited\n\n******************************************************************************/" (preproc_ifdef) "#ifndef _SVCAGT_SYSTEMCTL_H\n#define _SVCAGT_SYSTEMCTL_H\n\n#include <stdbool.h>\n\n/**\n * Invoke systemctl to query the status of a service\n *\n * @param svc_name\n * @return 0 service stopped, 1 service running, -1 on error\n */\nint svcagt_get_service_state (const char *svc_name);\n\n/**\n * Invoke systemctl to start or stop a service\n *\n * @param svc_name\n * @param state true=running, false=stopped\n * @return 0 on success, else an error code\n */\nint svcagt_set_service_state (const char *svc_name, bool state);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_SVCAGT_SYSTEMCTL_H" (preproc_def) "#define _SVCAGT_SYSTEMCTL_H\n" (#define) "#define" (identifier) "_SVCAGT_SYSTEMCTL_H" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (comment) "/**\n * Invoke systemctl to query the status of a service\n *\n * @param svc_name\n * @return 0 service stopped, 1 service running, -1 on error\n */" (declaration) "int svcagt_get_service_state (const char *svc_name);" (primitive_type) "int" (function_declarator) "svcagt_get_service_state (const char *svc_name)" (identifier) "svcagt_get_service_state" (parameter_list) "(const char *svc_name)" (() "(" (parameter_declaration) "const char *svc_name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*svc_name" (*) "*" (identifier) "svc_name" ()) ")" (;) ";" (comment) "/**\n * Invoke systemctl to start or stop a service\n *\n * @param svc_name\n * @param state true=running, false=stopped\n * @return 0 on success, else an error code\n */" (declaration) "int svcagt_set_service_state (const char *svc_name, bool state);" (primitive_type) "int" (function_declarator) "svcagt_set_service_state (const char *svc_name, bool state)" (identifier) "svcagt_set_service_state" (parameter_list) "(const char *svc_name, bool state)" (() "(" (parameter_declaration) "const char *svc_name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*svc_name" (*) "*" (identifier) "svc_name" (,) "," (parameter_declaration) "bool state" (primitive_type) "bool" (identifier) "state" ()) ")" (;) ";" (#endif) "#endif"
48
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 32.72, "nodes": 33, "errors": 0, "source_hash": "8ca449d72417982cff9d01e1b58c426b61134c56d2310e6f70725c02fa830d4d", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _SVCAGT_SYSTEMCTL_H\n#define _SVCAGT_SYSTEMCTL_H\n\n#include <stdbool.h>\n\n/**\n * Invoke systemctl to query the status of a service\n *\n * @param svc_name\n * @return 0 service stopped, 1 service running, -1 on error\n */\nint svcagt_get_service_state (const char *svc_name);\n\n/**\n * Invoke systemctl to start or stop a service\n *\n * @param svc_name\n * @param state true=running, false=stopped\n * @return 0 on success, else an error code\n */\nint svcagt_set_service_state (const char *svc_name, bool state);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 19, 32], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 32, "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": "_SVCAGT_SYSTEMCTL_H", "parent": 0, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define _SVCAGT_SYSTEMCTL_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": "_SVCAGT_SYSTEMCTL_H", "parent": 3, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include <stdbool.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": "<stdbool.h>", "parent": 6, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 20}}, {"id": 9, "type": "declaration", "text": "int svcagt_get_service_state (const char *svc_name);", "parent": 0, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 52}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "svcagt_get_service_state (const char *svc_name)", "parent": 9, "children": [12, 13], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 51}}, {"id": 12, "type": "identifier", "text": "svcagt_get_service_state", "parent": 11, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 28}}, {"id": 13, "type": "parameter_list", "text": "(const char *svc_name)", "parent": 11, "children": [14], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 51}}, {"id": 14, "type": "parameter_declaration", "text": "const char *svc_name", "parent": 13, "children": [15, 16], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 50}}, {"id": 15, "type": "primitive_type", "text": "char", "parent": 14, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 40}}, {"id": 16, "type": "pointer_declarator", "text": "*svc_name", "parent": 14, "children": [17, 18], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 50}}, {"id": 17, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 42}}, {"id": 18, "type": "identifier", "text": "svc_name", "parent": 16, "children": [], "start_point": {"row": 21, "column": 42}, "end_point": {"row": 21, "column": 50}}, {"id": 19, "type": "declaration", "text": "int svcagt_set_service_state (const char *svc_name, bool state);", "parent": 0, "children": [20, 21], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 64}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 3}}, {"id": 21, "type": "function_declarator", "text": "svcagt_set_service_state (const char *svc_name, bool state)", "parent": 19, "children": [22, 23], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 63}}, {"id": 22, "type": "identifier", "text": "svcagt_set_service_state", "parent": 21, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 28}}, {"id": 23, "type": "parameter_list", "text": "(const char *svc_name, bool state)", "parent": 21, "children": [24, 29], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 63}}, {"id": 24, "type": "parameter_declaration", "text": "const char *svc_name", "parent": 23, "children": [25, 26], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 50}}, {"id": 25, "type": "primitive_type", "text": "char", "parent": 24, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 40}}, {"id": 26, "type": "pointer_declarator", "text": "*svc_name", "parent": 24, "children": [27, 28], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 50}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 42}}, {"id": 28, "type": "identifier", "text": "svc_name", "parent": 26, "children": [], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 50}}, {"id": 29, "type": "parameter_declaration", "text": "bool state", "parent": 23, "children": [30, 31], "start_point": {"row": 30, "column": 52}, "end_point": {"row": 30, "column": 62}}, {"id": 30, "type": "primitive_type", "text": "bool", "parent": 29, "children": [], "start_point": {"row": 30, "column": 52}, "end_point": {"row": 30, "column": 56}}, {"id": 31, "type": "identifier", "text": "state", "parent": 29, "children": [], "start_point": {"row": 30, "column": 57}, "end_point": {"row": 30, "column": 62}}, {"id": 32, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11, 21], "variables": [9, 14, 19, 24, 29], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 18, 22, 28, 31, 32], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "svcagt_get_service_state (const char *svc_name)"}, {"node_id": 21, "universal_type": "function", "name": "state)", "text_snippet": "svcagt_set_service_state (const char *svc_name, bool state)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdbool.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/******************************************************************************\n Copyright [2016] [Comcast]\n\n Comcast Proprietary and Confidential\n\n All Rights Reserved.\n\n Unauthorized copying of this file, via any medium is strictly prohibited\n\n******************************************************************************/\n#ifndef _SVCAGT_SYSTEMCTL_H\n#define _SVCAGT_SYSTEMCTL_H\n\n#include <stdbool.h>\n\n/**\n * Invoke systemctl to query the status of a service\n *\n * @param svc_name\n * @return 0 service stopped, 1 service running, -1 on error\n */\nint svcagt_get_service_state (const char *svc_name);\n\n/**\n * Invoke systemctl to start or stop a service\n *\n * @param svc_name\n * @param state true=running, false=stopped\n * @return 0 on success, else an error code\n */\nint svcagt_set_service_state (const char *svc_name, bool state);\n\n#endif\n"}
80,826
c
/* Program to generate selftest values for taus113 prng from ** ** [1] <NAME>, "Tables of Maximally-Equidistributed Combined LFSR ** Generators", Mathematics of Computation, 68, 225 (1999), 261-269. ** [2] http://www.iro.umontreal.ca/~lecuyer/myftp/papers/tausme2.ps ** Online version of [1] ** ** Copied from [2] Fig.1, modified for unsigned long, uses minimum seeds ** Compile with: gcc -Wall t_taus113.c -o t_taus113.exe ** W.Ehrhardt Aug.2005 ** */ #include <stdio.h> static unsigned long z1=2, z2=8, z3=16, z4=128; unsigned long lsfr113() { unsigned long b; b = (((z1 << 6) ^ z1) >> 13); z1 = (((z1 & 4294967294U) << 18) ^ b); b = (((z2 << 2) ^ z2) >> 27); z2 = (((z2 & 4294967288U) << 2) ^ b); b = (((z3 << 13) ^ z3) >> 21); z3 = (((z3 & 4294967280U) << 7) ^ b); b = (((z4 << 3) ^ z4) >> 12); z4 = (((z4 & 4294967168U) << 13) ^ b); return (z1 ^ z2 ^ z3 ^ z4); } int main() { int j=0; printf("First: %08lx\n", lsfr113()); for (++j; j<499; j++) {lsfr113();} printf(" 500: %08lx\n", lsfr113()); for (++j; j<999; j++) {lsfr113();} printf(" 1000: %08lx\n", lsfr113()); for (++j; j<2499; j++) {lsfr113();} printf(" 2500: %08lx\n", lsfr113()); for (++j; j<9999; j++) {lsfr113();} printf("10000: %08lx\n", lsfr113()); for (++j; j<19999; j++) {lsfr113();} printf("20000: %08lx\n", lsfr113()); for (++j; j<29999; j++) {lsfr113();} printf("30000: %08lx\n", lsfr113()); return(0); }
37.37
38
(translation_unit) "/* Program to generate selftest values for taus113 prng from\n**\n** [1] <NAME>, "Tables of Maximally-Equidistributed Combined LFSR\n** Generators", Mathematics of Computation, 68, 225 (1999), 261-269.\n** [2] http://www.iro.umontreal.ca/~lecuyer/myftp/papers/tausme2.ps\n** Online version of [1]\n**\n** Copied from [2] Fig.1, modified for unsigned long, uses minimum seeds\n** Compile with: gcc -Wall t_taus113.c -o t_taus113.exe\n** W.Ehrhardt Aug.2005\n**\n*/\n\n#include <stdio.h>\n\nstatic unsigned long z1=2, z2=8, z3=16, z4=128;\n\n\nunsigned long lsfr113() {\n unsigned long b;\n b = (((z1 << 6) ^ z1) >> 13);\n z1 = (((z1 & 4294967294U) << 18) ^ b);\n b = (((z2 << 2) ^ z2) >> 27);\n z2 = (((z2 & 4294967288U) << 2) ^ b);\n b = (((z3 << 13) ^ z3) >> 21);\n z3 = (((z3 & 4294967280U) << 7) ^ b);\n b = (((z4 << 3) ^ z4) >> 12);\n z4 = (((z4 & 4294967168U) << 13) ^ b);\n return (z1 ^ z2 ^ z3 ^ z4);\n}\n\nint main() {\n int j=0;\n printf("First: %08lx\n", lsfr113());\n for (++j; j<499; j++) {lsfr113();} printf(" 500: %08lx\n", lsfr113());\n for (++j; j<999; j++) {lsfr113();} printf(" 1000: %08lx\n", lsfr113());\n for (++j; j<2499; j++) {lsfr113();} printf(" 2500: %08lx\n", lsfr113());\n for (++j; j<9999; j++) {lsfr113();} printf("10000: %08lx\n", lsfr113());\n for (++j; j<19999; j++) {lsfr113();} printf("20000: %08lx\n", lsfr113());\n for (++j; j<29999; j++) {lsfr113();} printf("30000: %08lx\n", lsfr113());\n return(0);\n}\n\n" (comment) "/* Program to generate selftest values for taus113 prng from\n**\n** [1] <NAME>, "Tables of Maximally-Equidistributed Combined LFSR\n** Generators", Mathematics of Computation, 68, 225 (1999), 261-269.\n** [2] http://www.iro.umontreal.ca/~lecuyer/myftp/papers/tausme2.ps\n** Online version of [1]\n**\n** Copied from [2] Fig.1, modified for unsigned long, uses minimum seeds\n** Compile with: gcc -Wall t_taus113.c -o t_taus113.exe\n** W.Ehrhardt Aug.2005\n**\n*/" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "static unsigned long z1=2, z2=8, z3=16, z4=128;" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (init_declarator) "z1=2" (identifier) "z1" (=) "=" (number_literal) "2" (,) "," (init_declarator) "z2=8" (identifier) "z2" (=) "=" (number_literal) "8" (,) "," (init_declarator) "z3=16" (identifier) "z3" (=) "=" (number_literal) "16" (,) "," (init_declarator) "z4=128" (identifier) "z4" (=) "=" (number_literal) "128" (;) ";" (function_definition) "unsigned long lsfr113() {\n unsigned long b;\n b = (((z1 << 6) ^ z1) >> 13);\n z1 = (((z1 & 4294967294U) << 18) ^ b);\n b = (((z2 << 2) ^ z2) >> 27);\n z2 = (((z2 & 4294967288U) << 2) ^ b);\n b = (((z3 << 13) ^ z3) >> 21);\n z3 = (((z3 & 4294967280U) << 7) ^ b);\n b = (((z4 << 3) ^ z4) >> 12);\n z4 = (((z4 & 4294967168U) << 13) ^ b);\n return (z1 ^ z2 ^ z3 ^ z4);\n}" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (function_declarator) "lsfr113()" (identifier) "lsfr113" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n unsigned long b;\n b = (((z1 << 6) ^ z1) >> 13);\n z1 = (((z1 & 4294967294U) << 18) ^ b);\n b = (((z2 << 2) ^ z2) >> 27);\n z2 = (((z2 & 4294967288U) << 2) ^ b);\n b = (((z3 << 13) ^ z3) >> 21);\n z3 = (((z3 & 4294967280U) << 7) ^ b);\n b = (((z4 << 3) ^ z4) >> 12);\n z4 = (((z4 & 4294967168U) << 13) ^ b);\n return (z1 ^ z2 ^ z3 ^ z4);\n}" ({) "{" (declaration) "unsigned long b;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "b" (;) ";" (expression_statement) "b = (((z1 << 6) ^ z1) >> 13);" (assignment_expression) "b = (((z1 << 6) ^ z1) >> 13)" (identifier) "b" (=) "=" (parenthesized_expression) "(((z1 << 6) ^ z1) >> 13)" (() "(" (binary_expression) "((z1 << 6) ^ z1) >> 13" (parenthesized_expression) "((z1 << 6) ^ z1)" (() "(" (binary_expression) "(z1 << 6) ^ z1" (parenthesized_expression) "(z1 << 6)" (() "(" (binary_expression) "z1 << 6" (identifier) "z1" (<<) "<<" (number_literal) "6" ()) ")" (^) "^" (identifier) "z1" ()) ")" (>>) ">>" (number_literal) "13" ()) ")" (;) ";" (expression_statement) "z1 = (((z1 & 4294967294U) << 18) ^ b);" (assignment_expression) "z1 = (((z1 & 4294967294U) << 18) ^ b)" (identifier) "z1" (=) "=" (parenthesized_expression) "(((z1 & 4294967294U) << 18) ^ b)" (() "(" (binary_expression) "((z1 & 4294967294U) << 18) ^ b" (parenthesized_expression) "((z1 & 4294967294U) << 18)" (() "(" (binary_expression) "(z1 & 4294967294U) << 18" (parenthesized_expression) "(z1 & 4294967294U)" (() "(" (binary_expression) "z1 & 4294967294U" (identifier) "z1" (&) "&" (number_literal) "4294967294U" ()) ")" (<<) "<<" (number_literal) "18" ()) ")" (^) "^" (identifier) "b" ()) ")" (;) ";" (expression_statement) "b = (((z2 << 2) ^ z2) >> 27);" (assignment_expression) "b = (((z2 << 2) ^ z2) >> 27)" (identifier) "b" (=) "=" (parenthesized_expression) "(((z2 << 2) ^ z2) >> 27)" (() "(" (binary_expression) "((z2 << 2) ^ z2) >> 27" (parenthesized_expression) "((z2 << 2) ^ z2)" (() "(" (binary_expression) "(z2 << 2) ^ z2" (parenthesized_expression) "(z2 << 2)" (() "(" (binary_expression) "z2 << 2" (identifier) "z2" (<<) "<<" (number_literal) "2" ()) ")" (^) "^" (identifier) "z2" ()) ")" (>>) ">>" (number_literal) "27" ()) ")" (;) ";" (expression_statement) "z2 = (((z2 & 4294967288U) << 2) ^ b);" (assignment_expression) "z2 = (((z2 & 4294967288U) << 2) ^ b)" (identifier) "z2" (=) "=" (parenthesized_expression) "(((z2 & 4294967288U) << 2) ^ b)" (() "(" (binary_expression) "((z2 & 4294967288U) << 2) ^ b" (parenthesized_expression) "((z2 & 4294967288U) << 2)" (() "(" (binary_expression) "(z2 & 4294967288U) << 2" (parenthesized_expression) "(z2 & 4294967288U)" (() "(" (binary_expression) "z2 & 4294967288U" (identifier) "z2" (&) "&" (number_literal) "4294967288U" ()) ")" (<<) "<<" (number_literal) "2" ()) ")" (^) "^" (identifier) "b" ()) ")" (;) ";" (expression_statement) "b = (((z3 << 13) ^ z3) >> 21);" (assignment_expression) "b = (((z3 << 13) ^ z3) >> 21)" (identifier) "b" (=) "=" (parenthesized_expression) "(((z3 << 13) ^ z3) >> 21)" (() "(" (binary_expression) "((z3 << 13) ^ z3) >> 21" (parenthesized_expression) "((z3 << 13) ^ z3)" (() "(" (binary_expression) "(z3 << 13) ^ z3" (parenthesized_expression) "(z3 << 13)" (() "(" (binary_expression) "z3 << 13" (identifier) "z3" (<<) "<<" (number_literal) "13" ()) ")" (^) "^" (identifier) "z3" ()) ")" (>>) ">>" (number_literal) "21" ()) ")" (;) ";" (expression_statement) "z3 = (((z3 & 4294967280U) << 7) ^ b);" (assignment_expression) "z3 = (((z3 & 4294967280U) << 7) ^ b)" (identifier) "z3" (=) "=" (parenthesized_expression) "(((z3 & 4294967280U) << 7) ^ b)" (() "(" (binary_expression) "((z3 & 4294967280U) << 7) ^ b" (parenthesized_expression) "((z3 & 4294967280U) << 7)" (() "(" (binary_expression) "(z3 & 4294967280U) << 7" (parenthesized_expression) "(z3 & 4294967280U)" (() "(" (binary_expression) "z3 & 4294967280U" (identifier) "z3" (&) "&" (number_literal) "4294967280U" ()) ")" (<<) "<<" (number_literal) "7" ()) ")" (^) "^" (identifier) "b" ()) ")" (;) ";" (expression_statement) "b = (((z4 << 3) ^ z4) >> 12);" (assignment_expression) "b = (((z4 << 3) ^ z4) >> 12)" (identifier) "b" (=) "=" (parenthesized_expression) "(((z4 << 3) ^ z4) >> 12)" (() "(" (binary_expression) "((z4 << 3) ^ z4) >> 12" (parenthesized_expression) "((z4 << 3) ^ z4)" (() "(" (binary_expression) "(z4 << 3) ^ z4" (parenthesized_expression) "(z4 << 3)" (() "(" (binary_expression) "z4 << 3" (identifier) "z4" (<<) "<<" (number_literal) "3" ()) ")" (^) "^" (identifier) "z4" ()) ")" (>>) ">>" (number_literal) "12" ()) ")" (;) ";" (expression_statement) "z4 = (((z4 & 4294967168U) << 13) ^ b);" (assignment_expression) "z4 = (((z4 & 4294967168U) << 13) ^ b)" (identifier) "z4" (=) "=" (parenthesized_expression) "(((z4 & 4294967168U) << 13) ^ b)" (() "(" (binary_expression) "((z4 & 4294967168U) << 13) ^ b" (parenthesized_expression) "((z4 & 4294967168U) << 13)" (() "(" (binary_expression) "(z4 & 4294967168U) << 13" (parenthesized_expression) "(z4 & 4294967168U)" (() "(" (binary_expression) "z4 & 4294967168U" (identifier) "z4" (&) "&" (number_literal) "4294967168U" ()) ")" (<<) "<<" (number_literal) "13" ()) ")" (^) "^" (identifier) "b" ()) ")" (;) ";" (return_statement) "return (z1 ^ z2 ^ z3 ^ z4);" (return) "return" (parenthesized_expression) "(z1 ^ z2 ^ z3 ^ z4)" (() "(" (binary_expression) "z1 ^ z2 ^ z3 ^ z4" (binary_expression) "z1 ^ z2 ^ z3" (binary_expression) "z1 ^ z2" (identifier) "z1" (^) "^" (identifier) "z2" (^) "^" (identifier) "z3" (^) "^" (identifier) "z4" ()) ")" (;) ";" (}) "}" (function_definition) "int main() {\n int j=0;\n printf("First: %08lx\n", lsfr113());\n for (++j; j<499; j++) {lsfr113();} printf(" 500: %08lx\n", lsfr113());\n for (++j; j<999; j++) {lsfr113();} printf(" 1000: %08lx\n", lsfr113());\n for (++j; j<2499; j++) {lsfr113();} printf(" 2500: %08lx\n", lsfr113());\n for (++j; j<9999; j++) {lsfr113();} printf("10000: %08lx\n", lsfr113());\n for (++j; j<19999; j++) {lsfr113();} printf("20000: %08lx\n", lsfr113());\n for (++j; j<29999; j++) {lsfr113();} printf("30000: %08lx\n", lsfr113());\n return(0);\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int j=0;\n printf("First: %08lx\n", lsfr113());\n for (++j; j<499; j++) {lsfr113();} printf(" 500: %08lx\n", lsfr113());\n for (++j; j<999; j++) {lsfr113();} printf(" 1000: %08lx\n", lsfr113());\n for (++j; j<2499; j++) {lsfr113();} printf(" 2500: %08lx\n", lsfr113());\n for (++j; j<9999; j++) {lsfr113();} printf("10000: %08lx\n", lsfr113());\n for (++j; j<19999; j++) {lsfr113();} printf("20000: %08lx\n", lsfr113());\n for (++j; j<29999; j++) {lsfr113();} printf("30000: %08lx\n", lsfr113());\n return(0);\n}" ({) "{" (declaration) "int j=0;" (primitive_type) "int" (init_declarator) "j=0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "printf("First: %08lx\n", lsfr113());" (call_expression) "printf("First: %08lx\n", lsfr113())" (identifier) "printf" (argument_list) "("First: %08lx\n", lsfr113())" (() "(" (string_literal) ""First: %08lx\n"" (") """ (string_content) "First: %08lx" (escape_sequence) "\n" (") """ (,) "," (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (for_statement) "for (++j; j<499; j++) {lsfr113();}" (for) "for" (() "(" (update_expression) "++j" (++) "++" (identifier) "j" (;) ";" (binary_expression) "j<499" (identifier) "j" (<) "<" (number_literal) "499" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{lsfr113();}" ({) "{" (expression_statement) "lsfr113();" (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "printf(" 500: %08lx\n", lsfr113());" (call_expression) "printf(" 500: %08lx\n", lsfr113())" (identifier) "printf" (argument_list) "(" 500: %08lx\n", lsfr113())" (() "(" (string_literal) "" 500: %08lx\n"" (") """ (string_content) " 500: %08lx" (escape_sequence) "\n" (") """ (,) "," (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (for_statement) "for (++j; j<999; j++) {lsfr113();}" (for) "for" (() "(" (update_expression) "++j" (++) "++" (identifier) "j" (;) ";" (binary_expression) "j<999" (identifier) "j" (<) "<" (number_literal) "999" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{lsfr113();}" ({) "{" (expression_statement) "lsfr113();" (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "printf(" 1000: %08lx\n", lsfr113());" (call_expression) "printf(" 1000: %08lx\n", lsfr113())" (identifier) "printf" (argument_list) "(" 1000: %08lx\n", lsfr113())" (() "(" (string_literal) "" 1000: %08lx\n"" (") """ (string_content) " 1000: %08lx" (escape_sequence) "\n" (") """ (,) "," (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (for_statement) "for (++j; j<2499; j++) {lsfr113();}" (for) "for" (() "(" (update_expression) "++j" (++) "++" (identifier) "j" (;) ";" (binary_expression) "j<2499" (identifier) "j" (<) "<" (number_literal) "2499" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{lsfr113();}" ({) "{" (expression_statement) "lsfr113();" (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "printf(" 2500: %08lx\n", lsfr113());" (call_expression) "printf(" 2500: %08lx\n", lsfr113())" (identifier) "printf" (argument_list) "(" 2500: %08lx\n", lsfr113())" (() "(" (string_literal) "" 2500: %08lx\n"" (") """ (string_content) " 2500: %08lx" (escape_sequence) "\n" (") """ (,) "," (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (for_statement) "for (++j; j<9999; j++) {lsfr113();}" (for) "for" (() "(" (update_expression) "++j" (++) "++" (identifier) "j" (;) ";" (binary_expression) "j<9999" (identifier) "j" (<) "<" (number_literal) "9999" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{lsfr113();}" ({) "{" (expression_statement) "lsfr113();" (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "printf("10000: %08lx\n", lsfr113());" (call_expression) "printf("10000: %08lx\n", lsfr113())" (identifier) "printf" (argument_list) "("10000: %08lx\n", lsfr113())" (() "(" (string_literal) ""10000: %08lx\n"" (") """ (string_content) "10000: %08lx" (escape_sequence) "\n" (") """ (,) "," (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (for_statement) "for (++j; j<19999; j++) {lsfr113();}" (for) "for" (() "(" (update_expression) "++j" (++) "++" (identifier) "j" (;) ";" (binary_expression) "j<19999" (identifier) "j" (<) "<" (number_literal) "19999" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{lsfr113();}" ({) "{" (expression_statement) "lsfr113();" (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "printf("20000: %08lx\n", lsfr113());" (call_expression) "printf("20000: %08lx\n", lsfr113())" (identifier) "printf" (argument_list) "("20000: %08lx\n", lsfr113())" (() "(" (string_literal) ""20000: %08lx\n"" (") """ (string_content) "20000: %08lx" (escape_sequence) "\n" (") """ (,) "," (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (for_statement) "for (++j; j<29999; j++) {lsfr113();}" (for) "for" (() "(" (update_expression) "++j" (++) "++" (identifier) "j" (;) ";" (binary_expression) "j<29999" (identifier) "j" (<) "<" (number_literal) "29999" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{lsfr113();}" ({) "{" (expression_statement) "lsfr113();" (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "printf("30000: %08lx\n", lsfr113());" (call_expression) "printf("30000: %08lx\n", lsfr113())" (identifier) "printf" (argument_list) "("30000: %08lx\n", lsfr113())" (() "(" (string_literal) ""30000: %08lx\n"" (") """ (string_content) "30000: %08lx" (escape_sequence) "\n" (") """ (,) "," (call_expression) "lsfr113()" (identifier) "lsfr113" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return(0);" (return) "return" (parenthesized_expression) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}"
563
0
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 37.37, "nodes": 325, "errors": 0, "source_hash": "053d29634618c88d0290babde719839e7e7d99402e0c443617210525c6985005", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 18}}, {"id": 3, "type": "declaration", "text": "static unsigned long z1=2, z2=8, z3=16, z4=128;", "parent": null, "children": [4, 7, 11, 15, 19], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 47}}, {"id": 4, "type": "sized_type_specifier", "text": "unsigned long", "parent": 3, "children": [5, 6], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 20}}, {"id": 5, "type": "unsigned", "text": "unsigned", "parent": 4, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 15}}, {"id": 6, "type": "long", "text": "long", "parent": 4, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 20}}, {"id": 7, "type": "init_declarator", "text": "z1=2", "parent": 3, "children": [8, 9, 10], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 25}}, {"id": 8, "type": "identifier", "text": "z1", "parent": 7, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 23}}, {"id": 9, "type": "=", "text": "=", "parent": 7, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 24}}, {"id": 10, "type": "number_literal", "text": "2", "parent": 7, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 25}}, {"id": 11, "type": "init_declarator", "text": "z2=8", "parent": 3, "children": [12, 13, 14], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 31}}, {"id": 12, "type": "identifier", "text": "z2", "parent": 11, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 29}}, {"id": 13, "type": "=", "text": "=", "parent": 11, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 30}}, {"id": 14, "type": "number_literal", "text": "8", "parent": 11, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 31}}, {"id": 15, "type": "init_declarator", "text": "z3=16", "parent": 3, "children": [16, 17, 18], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 38}}, {"id": 16, "type": "identifier", "text": "z3", "parent": 15, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 35}}, {"id": 17, "type": "=", "text": "=", "parent": 15, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 36}}, {"id": 18, "type": "number_literal", "text": "16", "parent": 15, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 38}}, {"id": 19, "type": "init_declarator", "text": "z4=128", "parent": 3, "children": [20, 21, 22], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 46}}, {"id": 20, "type": "identifier", "text": "z4", "parent": 19, "children": [], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 42}}, {"id": 21, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 43}}, {"id": 22, "type": "number_literal", "text": "128", "parent": 19, "children": [], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 46}}, {"id": 23, "type": "function_definition", "text": "unsigned long lsfr113() {\n unsigned long b;\n b = (((z1 << 6) ^ z1) >> 13);\n z1 = (((z1 & 4294967294U) << 18) ^ b);\n b = (((z2 << 2) ^ z2) >> 27);\n z2 = (((z2 & 4294967288U) << 2) ^ b);\n b = (((z3 << 13) ^ z3) >> 21);\n z3 = (((z3 & 4294967280U) << 7) ^ b);\n b = (((z4 << 3) ^ z4) >> 12);\n z4 = (((z4 & 4294967168U) << 13) ^ b);\n return (z1 ^ z2 ^ z3 ^ z4);\n}", "parent": null, "children": [24, 27], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 24, "type": "sized_type_specifier", "text": "unsigned long", "parent": 23, "children": [25, 26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 13}}, {"id": 25, "type": "unsigned", "text": "unsigned", "parent": 24, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 26, "type": "long", "text": "long", "parent": 24, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 27, "type": "function_declarator", "text": "lsfr113()", "parent": 23, "children": [28, 29], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 23}}, {"id": 28, "type": "identifier", "text": "lsfr113", "parent": 27, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 21}}, {"id": 29, "type": "parameter_list", "text": "()", "parent": 27, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 23}}, {"id": 30, "type": "declaration", "text": "unsigned long b;", "parent": 23, "children": [31, 34], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 19}}, {"id": 31, "type": "sized_type_specifier", "text": "unsigned long", "parent": 30, "children": [32, 33], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 16}}, {"id": 32, "type": "unsigned", "text": "unsigned", "parent": 31, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 11}}, {"id": 33, "type": "long", "text": "long", "parent": 31, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 16}}, {"id": 34, "type": "identifier", "text": "b", "parent": 30, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 35, "type": "assignment_expression", "text": "b = (((z1 << 6) ^ z1) >> 13)", "parent": 23, "children": [36, 37, 38], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 33}}, {"id": 36, "type": "identifier", "text": "b", "parent": 35, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 4}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 7}}, {"id": 38, "type": "parenthesized_expression", "text": "(((z1 << 6) ^ z1) >> 13)", "parent": 35, "children": [39], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 33}}, {"id": 39, "type": "binary_expression", "text": "((z1 << 6) ^ z1) >> 13", "parent": 38, "children": [40, 49, 50], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 32}}, {"id": 40, "type": "parenthesized_expression", "text": "((z1 << 6) ^ z1)", "parent": 39, "children": [41], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 26}}, {"id": 41, "type": "binary_expression", "text": "(z1 << 6) ^ z1", "parent": 40, "children": [42, 47, 48], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 25}}, {"id": 42, "type": "parenthesized_expression", "text": "(z1 << 6)", "parent": 41, "children": [43], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 20}}, {"id": 43, "type": "binary_expression", "text": "z1 << 6", "parent": 42, "children": [44, 45, 46], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 19}}, {"id": 44, "type": "identifier", "text": "z1", "parent": 43, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 13}}, {"id": 45, "type": "<<", "text": "<<", "parent": 43, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 16}}, {"id": 46, "type": "number_literal", "text": "6", "parent": 43, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 19}}, {"id": 47, "type": "^", "text": "^", "parent": 41, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 22}}, {"id": 48, "type": "identifier", "text": "z1", "parent": 41, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 25}}, {"id": 49, "type": ">>", "text": ">>", "parent": 39, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 29}}, {"id": 50, "type": "number_literal", "text": "13", "parent": 39, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 32}}, {"id": 51, "type": "assignment_expression", "text": "z1 = (((z1 & 4294967294U) << 18) ^ b)", "parent": 23, "children": [52, 53, 54], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 40}}, {"id": 52, "type": "identifier", "text": "z1", "parent": 51, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 7}}, {"id": 54, "type": "parenthesized_expression", "text": "(((z1 & 4294967294U) << 18) ^ b)", "parent": 51, "children": [55], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 40}}, {"id": 55, "type": "binary_expression", "text": "((z1 & 4294967294U) << 18) ^ b", "parent": 54, "children": [56, 64, 65], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 39}}, {"id": 56, "type": "parenthesized_expression", "text": "((z1 & 4294967294U) << 18)", "parent": 55, "children": [57], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 35}}, {"id": 57, "type": "binary_expression", "text": "(z1 & 4294967294U) << 18", "parent": 56, "children": [58, 62, 63], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 34}}, {"id": 58, "type": "parenthesized_expression", "text": "(z1 & 4294967294U)", "parent": 57, "children": [59], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 28}}, {"id": 59, "type": "binary_expression", "text": "z1 & 4294967294U", "parent": 58, "children": [60, 61], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 27}}, {"id": 60, "type": "identifier", "text": "z1", "parent": 59, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 13}}, {"id": 61, "type": "number_literal", "text": "4294967294U", "parent": 59, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 27}}, {"id": 62, "type": "<<", "text": "<<", "parent": 57, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 31}}, {"id": 63, "type": "number_literal", "text": "18", "parent": 57, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 34}}, {"id": 64, "type": "^", "text": "^", "parent": 55, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 37}}, {"id": 65, "type": "identifier", "text": "b", "parent": 55, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 39}}, {"id": 66, "type": "assignment_expression", "text": "b = (((z2 << 2) ^ z2) >> 27)", "parent": 23, "children": [67, 68, 69], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 33}}, {"id": 67, "type": "identifier", "text": "b", "parent": 66, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 4}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 69, "type": "parenthesized_expression", "text": "(((z2 << 2) ^ z2) >> 27)", "parent": 66, "children": [70], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 33}}, {"id": 70, "type": "binary_expression", "text": "((z2 << 2) ^ z2) >> 27", "parent": 69, "children": [71, 80, 81], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 32}}, {"id": 71, "type": "parenthesized_expression", "text": "((z2 << 2) ^ z2)", "parent": 70, "children": [72], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 26}}, {"id": 72, "type": "binary_expression", "text": "(z2 << 2) ^ z2", "parent": 71, "children": [73, 78, 79], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 25}}, {"id": 73, "type": "parenthesized_expression", "text": "(z2 << 2)", "parent": 72, "children": [74], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 20}}, {"id": 74, "type": "binary_expression", "text": "z2 << 2", "parent": 73, "children": [75, 76, 77], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 19}}, {"id": 75, "type": "identifier", "text": "z2", "parent": 74, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 13}}, {"id": 76, "type": "<<", "text": "<<", "parent": 74, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 77, "type": "number_literal", "text": "2", "parent": 74, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 19}}, {"id": 78, "type": "^", "text": "^", "parent": 72, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 22}}, {"id": 79, "type": "identifier", "text": "z2", "parent": 72, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 25}}, {"id": 80, "type": ">>", "text": ">>", "parent": 70, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 29}}, {"id": 81, "type": "number_literal", "text": "27", "parent": 70, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 32}}, {"id": 82, "type": "assignment_expression", "text": "z2 = (((z2 & 4294967288U) << 2) ^ b)", "parent": 23, "children": [83, 84, 85], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 39}}, {"id": 83, "type": "identifier", "text": "z2", "parent": 82, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 85, "type": "parenthesized_expression", "text": "(((z2 & 4294967288U) << 2) ^ b)", "parent": 82, "children": [86], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 39}}, {"id": 86, "type": "binary_expression", "text": "((z2 & 4294967288U) << 2) ^ b", "parent": 85, "children": [87, 95, 96], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 38}}, {"id": 87, "type": "parenthesized_expression", "text": "((z2 & 4294967288U) << 2)", "parent": 86, "children": [88], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 34}}, {"id": 88, "type": "binary_expression", "text": "(z2 & 4294967288U) << 2", "parent": 87, "children": [89, 93, 94], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 33}}, {"id": 89, "type": "parenthesized_expression", "text": "(z2 & 4294967288U)", "parent": 88, "children": [90], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 28}}, {"id": 90, "type": "binary_expression", "text": "z2 & 4294967288U", "parent": 89, "children": [91, 92], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 27}}, {"id": 91, "type": "identifier", "text": "z2", "parent": 90, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 13}}, {"id": 92, "type": "number_literal", "text": "4294967288U", "parent": 90, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 27}}, {"id": 93, "type": "<<", "text": "<<", "parent": 88, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 31}}, {"id": 94, "type": "number_literal", "text": "2", "parent": 88, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 33}}, {"id": 95, "type": "^", "text": "^", "parent": 86, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 36}}, {"id": 96, "type": "identifier", "text": "b", "parent": 86, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 38}}, {"id": 97, "type": "assignment_expression", "text": "b = (((z3 << 13) ^ z3) >> 21)", "parent": 23, "children": [98, 99, 100], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 33}}, {"id": 98, "type": "identifier", "text": "b", "parent": 97, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 4}}, {"id": 99, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 7}}, {"id": 100, "type": "parenthesized_expression", "text": "(((z3 << 13) ^ z3) >> 21)", "parent": 97, "children": [101], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 33}}, {"id": 101, "type": "binary_expression", "text": "((z3 << 13) ^ z3) >> 21", "parent": 100, "children": [102, 111, 112], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 32}}, {"id": 102, "type": "parenthesized_expression", "text": "((z3 << 13) ^ z3)", "parent": 101, "children": [103], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 26}}, {"id": 103, "type": "binary_expression", "text": "(z3 << 13) ^ z3", "parent": 102, "children": [104, 109, 110], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 25}}, {"id": 104, "type": "parenthesized_expression", "text": "(z3 << 13)", "parent": 103, "children": [105], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 20}}, {"id": 105, "type": "binary_expression", "text": "z3 << 13", "parent": 104, "children": [106, 107, 108], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 19}}, {"id": 106, "type": "identifier", "text": "z3", "parent": 105, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 13}}, {"id": 107, "type": "<<", "text": "<<", "parent": 105, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 16}}, {"id": 108, "type": "number_literal", "text": "13", "parent": 105, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 19}}, {"id": 109, "type": "^", "text": "^", "parent": 103, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 22}}, {"id": 110, "type": "identifier", "text": "z3", "parent": 103, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 25}}, {"id": 111, "type": ">>", "text": ">>", "parent": 101, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 29}}, {"id": 112, "type": "number_literal", "text": "21", "parent": 101, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 32}}, {"id": 113, "type": "assignment_expression", "text": "z3 = (((z3 & 4294967280U) << 7) ^ b)", "parent": 23, "children": [114, 115, 116], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 39}}, {"id": 114, "type": "identifier", "text": "z3", "parent": 113, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 115, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 7}}, {"id": 116, "type": "parenthesized_expression", "text": "(((z3 & 4294967280U) << 7) ^ b)", "parent": 113, "children": [117], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 39}}, {"id": 117, "type": "binary_expression", "text": "((z3 & 4294967280U) << 7) ^ b", "parent": 116, "children": [118, 126, 127], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 38}}, {"id": 118, "type": "parenthesized_expression", "text": "((z3 & 4294967280U) << 7)", "parent": 117, "children": [119], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 34}}, {"id": 119, "type": "binary_expression", "text": "(z3 & 4294967280U) << 7", "parent": 118, "children": [120, 124, 125], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 33}}, {"id": 120, "type": "parenthesized_expression", "text": "(z3 & 4294967280U)", "parent": 119, "children": [121], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 28}}, {"id": 121, "type": "binary_expression", "text": "z3 & 4294967280U", "parent": 120, "children": [122, 123], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 27}}, {"id": 122, "type": "identifier", "text": "z3", "parent": 121, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 13}}, {"id": 123, "type": "number_literal", "text": "4294967280U", "parent": 121, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 27}}, {"id": 124, "type": "<<", "text": "<<", "parent": 119, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 31}}, {"id": 125, "type": "number_literal", "text": "7", "parent": 119, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 33}}, {"id": 126, "type": "^", "text": "^", "parent": 117, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 36}}, {"id": 127, "type": "identifier", "text": "b", "parent": 117, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 38}}, {"id": 128, "type": "assignment_expression", "text": "b = (((z4 << 3) ^ z4) >> 12)", "parent": 23, "children": [129, 130, 131], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 33}}, {"id": 129, "type": "identifier", "text": "b", "parent": 128, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 4}}, {"id": 130, "type": "=", "text": "=", "parent": 128, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 7}}, {"id": 131, "type": "parenthesized_expression", "text": "(((z4 << 3) ^ z4) >> 12)", "parent": 128, "children": [132], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 33}}, {"id": 132, "type": "binary_expression", "text": "((z4 << 3) ^ z4) >> 12", "parent": 131, "children": [133, 142, 143], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 32}}, {"id": 133, "type": "parenthesized_expression", "text": "((z4 << 3) ^ z4)", "parent": 132, "children": [134], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 26}}, {"id": 134, "type": "binary_expression", "text": "(z4 << 3) ^ z4", "parent": 133, "children": [135, 140, 141], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 25}}, {"id": 135, "type": "parenthesized_expression", "text": "(z4 << 3)", "parent": 134, "children": [136], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 20}}, {"id": 136, "type": "binary_expression", "text": "z4 << 3", "parent": 135, "children": [137, 138, 139], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 19}}, {"id": 137, "type": "identifier", "text": "z4", "parent": 136, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 13}}, {"id": 138, "type": "<<", "text": "<<", "parent": 136, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 16}}, {"id": 139, "type": "number_literal", "text": "3", "parent": 136, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 19}}, {"id": 140, "type": "^", "text": "^", "parent": 134, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 22}}, {"id": 141, "type": "identifier", "text": "z4", "parent": 134, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 25}}, {"id": 142, "type": ">>", "text": ">>", "parent": 132, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 29}}, {"id": 143, "type": "number_literal", "text": "12", "parent": 132, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 32}}, {"id": 144, "type": "assignment_expression", "text": "z4 = (((z4 & 4294967168U) << 13) ^ b)", "parent": 23, "children": [145, 146, 147], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 40}}, {"id": 145, "type": "identifier", "text": "z4", "parent": 144, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 146, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 7}}, {"id": 147, "type": "parenthesized_expression", "text": "(((z4 & 4294967168U) << 13) ^ b)", "parent": 144, "children": [148], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 40}}, {"id": 148, "type": "binary_expression", "text": "((z4 & 4294967168U) << 13) ^ b", "parent": 147, "children": [149, 157, 158], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 39}}, {"id": 149, "type": "parenthesized_expression", "text": "((z4 & 4294967168U) << 13)", "parent": 148, "children": [150], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 35}}, {"id": 150, "type": "binary_expression", "text": "(z4 & 4294967168U) << 13", "parent": 149, "children": [151, 155, 156], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 34}}, {"id": 151, "type": "parenthesized_expression", "text": "(z4 & 4294967168U)", "parent": 150, "children": [152], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 28}}, {"id": 152, "type": "binary_expression", "text": "z4 & 4294967168U", "parent": 151, "children": [153, 154], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 27}}, {"id": 153, "type": "identifier", "text": "z4", "parent": 152, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 13}}, {"id": 154, "type": "number_literal", "text": "4294967168U", "parent": 152, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 27}}, {"id": 155, "type": "<<", "text": "<<", "parent": 150, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 31}}, {"id": 156, "type": "number_literal", "text": "13", "parent": 150, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 34}}, {"id": 157, "type": "^", "text": "^", "parent": 148, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 37}}, {"id": 158, "type": "identifier", "text": "b", "parent": 148, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 39}}, {"id": 159, "type": "return_statement", "text": "return (z1 ^ z2 ^ z3 ^ z4);", "parent": 23, "children": [160], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 30}}, {"id": 160, "type": "parenthesized_expression", "text": "(z1 ^ z2 ^ z3 ^ z4)", "parent": 159, "children": [161], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 29}}, {"id": 161, "type": "binary_expression", "text": "z1 ^ z2 ^ z3 ^ z4", "parent": 160, "children": [162, 169, 170], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 28}}, {"id": 162, "type": "binary_expression", "text": "z1 ^ z2 ^ z3", "parent": 161, "children": [163, 167, 168], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 23}}, {"id": 163, "type": "binary_expression", "text": "z1 ^ z2", "parent": 162, "children": [164, 165, 166], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 18}}, {"id": 164, "type": "identifier", "text": "z1", "parent": 163, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 13}}, {"id": 165, "type": "^", "text": "^", "parent": 163, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 166, "type": "identifier", "text": "z2", "parent": 163, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 18}}, {"id": 167, "type": "^", "text": "^", "parent": 162, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 168, "type": "identifier", "text": "z3", "parent": 162, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 23}}, {"id": 169, "type": "^", "text": "^", "parent": 161, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 170, "type": "identifier", "text": "z4", "parent": 161, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 28}}, {"id": 171, "type": "function_definition", "text": "int main() {\n int j=0;\n printf(\"First: %08lx\\n\", lsfr113());\n for (++j; j<499; j++) {lsfr113();} printf(\" 500: %08lx\\n\", lsfr113());\n for (++j; j<999; j++) {lsfr113();} printf(\" 1000: %08lx\\n\", lsfr113());\n for (++j; j<2499; j++) {lsfr113();} printf(\" 2500: %08lx\\n\", lsfr113());\n for (++j; j<9999; j++) {lsfr113();} printf(\"10000: %08lx\\n\", lsfr113());\n for (++j; j<19999; j++) {lsfr113();} printf(\"20000: %08lx\\n\", lsfr113());\n for (++j; j<29999; j++) {lsfr113();} printf(\"30000: %08lx\\n\", lsfr113());\n return(0);\n}", "parent": null, "children": [172, 173], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 172, "type": "primitive_type", "text": "int", "parent": 171, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 3}}, {"id": 173, "type": "function_declarator", "text": "main()", "parent": 171, "children": [174, 175], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 174, "type": "identifier", "text": "main", "parent": 173, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 175, "type": "parameter_list", "text": "()", "parent": 173, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 10}}, {"id": 176, "type": "declaration", "text": "int j=0;", "parent": 171, "children": [177, 178], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 10}}, {"id": 177, "type": "primitive_type", "text": "int", "parent": 176, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 5}}, {"id": 178, "type": "init_declarator", "text": "j=0", "parent": 176, "children": [179, 180, 181], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 9}}, {"id": 179, "type": "identifier", "text": "j", "parent": 178, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 7}}, {"id": 180, "type": "=", "text": "=", "parent": 178, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 8}}, {"id": 181, "type": "number_literal", "text": "0", "parent": 178, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 9}}, {"id": 182, "type": "call_expression", "text": "printf(\"First: %08lx\\n\", lsfr113())", "parent": 171, "children": [183, 184], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 37}}, {"id": 183, "type": "identifier", "text": "printf", "parent": 182, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 184, "type": "argument_list", "text": "(\"First: %08lx\\n\", lsfr113())", "parent": 182, "children": [185, 187], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 37}}, {"id": 185, "type": "string_literal", "text": "\"First: %08lx\\n\"", "parent": 184, "children": [186], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 25}}, {"id": 186, "type": "escape_sequence", "text": "\\n", "parent": 185, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 24}}, {"id": 187, "type": "call_expression", "text": "lsfr113()", "parent": 184, "children": [188, 189], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 36}}, {"id": 188, "type": "identifier", "text": "lsfr113", "parent": 187, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 34}}, {"id": 189, "type": "argument_list", "text": "()", "parent": 187, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 36}}, {"id": 190, "type": "for_statement", "text": "for (++j; j<499; j++) {lsfr113();}", "parent": 171, "children": [191, 194, 198], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 38}}, {"id": 191, "type": "update_expression", "text": "++j", "parent": 190, "children": [192, 193], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 10}}, {"id": 192, "type": "++", "text": "++", "parent": 191, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 9}}, {"id": 193, "type": "identifier", "text": "j", "parent": 191, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 10}}, {"id": 194, "type": "binary_expression", "text": "j<499", "parent": 190, "children": [195, 196, 197], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 19}}, {"id": 195, "type": "identifier", "text": "j", "parent": 194, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 196, "type": "<", "text": "<", "parent": 194, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 197, "type": "number_literal", "text": "499", "parent": 194, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 19}}, {"id": 198, "type": "update_expression", "text": "j++", "parent": 190, "children": [199, 200], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 24}}, {"id": 199, "type": "identifier", "text": "j", "parent": 198, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 22}}, {"id": 200, "type": "++", "text": "++", "parent": 198, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 24}}, {"id": 201, "type": "call_expression", "text": "lsfr113()", "parent": 190, "children": [202, 203], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 36}}, {"id": 202, "type": "identifier", "text": "lsfr113", "parent": 201, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 34}}, {"id": 203, "type": "argument_list", "text": "()", "parent": 201, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 36}}, {"id": 204, "type": "call_expression", "text": "printf(\" 500: %08lx\\n\", lsfr113())", "parent": 171, "children": [205, 206], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 75}}, {"id": 205, "type": "identifier", "text": "printf", "parent": 204, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 46}}, {"id": 206, "type": "argument_list", "text": "(\" 500: %08lx\\n\", lsfr113())", "parent": 204, "children": [207, 209], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 75}}, {"id": 207, "type": "string_literal", "text": "\" 500: %08lx\\n\"", "parent": 206, "children": [208], "start_point": {"row": 34, "column": 47}, "end_point": {"row": 34, "column": 63}}, {"id": 208, "type": "escape_sequence", "text": "\\n", "parent": 207, "children": [], "start_point": {"row": 34, "column": 60}, "end_point": {"row": 34, "column": 62}}, {"id": 209, "type": "call_expression", "text": "lsfr113()", "parent": 206, "children": [210, 211], "start_point": {"row": 34, "column": 65}, "end_point": {"row": 34, "column": 74}}, {"id": 210, "type": "identifier", "text": "lsfr113", "parent": 209, "children": [], "start_point": {"row": 34, "column": 65}, "end_point": {"row": 34, "column": 72}}, {"id": 211, "type": "argument_list", "text": "()", "parent": 209, "children": [], "start_point": {"row": 34, "column": 72}, "end_point": {"row": 34, "column": 74}}, {"id": 212, "type": "for_statement", "text": "for (++j; j<999; j++) {lsfr113();}", "parent": 171, "children": [213, 216, 220], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 38}}, {"id": 213, "type": "update_expression", "text": "++j", "parent": 212, "children": [214, 215], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 10}}, {"id": 214, "type": "++", "text": "++", "parent": 213, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 9}}, {"id": 215, "type": "identifier", "text": "j", "parent": 213, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 10}}, {"id": 216, "type": "binary_expression", "text": "j<999", "parent": 212, "children": [217, 218, 219], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 19}}, {"id": 217, "type": "identifier", "text": "j", "parent": 216, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 15}}, {"id": 218, "type": "<", "text": "<", "parent": 216, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 16}}, {"id": 219, "type": "number_literal", "text": "999", "parent": 216, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 19}}, {"id": 220, "type": "update_expression", "text": "j++", "parent": 212, "children": [221, 222], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 24}}, {"id": 221, "type": "identifier", "text": "j", "parent": 220, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 22}}, {"id": 222, "type": "++", "text": "++", "parent": 220, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 24}}, {"id": 223, "type": "call_expression", "text": "lsfr113()", "parent": 212, "children": [224, 225], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 36}}, {"id": 224, "type": "identifier", "text": "lsfr113", "parent": 223, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 34}}, {"id": 225, "type": "argument_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 36}}, {"id": 226, "type": "call_expression", "text": "printf(\" 1000: %08lx\\n\", lsfr113())", "parent": 171, "children": [227, 228], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 75}}, {"id": 227, "type": "identifier", "text": "printf", "parent": 226, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 46}}, {"id": 228, "type": "argument_list", "text": "(\" 1000: %08lx\\n\", lsfr113())", "parent": 226, "children": [229, 231], "start_point": {"row": 35, "column": 46}, "end_point": {"row": 35, "column": 75}}, {"id": 229, "type": "string_literal", "text": "\" 1000: %08lx\\n\"", "parent": 228, "children": [230], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 63}}, {"id": 230, "type": "escape_sequence", "text": "\\n", "parent": 229, "children": [], "start_point": {"row": 35, "column": 60}, "end_point": {"row": 35, "column": 62}}, {"id": 231, "type": "call_expression", "text": "lsfr113()", "parent": 228, "children": [232, 233], "start_point": {"row": 35, "column": 65}, "end_point": {"row": 35, "column": 74}}, {"id": 232, "type": "identifier", "text": "lsfr113", "parent": 231, "children": [], "start_point": {"row": 35, "column": 65}, "end_point": {"row": 35, "column": 72}}, {"id": 233, "type": "argument_list", "text": "()", "parent": 231, "children": [], "start_point": {"row": 35, "column": 72}, "end_point": {"row": 35, "column": 74}}, {"id": 234, "type": "for_statement", "text": "for (++j; j<2499; j++) {lsfr113();}", "parent": 171, "children": [235, 238, 242], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 38}}, {"id": 235, "type": "update_expression", "text": "++j", "parent": 234, "children": [236, 237], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 10}}, {"id": 236, "type": "++", "text": "++", "parent": 235, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 9}}, {"id": 237, "type": "identifier", "text": "j", "parent": 235, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 10}}, {"id": 238, "type": "binary_expression", "text": "j<2499", "parent": 234, "children": [239, 240, 241], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 19}}, {"id": 239, "type": "identifier", "text": "j", "parent": 238, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 240, "type": "<", "text": "<", "parent": 238, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 15}}, {"id": 241, "type": "number_literal", "text": "2499", "parent": 238, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 19}}, {"id": 242, "type": "update_expression", "text": "j++", "parent": 234, "children": [243, 244], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 24}}, {"id": 243, "type": "identifier", "text": "j", "parent": 242, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 244, "type": "++", "text": "++", "parent": 242, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 24}}, {"id": 245, "type": "call_expression", "text": "lsfr113()", "parent": 234, "children": [246, 247], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 36}}, {"id": 246, "type": "identifier", "text": "lsfr113", "parent": 245, "children": [], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 34}}, {"id": 247, "type": "argument_list", "text": "()", "parent": 245, "children": [], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 36}}, {"id": 248, "type": "call_expression", "text": "printf(\" 2500: %08lx\\n\", lsfr113())", "parent": 171, "children": [249, 250], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 75}}, {"id": 249, "type": "identifier", "text": "printf", "parent": 248, "children": [], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 46}}, {"id": 250, "type": "argument_list", "text": "(\" 2500: %08lx\\n\", lsfr113())", "parent": 248, "children": [251, 253], "start_point": {"row": 36, "column": 46}, "end_point": {"row": 36, "column": 75}}, {"id": 251, "type": "string_literal", "text": "\" 2500: %08lx\\n\"", "parent": 250, "children": [252], "start_point": {"row": 36, "column": 47}, "end_point": {"row": 36, "column": 63}}, {"id": 252, "type": "escape_sequence", "text": "\\n", "parent": 251, "children": [], "start_point": {"row": 36, "column": 60}, "end_point": {"row": 36, "column": 62}}, {"id": 253, "type": "call_expression", "text": "lsfr113()", "parent": 250, "children": [254, 255], "start_point": {"row": 36, "column": 65}, "end_point": {"row": 36, "column": 74}}, {"id": 254, "type": "identifier", "text": "lsfr113", "parent": 253, "children": [], "start_point": {"row": 36, "column": 65}, "end_point": {"row": 36, "column": 72}}, {"id": 255, "type": "argument_list", "text": "()", "parent": 253, "children": [], "start_point": {"row": 36, "column": 72}, "end_point": {"row": 36, "column": 74}}, {"id": 256, "type": "for_statement", "text": "for (++j; j<9999; j++) {lsfr113();}", "parent": 171, "children": [257, 260, 264], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 38}}, {"id": 257, "type": "update_expression", "text": "++j", "parent": 256, "children": [258, 259], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 10}}, {"id": 258, "type": "++", "text": "++", "parent": 257, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 9}}, {"id": 259, "type": "identifier", "text": "j", "parent": 257, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 10}}, {"id": 260, "type": "binary_expression", "text": "j<9999", "parent": 256, "children": [261, 262, 263], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 19}}, {"id": 261, "type": "identifier", "text": "j", "parent": 260, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 14}}, {"id": 262, "type": "<", "text": "<", "parent": 260, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 15}}, {"id": 263, "type": "number_literal", "text": "9999", "parent": 260, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 19}}, {"id": 264, "type": "update_expression", "text": "j++", "parent": 256, "children": [265, 266], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 24}}, {"id": 265, "type": "identifier", "text": "j", "parent": 264, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 22}}, {"id": 266, "type": "++", "text": "++", "parent": 264, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 24}}, {"id": 267, "type": "call_expression", "text": "lsfr113()", "parent": 256, "children": [268, 269], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 36}}, {"id": 268, "type": "identifier", "text": "lsfr113", "parent": 267, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 34}}, {"id": 269, "type": "argument_list", "text": "()", "parent": 267, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 36}}, {"id": 270, "type": "call_expression", "text": "printf(\"10000: %08lx\\n\", lsfr113())", "parent": 171, "children": [271, 272], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 75}}, {"id": 271, "type": "identifier", "text": "printf", "parent": 270, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 46}}, {"id": 272, "type": "argument_list", "text": "(\"10000: %08lx\\n\", lsfr113())", "parent": 270, "children": [273, 275], "start_point": {"row": 37, "column": 46}, "end_point": {"row": 37, "column": 75}}, {"id": 273, "type": "string_literal", "text": "\"10000: %08lx\\n\"", "parent": 272, "children": [274], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 63}}, {"id": 274, "type": "escape_sequence", "text": "\\n", "parent": 273, "children": [], "start_point": {"row": 37, "column": 60}, "end_point": {"row": 37, "column": 62}}, {"id": 275, "type": "call_expression", "text": "lsfr113()", "parent": 272, "children": [276, 277], "start_point": {"row": 37, "column": 65}, "end_point": {"row": 37, "column": 74}}, {"id": 276, "type": "identifier", "text": "lsfr113", "parent": 275, "children": [], "start_point": {"row": 37, "column": 65}, "end_point": {"row": 37, "column": 72}}, {"id": 277, "type": "argument_list", "text": "()", "parent": 275, "children": [], "start_point": {"row": 37, "column": 72}, "end_point": {"row": 37, "column": 74}}, {"id": 278, "type": "for_statement", "text": "for (++j; j<19999; j++) {lsfr113();}", "parent": 171, "children": [279, 282, 286], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 38}}, {"id": 279, "type": "update_expression", "text": "++j", "parent": 278, "children": [280, 281], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 10}}, {"id": 280, "type": "++", "text": "++", "parent": 279, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 9}}, {"id": 281, "type": "identifier", "text": "j", "parent": 279, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 282, "type": "binary_expression", "text": "j<19999", "parent": 278, "children": [283, 284, 285], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 19}}, {"id": 283, "type": "identifier", "text": "j", "parent": 282, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 284, "type": "<", "text": "<", "parent": 282, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 14}}, {"id": 285, "type": "number_literal", "text": "19999", "parent": 282, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 19}}, {"id": 286, "type": "update_expression", "text": "j++", "parent": 278, "children": [287, 288], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 24}}, {"id": 287, "type": "identifier", "text": "j", "parent": 286, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 22}}, {"id": 288, "type": "++", "text": "++", "parent": 286, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 24}}, {"id": 289, "type": "call_expression", "text": "lsfr113()", "parent": 278, "children": [290, 291], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 36}}, {"id": 290, "type": "identifier", "text": "lsfr113", "parent": 289, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 34}}, {"id": 291, "type": "argument_list", "text": "()", "parent": 289, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 36}}, {"id": 292, "type": "call_expression", "text": "printf(\"20000: %08lx\\n\", lsfr113())", "parent": 171, "children": [293, 294], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 75}}, {"id": 293, "type": "identifier", "text": "printf", "parent": 292, "children": [], "start_point": {"row": 38, "column": 40}, "end_point": {"row": 38, "column": 46}}, {"id": 294, "type": "argument_list", "text": "(\"20000: %08lx\\n\", lsfr113())", "parent": 292, "children": [295, 297], "start_point": {"row": 38, "column": 46}, "end_point": {"row": 38, "column": 75}}, {"id": 295, "type": "string_literal", "text": "\"20000: %08lx\\n\"", "parent": 294, "children": [296], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 63}}, {"id": 296, "type": "escape_sequence", "text": "\\n", "parent": 295, "children": [], "start_point": {"row": 38, "column": 60}, "end_point": {"row": 38, "column": 62}}, {"id": 297, "type": "call_expression", "text": "lsfr113()", "parent": 294, "children": [298, 299], "start_point": {"row": 38, "column": 65}, "end_point": {"row": 38, "column": 74}}, {"id": 298, "type": "identifier", "text": "lsfr113", "parent": 297, "children": [], "start_point": {"row": 38, "column": 65}, "end_point": {"row": 38, "column": 72}}, {"id": 299, "type": "argument_list", "text": "()", "parent": 297, "children": [], "start_point": {"row": 38, "column": 72}, "end_point": {"row": 38, "column": 74}}, {"id": 300, "type": "for_statement", "text": "for (++j; j<29999; j++) {lsfr113();}", "parent": 171, "children": [301, 304, 308], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 38}}, {"id": 301, "type": "update_expression", "text": "++j", "parent": 300, "children": [302, 303], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 10}}, {"id": 302, "type": "++", "text": "++", "parent": 301, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 9}}, {"id": 303, "type": "identifier", "text": "j", "parent": 301, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 10}}, {"id": 304, "type": "binary_expression", "text": "j<29999", "parent": 300, "children": [305, 306, 307], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 19}}, {"id": 305, "type": "identifier", "text": "j", "parent": 304, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 13}}, {"id": 306, "type": "<", "text": "<", "parent": 304, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 14}}, {"id": 307, "type": "number_literal", "text": "29999", "parent": 304, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 19}}, {"id": 308, "type": "update_expression", "text": "j++", "parent": 300, "children": [309, 310], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 24}}, {"id": 309, "type": "identifier", "text": "j", "parent": 308, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 310, "type": "++", "text": "++", "parent": 308, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 24}}, {"id": 311, "type": "call_expression", "text": "lsfr113()", "parent": 300, "children": [312, 313], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 36}}, {"id": 312, "type": "identifier", "text": "lsfr113", "parent": 311, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 34}}, {"id": 313, "type": "argument_list", "text": "()", "parent": 311, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 36}}, {"id": 314, "type": "call_expression", "text": "printf(\"30000: %08lx\\n\", lsfr113())", "parent": 171, "children": [315, 316], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 75}}, {"id": 315, "type": "identifier", "text": "printf", "parent": 314, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 46}}, {"id": 316, "type": "argument_list", "text": "(\"30000: %08lx\\n\", lsfr113())", "parent": 314, "children": [317, 319], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 75}}, {"id": 317, "type": "string_literal", "text": "\"30000: %08lx\\n\"", "parent": 316, "children": [318], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 63}}, {"id": 318, "type": "escape_sequence", "text": "\\n", "parent": 317, "children": [], "start_point": {"row": 39, "column": 60}, "end_point": {"row": 39, "column": 62}}, {"id": 319, "type": "call_expression", "text": "lsfr113()", "parent": 316, "children": [320, 321], "start_point": {"row": 39, "column": 65}, "end_point": {"row": 39, "column": 74}}, {"id": 320, "type": "identifier", "text": "lsfr113", "parent": 319, "children": [], "start_point": {"row": 39, "column": 65}, "end_point": {"row": 39, "column": 72}}, {"id": 321, "type": "argument_list", "text": "()", "parent": 319, "children": [], "start_point": {"row": 39, "column": 72}, "end_point": {"row": 39, "column": 74}}, {"id": 322, "type": "return_statement", "text": "return(0);", "parent": 171, "children": [323], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 12}}, {"id": 323, "type": "parenthesized_expression", "text": "(0)", "parent": 322, "children": [324], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 11}}, {"id": 324, "type": "number_literal", "text": "0", "parent": 323, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 10}}]}, "node_categories": {"declarations": {"functions": [23, 27, 171, 173], "variables": [3, 30, 176], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [38, 39, 40, 41, 42, 43, 54, 55, 56, 57, 58, 59, 69, 70, 71, 72, 73, 74, 85, 86, 87, 88, 89, 90, 100, 101, 102, 103, 104, 105, 116, 117, 118, 119, 120, 121, 131, 132, 133, 134, 135, 136, 147, 148, 149, 150, 151, 152, 160, 161, 162, 163, 182, 187, 191, 194, 198, 201, 204, 209, 213, 216, 220, 223, 226, 231, 235, 238, 242, 245, 248, 253, 257, 260, 264, 267, 270, 275, 279, 282, 286, 289, 292, 297, 301, 304, 308, 311, 314, 319, 323], "assignments": [35, 51, 66, 82, 97, 113, 128, 144], "loops": [190, 212, 234, 256, 278, 300], "conditionals": [4, 8, 12, 16, 20, 24, 28, 31, 34, 36, 44, 48, 52, 60, 65, 67, 75, 79, 83, 91, 96, 98, 106, 110, 114, 122, 127, 129, 137, 141, 145, 153, 158, 164, 166, 168, 170, 174, 179, 183, 188, 193, 195, 199, 202, 205, 210, 215, 217, 221, 224, 227, 232, 237, 239, 243, 246, 249, 254, 259, 261, 265, 268, 271, 276, 281, 283, 287, 290, 293, 298, 303, 305, 309, 312, 315, 320], "returns": [159, 322], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 10, 14, 18, 22, 46, 50, 61, 63, 77, 81, 92, 94, 108, 112, 123, 125, 139, 143, 154, 156, 181, 185, 197, 207, 219, 229, 241, 251, 263, 273, 285, 295, 307, 317, 324], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned long lsfr113() {\n unsigned long b;\n b = (((z1 << 6) ^ z1) >> 13);\n z1 = (((z1 & 429"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "lsfr113()"}, {"node_id": 171, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n int j=0;\n printf(\"First: %08lx\\n\", lsfr113());\n for (++j; j<499; j++) {lsfr113();"}, {"node_id": 173, "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": "/* Program to generate selftest values for taus113 prng from\n**\n** [1] <NAME>, \"Tables of Maximally-Equidistributed Combined LFSR\n** Generators\", Mathematics of Computation, 68, 225 (1999), 261-269.\n** [2] http://www.iro.umontreal.ca/~lecuyer/myftp/papers/tausme2.ps\n** Online version of [1]\n**\n** Copied from [2] Fig.1, modified for unsigned long, uses minimum seeds\n** Compile with: gcc -Wall t_taus113.c -o t_taus113.exe\n** W.Ehrhardt Aug.2005\n**\n*/\n\n#include <stdio.h>\n\nstatic unsigned long z1=2, z2=8, z3=16, z4=128;\n\n\nunsigned long lsfr113() {\n unsigned long b;\n b = (((z1 << 6) ^ z1) >> 13);\n z1 = (((z1 & 4294967294U) << 18) ^ b);\n b = (((z2 << 2) ^ z2) >> 27);\n z2 = (((z2 & 4294967288U) << 2) ^ b);\n b = (((z3 << 13) ^ z3) >> 21);\n z3 = (((z3 & 4294967280U) << 7) ^ b);\n b = (((z4 << 3) ^ z4) >> 12);\n z4 = (((z4 & 4294967168U) << 13) ^ b);\n return (z1 ^ z2 ^ z3 ^ z4);\n}\n\nint main() {\n int j=0;\n printf(\"First: %08lx\\n\", lsfr113());\n for (++j; j<499; j++) {lsfr113();} printf(\" 500: %08lx\\n\", lsfr113());\n for (++j; j<999; j++) {lsfr113();} printf(\" 1000: %08lx\\n\", lsfr113());\n for (++j; j<2499; j++) {lsfr113();} printf(\" 2500: %08lx\\n\", lsfr113());\n for (++j; j<9999; j++) {lsfr113();} printf(\"10000: %08lx\\n\", lsfr113());\n for (++j; j<19999; j++) {lsfr113();} printf(\"20000: %08lx\\n\", lsfr113());\n for (++j; j<29999; j++) {lsfr113();} printf(\"30000: %08lx\\n\", lsfr113());\n return(0);\n}\n\n"}
80,827
c
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>. // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // Meridian is a registered trademark. /* * select.h: Header file for select.c */ #ifndef _SELECT_H #define _SELECT_H typedef void (*SelectCallback)(ID object2); M59EXPORT void SetSelectCallback(SelectCallback fn); void UserSelect(ID target); M59EXPORT void SelectedObject(ID target_id); void SetUseObject(ID id); #endif /* #ifndef _SELECT_H */
29.17
18
(translation_unit) "// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.\n// All rights reserved.\n//\n// This software is distributed under a license that is described in\n// the LICENSE file that accompanies it.\n//\n// Meridian is a registered trademark.\n/*\n * select.h: Header file for select.c\n */\n\n#ifndef _SELECT_H\n#define _SELECT_H\n\ntypedef void (*SelectCallback)(ID object2);\n\nM59EXPORT void SetSelectCallback(SelectCallback fn);\n\nvoid UserSelect(ID target);\nM59EXPORT void SelectedObject(ID target_id);\nvoid SetUseObject(ID id);\n\n#endif /* #ifndef _SELECT_H */\n" (comment) "// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>." (comment) "// All rights reserved." (comment) "//" (comment) "// This software is distributed under a license that is described in" (comment) "// the LICENSE file that accompanies it." (comment) "//" (comment) "// Meridian is a registered trademark." (comment) "/*\n * select.h: Header file for select.c\n */" (preproc_ifdef) "#ifndef _SELECT_H\n#define _SELECT_H\n\ntypedef void (*SelectCallback)(ID object2);\n\nM59EXPORT void SetSelectCallback(SelectCallback fn);\n\nvoid UserSelect(ID target);\nM59EXPORT void SelectedObject(ID target_id);\nvoid SetUseObject(ID id);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_SELECT_H" (preproc_def) "#define _SELECT_H\n" (#define) "#define" (identifier) "_SELECT_H" (type_definition) "typedef void (*SelectCallback)(ID object2);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*SelectCallback)(ID object2)" (parenthesized_declarator) "(*SelectCallback)" (() "(" (pointer_declarator) "*SelectCallback" (*) "*" (type_identifier) "SelectCallback" ()) ")" (parameter_list) "(ID object2)" (() "(" (parameter_declaration) "ID object2" (type_identifier) "ID" (identifier) "object2" ()) ")" (;) ";" (declaration) "M59EXPORT void SetSelectCallback(SelectCallback fn);" (type_identifier) "M59EXPORT" (ERROR) "void" (identifier) "void" (function_declarator) "SetSelectCallback(SelectCallback fn)" (identifier) "SetSelectCallback" (parameter_list) "(SelectCallback fn)" (() "(" (parameter_declaration) "SelectCallback fn" (type_identifier) "SelectCallback" (identifier) "fn" ()) ")" (;) ";" (declaration) "void UserSelect(ID target);" (primitive_type) "void" (function_declarator) "UserSelect(ID target)" (identifier) "UserSelect" (parameter_list) "(ID target)" (() "(" (parameter_declaration) "ID target" (type_identifier) "ID" (identifier) "target" ()) ")" (;) ";" (declaration) "M59EXPORT void SelectedObject(ID target_id);" (type_identifier) "M59EXPORT" (ERROR) "void" (identifier) "void" (function_declarator) "SelectedObject(ID target_id)" (identifier) "SelectedObject" (parameter_list) "(ID target_id)" (() "(" (parameter_declaration) "ID target_id" (type_identifier) "ID" (identifier) "target_id" ()) ")" (;) ";" (declaration) "void SetUseObject(ID id);" (primitive_type) "void" (function_declarator) "SetUseObject(ID id)" (identifier) "SetUseObject" (parameter_list) "(ID id)" (() "(" (parameter_declaration) "ID id" (type_identifier) "ID" (identifier) "id" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* #ifndef _SELECT_H */"
82
2
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 29.17, "nodes": 55, "errors": 0, "source_hash": "4ed3e2a51073b10aa677858afccad4dbc72eacf45cbd1e50a4c8f211dabc6983", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _SELECT_H\n#define _SELECT_H\n\ntypedef void (*SelectCallback)(ID object2);\n\nM59EXPORT void SetSelectCallback(SelectCallback fn);\n\nvoid UserSelect(ID target);\nM59EXPORT void SelectedObject(ID target_id);\nvoid SetUseObject(ID id);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 18, 28, 36, 46, 54], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 2, "type": "identifier", "text": "_SELECT_H", "parent": 0, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define _SELECT_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 5, "type": "identifier", "text": "_SELECT_H", "parent": 3, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 17}}, {"id": 6, "type": "type_definition", "text": "typedef void (*SelectCallback)(ID object2);", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 43}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 8, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 9, "type": "function_declarator", "text": "(*SelectCallback)(ID object2)", "parent": 6, "children": [10, 14], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 42}}, {"id": 10, "type": "parenthesized_declarator", "text": "(*SelectCallback)", "parent": 9, "children": [11], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 30}}, {"id": 11, "type": "pointer_declarator", "text": "*SelectCallback", "parent": 10, "children": [12, 13], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 29}}, {"id": 12, "type": "*", "text": "*", "parent": 11, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 15}}, {"id": 13, "type": "type_identifier", "text": "SelectCallback", "parent": 11, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 29}}, {"id": 14, "type": "parameter_list", "text": "(ID object2)", "parent": 9, "children": [15], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 42}}, {"id": 15, "type": "parameter_declaration", "text": "ID object2", "parent": 14, "children": [16, 17], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 41}}, {"id": 16, "type": "type_identifier", "text": "ID", "parent": 15, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 33}}, {"id": 17, "type": "identifier", "text": "object2", "parent": 15, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 41}}, {"id": 18, "type": "declaration", "text": "M59EXPORT void SetSelectCallback(SelectCallback fn);", "parent": 0, "children": [19, 20, 22], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 52}}, {"id": 19, "type": "type_identifier", "text": "M59EXPORT", "parent": 18, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 20, "type": "ERROR", "text": "void", "parent": 18, "children": [21], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 21, "type": "identifier", "text": "void", "parent": 20, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 14}}, {"id": 22, "type": "function_declarator", "text": "SetSelectCallback(SelectCallback fn)", "parent": 18, "children": [23, 24], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 51}}, {"id": 23, "type": "identifier", "text": "SetSelectCallback", "parent": 22, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 32}}, {"id": 24, "type": "parameter_list", "text": "(SelectCallback fn)", "parent": 22, "children": [25], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 51}}, {"id": 25, "type": "parameter_declaration", "text": "SelectCallback fn", "parent": 24, "children": [26, 27], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 50}}, {"id": 26, "type": "type_identifier", "text": "SelectCallback", "parent": 25, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 47}}, {"id": 27, "type": "identifier", "text": "fn", "parent": 25, "children": [], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 50}}, {"id": 28, "type": "declaration", "text": "void UserSelect(ID target);", "parent": 0, "children": [29, 30], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 27}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 30, "type": "function_declarator", "text": "UserSelect(ID target)", "parent": 28, "children": [31, 32], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 26}}, {"id": 31, "type": "identifier", "text": "UserSelect", "parent": 30, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 15}}, {"id": 32, "type": "parameter_list", "text": "(ID target)", "parent": 30, "children": [33], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 26}}, {"id": 33, "type": "parameter_declaration", "text": "ID target", "parent": 32, "children": [34, 35], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 25}}, {"id": 34, "type": "type_identifier", "text": "ID", "parent": 33, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 18}}, {"id": 35, "type": "identifier", "text": "target", "parent": 33, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 25}}, {"id": 36, "type": "declaration", "text": "M59EXPORT void SelectedObject(ID target_id);", "parent": 0, "children": [37, 38, 40], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 44}}, {"id": 37, "type": "type_identifier", "text": "M59EXPORT", "parent": 36, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 9}}, {"id": 38, "type": "ERROR", "text": "void", "parent": 36, "children": [39], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 14}}, {"id": 39, "type": "identifier", "text": "void", "parent": 38, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 14}}, {"id": 40, "type": "function_declarator", "text": "SelectedObject(ID target_id)", "parent": 36, "children": [41, 42], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 43}}, {"id": 41, "type": "identifier", "text": "SelectedObject", "parent": 40, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 29}}, {"id": 42, "type": "parameter_list", "text": "(ID target_id)", "parent": 40, "children": [43], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 43}}, {"id": 43, "type": "parameter_declaration", "text": "ID target_id", "parent": 42, "children": [44, 45], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 42}}, {"id": 44, "type": "type_identifier", "text": "ID", "parent": 43, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 32}}, {"id": 45, "type": "identifier", "text": "target_id", "parent": 43, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 42}}, {"id": 46, "type": "declaration", "text": "void SetUseObject(ID id);", "parent": 0, "children": [47, 48], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 25}}, {"id": 47, "type": "primitive_type", "text": "void", "parent": 46, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 48, "type": "function_declarator", "text": "SetUseObject(ID id)", "parent": 46, "children": [49, 50], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 24}}, {"id": 49, "type": "identifier", "text": "SetUseObject", "parent": 48, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 17}}, {"id": 50, "type": "parameter_list", "text": "(ID id)", "parent": 48, "children": [51], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 24}}, {"id": 51, "type": "parameter_declaration", "text": "ID id", "parent": 50, "children": [52, 53], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 23}}, {"id": 52, "type": "type_identifier", "text": "ID", "parent": 51, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 20}}, {"id": 53, "type": "identifier", "text": "id", "parent": 51, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 23}}, {"id": 54, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 22, 30, 40, 48], "variables": [6, 15, 18, 25, 28, 33, 36, 43, 46, 51], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 16, 17, 19, 21, 23, 26, 27, 31, 34, 35, 37, 39, 41, 44, 45, 49, 52, 53, 54], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "(*SelectCallback)(ID object2)"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "SetSelectCallback(SelectCallback fn)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "UserSelect(ID target)"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "SelectedObject(ID target_id)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "SetUseObject(ID id)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.\n// All rights reserved.\n//\n// This software is distributed under a license that is described in\n// the LICENSE file that accompanies it.\n//\n// Meridian is a registered trademark.\n/*\n * select.h: Header file for select.c\n */\n\n#ifndef _SELECT_H\n#define _SELECT_H\n\ntypedef void (*SelectCallback)(ID object2);\n\nM59EXPORT void SetSelectCallback(SelectCallback fn);\n\nvoid UserSelect(ID target);\nM59EXPORT void SelectedObject(ID target_id);\nvoid SetUseObject(ID id);\n\n#endif /* #ifndef _SELECT_H */\n"}
80,828
c
// Control of a HD44780 LCD in 4-Bit-Interfacemode #ifndef LCD_ROUTINES_H #define LCD_ROUTINES_H //////////////////////////////////////////////////////////////////////////////// // Define the MCUs frequency here #ifndef F_CPU #define F_CPU 3686400UL #endif //////////////////////////////////////////////////////////////////////////////// // Pinout of the LCD // LCD DB4-DB7 <--> PORTD Bit PD0-PD3 #define LCD_PORT PORTD #define LCD_DDR DDRD #define LCD_DB PD4 // LCD RS <--> PORTD Bit PD4 (RS: 1=Data, 0=Command) #define LCD_RS PD2 // LCD EN <--> PORTD Bit PD5 (EN: 1-Impuls for Data) #define LCD_EN PD3 //////////////////////////////////////////////////////////////////////////////// // LCD Timings (MS=Milliseconds, US=Microseconds) #define LCD_BOOTUP_MS 15 #define LCD_ENABLE_US 20 #define LCD_WRITEDATA_US 46 #define LCD_COMMAND_US 42 #define LCD_SOFT_RESET_MS1 5 #define LCD_SOFT_RESET_MS2 1 #define LCD_SOFT_RESET_MS3 1 #define LCD_SET_4BITMODE_MS 5 #define LCD_CLEAR_DISPLAY_MS 2 #define LCD_CURSOR_HOME_MS 2 //////////////////////////////////////////////////////////////////////////////// // Row definitions #define LCD_DDADR_LINE1 0x00 #define LCD_DDADR_LINE2 0x40 #define LCD_DDADR_LINE3 0x10 #define LCD_DDADR_LINE4 0x50 //////////////////////////////////////////////////////////////////////////////// // Initialise: void lcd_init( void ); //////////////////////////////////////////////////////////////////////////////// // LCD clear void lcd_clear( void ); //////////////////////////////////////////////////////////////////////////////// // Cursor in the first row, first column void lcd_home( void ); //////////////////////////////////////////////////////////////////////////////// // Cursor to a desired position void lcd_setcursor( uint8_t spalte, uint8_t zeile ); //////////////////////////////////////////////////////////////////////////////// // Output a single char void lcd_data( uint8_t data ); //////////////////////////////////////////////////////////////////////////////// // Output a string void lcd_string( const char *data ); //////////////////////////////////////////////////////////////////////////////// // Define customised characters void lcd_generatechar( uint8_t code, const uint8_t *data ); //////////////////////////////////////////////////////////////////////////////// // Output a command to the LCD void lcd_command( uint8_t data ); //////////////////////////////////////////////////////////////////////////////// // LCD Commands // Clear Display -------------- 0b00000001 #define LCD_CLEAR_DISPLAY 0x01 // Cursor Home ---------------- 0b0000001x #define LCD_CURSOR_HOME 0x02 // Set Entry Mode ------------- 0b000001xx #define LCD_SET_ENTRY 0x04 #define LCD_ENTRY_DECREASE 0x00 #define LCD_ENTRY_INCREASE 0x02 #define LCD_ENTRY_NOSHIFT 0x00 #define LCD_ENTRY_SHIFT 0x01 // Set Display ---------------- 0b00001xxx #define LCD_SET_DISPLAY 0x08 #define LCD_DISPLAY_OFF 0x00 #define LCD_DISPLAY_ON 0x04 #define LCD_CURSOR_OFF 0x00 #define LCD_CURSOR_ON 0x02 #define LCD_BLINKING_OFF 0x00 #define LCD_BLINKING_ON 0x01 // Set Shift ------------------ 0b0001xxxx #define LCD_SET_SHIFT 0x10 #define LCD_CURSOR_MOVE 0x00 #define LCD_DISPLAY_SHIFT 0x08 #define LCD_SHIFT_LEFT 0x00 #define LCD_SHIFT_RIGHT 0x04 // Set Function --------------- 0b001xxxxx #define LCD_SET_FUNCTION 0x20 #define LCD_FUNCTION_4BIT 0x00 #define LCD_FUNCTION_8BIT 0x10 #define LCD_FUNCTION_1LINE 0x00 #define LCD_FUNCTION_2LINE 0x08 #define LCD_FUNCTION_5X7 0x00 #define LCD_FUNCTION_5X10 0x04 #define LCD_SOFT_RESET 0x30 // Set CG RAM Address --------- 0b01xxxxxx (Character Generator RAM) #define LCD_SET_CGADR 0x40 #define LCD_GC_CHAR0 0 #define LCD_GC_CHAR1 1 #define LCD_GC_CHAR2 2 #define LCD_GC_CHAR3 3 #define LCD_GC_CHAR4 4 #define LCD_GC_CHAR5 5 #define LCD_GC_CHAR6 6 #define LCD_GC_CHAR7 7 // Set DD RAM Address --------- 0b1xxxxxxx (Display Data RAM) #define LCD_SET_DDADR 0x80 #endif
29.41
146
(translation_unit) "// Control of a HD44780 LCD in 4-Bit-Interfacemode\n\n \n#ifndef LCD_ROUTINES_H\n#define LCD_ROUTINES_H\n \n////////////////////////////////////////////////////////////////////////////////\n// Define the MCUs frequency here\n \n#ifndef F_CPU\n#define F_CPU 3686400UL\n#endif\n \n////////////////////////////////////////////////////////////////////////////////\n// Pinout of the LCD\n \n// LCD DB4-DB7 <--> PORTD Bit PD0-PD3\n#define LCD_PORT PORTD\n#define LCD_DDR DDRD\n#define LCD_DB PD4\n \n// LCD RS <--> PORTD Bit PD4 (RS: 1=Data, 0=Command)\n#define LCD_RS PD2\n \n// LCD EN <--> PORTD Bit PD5 (EN: 1-Impuls for Data)\n#define LCD_EN PD3\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Timings (MS=Milliseconds, US=Microseconds)\n \n#define LCD_BOOTUP_MS 15\n#define LCD_ENABLE_US 20\n#define LCD_WRITEDATA_US 46\n#define LCD_COMMAND_US 42\n \n#define LCD_SOFT_RESET_MS1 5\n#define LCD_SOFT_RESET_MS2 1\n#define LCD_SOFT_RESET_MS3 1\n#define LCD_SET_4BITMODE_MS 5\n \n#define LCD_CLEAR_DISPLAY_MS 2\n#define LCD_CURSOR_HOME_MS 2\n \n////////////////////////////////////////////////////////////////////////////////\n// Row definitions\n \n#define LCD_DDADR_LINE1 0x00\n#define LCD_DDADR_LINE2 0x40\n#define LCD_DDADR_LINE3 0x10\n#define LCD_DDADR_LINE4 0x50\n \n////////////////////////////////////////////////////////////////////////////////\n// Initialise: \nvoid lcd_init( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD clear\nvoid lcd_clear( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor in the first row, first column\nvoid lcd_home( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor to a desired position\nvoid lcd_setcursor( uint8_t spalte, uint8_t zeile );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a single char\nvoid lcd_data( uint8_t data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a string\nvoid lcd_string( const char *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Define customised characters\nvoid lcd_generatechar( uint8_t code, const uint8_t *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a command to the LCD\nvoid lcd_command( uint8_t data );\n \n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Commands\n \n// Clear Display -------------- 0b00000001\n#define LCD_CLEAR_DISPLAY 0x01\n \n// Cursor Home ---------------- 0b0000001x\n#define LCD_CURSOR_HOME 0x02\n \n// Set Entry Mode ------------- 0b000001xx\n#define LCD_SET_ENTRY 0x04\n \n#define LCD_ENTRY_DECREASE 0x00\n#define LCD_ENTRY_INCREASE 0x02\n#define LCD_ENTRY_NOSHIFT 0x00\n#define LCD_ENTRY_SHIFT 0x01\n \n// Set Display ---------------- 0b00001xxx\n#define LCD_SET_DISPLAY 0x08\n \n#define LCD_DISPLAY_OFF 0x00\n#define LCD_DISPLAY_ON 0x04\n#define LCD_CURSOR_OFF 0x00\n#define LCD_CURSOR_ON 0x02\n#define LCD_BLINKING_OFF 0x00\n#define LCD_BLINKING_ON 0x01\n \n// Set Shift ------------------ 0b0001xxxx\n#define LCD_SET_SHIFT 0x10\n \n#define LCD_CURSOR_MOVE 0x00\n#define LCD_DISPLAY_SHIFT 0x08\n#define LCD_SHIFT_LEFT 0x00\n#define LCD_SHIFT_RIGHT 0x04\n \n// Set Function --------------- 0b001xxxxx\n#define LCD_SET_FUNCTION 0x20\n \n#define LCD_FUNCTION_4BIT 0x00\n#define LCD_FUNCTION_8BIT 0x10\n#define LCD_FUNCTION_1LINE 0x00\n#define LCD_FUNCTION_2LINE 0x08\n#define LCD_FUNCTION_5X7 0x00\n#define LCD_FUNCTION_5X10 0x04\n \n#define LCD_SOFT_RESET 0x30\n \n// Set CG RAM Address --------- 0b01xxxxxx (Character Generator RAM)\n#define LCD_SET_CGADR 0x40\n \n#define LCD_GC_CHAR0 0\n#define LCD_GC_CHAR1 1\n#define LCD_GC_CHAR2 2\n#define LCD_GC_CHAR3 3\n#define LCD_GC_CHAR4 4\n#define LCD_GC_CHAR5 5\n#define LCD_GC_CHAR6 6\n#define LCD_GC_CHAR7 7\n \n// Set DD RAM Address --------- 0b1xxxxxxx (Display Data RAM)\n#define LCD_SET_DDADR 0x80\n \n#endif\n" (comment) "// Control of a HD44780 LCD in 4-Bit-Interfacemode" (preproc_ifdef) "#ifndef LCD_ROUTINES_H\n#define LCD_ROUTINES_H\n \n////////////////////////////////////////////////////////////////////////////////\n// Define the MCUs frequency here\n \n#ifndef F_CPU\n#define F_CPU 3686400UL\n#endif\n \n////////////////////////////////////////////////////////////////////////////////\n// Pinout of the LCD\n \n// LCD DB4-DB7 <--> PORTD Bit PD0-PD3\n#define LCD_PORT PORTD\n#define LCD_DDR DDRD\n#define LCD_DB PD4\n \n// LCD RS <--> PORTD Bit PD4 (RS: 1=Data, 0=Command)\n#define LCD_RS PD2\n \n// LCD EN <--> PORTD Bit PD5 (EN: 1-Impuls for Data)\n#define LCD_EN PD3\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Timings (MS=Milliseconds, US=Microseconds)\n \n#define LCD_BOOTUP_MS 15\n#define LCD_ENABLE_US 20\n#define LCD_WRITEDATA_US 46\n#define LCD_COMMAND_US 42\n \n#define LCD_SOFT_RESET_MS1 5\n#define LCD_SOFT_RESET_MS2 1\n#define LCD_SOFT_RESET_MS3 1\n#define LCD_SET_4BITMODE_MS 5\n \n#define LCD_CLEAR_DISPLAY_MS 2\n#define LCD_CURSOR_HOME_MS 2\n \n////////////////////////////////////////////////////////////////////////////////\n// Row definitions\n \n#define LCD_DDADR_LINE1 0x00\n#define LCD_DDADR_LINE2 0x40\n#define LCD_DDADR_LINE3 0x10\n#define LCD_DDADR_LINE4 0x50\n \n////////////////////////////////////////////////////////////////////////////////\n// Initialise: \nvoid lcd_init( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD clear\nvoid lcd_clear( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor in the first row, first column\nvoid lcd_home( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor to a desired position\nvoid lcd_setcursor( uint8_t spalte, uint8_t zeile );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a single char\nvoid lcd_data( uint8_t data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a string\nvoid lcd_string( const char *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Define customised characters\nvoid lcd_generatechar( uint8_t code, const uint8_t *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a command to the LCD\nvoid lcd_command( uint8_t data );\n \n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Commands\n \n// Clear Display -------------- 0b00000001\n#define LCD_CLEAR_DISPLAY 0x01\n \n// Cursor Home ---------------- 0b0000001x\n#define LCD_CURSOR_HOME 0x02\n \n// Set Entry Mode ------------- 0b000001xx\n#define LCD_SET_ENTRY 0x04\n \n#define LCD_ENTRY_DECREASE 0x00\n#define LCD_ENTRY_INCREASE 0x02\n#define LCD_ENTRY_NOSHIFT 0x00\n#define LCD_ENTRY_SHIFT 0x01\n \n// Set Display ---------------- 0b00001xxx\n#define LCD_SET_DISPLAY 0x08\n \n#define LCD_DISPLAY_OFF 0x00\n#define LCD_DISPLAY_ON 0x04\n#define LCD_CURSOR_OFF 0x00\n#define LCD_CURSOR_ON 0x02\n#define LCD_BLINKING_OFF 0x00\n#define LCD_BLINKING_ON 0x01\n \n// Set Shift ------------------ 0b0001xxxx\n#define LCD_SET_SHIFT 0x10\n \n#define LCD_CURSOR_MOVE 0x00\n#define LCD_DISPLAY_SHIFT 0x08\n#define LCD_SHIFT_LEFT 0x00\n#define LCD_SHIFT_RIGHT 0x04\n \n// Set Function --------------- 0b001xxxxx\n#define LCD_SET_FUNCTION 0x20\n \n#define LCD_FUNCTION_4BIT 0x00\n#define LCD_FUNCTION_8BIT 0x10\n#define LCD_FUNCTION_1LINE 0x00\n#define LCD_FUNCTION_2LINE 0x08\n#define LCD_FUNCTION_5X7 0x00\n#define LCD_FUNCTION_5X10 0x04\n \n#define LCD_SOFT_RESET 0x30\n \n// Set CG RAM Address --------- 0b01xxxxxx (Character Generator RAM)\n#define LCD_SET_CGADR 0x40\n \n#define LCD_GC_CHAR0 0\n#define LCD_GC_CHAR1 1\n#define LCD_GC_CHAR2 2\n#define LCD_GC_CHAR3 3\n#define LCD_GC_CHAR4 4\n#define LCD_GC_CHAR5 5\n#define LCD_GC_CHAR6 6\n#define LCD_GC_CHAR7 7\n \n// Set DD RAM Address --------- 0b1xxxxxxx (Display Data RAM)\n#define LCD_SET_DDADR 0x80\n \n#endif" (#ifndef) "#ifndef" (identifier) "LCD_ROUTINES_H" (preproc_def) "#define LCD_ROUTINES_H\n" (#define) "#define" (identifier) "LCD_ROUTINES_H" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Define the MCUs frequency here" (preproc_ifdef) "#ifndef F_CPU\n#define F_CPU 3686400UL\n#endif" (#ifndef) "#ifndef" (identifier) "F_CPU" (preproc_def) "#define F_CPU 3686400UL\n" (#define) "#define" (identifier) "F_CPU" (preproc_arg) "3686400UL" (#endif) "#endif" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Pinout of the LCD" (comment) "// LCD DB4-DB7 <--> PORTD Bit PD0-PD3" (preproc_def) "#define LCD_PORT PORTD\n" (#define) "#define" (identifier) "LCD_PORT" (preproc_arg) "PORTD" (preproc_def) "#define LCD_DDR DDRD\n" (#define) "#define" (identifier) "LCD_DDR" (preproc_arg) "DDRD" (preproc_def) "#define LCD_DB PD4\n" (#define) "#define" (identifier) "LCD_DB" (preproc_arg) "PD4" (comment) "// LCD RS <--> PORTD Bit PD4 (RS: 1=Data, 0=Command)" (preproc_def) "#define LCD_RS PD2\n" (#define) "#define" (identifier) "LCD_RS" (preproc_arg) "PD2" (comment) "// LCD EN <--> PORTD Bit PD5 (EN: 1-Impuls for Data)" (preproc_def) "#define LCD_EN PD3\n" (#define) "#define" (identifier) "LCD_EN" (preproc_arg) "PD3" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// LCD Timings (MS=Milliseconds, US=Microseconds)" (preproc_def) "#define LCD_BOOTUP_MS 15\n" (#define) "#define" (identifier) "LCD_BOOTUP_MS" (preproc_arg) "15" (preproc_def) "#define LCD_ENABLE_US 20\n" (#define) "#define" (identifier) "LCD_ENABLE_US" (preproc_arg) "20" (preproc_def) "#define LCD_WRITEDATA_US 46\n" (#define) "#define" (identifier) "LCD_WRITEDATA_US" (preproc_arg) "46" (preproc_def) "#define LCD_COMMAND_US 42\n" (#define) "#define" (identifier) "LCD_COMMAND_US" (preproc_arg) "42" (preproc_def) "#define LCD_SOFT_RESET_MS1 5\n" (#define) "#define" (identifier) "LCD_SOFT_RESET_MS1" (preproc_arg) "5" (preproc_def) "#define LCD_SOFT_RESET_MS2 1\n" (#define) "#define" (identifier) "LCD_SOFT_RESET_MS2" (preproc_arg) "1" (preproc_def) "#define LCD_SOFT_RESET_MS3 1\n" (#define) "#define" (identifier) "LCD_SOFT_RESET_MS3" (preproc_arg) "1" (preproc_def) "#define LCD_SET_4BITMODE_MS 5\n" (#define) "#define" (identifier) "LCD_SET_4BITMODE_MS" (preproc_arg) "5" (preproc_def) "#define LCD_CLEAR_DISPLAY_MS 2\n" (#define) "#define" (identifier) "LCD_CLEAR_DISPLAY_MS" (preproc_arg) "2" (preproc_def) "#define LCD_CURSOR_HOME_MS 2\n" (#define) "#define" (identifier) "LCD_CURSOR_HOME_MS" (preproc_arg) "2" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Row definitions" (preproc_def) "#define LCD_DDADR_LINE1 0x00\n" (#define) "#define" (identifier) "LCD_DDADR_LINE1" (preproc_arg) "0x00" (preproc_def) "#define LCD_DDADR_LINE2 0x40\n" (#define) "#define" (identifier) "LCD_DDADR_LINE2" (preproc_arg) "0x40" (preproc_def) "#define LCD_DDADR_LINE3 0x10\n" (#define) "#define" (identifier) "LCD_DDADR_LINE3" (preproc_arg) "0x10" (preproc_def) "#define LCD_DDADR_LINE4 0x50\n" (#define) "#define" (identifier) "LCD_DDADR_LINE4" (preproc_arg) "0x50" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Initialise: " (declaration) "void lcd_init( void );" (primitive_type) "void" (function_declarator) "lcd_init( void )" (identifier) "lcd_init" (parameter_list) "( void )" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// LCD clear" (declaration) "void lcd_clear( void );" (primitive_type) "void" (function_declarator) "lcd_clear( void )" (identifier) "lcd_clear" (parameter_list) "( void )" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Cursor in the first row, first column" (declaration) "void lcd_home( void );" (primitive_type) "void" (function_declarator) "lcd_home( void )" (identifier) "lcd_home" (parameter_list) "( void )" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Cursor to a desired position" (declaration) "void lcd_setcursor( uint8_t spalte, uint8_t zeile );" (primitive_type) "void" (function_declarator) "lcd_setcursor( uint8_t spalte, uint8_t zeile )" (identifier) "lcd_setcursor" (parameter_list) "( uint8_t spalte, uint8_t zeile )" (() "(" (parameter_declaration) "uint8_t spalte" (primitive_type) "uint8_t" (identifier) "spalte" (,) "," (parameter_declaration) "uint8_t zeile" (primitive_type) "uint8_t" (identifier) "zeile" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Output a single char" (declaration) "void lcd_data( uint8_t data );" (primitive_type) "void" (function_declarator) "lcd_data( uint8_t data )" (identifier) "lcd_data" (parameter_list) "( uint8_t data )" (() "(" (parameter_declaration) "uint8_t data" (primitive_type) "uint8_t" (identifier) "data" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Output a string" (declaration) "void lcd_string( const char *data );" (primitive_type) "void" (function_declarator) "lcd_string( const char *data )" (identifier) "lcd_string" (parameter_list) "( const char *data )" (() "(" (parameter_declaration) "const char *data" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Define customised characters" (declaration) "void lcd_generatechar( uint8_t code, const uint8_t *data );" (primitive_type) "void" (function_declarator) "lcd_generatechar( uint8_t code, const uint8_t *data )" (identifier) "lcd_generatechar" (parameter_list) "( uint8_t code, const uint8_t *data )" (() "(" (parameter_declaration) "uint8_t code" (primitive_type) "uint8_t" (identifier) "code" (,) "," (parameter_declaration) "const uint8_t *data" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// Output a command to the LCD" (declaration) "void lcd_command( uint8_t data );" (primitive_type) "void" (function_declarator) "lcd_command( uint8_t data )" (identifier) "lcd_command" (parameter_list) "( uint8_t data )" (() "(" (parameter_declaration) "uint8_t data" (primitive_type) "uint8_t" (identifier) "data" ()) ")" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// LCD Commands" (comment) "// Clear Display -------------- 0b00000001" (preproc_def) "#define LCD_CLEAR_DISPLAY 0x01\n" (#define) "#define" (identifier) "LCD_CLEAR_DISPLAY" (preproc_arg) "0x01" (comment) "// Cursor Home ---------------- 0b0000001x" (preproc_def) "#define LCD_CURSOR_HOME 0x02\n" (#define) "#define" (identifier) "LCD_CURSOR_HOME" (preproc_arg) "0x02" (comment) "// Set Entry Mode ------------- 0b000001xx" (preproc_def) "#define LCD_SET_ENTRY 0x04\n" (#define) "#define" (identifier) "LCD_SET_ENTRY" (preproc_arg) "0x04" (preproc_def) "#define LCD_ENTRY_DECREASE 0x00\n" (#define) "#define" (identifier) "LCD_ENTRY_DECREASE" (preproc_arg) "0x00" (preproc_def) "#define LCD_ENTRY_INCREASE 0x02\n" (#define) "#define" (identifier) "LCD_ENTRY_INCREASE" (preproc_arg) "0x02" (preproc_def) "#define LCD_ENTRY_NOSHIFT 0x00\n" (#define) "#define" (identifier) "LCD_ENTRY_NOSHIFT" (preproc_arg) "0x00" (preproc_def) "#define LCD_ENTRY_SHIFT 0x01\n" (#define) "#define" (identifier) "LCD_ENTRY_SHIFT" (preproc_arg) "0x01" (comment) "// Set Display ---------------- 0b00001xxx" (preproc_def) "#define LCD_SET_DISPLAY 0x08\n" (#define) "#define" (identifier) "LCD_SET_DISPLAY" (preproc_arg) "0x08" (preproc_def) "#define LCD_DISPLAY_OFF 0x00\n" (#define) "#define" (identifier) "LCD_DISPLAY_OFF" (preproc_arg) "0x00" (preproc_def) "#define LCD_DISPLAY_ON 0x04\n" (#define) "#define" (identifier) "LCD_DISPLAY_ON" (preproc_arg) "0x04" (preproc_def) "#define LCD_CURSOR_OFF 0x00\n" (#define) "#define" (identifier) "LCD_CURSOR_OFF" (preproc_arg) "0x00" (preproc_def) "#define LCD_CURSOR_ON 0x02\n" (#define) "#define" (identifier) "LCD_CURSOR_ON" (preproc_arg) "0x02" (preproc_def) "#define LCD_BLINKING_OFF 0x00\n" (#define) "#define" (identifier) "LCD_BLINKING_OFF" (preproc_arg) "0x00" (preproc_def) "#define LCD_BLINKING_ON 0x01\n" (#define) "#define" (identifier) "LCD_BLINKING_ON" (preproc_arg) "0x01" (comment) "// Set Shift ------------------ 0b0001xxxx" (preproc_def) "#define LCD_SET_SHIFT 0x10\n" (#define) "#define" (identifier) "LCD_SET_SHIFT" (preproc_arg) "0x10" (preproc_def) "#define LCD_CURSOR_MOVE 0x00\n" (#define) "#define" (identifier) "LCD_CURSOR_MOVE" (preproc_arg) "0x00" (preproc_def) "#define LCD_DISPLAY_SHIFT 0x08\n" (#define) "#define" (identifier) "LCD_DISPLAY_SHIFT" (preproc_arg) "0x08" (preproc_def) "#define LCD_SHIFT_LEFT 0x00\n" (#define) "#define" (identifier) "LCD_SHIFT_LEFT" (preproc_arg) "0x00" (preproc_def) "#define LCD_SHIFT_RIGHT 0x04\n" (#define) "#define" (identifier) "LCD_SHIFT_RIGHT" (preproc_arg) "0x04" (comment) "// Set Function --------------- 0b001xxxxx" (preproc_def) "#define LCD_SET_FUNCTION 0x20\n" (#define) "#define" (identifier) "LCD_SET_FUNCTION" (preproc_arg) "0x20" (preproc_def) "#define LCD_FUNCTION_4BIT 0x00\n" (#define) "#define" (identifier) "LCD_FUNCTION_4BIT" (preproc_arg) "0x00" (preproc_def) "#define LCD_FUNCTION_8BIT 0x10\n" (#define) "#define" (identifier) "LCD_FUNCTION_8BIT" (preproc_arg) "0x10" (preproc_def) "#define LCD_FUNCTION_1LINE 0x00\n" (#define) "#define" (identifier) "LCD_FUNCTION_1LINE" (preproc_arg) "0x00" (preproc_def) "#define LCD_FUNCTION_2LINE 0x08\n" (#define) "#define" (identifier) "LCD_FUNCTION_2LINE" (preproc_arg) "0x08" (preproc_def) "#define LCD_FUNCTION_5X7 0x00\n" (#define) "#define" (identifier) "LCD_FUNCTION_5X7" (preproc_arg) "0x00" (preproc_def) "#define LCD_FUNCTION_5X10 0x04\n" (#define) "#define" (identifier) "LCD_FUNCTION_5X10" (preproc_arg) "0x04" (preproc_def) "#define LCD_SOFT_RESET 0x30\n" (#define) "#define" (identifier) "LCD_SOFT_RESET" (preproc_arg) "0x30" (comment) "// Set CG RAM Address --------- 0b01xxxxxx (Character Generator RAM)" (preproc_def) "#define LCD_SET_CGADR 0x40\n" (#define) "#define" (identifier) "LCD_SET_CGADR" (preproc_arg) "0x40" (preproc_def) "#define LCD_GC_CHAR0 0\n" (#define) "#define" (identifier) "LCD_GC_CHAR0" (preproc_arg) "0" (preproc_def) "#define LCD_GC_CHAR1 1\n" (#define) "#define" (identifier) "LCD_GC_CHAR1" (preproc_arg) "1" (preproc_def) "#define LCD_GC_CHAR2 2\n" (#define) "#define" (identifier) "LCD_GC_CHAR2" (preproc_arg) "2" (preproc_def) "#define LCD_GC_CHAR3 3\n" (#define) "#define" (identifier) "LCD_GC_CHAR3" (preproc_arg) "3" (preproc_def) "#define LCD_GC_CHAR4 4\n" (#define) "#define" (identifier) "LCD_GC_CHAR4" (preproc_arg) "4" (preproc_def) "#define LCD_GC_CHAR5 5\n" (#define) "#define" (identifier) "LCD_GC_CHAR5" (preproc_arg) "5" (preproc_def) "#define LCD_GC_CHAR6 6\n" (#define) "#define" (identifier) "LCD_GC_CHAR6" (preproc_arg) "6" (preproc_def) "#define LCD_GC_CHAR7 7\n" (#define) "#define" (identifier) "LCD_GC_CHAR7" (preproc_arg) "7" (comment) "// Set DD RAM Address --------- 0b1xxxxxxx (Display Data RAM)" (preproc_def) "#define LCD_SET_DDADR 0x80\n" (#define) "#define" (identifier) "LCD_SET_DDADR" (preproc_arg) "0x80" (#endif) "#endif"
379
0
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 29.41, "nodes": 310, "errors": 0, "source_hash": "4d2f3c77252687a2352e1c2c22111105a54fcd9ea90f45a6ef75a98b50288e65", "categorized_nodes": 107}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LCD_ROUTINES_H\n#define LCD_ROUTINES_H\n \n////////////////////////////////////////////////////////////////////////////////\n// Define the MCUs frequency here\n \n#ifndef F_CPU\n#define F_CPU 3686400UL\n#endif\n \n////////////////////////////////////////////////////////////////////////////////\n// Pinout of the LCD\n \n// LCD DB4-DB7 <--> PORTD Bit PD0-PD3\n#define LCD_PORT PORTD\n#define LCD_DDR DDRD\n#define LCD_DB PD4\n \n// LCD RS <--> PORTD Bit PD4 (RS: 1=Data, 0=Command)\n#define LCD_RS PD2\n \n// LCD EN <--> PORTD Bit PD5 (EN: 1-Impuls for Data)\n#define LCD_EN PD3\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Timings (MS=Milliseconds, US=Microseconds)\n \n#define LCD_BOOTUP_MS 15\n#define LCD_ENABLE_US 20\n#define LCD_WRITEDATA_US 46\n#define LCD_COMMAND_US 42\n \n#define LCD_SOFT_RESET_MS1 5\n#define LCD_SOFT_RESET_MS2 1\n#define LCD_SOFT_RESET_MS3 1\n#define LCD_SET_4BITMODE_MS 5\n \n#define LCD_CLEAR_DISPLAY_MS 2\n#define LCD_CURSOR_HOME_MS 2\n \n////////////////////////////////////////////////////////////////////////////////\n// Row definitions\n \n#define LCD_DDADR_LINE1 0x00\n#define LCD_DDADR_LINE2 0x40\n#define LCD_DDADR_LINE3 0x10\n#define LCD_DDADR_LINE4 0x50\n \n////////////////////////////////////////////////////////////////////////////////\n// Initialise: \nvoid lcd_init( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD clear\nvoid lcd_clear( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor in the first row, first column\nvoid lcd_home( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor to a desired position\nvoid lcd_setcursor( uint8_t spalte, uint8_t zeile );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a single char\nvoid lcd_data( uint8_t data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a string\nvoid lcd_string( const char *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Define customised characters\nvoid lcd_generatechar( uint8_t code, const uint8_t *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a command to the LCD\nvoid lcd_command( uint8_t data );\n \n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Commands\n \n// Clear Display -------------- 0b00000001\n#define LCD_CLEAR_DISPLAY 0x01\n \n// Cursor Home ---------------- 0b0000001x\n#define LCD_CURSOR_HOME 0x02\n \n// Set Entry Mode ------------- 0b000001xx\n#define LCD_SET_ENTRY 0x04\n \n#define LCD_ENTRY_DECREASE 0x00\n#define LCD_ENTRY_INCREASE 0x02\n#define LCD_ENTRY_NOSHIFT 0x00\n#define LCD_ENTRY_SHIFT 0x01\n \n// Set Display ---------------- 0b00001xxx\n#define LCD_SET_DISPLAY 0x08\n \n#define LCD_DISPLAY_OFF 0x00\n#define LCD_DISPLAY_ON 0x04\n#define LCD_CURSOR_OFF 0x00\n#define LCD_CURSOR_ON 0x02\n#define LCD_BLINKING_OFF 0x00\n#define LCD_BLINKING_ON 0x01\n \n// Set Shift ------------------ 0b0001xxxx\n#define LCD_SET_SHIFT 0x10\n \n#define LCD_CURSOR_MOVE 0x00\n#define LCD_DISPLAY_SHIFT 0x08\n#define LCD_SHIFT_LEFT 0x00\n#define LCD_SHIFT_RIGHT 0x04\n \n// Set Function --------------- 0b001xxxxx\n#define LCD_SET_FUNCTION 0x20\n \n#define LCD_FUNCTION_4BIT 0x00\n#define LCD_FUNCTION_8BIT 0x10\n#define LCD_FUNCTION_1LINE 0x00\n#define LCD_FUNCTION_2LINE 0x08\n#define LCD_FUNCTION_5X7 0x00\n#define LCD_FUNCTION_5X10 0x04\n \n#define LCD_SOFT_RESET 0x30\n \n// Set CG RAM Address --------- 0b01xxxxxx (Character Generator RAM)\n#define LCD_SET_CGADR 0x40\n \n#define LCD_GC_CHAR0 0\n#define LCD_GC_CHAR1 1\n#define LCD_GC_CHAR2 2\n#define LCD_GC_CHAR3 3\n#define LCD_GC_CHAR4 4\n#define LCD_GC_CHAR5 5\n#define LCD_GC_CHAR6 6\n#define LCD_GC_CHAR7 7\n \n// Set DD RAM Address --------- 0b1xxxxxxx (Display Data RAM)\n#define LCD_SET_DDADR 0x80\n \n#endif", "parent": null, "children": [1, 2, 3, 6, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 97, 104, 111, 122, 130, 140, 153, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 146, "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": "LCD_ROUTINES_H", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define LCD_ROUTINES_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": "LCD_ROUTINES_H", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 22}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifndef F_CPU\n#define F_CPU 3686400UL\n#endif", "parent": 0, "children": [7, 8, 9, 13], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 7, "type": "#ifndef", "text": "#ifndef", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 8, "type": "identifier", "text": "F_CPU", "parent": 6, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 13}}, {"id": 9, "type": "preproc_def", "text": "#define F_CPU 3686400UL\n", "parent": 6, "children": [10, 11, 12], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 11, "type": "identifier", "text": "F_CPU", "parent": 9, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 13}}, {"id": 12, "type": "preproc_arg", "text": "3686400UL", "parent": 9, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 23}}, {"id": 13, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 14, "type": "preproc_def", "text": "#define LCD_PORT PORTD\n", "parent": 0, "children": [15, 16, 17], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 16, "type": "identifier", "text": "LCD_PORT", "parent": 14, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 16}}, {"id": 17, "type": "preproc_arg", "text": "PORTD", "parent": 14, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 27}}, {"id": 18, "type": "preproc_def", "text": "#define LCD_DDR DDRD\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 20, "type": "identifier", "text": "LCD_DDR", "parent": 18, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 15}}, {"id": 21, "type": "preproc_arg", "text": "DDRD", "parent": 18, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 26}}, {"id": 22, "type": "preproc_def", "text": "#define LCD_DB PD4\n", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 24, "type": "identifier", "text": "LCD_DB", "parent": 22, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 25, "type": "preproc_arg", "text": "PD4", "parent": 22, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 25}}, {"id": 26, "type": "preproc_def", "text": "#define LCD_RS PD2\n", "parent": 0, "children": [27, 28, 29], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 28, "type": "identifier", "text": "LCD_RS", "parent": 26, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 14}}, {"id": 29, "type": "preproc_arg", "text": "PD2", "parent": 26, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 25}}, {"id": 30, "type": "preproc_def", "text": "#define LCD_EN PD3\n", "parent": 0, "children": [31, 32, 33], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 32, "type": "identifier", "text": "LCD_EN", "parent": 30, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 14}}, {"id": 33, "type": "preproc_arg", "text": "PD3", "parent": 30, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 25}}, {"id": 34, "type": "preproc_def", "text": "#define LCD_BOOTUP_MS 15\n", "parent": 0, "children": [35, 36, 37], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 36, "type": "identifier", "text": "LCD_BOOTUP_MS", "parent": 34, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 21}}, {"id": 37, "type": "preproc_arg", "text": "15", "parent": 34, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 34}}, {"id": 38, "type": "preproc_def", "text": "#define LCD_ENABLE_US 20\n", "parent": 0, "children": [39, 40, 41], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 39, "type": "#define", "text": "#define", "parent": 38, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 40, "type": "identifier", "text": "LCD_ENABLE_US", "parent": 38, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 21}}, {"id": 41, "type": "preproc_arg", "text": "20", "parent": 38, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 34}}, {"id": 42, "type": "preproc_def", "text": "#define LCD_WRITEDATA_US 46\n", "parent": 0, "children": [43, 44, 45], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 43, "type": "#define", "text": "#define", "parent": 42, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 44, "type": "identifier", "text": "LCD_WRITEDATA_US", "parent": 42, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 24}}, {"id": 45, "type": "preproc_arg", "text": "46", "parent": 42, "children": [], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 34}}, {"id": 46, "type": "preproc_def", "text": "#define LCD_COMMAND_US 42\n", "parent": 0, "children": [47, 48, 49], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 48, "type": "identifier", "text": "LCD_COMMAND_US", "parent": 46, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 22}}, {"id": 49, "type": "preproc_arg", "text": "42", "parent": 46, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 34}}, {"id": 50, "type": "preproc_def", "text": "#define LCD_SOFT_RESET_MS1 5\n", "parent": 0, "children": [51, 52, 53], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 52, "type": "identifier", "text": "LCD_SOFT_RESET_MS1", "parent": 50, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 26}}, {"id": 53, "type": "preproc_arg", "text": "5", "parent": 50, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 33}}, {"id": 54, "type": "preproc_def", "text": "#define LCD_SOFT_RESET_MS2 1\n", "parent": 0, "children": [55, 56, 57], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 56, "type": "identifier", "text": "LCD_SOFT_RESET_MS2", "parent": 54, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 26}}, {"id": 57, "type": "preproc_arg", "text": "1", "parent": 54, "children": [], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 33}}, {"id": 58, "type": "preproc_def", "text": "#define LCD_SOFT_RESET_MS3 1\n", "parent": 0, "children": [59, 60, 61], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 60, "type": "identifier", "text": "LCD_SOFT_RESET_MS3", "parent": 58, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 26}}, {"id": 61, "type": "preproc_arg", "text": "1", "parent": 58, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 33}}, {"id": 62, "type": "preproc_def", "text": "#define LCD_SET_4BITMODE_MS 5\n", "parent": 0, "children": [63, 64, 65], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 64, "type": "identifier", "text": "LCD_SET_4BITMODE_MS", "parent": 62, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 27}}, {"id": 65, "type": "preproc_arg", "text": "5", "parent": 62, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 33}}, {"id": 66, "type": "preproc_def", "text": "#define LCD_CLEAR_DISPLAY_MS 2\n", "parent": 0, "children": [67, 68, 69], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 67, "type": "#define", "text": "#define", "parent": 66, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 68, "type": "identifier", "text": "LCD_CLEAR_DISPLAY_MS", "parent": 66, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 28}}, {"id": 69, "type": "preproc_arg", "text": "2", "parent": 66, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 33}}, {"id": 70, "type": "preproc_def", "text": "#define LCD_CURSOR_HOME_MS 2\n", "parent": 0, "children": [71, 72, 73], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 72, "type": "identifier", "text": "LCD_CURSOR_HOME_MS", "parent": 70, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 26}}, {"id": 73, "type": "preproc_arg", "text": "2", "parent": 70, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 33}}, {"id": 74, "type": "preproc_def", "text": "#define LCD_DDADR_LINE1 0x00\n", "parent": 0, "children": [75, 76, 77], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 76, "type": "identifier", "text": "LCD_DDADR_LINE1", "parent": 74, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 23}}, {"id": 77, "type": "preproc_arg", "text": "0x00", "parent": 74, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 36}}, {"id": 78, "type": "preproc_def", "text": "#define LCD_DDADR_LINE2 0x40\n", "parent": 0, "children": [79, 80, 81], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 79, "type": "#define", "text": "#define", "parent": 78, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 80, "type": "identifier", "text": "LCD_DDADR_LINE2", "parent": 78, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 23}}, {"id": 81, "type": "preproc_arg", "text": "0x40", "parent": 78, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 36}}, {"id": 82, "type": "preproc_def", "text": "#define LCD_DDADR_LINE3 0x10\n", "parent": 0, "children": [83, 84, 85], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 83, "type": "#define", "text": "#define", "parent": 82, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 84, "type": "identifier", "text": "LCD_DDADR_LINE3", "parent": 82, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 23}}, {"id": 85, "type": "preproc_arg", "text": "0x10", "parent": 82, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 36}}, {"id": 86, "type": "preproc_def", "text": "#define LCD_DDADR_LINE4 0x50\n", "parent": 0, "children": [87, 88, 89], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 87, "type": "#define", "text": "#define", "parent": 86, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 88, "type": "identifier", "text": "LCD_DDADR_LINE4", "parent": 86, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 23}}, {"id": 89, "type": "preproc_arg", "text": "0x50", "parent": 86, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 36}}, {"id": 90, "type": "declaration", "text": "void lcd_init( void );", "parent": 0, "children": [91, 92], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 22}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 4}}, {"id": 92, "type": "function_declarator", "text": "lcd_init( void )", "parent": 90, "children": [93, 94], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 21}}, {"id": 93, "type": "identifier", "text": "lcd_init", "parent": 92, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 13}}, {"id": 94, "type": "parameter_list", "text": "( void )", "parent": 92, "children": [95], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 21}}, {"id": 95, "type": "parameter_declaration", "text": "void", "parent": 94, "children": [96], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 19}}, {"id": 96, "type": "primitive_type", "text": "void", "parent": 95, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 19}}, {"id": 97, "type": "declaration", "text": "void lcd_clear( void );", "parent": 0, "children": [98, 99], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 23}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 97, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 4}}, {"id": 99, "type": "function_declarator", "text": "lcd_clear( void )", "parent": 97, "children": [100, 101], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 22}}, {"id": 100, "type": "identifier", "text": "lcd_clear", "parent": 99, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 14}}, {"id": 101, "type": "parameter_list", "text": "( void )", "parent": 99, "children": [102], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 22}}, {"id": 102, "type": "parameter_declaration", "text": "void", "parent": 101, "children": [103], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 20}}, {"id": 103, "type": "primitive_type", "text": "void", "parent": 102, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 20}}, {"id": 104, "type": "declaration", "text": "void lcd_home( void );", "parent": 0, "children": [105, 106], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 22}}, {"id": 105, "type": "primitive_type", "text": "void", "parent": 104, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 4}}, {"id": 106, "type": "function_declarator", "text": "lcd_home( void )", "parent": 104, "children": [107, 108], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 21}}, {"id": 107, "type": "identifier", "text": "lcd_home", "parent": 106, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 13}}, {"id": 108, "type": "parameter_list", "text": "( void )", "parent": 106, "children": [109], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 21}}, {"id": 109, "type": "parameter_declaration", "text": "void", "parent": 108, "children": [110], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 19}}, {"id": 110, "type": "primitive_type", "text": "void", "parent": 109, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 19}}, {"id": 111, "type": "declaration", "text": "void lcd_setcursor( uint8_t spalte, uint8_t zeile );", "parent": 0, "children": [112, 113], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 52}}, {"id": 112, "type": "primitive_type", "text": "void", "parent": 111, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 4}}, {"id": 113, "type": "function_declarator", "text": "lcd_setcursor( uint8_t spalte, uint8_t zeile )", "parent": 111, "children": [114, 115], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 51}}, {"id": 114, "type": "identifier", "text": "lcd_setcursor", "parent": 113, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 18}}, {"id": 115, "type": "parameter_list", "text": "( uint8_t spalte, uint8_t zeile )", "parent": 113, "children": [116, 119], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 51}}, {"id": 116, "type": "parameter_declaration", "text": "uint8_t spalte", "parent": 115, "children": [117, 118], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 34}}, {"id": 117, "type": "primitive_type", "text": "uint8_t", "parent": 116, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 27}}, {"id": 118, "type": "identifier", "text": "spalte", "parent": 116, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 34}}, {"id": 119, "type": "parameter_declaration", "text": "uint8_t zeile", "parent": 115, "children": [120, 121], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 49}}, {"id": 120, "type": "primitive_type", "text": "uint8_t", "parent": 119, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 43}}, {"id": 121, "type": "identifier", "text": "zeile", "parent": 119, "children": [], "start_point": {"row": 65, "column": 44}, "end_point": {"row": 65, "column": 49}}, {"id": 122, "type": "declaration", "text": "void lcd_data( uint8_t data );", "parent": 0, "children": [123, 124], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 30}}, {"id": 123, "type": "primitive_type", "text": "void", "parent": 122, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 4}}, {"id": 124, "type": "function_declarator", "text": "lcd_data( uint8_t data )", "parent": 122, "children": [125, 126], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 29}}, {"id": 125, "type": "identifier", "text": "lcd_data", "parent": 124, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 13}}, {"id": 126, "type": "parameter_list", "text": "( uint8_t data )", "parent": 124, "children": [127], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 29}}, {"id": 127, "type": "parameter_declaration", "text": "uint8_t data", "parent": 126, "children": [128, 129], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 27}}, {"id": 128, "type": "primitive_type", "text": "uint8_t", "parent": 127, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 22}}, {"id": 129, "type": "identifier", "text": "data", "parent": 127, "children": [], "start_point": {"row": 69, "column": 23}, "end_point": {"row": 69, "column": 27}}, {"id": 130, "type": "declaration", "text": "void lcd_string( const char *data );", "parent": 0, "children": [131, 132], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 36}}, {"id": 131, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 4}}, {"id": 132, "type": "function_declarator", "text": "lcd_string( const char *data )", "parent": 130, "children": [133, 134], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 35}}, {"id": 133, "type": "identifier", "text": "lcd_string", "parent": 132, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 15}}, {"id": 134, "type": "parameter_list", "text": "( const char *data )", "parent": 132, "children": [135], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 35}}, {"id": 135, "type": "parameter_declaration", "text": "const char *data", "parent": 134, "children": [136, 137], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 33}}, {"id": 136, "type": "primitive_type", "text": "char", "parent": 135, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 27}}, {"id": 137, "type": "pointer_declarator", "text": "*data", "parent": 135, "children": [138, 139], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 33}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 29}}, {"id": 139, "type": "identifier", "text": "data", "parent": 137, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 33}}, {"id": 140, "type": "declaration", "text": "void lcd_generatechar( uint8_t code, const uint8_t *data );", "parent": 0, "children": [141, 142], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 59}}, {"id": 141, "type": "primitive_type", "text": "void", "parent": 140, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 4}}, {"id": 142, "type": "function_declarator", "text": "lcd_generatechar( uint8_t code, const uint8_t *data )", "parent": 140, "children": [143, 144], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 58}}, {"id": 143, "type": "identifier", "text": "lcd_generatechar", "parent": 142, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 21}}, {"id": 144, "type": "parameter_list", "text": "( uint8_t code, const uint8_t *data )", "parent": 142, "children": [145, 148], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 58}}, {"id": 145, "type": "parameter_declaration", "text": "uint8_t code", "parent": 144, "children": [146, 147], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 35}}, {"id": 146, "type": "primitive_type", "text": "uint8_t", "parent": 145, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 30}}, {"id": 147, "type": "identifier", "text": "code", "parent": 145, "children": [], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 35}}, {"id": 148, "type": "parameter_declaration", "text": "const uint8_t *data", "parent": 144, "children": [149, 150], "start_point": {"row": 77, "column": 37}, "end_point": {"row": 77, "column": 56}}, {"id": 149, "type": "primitive_type", "text": "uint8_t", "parent": 148, "children": [], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 77, "column": 50}}, {"id": 150, "type": "pointer_declarator", "text": "*data", "parent": 148, "children": [151, 152], "start_point": {"row": 77, "column": 51}, "end_point": {"row": 77, "column": 56}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 77, "column": 51}, "end_point": {"row": 77, "column": 52}}, {"id": 152, "type": "identifier", "text": "data", "parent": 150, "children": [], "start_point": {"row": 77, "column": 52}, "end_point": {"row": 77, "column": 56}}, {"id": 153, "type": "declaration", "text": "void lcd_command( uint8_t data );", "parent": 0, "children": [154, 155], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 33}}, {"id": 154, "type": "primitive_type", "text": "void", "parent": 153, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 4}}, {"id": 155, "type": "function_declarator", "text": "lcd_command( uint8_t data )", "parent": 153, "children": [156, 157], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 32}}, {"id": 156, "type": "identifier", "text": "lcd_command", "parent": 155, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 16}}, {"id": 157, "type": "parameter_list", "text": "( uint8_t data )", "parent": 155, "children": [158], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 32}}, {"id": 158, "type": "parameter_declaration", "text": "uint8_t data", "parent": 157, "children": [159, 160], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 30}}, {"id": 159, "type": "primitive_type", "text": "uint8_t", "parent": 158, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 25}}, {"id": 160, "type": "identifier", "text": "data", "parent": 158, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 30}}, {"id": 161, "type": "preproc_def", "text": "#define LCD_CLEAR_DISPLAY 0x01\n", "parent": 0, "children": [162, 163, 164], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 89, "column": 0}}, {"id": 162, "type": "#define", "text": "#define", "parent": 161, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 7}}, {"id": 163, "type": "identifier", "text": "LCD_CLEAR_DISPLAY", "parent": 161, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 25}}, {"id": 164, "type": "preproc_arg", "text": "0x01", "parent": 161, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 36}}, {"id": 165, "type": "preproc_def", "text": "#define LCD_CURSOR_HOME 0x02\n", "parent": 0, "children": [166, 167, 168], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 92, "column": 0}}, {"id": 166, "type": "#define", "text": "#define", "parent": 165, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 7}}, {"id": 167, "type": "identifier", "text": "LCD_CURSOR_HOME", "parent": 165, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 23}}, {"id": 168, "type": "preproc_arg", "text": "0x02", "parent": 165, "children": [], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 36}}, {"id": 169, "type": "preproc_def", "text": "#define LCD_SET_ENTRY 0x04\n", "parent": 0, "children": [170, 171, 172], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 0}}, {"id": 170, "type": "#define", "text": "#define", "parent": 169, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 7}}, {"id": 171, "type": "identifier", "text": "LCD_SET_ENTRY", "parent": 169, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 21}}, {"id": 172, "type": "preproc_arg", "text": "0x04", "parent": 169, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 36}}, {"id": 173, "type": "preproc_def", "text": "#define LCD_ENTRY_DECREASE 0x00\n", "parent": 0, "children": [174, 175, 176], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 174, "type": "#define", "text": "#define", "parent": 173, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 7}}, {"id": 175, "type": "identifier", "text": "LCD_ENTRY_DECREASE", "parent": 173, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 26}}, {"id": 176, "type": "preproc_arg", "text": "0x00", "parent": 173, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 36}}, {"id": 177, "type": "preproc_def", "text": "#define LCD_ENTRY_INCREASE 0x02\n", "parent": 0, "children": [178, 179, 180], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 98, "column": 0}}, {"id": 178, "type": "#define", "text": "#define", "parent": 177, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 7}}, {"id": 179, "type": "identifier", "text": "LCD_ENTRY_INCREASE", "parent": 177, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 26}}, {"id": 180, "type": "preproc_arg", "text": "0x02", "parent": 177, "children": [], "start_point": {"row": 97, "column": 32}, "end_point": {"row": 97, "column": 36}}, {"id": 181, "type": "preproc_def", "text": "#define LCD_ENTRY_NOSHIFT 0x00\n", "parent": 0, "children": [182, 183, 184], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 99, "column": 0}}, {"id": 182, "type": "#define", "text": "#define", "parent": 181, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 183, "type": "identifier", "text": "LCD_ENTRY_NOSHIFT", "parent": 181, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 25}}, {"id": 184, "type": "preproc_arg", "text": "0x00", "parent": 181, "children": [], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 36}}, {"id": 185, "type": "preproc_def", "text": "#define LCD_ENTRY_SHIFT 0x01\n", "parent": 0, "children": [186, 187, 188], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 100, "column": 0}}, {"id": 186, "type": "#define", "text": "#define", "parent": 185, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 7}}, {"id": 187, "type": "identifier", "text": "LCD_ENTRY_SHIFT", "parent": 185, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 23}}, {"id": 188, "type": "preproc_arg", "text": "0x01", "parent": 185, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 36}}, {"id": 189, "type": "preproc_def", "text": "#define LCD_SET_DISPLAY 0x08\n", "parent": 0, "children": [190, 191, 192], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 103, "column": 0}}, {"id": 190, "type": "#define", "text": "#define", "parent": 189, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 191, "type": "identifier", "text": "LCD_SET_DISPLAY", "parent": 189, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 23}}, {"id": 192, "type": "preproc_arg", "text": "0x08", "parent": 189, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 36}}, {"id": 193, "type": "preproc_def", "text": "#define LCD_DISPLAY_OFF 0x00\n", "parent": 0, "children": [194, 195, 196], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 105, "column": 0}}, {"id": 194, "type": "#define", "text": "#define", "parent": 193, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 7}}, {"id": 195, "type": "identifier", "text": "LCD_DISPLAY_OFF", "parent": 193, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 23}}, {"id": 196, "type": "preproc_arg", "text": "0x00", "parent": 193, "children": [], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 36}}, {"id": 197, "type": "preproc_def", "text": "#define LCD_DISPLAY_ON 0x04\n", "parent": 0, "children": [198, 199, 200], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 106, "column": 0}}, {"id": 198, "type": "#define", "text": "#define", "parent": 197, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 199, "type": "identifier", "text": "LCD_DISPLAY_ON", "parent": 197, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 22}}, {"id": 200, "type": "preproc_arg", "text": "0x04", "parent": 197, "children": [], "start_point": {"row": 105, "column": 32}, "end_point": {"row": 105, "column": 36}}, {"id": 201, "type": "preproc_def", "text": "#define LCD_CURSOR_OFF 0x00\n", "parent": 0, "children": [202, 203, 204], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 107, "column": 0}}, {"id": 202, "type": "#define", "text": "#define", "parent": 201, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 7}}, {"id": 203, "type": "identifier", "text": "LCD_CURSOR_OFF", "parent": 201, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 22}}, {"id": 204, "type": "preproc_arg", "text": "0x00", "parent": 201, "children": [], "start_point": {"row": 106, "column": 32}, "end_point": {"row": 106, "column": 36}}, {"id": 205, "type": "preproc_def", "text": "#define LCD_CURSOR_ON 0x02\n", "parent": 0, "children": [206, 207, 208], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 108, "column": 0}}, {"id": 206, "type": "#define", "text": "#define", "parent": 205, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 7}}, {"id": 207, "type": "identifier", "text": "LCD_CURSOR_ON", "parent": 205, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 21}}, {"id": 208, "type": "preproc_arg", "text": "0x02", "parent": 205, "children": [], "start_point": {"row": 107, "column": 32}, "end_point": {"row": 107, "column": 36}}, {"id": 209, "type": "preproc_def", "text": "#define LCD_BLINKING_OFF 0x00\n", "parent": 0, "children": [210, 211, 212], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 109, "column": 0}}, {"id": 210, "type": "#define", "text": "#define", "parent": 209, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 7}}, {"id": 211, "type": "identifier", "text": "LCD_BLINKING_OFF", "parent": 209, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 24}}, {"id": 212, "type": "preproc_arg", "text": "0x00", "parent": 209, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 36}}, {"id": 213, "type": "preproc_def", "text": "#define LCD_BLINKING_ON 0x01\n", "parent": 0, "children": [214, 215, 216], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 110, "column": 0}}, {"id": 214, "type": "#define", "text": "#define", "parent": 213, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 7}}, {"id": 215, "type": "identifier", "text": "LCD_BLINKING_ON", "parent": 213, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 23}}, {"id": 216, "type": "preproc_arg", "text": "0x01", "parent": 213, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 36}}, {"id": 217, "type": "preproc_def", "text": "#define LCD_SET_SHIFT 0x10\n", "parent": 0, "children": [218, 219, 220], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 113, "column": 0}}, {"id": 218, "type": "#define", "text": "#define", "parent": 217, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 7}}, {"id": 219, "type": "identifier", "text": "LCD_SET_SHIFT", "parent": 217, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 21}}, {"id": 220, "type": "preproc_arg", "text": "0x10", "parent": 217, "children": [], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 112, "column": 36}}, {"id": 221, "type": "preproc_def", "text": "#define LCD_CURSOR_MOVE 0x00\n", "parent": 0, "children": [222, 223, 224], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 115, "column": 0}}, {"id": 222, "type": "#define", "text": "#define", "parent": 221, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 7}}, {"id": 223, "type": "identifier", "text": "LCD_CURSOR_MOVE", "parent": 221, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 23}}, {"id": 224, "type": "preproc_arg", "text": "0x00", "parent": 221, "children": [], "start_point": {"row": 114, "column": 32}, "end_point": {"row": 114, "column": 36}}, {"id": 225, "type": "preproc_def", "text": "#define LCD_DISPLAY_SHIFT 0x08\n", "parent": 0, "children": [226, 227, 228], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 116, "column": 0}}, {"id": 226, "type": "#define", "text": "#define", "parent": 225, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 7}}, {"id": 227, "type": "identifier", "text": "LCD_DISPLAY_SHIFT", "parent": 225, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 25}}, {"id": 228, "type": "preproc_arg", "text": "0x08", "parent": 225, "children": [], "start_point": {"row": 115, "column": 32}, "end_point": {"row": 115, "column": 36}}, {"id": 229, "type": "preproc_def", "text": "#define LCD_SHIFT_LEFT 0x00\n", "parent": 0, "children": [230, 231, 232], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 0}}, {"id": 230, "type": "#define", "text": "#define", "parent": 229, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 7}}, {"id": 231, "type": "identifier", "text": "LCD_SHIFT_LEFT", "parent": 229, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 22}}, {"id": 232, "type": "preproc_arg", "text": "0x00", "parent": 229, "children": [], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 36}}, {"id": 233, "type": "preproc_def", "text": "#define LCD_SHIFT_RIGHT 0x04\n", "parent": 0, "children": [234, 235, 236], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 234, "type": "#define", "text": "#define", "parent": 233, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 235, "type": "identifier", "text": "LCD_SHIFT_RIGHT", "parent": 233, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 23}}, {"id": 236, "type": "preproc_arg", "text": "0x04", "parent": 233, "children": [], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 36}}, {"id": 237, "type": "preproc_def", "text": "#define LCD_SET_FUNCTION 0x20\n", "parent": 0, "children": [238, 239, 240], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 121, "column": 0}}, {"id": 238, "type": "#define", "text": "#define", "parent": 237, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 7}}, {"id": 239, "type": "identifier", "text": "LCD_SET_FUNCTION", "parent": 237, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 24}}, {"id": 240, "type": "preproc_arg", "text": "0x20", "parent": 237, "children": [], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 36}}, {"id": 241, "type": "preproc_def", "text": "#define LCD_FUNCTION_4BIT 0x00\n", "parent": 0, "children": [242, 243, 244], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 123, "column": 0}}, {"id": 242, "type": "#define", "text": "#define", "parent": 241, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 7}}, {"id": 243, "type": "identifier", "text": "LCD_FUNCTION_4BIT", "parent": 241, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 25}}, {"id": 244, "type": "preproc_arg", "text": "0x00", "parent": 241, "children": [], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 36}}, {"id": 245, "type": "preproc_def", "text": "#define LCD_FUNCTION_8BIT 0x10\n", "parent": 0, "children": [246, 247, 248], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 124, "column": 0}}, {"id": 246, "type": "#define", "text": "#define", "parent": 245, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 7}}, {"id": 247, "type": "identifier", "text": "LCD_FUNCTION_8BIT", "parent": 245, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 25}}, {"id": 248, "type": "preproc_arg", "text": "0x10", "parent": 245, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 36}}, {"id": 249, "type": "preproc_def", "text": "#define LCD_FUNCTION_1LINE 0x00\n", "parent": 0, "children": [250, 251, 252], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 125, "column": 0}}, {"id": 250, "type": "#define", "text": "#define", "parent": 249, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 7}}, {"id": 251, "type": "identifier", "text": "LCD_FUNCTION_1LINE", "parent": 249, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 26}}, {"id": 252, "type": "preproc_arg", "text": "0x00", "parent": 249, "children": [], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 36}}, {"id": 253, "type": "preproc_def", "text": "#define LCD_FUNCTION_2LINE 0x08\n", "parent": 0, "children": [254, 255, 256], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 126, "column": 0}}, {"id": 254, "type": "#define", "text": "#define", "parent": 253, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 7}}, {"id": 255, "type": "identifier", "text": "LCD_FUNCTION_2LINE", "parent": 253, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 26}}, {"id": 256, "type": "preproc_arg", "text": "0x08", "parent": 253, "children": [], "start_point": {"row": 125, "column": 32}, "end_point": {"row": 125, "column": 36}}, {"id": 257, "type": "preproc_def", "text": "#define LCD_FUNCTION_5X7 0x00\n", "parent": 0, "children": [258, 259, 260], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 127, "column": 0}}, {"id": 258, "type": "#define", "text": "#define", "parent": 257, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 7}}, {"id": 259, "type": "identifier", "text": "LCD_FUNCTION_5X7", "parent": 257, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 24}}, {"id": 260, "type": "preproc_arg", "text": "0x00", "parent": 257, "children": [], "start_point": {"row": 126, "column": 32}, "end_point": {"row": 126, "column": 36}}, {"id": 261, "type": "preproc_def", "text": "#define LCD_FUNCTION_5X10 0x04\n", "parent": 0, "children": [262, 263, 264], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 128, "column": 0}}, {"id": 262, "type": "#define", "text": "#define", "parent": 261, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 7}}, {"id": 263, "type": "identifier", "text": "LCD_FUNCTION_5X10", "parent": 261, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 25}}, {"id": 264, "type": "preproc_arg", "text": "0x04", "parent": 261, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 36}}, {"id": 265, "type": "preproc_def", "text": "#define LCD_SOFT_RESET 0x30\n", "parent": 0, "children": [266, 267, 268], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 130, "column": 0}}, {"id": 266, "type": "#define", "text": "#define", "parent": 265, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 7}}, {"id": 267, "type": "identifier", "text": "LCD_SOFT_RESET", "parent": 265, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 22}}, {"id": 268, "type": "preproc_arg", "text": "0x30", "parent": 265, "children": [], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 129, "column": 36}}, {"id": 269, "type": "preproc_def", "text": "#define LCD_SET_CGADR 0x40\n", "parent": 0, "children": [270, 271, 272], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 133, "column": 0}}, {"id": 270, "type": "#define", "text": "#define", "parent": 269, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 271, "type": "identifier", "text": "LCD_SET_CGADR", "parent": 269, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 21}}, {"id": 272, "type": "preproc_arg", "text": "0x40", "parent": 269, "children": [], "start_point": {"row": 132, "column": 32}, "end_point": {"row": 132, "column": 36}}, {"id": 273, "type": "preproc_def", "text": "#define LCD_GC_CHAR0 0\n", "parent": 0, "children": [274, 275, 276], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 135, "column": 0}}, {"id": 274, "type": "#define", "text": "#define", "parent": 273, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 7}}, {"id": 275, "type": "identifier", "text": "LCD_GC_CHAR0", "parent": 273, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 20}}, {"id": 276, "type": "preproc_arg", "text": "0", "parent": 273, "children": [], "start_point": {"row": 134, "column": 32}, "end_point": {"row": 134, "column": 33}}, {"id": 277, "type": "preproc_def", "text": "#define LCD_GC_CHAR1 1\n", "parent": 0, "children": [278, 279, 280], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 136, "column": 0}}, {"id": 278, "type": "#define", "text": "#define", "parent": 277, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 7}}, {"id": 279, "type": "identifier", "text": "LCD_GC_CHAR1", "parent": 277, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 20}}, {"id": 280, "type": "preproc_arg", "text": "1", "parent": 277, "children": [], "start_point": {"row": 135, "column": 32}, "end_point": {"row": 135, "column": 33}}, {"id": 281, "type": "preproc_def", "text": "#define LCD_GC_CHAR2 2\n", "parent": 0, "children": [282, 283, 284], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 137, "column": 0}}, {"id": 282, "type": "#define", "text": "#define", "parent": 281, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 7}}, {"id": 283, "type": "identifier", "text": "LCD_GC_CHAR2", "parent": 281, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 20}}, {"id": 284, "type": "preproc_arg", "text": "2", "parent": 281, "children": [], "start_point": {"row": 136, "column": 32}, "end_point": {"row": 136, "column": 33}}, {"id": 285, "type": "preproc_def", "text": "#define LCD_GC_CHAR3 3\n", "parent": 0, "children": [286, 287, 288], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 138, "column": 0}}, {"id": 286, "type": "#define", "text": "#define", "parent": 285, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 7}}, {"id": 287, "type": "identifier", "text": "LCD_GC_CHAR3", "parent": 285, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 20}}, {"id": 288, "type": "preproc_arg", "text": "3", "parent": 285, "children": [], "start_point": {"row": 137, "column": 32}, "end_point": {"row": 137, "column": 33}}, {"id": 289, "type": "preproc_def", "text": "#define LCD_GC_CHAR4 4\n", "parent": 0, "children": [290, 291, 292], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 139, "column": 0}}, {"id": 290, "type": "#define", "text": "#define", "parent": 289, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 7}}, {"id": 291, "type": "identifier", "text": "LCD_GC_CHAR4", "parent": 289, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 20}}, {"id": 292, "type": "preproc_arg", "text": "4", "parent": 289, "children": [], "start_point": {"row": 138, "column": 32}, "end_point": {"row": 138, "column": 33}}, {"id": 293, "type": "preproc_def", "text": "#define LCD_GC_CHAR5 5\n", "parent": 0, "children": [294, 295, 296], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 140, "column": 0}}, {"id": 294, "type": "#define", "text": "#define", "parent": 293, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 7}}, {"id": 295, "type": "identifier", "text": "LCD_GC_CHAR5", "parent": 293, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 20}}, {"id": 296, "type": "preproc_arg", "text": "5", "parent": 293, "children": [], "start_point": {"row": 139, "column": 32}, "end_point": {"row": 139, "column": 33}}, {"id": 297, "type": "preproc_def", "text": "#define LCD_GC_CHAR6 6\n", "parent": 0, "children": [298, 299, 300], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 141, "column": 0}}, {"id": 298, "type": "#define", "text": "#define", "parent": 297, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 7}}, {"id": 299, "type": "identifier", "text": "LCD_GC_CHAR6", "parent": 297, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 20}}, {"id": 300, "type": "preproc_arg", "text": "6", "parent": 297, "children": [], "start_point": {"row": 140, "column": 32}, "end_point": {"row": 140, "column": 33}}, {"id": 301, "type": "preproc_def", "text": "#define LCD_GC_CHAR7 7\n", "parent": 0, "children": [302, 303, 304], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 142, "column": 0}}, {"id": 302, "type": "#define", "text": "#define", "parent": 301, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 7}}, {"id": 303, "type": "identifier", "text": "LCD_GC_CHAR7", "parent": 301, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 20}}, {"id": 304, "type": "preproc_arg", "text": "7", "parent": 301, "children": [], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 33}}, {"id": 305, "type": "preproc_def", "text": "#define LCD_SET_DDADR 0x80\n", "parent": 0, "children": [306, 307, 308], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 145, "column": 0}}, {"id": 306, "type": "#define", "text": "#define", "parent": 305, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 7}}, {"id": 307, "type": "identifier", "text": "LCD_SET_DDADR", "parent": 305, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 21}}, {"id": 308, "type": "preproc_arg", "text": "0x80", "parent": 305, "children": [], "start_point": {"row": 144, "column": 32}, "end_point": {"row": 144, "column": 36}}, {"id": 309, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 6}}]}, "node_categories": {"declarations": {"functions": [92, 99, 106, 113, 124, 132, 142, 155], "variables": [90, 95, 97, 102, 104, 109, 111, 116, 119, 122, 127, 130, 135, 140, 145, 148, 153, 158], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 11, 13, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 93, 100, 107, 114, 118, 121, 125, 129, 133, 139, 143, 147, 152, 156, 160, 163, 167, 171, 175, 179, 183, 187, 191, 195, 199, 203, 207, 211, 215, 219, 223, 227, 231, 235, 239, 243, 247, 251, 255, 259, 263, 267, 271, 275, 279, 283, 287, 291, 295, 299, 303, 307, 309], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 92, "universal_type": "function", "name": ")", "text_snippet": "lcd_init( void )"}, {"node_id": 99, "universal_type": "function", "name": ")", "text_snippet": "lcd_clear( void )"}, {"node_id": 106, "universal_type": "function", "name": ")", "text_snippet": "lcd_home( void )"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "lcd_setcursor( uint8_t spalte, uint8_t zeile )"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "lcd_data( uint8_t data )"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "lcd_string( const char *data )"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "lcd_generatechar( uint8_t code, const uint8_t *data )"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "lcd_command( uint8_t data )"}], "class_declarations": [], "import_statements": []}, "original_source_code": "// Control of a HD44780 LCD in 4-Bit-Interfacemode\n\n \n#ifndef LCD_ROUTINES_H\n#define LCD_ROUTINES_H\n \n////////////////////////////////////////////////////////////////////////////////\n// Define the MCUs frequency here\n \n#ifndef F_CPU\n#define F_CPU 3686400UL\n#endif\n \n////////////////////////////////////////////////////////////////////////////////\n// Pinout of the LCD\n \n// LCD DB4-DB7 <--> PORTD Bit PD0-PD3\n#define LCD_PORT PORTD\n#define LCD_DDR DDRD\n#define LCD_DB PD4\n \n// LCD RS <--> PORTD Bit PD4 (RS: 1=Data, 0=Command)\n#define LCD_RS PD2\n \n// LCD EN <--> PORTD Bit PD5 (EN: 1-Impuls for Data)\n#define LCD_EN PD3\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Timings (MS=Milliseconds, US=Microseconds)\n \n#define LCD_BOOTUP_MS 15\n#define LCD_ENABLE_US 20\n#define LCD_WRITEDATA_US 46\n#define LCD_COMMAND_US 42\n \n#define LCD_SOFT_RESET_MS1 5\n#define LCD_SOFT_RESET_MS2 1\n#define LCD_SOFT_RESET_MS3 1\n#define LCD_SET_4BITMODE_MS 5\n \n#define LCD_CLEAR_DISPLAY_MS 2\n#define LCD_CURSOR_HOME_MS 2\n \n////////////////////////////////////////////////////////////////////////////////\n// Row definitions\n \n#define LCD_DDADR_LINE1 0x00\n#define LCD_DDADR_LINE2 0x40\n#define LCD_DDADR_LINE3 0x10\n#define LCD_DDADR_LINE4 0x50\n \n////////////////////////////////////////////////////////////////////////////////\n// Initialise: \nvoid lcd_init( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// LCD clear\nvoid lcd_clear( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor in the first row, first column\nvoid lcd_home( void );\n \n////////////////////////////////////////////////////////////////////////////////\n// Cursor to a desired position\nvoid lcd_setcursor( uint8_t spalte, uint8_t zeile );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a single char\nvoid lcd_data( uint8_t data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a string\nvoid lcd_string( const char *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Define customised characters\nvoid lcd_generatechar( uint8_t code, const uint8_t *data );\n \n////////////////////////////////////////////////////////////////////////////////\n// Output a command to the LCD\nvoid lcd_command( uint8_t data );\n \n \n////////////////////////////////////////////////////////////////////////////////\n// LCD Commands\n \n// Clear Display -------------- 0b00000001\n#define LCD_CLEAR_DISPLAY 0x01\n \n// Cursor Home ---------------- 0b0000001x\n#define LCD_CURSOR_HOME 0x02\n \n// Set Entry Mode ------------- 0b000001xx\n#define LCD_SET_ENTRY 0x04\n \n#define LCD_ENTRY_DECREASE 0x00\n#define LCD_ENTRY_INCREASE 0x02\n#define LCD_ENTRY_NOSHIFT 0x00\n#define LCD_ENTRY_SHIFT 0x01\n \n// Set Display ---------------- 0b00001xxx\n#define LCD_SET_DISPLAY 0x08\n \n#define LCD_DISPLAY_OFF 0x00\n#define LCD_DISPLAY_ON 0x04\n#define LCD_CURSOR_OFF 0x00\n#define LCD_CURSOR_ON 0x02\n#define LCD_BLINKING_OFF 0x00\n#define LCD_BLINKING_ON 0x01\n \n// Set Shift ------------------ 0b0001xxxx\n#define LCD_SET_SHIFT 0x10\n \n#define LCD_CURSOR_MOVE 0x00\n#define LCD_DISPLAY_SHIFT 0x08\n#define LCD_SHIFT_LEFT 0x00\n#define LCD_SHIFT_RIGHT 0x04\n \n// Set Function --------------- 0b001xxxxx\n#define LCD_SET_FUNCTION 0x20\n \n#define LCD_FUNCTION_4BIT 0x00\n#define LCD_FUNCTION_8BIT 0x10\n#define LCD_FUNCTION_1LINE 0x00\n#define LCD_FUNCTION_2LINE 0x08\n#define LCD_FUNCTION_5X7 0x00\n#define LCD_FUNCTION_5X10 0x04\n \n#define LCD_SOFT_RESET 0x30\n \n// Set CG RAM Address --------- 0b01xxxxxx (Character Generator RAM)\n#define LCD_SET_CGADR 0x40\n \n#define LCD_GC_CHAR0 0\n#define LCD_GC_CHAR1 1\n#define LCD_GC_CHAR2 2\n#define LCD_GC_CHAR3 3\n#define LCD_GC_CHAR4 4\n#define LCD_GC_CHAR5 5\n#define LCD_GC_CHAR6 6\n#define LCD_GC_CHAR7 7\n \n// Set DD RAM Address --------- 0b1xxxxxxx (Display Data RAM)\n#define LCD_SET_DDADR 0x80\n \n#endif\n"}
80,829
c
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_DMI_H #define __ASM_DMI_H #include <linux/io.h> #include <linux/slab.h> #define dmi_early_remap(x, l) memremap(x, l, MEMREMAP_WB) #define dmi_early_unmap(x, l) memunmap(x) #define dmi_remap(x, l) memremap(x, l, MEMREMAP_WB) #define dmi_unmap(x) memunmap(x) #define dmi_alloc(l) kzalloc(l, GFP_KERNEL) #endif
33
11
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0-only */\n\n#ifndef __ASM_DMI_H\n#define __ASM_DMI_H\n\n#include <linux/io.h>\n#include <linux/slab.h>\n\n#define dmi_early_remap(x, l) memremap(x, l, MEMREMAP_WB)\n#define dmi_early_unmap(x, l) memunmap(x)\n#define dmi_remap(x, l) memremap(x, l, MEMREMAP_WB)\n#define dmi_unmap(x) memunmap(x)\n#define dmi_alloc(l) kzalloc(l, GFP_KERNEL)\n\n#endif\n" (comment) "/* SPDX-License-Identifier: GPL-2.0-only */" (preproc_ifdef) "#ifndef __ASM_DMI_H\n#define __ASM_DMI_H\n\n#include <linux/io.h>\n#include <linux/slab.h>\n\n#define dmi_early_remap(x, l) memremap(x, l, MEMREMAP_WB)\n#define dmi_early_unmap(x, l) memunmap(x)\n#define dmi_remap(x, l) memremap(x, l, MEMREMAP_WB)\n#define dmi_unmap(x) memunmap(x)\n#define dmi_alloc(l) kzalloc(l, GFP_KERNEL)\n\n#endif" (#ifndef) "#ifndef" (identifier) "__ASM_DMI_H" (preproc_def) "#define __ASM_DMI_H\n" (#define) "#define" (identifier) "__ASM_DMI_H" (preproc_include) "#include <linux/io.h>\n" (#include) "#include" (system_lib_string) "<linux/io.h>" (preproc_include) "#include <linux/slab.h>\n" (#include) "#include" (system_lib_string) "<linux/slab.h>" (preproc_function_def) "#define dmi_early_remap(x, l) memremap(x, l, MEMREMAP_WB)\n" (#define) "#define" (identifier) "dmi_early_remap" (preproc_params) "(x, l)" (() "(" (identifier) "x" (,) "," (identifier) "l" ()) ")" (preproc_arg) "memremap(x, l, MEMREMAP_WB)" (preproc_function_def) "#define dmi_early_unmap(x, l) memunmap(x)\n" (#define) "#define" (identifier) "dmi_early_unmap" (preproc_params) "(x, l)" (() "(" (identifier) "x" (,) "," (identifier) "l" ()) ")" (preproc_arg) "memunmap(x)" (preproc_function_def) "#define dmi_remap(x, l) memremap(x, l, MEMREMAP_WB)\n" (#define) "#define" (identifier) "dmi_remap" (preproc_params) "(x, l)" (() "(" (identifier) "x" (,) "," (identifier) "l" ()) ")" (preproc_arg) "memremap(x, l, MEMREMAP_WB)" (preproc_function_def) "#define dmi_unmap(x) memunmap(x)\n" (#define) "#define" (identifier) "dmi_unmap" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "memunmap(x)" (preproc_function_def) "#define dmi_alloc(l) kzalloc(l, GFP_KERNEL)\n" (#define) "#define" (identifier) "dmi_alloc" (preproc_params) "(l)" (() "(" (identifier) "l" ()) ")" (preproc_arg) "kzalloc(l, GFP_KERNEL)" (#endif) "#endif"
61
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 33.0, "nodes": 46, "errors": 0, "source_hash": "b59b80ad9248f5d626382b98d7efeea2b9424586d88415e4c454d11ba4144b95", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __ASM_DMI_H\n#define __ASM_DMI_H\n\n#include <linux/io.h>\n#include <linux/slab.h>\n\n#define dmi_early_remap(x, l)\t\tmemremap(x, l, MEMREMAP_WB)\n#define dmi_early_unmap(x, l)\t\tmemunmap(x)\n#define dmi_remap(x, l)\t\t\tmemremap(x, l, MEMREMAP_WB)\n#define dmi_unmap(x)\t\t\tmemunmap(x)\n#define dmi_alloc(l)\t\t\tkzalloc(l, GFP_KERNEL)\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 19, 26, 33, 39, 45], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 2, "type": "identifier", "text": "__ASM_DMI_H", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define __ASM_DMI_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 5, "type": "identifier", "text": "__ASM_DMI_H", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/io.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/io.h>", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/slab.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/slab.h>", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 23}}, {"id": 12, "type": "preproc_function_def", "text": "#define dmi_early_remap(x, l)\t\tmemremap(x, l, MEMREMAP_WB)\n", "parent": 0, "children": [13, 14, 15, 18], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 14, "type": "identifier", "text": "dmi_early_remap", "parent": 12, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 15, "type": "preproc_params", "text": "(x, l)", "parent": 12, "children": [16, 17], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 29}}, {"id": 16, "type": "identifier", "text": "x", "parent": 15, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 25}}, {"id": 17, "type": "identifier", "text": "l", "parent": 15, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 28}}, {"id": 18, "type": "preproc_arg", "text": "memremap(x, l, MEMREMAP_WB)", "parent": 12, "children": [], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 58}}, {"id": 19, "type": "preproc_function_def", "text": "#define dmi_early_unmap(x, l)\t\tmemunmap(x)\n", "parent": 0, "children": [20, 21, 22, 25], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 21, "type": "identifier", "text": "dmi_early_unmap", "parent": 19, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 22, "type": "preproc_params", "text": "(x, l)", "parent": 19, "children": [23, 24], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 29}}, {"id": 23, "type": "identifier", "text": "x", "parent": 22, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 25}}, {"id": 24, "type": "identifier", "text": "l", "parent": 22, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 28}}, {"id": 25, "type": "preproc_arg", "text": "memunmap(x)", "parent": 19, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 42}}, {"id": 26, "type": "preproc_function_def", "text": "#define dmi_remap(x, l)\t\t\tmemremap(x, l, MEMREMAP_WB)\n", "parent": 0, "children": [27, 28, 29, 32], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 28, "type": "identifier", "text": "dmi_remap", "parent": 26, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 17}}, {"id": 29, "type": "preproc_params", "text": "(x, l)", "parent": 26, "children": [30, 31], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 23}}, {"id": 30, "type": "identifier", "text": "x", "parent": 29, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 19}}, {"id": 31, "type": "identifier", "text": "l", "parent": 29, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 22}}, {"id": 32, "type": "preproc_arg", "text": "memremap(x, l, MEMREMAP_WB)", "parent": 26, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 53}}, {"id": 33, "type": "preproc_function_def", "text": "#define dmi_unmap(x)\t\t\tmemunmap(x)\n", "parent": 0, "children": [34, 35, 36, 38], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 35, "type": "identifier", "text": "dmi_unmap", "parent": 33, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 17}}, {"id": 36, "type": "preproc_params", "text": "(x)", "parent": 33, "children": [37], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 20}}, {"id": 37, "type": "identifier", "text": "x", "parent": 36, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 19}}, {"id": 38, "type": "preproc_arg", "text": "memunmap(x)", "parent": 33, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 34}}, {"id": 39, "type": "preproc_function_def", "text": "#define dmi_alloc(l)\t\t\tkzalloc(l, GFP_KERNEL)\n", "parent": 0, "children": [40, 41, 42, 44], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 40, "type": "#define", "text": "#define", "parent": 39, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 41, "type": "identifier", "text": "dmi_alloc", "parent": 39, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 17}}, {"id": 42, "type": "preproc_params", "text": "(l)", "parent": 39, "children": [43], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 20}}, {"id": 43, "type": "identifier", "text": "l", "parent": 42, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 19}}, {"id": 44, "type": "preproc_arg", "text": "kzalloc(l, GFP_KERNEL)", "parent": 39, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 45}}, {"id": 45, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 19, 26, 33, 39], "variables": [], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 14, 16, 17, 21, 23, 24, 28, 30, 31, 35, 37, 41, 43, 45], "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": "unknown", "text_snippet": "#define dmi_early_remap(x, l)\t\tmemremap(x, l, MEMREMAP_WB)\n"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "#define dmi_early_unmap(x, l)\t\tmemunmap(x)\n"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "#define dmi_remap(x, l)\t\t\tmemremap(x, l, MEMREMAP_WB)\n"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "#define dmi_unmap(x)\t\t\tmemunmap(x)\n"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "#define dmi_alloc(l)\t\t\tkzalloc(l, GFP_KERNEL)\n"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <linux/io.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/slab.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/* SPDX-License-Identifier: GPL-2.0-only */\n\n#ifndef __ASM_DMI_H\n#define __ASM_DMI_H\n\n#include <linux/io.h>\n#include <linux/slab.h>\n\n#define dmi_early_remap(x, l)\t\tmemremap(x, l, MEMREMAP_WB)\n#define dmi_early_unmap(x, l)\t\tmemunmap(x)\n#define dmi_remap(x, l)\t\t\tmemremap(x, l, MEMREMAP_WB)\n#define dmi_unmap(x)\t\t\tmemunmap(x)\n#define dmi_alloc(l)\t\t\tkzalloc(l, GFP_KERNEL)\n\n#endif\n"}
80,830
c
#include "string.h" char* strconv(uint32_t num, int base) { static char Representation[] = "0123456789ABCDEF"; static char buffer[50]; char *ptr; ptr = &buffer[49]; *ptr = '\0'; do { *--ptr = Representation[num % base]; num /= base; } while (num != 0); return (ptr); } uint32_t strlen(char* str) { uint32_t i = 0; for (; str[i] != '\0'; i++); return i; } char *strncat(char *dest, char *src, uint32_t n) { uint32_t dest_length = strlen(dest); uint32_t i; for (i = 0; i < n && src[i] != '\0'; i++) { dest[dest_length + i] = src[i]; } dest[dest_length + i] = '\0'; return dest; } char *strcat(char *dest, char *src) { return strncat(dest, src, strlen(src)); } void vsprintf(char *str, char *format, va_list arg) { unsigned int i; unsigned int ZERO = 0; char *s; int position = 0; while (*format) { if (*format == '%') { format++; switch (*format) { case 'c': i = va_arg(arg, int); str[position] = i; position++; break; case 'd': i = va_arg(arg, int); if (i < ZERO) { i = -i; str[position] = '-'; } strcat(str, strconv(i, 10)); position += strlen(strconv(i, 10)); break; case 'o': i = va_arg(arg, unsigned int); strcat(str, strconv(i, 8)); position += strlen(strconv(i, 8)); break; case 's': s = va_arg(arg, char *); strcat(str, s); position += strlen(s); break; case 'x': i = va_arg(arg, unsigned int); strcat(str, strconv(i, 16)); position += strlen(strconv(i, 16)); break; default: str[position] = '%'; position++; break; } } else { str[position] = *format; position++; } format++; } }
19.6
81
(translation_unit) "#include "string.h"\n\nchar* strconv(uint32_t num, int base) {\n static char Representation[] = "0123456789ABCDEF";\n static char buffer[50];\n char *ptr;\n\n ptr = &buffer[49];\n *ptr = '\0';\n\n do {\n *--ptr = Representation[num % base];\n num /= base;\n } while (num != 0);\n return (ptr);\n}\n\nuint32_t strlen(char* str) {\n uint32_t i = 0;\n for (; str[i] != '\0'; i++);\n return i;\n}\n\nchar *strncat(char *dest, char *src, uint32_t n) {\n uint32_t dest_length = strlen(dest);\n uint32_t i;\n\n for (i = 0; i < n && src[i] != '\0'; i++) {\n dest[dest_length + i] = src[i];\n }\n\n dest[dest_length + i] = '\0';\n\n return dest;\n}\n\nchar *strcat(char *dest, char *src) {\n return strncat(dest, src, strlen(src));\n}\n\nvoid vsprintf(char *str, char *format, va_list arg) {\n unsigned int i;\n unsigned int ZERO = 0;\n char *s;\n\n int position = 0;\n\n while (*format) {\n\n if (*format == '%') {\n format++;\n switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }\n }\n\n else {\n str[position] = *format;\n position++;\n }\n\n format++;\n }\n}\n" (preproc_include) "#include "string.h"\n" (#include) "#include" (string_literal) ""string.h"" (") """ (string_content) "string.h" (") """ (function_definition) "char* strconv(uint32_t num, int base) {\n static char Representation[] = "0123456789ABCDEF";\n static char buffer[50];\n char *ptr;\n\n ptr = &buffer[49];\n *ptr = '\0';\n\n do {\n *--ptr = Representation[num % base];\n num /= base;\n } while (num != 0);\n return (ptr);\n}" (primitive_type) "char" (pointer_declarator) "* strconv(uint32_t num, int base)" (*) "*" (function_declarator) "strconv(uint32_t num, int base)" (identifier) "strconv" (parameter_list) "(uint32_t num, int base)" (() "(" (parameter_declaration) "uint32_t num" (primitive_type) "uint32_t" (identifier) "num" (,) "," (parameter_declaration) "int base" (primitive_type) "int" (identifier) "base" ()) ")" (compound_statement) "{\n static char Representation[] = "0123456789ABCDEF";\n static char buffer[50];\n char *ptr;\n\n ptr = &buffer[49];\n *ptr = '\0';\n\n do {\n *--ptr = Representation[num % base];\n num /= base;\n } while (num != 0);\n return (ptr);\n}" ({) "{" (declaration) "static char Representation[] = "0123456789ABCDEF";" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "Representation[] = "0123456789ABCDEF"" (array_declarator) "Representation[]" (identifier) "Representation" ([) "[" (]) "]" (=) "=" (string_literal) ""0123456789ABCDEF"" (") """ (string_content) "0123456789ABCDEF" (") """ (;) ";" (declaration) "static char buffer[50];" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (array_declarator) "buffer[50]" (identifier) "buffer" ([) "[" (number_literal) "50" (]) "]" (;) ";" (declaration) "char *ptr;" (primitive_type) "char" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (;) ";" (expression_statement) "ptr = &buffer[49];" (assignment_expression) "ptr = &buffer[49]" (identifier) "ptr" (=) "=" (pointer_expression) "&buffer[49]" (&) "&" (subscript_expression) "buffer[49]" (identifier) "buffer" ([) "[" (number_literal) "49" (]) "]" (;) ";" (expression_statement) "*ptr = '\0';" (assignment_expression) "*ptr = '\0'" (pointer_expression) "*ptr" (*) "*" (identifier) "ptr" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (do_statement) "do {\n *--ptr = Representation[num % base];\n num /= base;\n } while (num != 0);" (do) "do" (compound_statement) "{\n *--ptr = Representation[num % base];\n num /= base;\n }" ({) "{" (expression_statement) "*--ptr = Representation[num % base];" (assignment_expression) "*--ptr = Representation[num % base]" (pointer_expression) "*--ptr" (*) "*" (update_expression) "--ptr" (--) "--" (identifier) "ptr" (=) "=" (subscript_expression) "Representation[num % base]" (identifier) "Representation" ([) "[" (binary_expression) "num % base" (identifier) "num" (%) "%" (identifier) "base" (]) "]" (;) ";" (expression_statement) "num /= base;" (assignment_expression) "num /= base" (identifier) "num" (/=) "/=" (identifier) "base" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(num != 0)" (() "(" (binary_expression) "num != 0" (identifier) "num" (!=) "!=" (number_literal) "0" ()) ")" (;) ";" (return_statement) "return (ptr);" (return) "return" (parenthesized_expression) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (;) ";" (}) "}" (function_definition) "uint32_t strlen(char* str) {\n uint32_t i = 0;\n for (; str[i] != '\0'; i++);\n return i;\n}" (primitive_type) "uint32_t" (function_declarator) "strlen(char* str)" (identifier) "strlen" (parameter_list) "(char* str)" (() "(" (parameter_declaration) "char* str" (primitive_type) "char" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n uint32_t i = 0;\n for (; str[i] != '\0'; i++);\n return i;\n}" ({) "{" (declaration) "uint32_t i = 0;" (primitive_type) "uint32_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 *strncat(char *dest, char *src, uint32_t n) {\n uint32_t dest_length = strlen(dest);\n uint32_t i;\n\n for (i = 0; i < n && src[i] != '\0'; i++) {\n dest[dest_length + i] = src[i];\n }\n\n dest[dest_length + i] = '\0';\n\n return dest;\n}" (primitive_type) "char" (pointer_declarator) "*strncat(char *dest, char *src, uint32_t n)" (*) "*" (function_declarator) "strncat(char *dest, char *src, uint32_t n)" (identifier) "strncat" (parameter_list) "(char *dest, char *src, uint32_t n)" (() "(" (parameter_declaration) "char *dest" (primitive_type) "char" (pointer_declarator) "*dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "char *src" (primitive_type) "char" (pointer_declarator) "*src" (*) "*" (identifier) "src" (,) "," (parameter_declaration) "uint32_t n" (primitive_type) "uint32_t" (identifier) "n" ()) ")" (compound_statement) "{\n uint32_t dest_length = strlen(dest);\n uint32_t i;\n\n for (i = 0; i < n && src[i] != '\0'; i++) {\n dest[dest_length + i] = src[i];\n }\n\n dest[dest_length + i] = '\0';\n\n return dest;\n}" ({) "{" (declaration) "uint32_t dest_length = strlen(dest);" (primitive_type) "uint32_t" (init_declarator) "dest_length = strlen(dest)" (identifier) "dest_length" (=) "=" (call_expression) "strlen(dest)" (identifier) "strlen" (argument_list) "(dest)" (() "(" (identifier) "dest" ()) ")" (;) ";" (declaration) "uint32_t i;" (primitive_type) "uint32_t" (identifier) "i" (;) ";" (for_statement) "for (i = 0; i < n && src[i] != '\0'; i++) {\n dest[dest_length + i] = src[i];\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < n && src[i] != '\0'" (binary_expression) "i < n" (identifier) "i" (<) "<" (identifier) "n" (&&) "&&" (binary_expression) "src[i] != '\0'" (subscript_expression) "src[i]" (identifier) "src" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n dest[dest_length + i] = src[i];\n }" ({) "{" (expression_statement) "dest[dest_length + i] = src[i];" (assignment_expression) "dest[dest_length + i] = src[i]" (subscript_expression) "dest[dest_length + i]" (identifier) "dest" ([) "[" (binary_expression) "dest_length + i" (identifier) "dest_length" (+) "+" (identifier) "i" (]) "]" (=) "=" (subscript_expression) "src[i]" (identifier) "src" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (expression_statement) "dest[dest_length + i] = '\0';" (assignment_expression) "dest[dest_length + i] = '\0'" (subscript_expression) "dest[dest_length + i]" (identifier) "dest" ([) "[" (binary_expression) "dest_length + i" (identifier) "dest_length" (+) "+" (identifier) "i" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (return_statement) "return dest;" (return) "return" (identifier) "dest" (;) ";" (}) "}" (function_definition) "char *strcat(char *dest, char *src) {\n return strncat(dest, src, strlen(src));\n}" (primitive_type) "char" (pointer_declarator) "*strcat(char *dest, char *src)" (*) "*" (function_declarator) "strcat(char *dest, char *src)" (identifier) "strcat" (parameter_list) "(char *dest, char *src)" (() "(" (parameter_declaration) "char *dest" (primitive_type) "char" (pointer_declarator) "*dest" (*) "*" (identifier) "dest" (,) "," (parameter_declaration) "char *src" (primitive_type) "char" (pointer_declarator) "*src" (*) "*" (identifier) "src" ()) ")" (compound_statement) "{\n return strncat(dest, src, strlen(src));\n}" ({) "{" (return_statement) "return strncat(dest, src, strlen(src));" (return) "return" (call_expression) "strncat(dest, src, strlen(src))" (identifier) "strncat" (argument_list) "(dest, src, strlen(src))" (() "(" (identifier) "dest" (,) "," (identifier) "src" (,) "," (call_expression) "strlen(src)" (identifier) "strlen" (argument_list) "(src)" (() "(" (identifier) "src" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void vsprintf(char *str, char *format, va_list arg) {\n unsigned int i;\n unsigned int ZERO = 0;\n char *s;\n\n int position = 0;\n\n while (*format) {\n\n if (*format == '%') {\n format++;\n switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }\n }\n\n else {\n str[position] = *format;\n position++;\n }\n\n format++;\n }\n}" (primitive_type) "void" (function_declarator) "vsprintf(char *str, char *format, va_list arg)" (identifier) "vsprintf" (parameter_list) "(char *str, char *format, va_list arg)" (() "(" (parameter_declaration) "char *str" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" (,) "," (parameter_declaration) "char *format" (primitive_type) "char" (pointer_declarator) "*format" (*) "*" (identifier) "format" (,) "," (parameter_declaration) "va_list arg" (type_identifier) "va_list" (identifier) "arg" ()) ")" (compound_statement) "{\n unsigned int i;\n unsigned int ZERO = 0;\n char *s;\n\n int position = 0;\n\n while (*format) {\n\n if (*format == '%') {\n format++;\n switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }\n }\n\n else {\n str[position] = *format;\n position++;\n }\n\n format++;\n }\n}" ({) "{" (declaration) "unsigned int i;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "unsigned int ZERO = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "ZERO = 0" (identifier) "ZERO" (=) "=" (number_literal) "0" (;) ";" (declaration) "char *s;" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (;) ";" (declaration) "int position = 0;" (primitive_type) "int" (init_declarator) "position = 0" (identifier) "position" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while (*format) {\n\n if (*format == '%') {\n format++;\n switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }\n }\n\n else {\n str[position] = *format;\n position++;\n }\n\n format++;\n }" (while) "while" (parenthesized_expression) "(*format)" (() "(" (pointer_expression) "*format" (*) "*" (identifier) "format" ()) ")" (compound_statement) "{\n\n if (*format == '%') {\n format++;\n switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }\n }\n\n else {\n str[position] = *format;\n position++;\n }\n\n format++;\n }" ({) "{" (if_statement) "if (*format == '%') {\n format++;\n switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }\n }\n\n else {\n str[position] = *format;\n position++;\n }" (if) "if" (parenthesized_expression) "(*format == '%')" (() "(" (binary_expression) "*format == '%'" (pointer_expression) "*format" (*) "*" (identifier) "format" (==) "==" (char_literal) "'%'" (') "'" (character) "%" (') "'" ()) ")" (compound_statement) "{\n format++;\n switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }\n }" ({) "{" (expression_statement) "format++;" (update_expression) "format++" (identifier) "format" (++) "++" (;) ";" (switch_statement) "switch (*format) {\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }" (switch) "switch" (parenthesized_expression) "(*format)" (() "(" (pointer_expression) "*format" (*) "*" (identifier) "format" ()) ")" (compound_statement) "{\n case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;\n\n case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;\n\n case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;\n\n case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;\n\n case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;\n\n default:\n str[position] = '%';\n position++;\n break;\n }" ({) "{" (case_statement) "case 'c':\n i = va_arg(arg, int);\n str[position] = i;\n position++;\n break;" (case) "case" (char_literal) "'c'" (') "'" (character) "c" (') "'" (:) ":" (expression_statement) "i = va_arg(arg, int);" (assignment_expression) "i = va_arg(arg, int)" (identifier) "i" (=) "=" (call_expression) "va_arg(arg, int)" (identifier) "va_arg" (argument_list) "(arg, int)" (() "(" (identifier) "arg" (,) "," (identifier) "int" ()) ")" (;) ";" (expression_statement) "str[position] = i;" (assignment_expression) "str[position] = i" (subscript_expression) "str[position]" (identifier) "str" ([) "[" (identifier) "position" (]) "]" (=) "=" (identifier) "i" (;) ";" (expression_statement) "position++;" (update_expression) "position++" (identifier) "position" (++) "++" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'd':\n i = va_arg(arg, int);\n if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }\n strcat(str, strconv(i, 10));\n position += strlen(strconv(i, 10));\n\n break;" (case) "case" (char_literal) "'d'" (') "'" (character) "d" (') "'" (:) ":" (expression_statement) "i = va_arg(arg, int);" (assignment_expression) "i = va_arg(arg, int)" (identifier) "i" (=) "=" (call_expression) "va_arg(arg, int)" (identifier) "va_arg" (argument_list) "(arg, int)" (() "(" (identifier) "arg" (,) "," (identifier) "int" ()) ")" (;) ";" (if_statement) "if (i < ZERO) {\n i = -i;\n str[position] = '-';\n }" (if) "if" (parenthesized_expression) "(i < ZERO)" (() "(" (binary_expression) "i < ZERO" (identifier) "i" (<) "<" (identifier) "ZERO" ()) ")" (compound_statement) "{\n i = -i;\n str[position] = '-';\n }" ({) "{" (expression_statement) "i = -i;" (assignment_expression) "i = -i" (identifier) "i" (=) "=" (unary_expression) "-i" (-) "-" (identifier) "i" (;) ";" (expression_statement) "str[position] = '-';" (assignment_expression) "str[position] = '-'" (subscript_expression) "str[position]" (identifier) "str" ([) "[" (identifier) "position" (]) "]" (=) "=" (char_literal) "'-'" (') "'" (character) "-" (') "'" (;) ";" (}) "}" (expression_statement) "strcat(str, strconv(i, 10));" (call_expression) "strcat(str, strconv(i, 10))" (identifier) "strcat" (argument_list) "(str, strconv(i, 10))" (() "(" (identifier) "str" (,) "," (call_expression) "strconv(i, 10)" (identifier) "strconv" (argument_list) "(i, 10)" (() "(" (identifier) "i" (,) "," (number_literal) "10" ()) ")" ()) ")" (;) ";" (expression_statement) "position += strlen(strconv(i, 10));" (assignment_expression) "position += strlen(strconv(i, 10))" (identifier) "position" (+=) "+=" (call_expression) "strlen(strconv(i, 10))" (identifier) "strlen" (argument_list) "(strconv(i, 10))" (() "(" (call_expression) "strconv(i, 10)" (identifier) "strconv" (argument_list) "(i, 10)" (() "(" (identifier) "i" (,) "," (number_literal) "10" ()) ")" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'o':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 8));\n position += strlen(strconv(i, 8));\n break;" (case) "case" (char_literal) "'o'" (') "'" (character) "o" (') "'" (:) ":" (expression_statement) "i = va_arg(arg, unsigned int);" (assignment_expression) "i = va_arg(arg, unsigned int)" (identifier) "i" (=) "=" (call_expression) "va_arg(arg, unsigned int)" (identifier) "va_arg" (argument_list) "(arg, unsigned int)" (() "(" (identifier) "arg" (,) "," (identifier) "unsigned" (ERROR) "int" (identifier) "int" ()) ")" (;) ";" (expression_statement) "strcat(str, strconv(i, 8));" (call_expression) "strcat(str, strconv(i, 8))" (identifier) "strcat" (argument_list) "(str, strconv(i, 8))" (() "(" (identifier) "str" (,) "," (call_expression) "strconv(i, 8)" (identifier) "strconv" (argument_list) "(i, 8)" (() "(" (identifier) "i" (,) "," (number_literal) "8" ()) ")" ()) ")" (;) ";" (expression_statement) "position += strlen(strconv(i, 8));" (assignment_expression) "position += strlen(strconv(i, 8))" (identifier) "position" (+=) "+=" (call_expression) "strlen(strconv(i, 8))" (identifier) "strlen" (argument_list) "(strconv(i, 8))" (() "(" (call_expression) "strconv(i, 8)" (identifier) "strconv" (argument_list) "(i, 8)" (() "(" (identifier) "i" (,) "," (number_literal) "8" ()) ")" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 's':\n s = va_arg(arg, char *);\n strcat(str, s);\n position += strlen(s);\n break;" (case) "case" (char_literal) "'s'" (') "'" (character) "s" (') "'" (:) ":" (expression_statement) "s = va_arg(arg, char *);" (assignment_expression) "s = va_arg(arg, char *)" (identifier) "s" (=) "=" (call_expression) "va_arg(arg, char *)" (identifier) "va_arg" (argument_list) "(arg, char *)" (() "(" (identifier) "arg" (,) "," (identifier) "char" (ERROR) "*" (*) "*" ()) ")" (;) ";" (expression_statement) "strcat(str, s);" (call_expression) "strcat(str, s)" (identifier) "strcat" (argument_list) "(str, s)" (() "(" (identifier) "str" (,) "," (identifier) "s" ()) ")" (;) ";" (expression_statement) "position += strlen(s);" (assignment_expression) "position += strlen(s)" (identifier) "position" (+=) "+=" (call_expression) "strlen(s)" (identifier) "strlen" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'x':\n i = va_arg(arg, unsigned int);\n strcat(str, strconv(i, 16));\n position += strlen(strconv(i, 16));\n break;" (case) "case" (char_literal) "'x'" (') "'" (character) "x" (') "'" (:) ":" (expression_statement) "i = va_arg(arg, unsigned int);" (assignment_expression) "i = va_arg(arg, unsigned int)" (identifier) "i" (=) "=" (call_expression) "va_arg(arg, unsigned int)" (identifier) "va_arg" (argument_list) "(arg, unsigned int)" (() "(" (identifier) "arg" (,) "," (identifier) "unsigned" (ERROR) "int" (identifier) "int" ()) ")" (;) ";" (expression_statement) "strcat(str, strconv(i, 16));" (call_expression) "strcat(str, strconv(i, 16))" (identifier) "strcat" (argument_list) "(str, strconv(i, 16))" (() "(" (identifier) "str" (,) "," (call_expression) "strconv(i, 16)" (identifier) "strconv" (argument_list) "(i, 16)" (() "(" (identifier) "i" (,) "," (number_literal) "16" ()) ")" ()) ")" (;) ";" (expression_statement) "position += strlen(strconv(i, 16));" (assignment_expression) "position += strlen(strconv(i, 16))" (identifier) "position" (+=) "+=" (call_expression) "strlen(strconv(i, 16))" (identifier) "strlen" (argument_list) "(strconv(i, 16))" (() "(" (call_expression) "strconv(i, 16)" (identifier) "strconv" (argument_list) "(i, 16)" (() "(" (identifier) "i" (,) "," (number_literal) "16" ()) ")" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n str[position] = '%';\n position++;\n break;" (default) "default" (:) ":" (expression_statement) "str[position] = '%';" (assignment_expression) "str[position] = '%'" (subscript_expression) "str[position]" (identifier) "str" ([) "[" (identifier) "position" (]) "]" (=) "=" (char_literal) "'%'" (') "'" (character) "%" (') "'" (;) ";" (expression_statement) "position++;" (update_expression) "position++" (identifier) "position" (++) "++" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (else_clause) "else {\n str[position] = *format;\n position++;\n }" (else) "else" (compound_statement) "{\n str[position] = *format;\n position++;\n }" ({) "{" (expression_statement) "str[position] = *format;" (assignment_expression) "str[position] = *format" (subscript_expression) "str[position]" (identifier) "str" ([) "[" (identifier) "position" (]) "]" (=) "=" (pointer_expression) "*format" (*) "*" (identifier) "format" (;) ";" (expression_statement) "position++;" (update_expression) "position++" (identifier) "position" (++) "++" (;) ";" (}) "}" (expression_statement) "format++;" (update_expression) "format++" (identifier) "format" (++) "++" (;) ";" (}) "}" (}) "}"
769
3
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 19.6, "nodes": 499, "errors": 0, "source_hash": "f8731f0d96aa271af93e0b54dc885d7bb63614479ca91b3dc66e6cd49a890751", "categorized_nodes": 308}, "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": "string_literal", "text": "\"string.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "function_definition", "text": "char* strconv(uint32_t num, int base) {\n\tstatic char Representation[] = \"0123456789ABCDEF\";\n\tstatic char buffer[50];\n\tchar *ptr;\n\n\tptr = &buffer[49];\n\t*ptr = '\\0';\n\n\tdo {\n\t\t*--ptr = Representation[num % base];\n\t\tnum /= base;\n\t} while (num != 0);\n\treturn (ptr);\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "char", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 5, "type": "pointer_declarator", "text": "* strconv(uint32_t num, int base)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 37}}, {"id": 6, "type": "*", "text": "*", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 5}}, {"id": 7, "type": "function_declarator", "text": "strconv(uint32_t num, int base)", "parent": 5, "children": [8, 9], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 37}}, {"id": 8, "type": "identifier", "text": "strconv", "parent": 7, "children": [], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 13}}, {"id": 9, "type": "parameter_list", "text": "(uint32_t num, int base)", "parent": 7, "children": [10, 13], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 37}}, {"id": 10, "type": "parameter_declaration", "text": "uint32_t num", "parent": 9, "children": [11, 12], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 26}}, {"id": 11, "type": "primitive_type", "text": "uint32_t", "parent": 10, "children": [], "start_point": {"row": 2, "column": 14}, "end_point": {"row": 2, "column": 22}}, {"id": 12, "type": "identifier", "text": "num", "parent": 10, "children": [], "start_point": {"row": 2, "column": 23}, "end_point": {"row": 2, "column": 26}}, {"id": 13, "type": "parameter_declaration", "text": "int base", "parent": 9, "children": [14, 15], "start_point": {"row": 2, "column": 28}, "end_point": {"row": 2, "column": 36}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 2, "column": 28}, "end_point": {"row": 2, "column": 31}}, {"id": 15, "type": "identifier", "text": "base", "parent": 13, "children": [], "start_point": {"row": 2, "column": 32}, "end_point": {"row": 2, "column": 36}}, {"id": 16, "type": "declaration", "text": "static char Representation[] = \"0123456789ABCDEF\";", "parent": 3, "children": [17, 18], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 51}}, {"id": 17, "type": "primitive_type", "text": "char", "parent": 16, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 12}}, {"id": 18, "type": "init_declarator", "text": "Representation[] = \"0123456789ABCDEF\"", "parent": 16, "children": [19, 21, 22], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 50}}, {"id": 19, "type": "array_declarator", "text": "Representation[]", "parent": 18, "children": [20], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 29}}, {"id": 20, "type": "identifier", "text": "Representation", "parent": 19, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 27}}, {"id": 21, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 31}}, {"id": 22, "type": "string_literal", "text": "\"0123456789ABCDEF\"", "parent": 18, "children": [], "start_point": {"row": 3, "column": 32}, "end_point": {"row": 3, "column": 50}}, {"id": 23, "type": "declaration", "text": "static char buffer[50];", "parent": 3, "children": [24, 25], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 24}}, {"id": 24, "type": "primitive_type", "text": "char", "parent": 23, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 12}}, {"id": 25, "type": "array_declarator", "text": "buffer[50]", "parent": 23, "children": [26, 27], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 23}}, {"id": 26, "type": "identifier", "text": "buffer", "parent": 25, "children": [], "start_point": {"row": 4, "column": 13}, "end_point": {"row": 4, "column": 19}}, {"id": 27, "type": "number_literal", "text": "50", "parent": 25, "children": [], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 4, "column": 22}}, {"id": 28, "type": "declaration", "text": "char *ptr;", "parent": 3, "children": [29, 30], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 11}}, {"id": 29, "type": "primitive_type", "text": "char", "parent": 28, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 5}}, {"id": 30, "type": "pointer_declarator", "text": "*ptr", "parent": 28, "children": [31, 32], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 10}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 7}}, {"id": 32, "type": "identifier", "text": "ptr", "parent": 30, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 10}}, {"id": 33, "type": "assignment_expression", "text": "ptr = &buffer[49]", "parent": 3, "children": [34, 35, 36], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 18}}, {"id": 34, "type": "identifier", "text": "ptr", "parent": 33, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 4}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 6}}, {"id": 36, "type": "pointer_expression", "text": "&buffer[49]", "parent": 33, "children": [37], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 18}}, {"id": 37, "type": "subscript_expression", "text": "buffer[49]", "parent": 36, "children": [38, 39], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 18}}, {"id": 38, "type": "identifier", "text": "buffer", "parent": 37, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 39, "type": "number_literal", "text": "49", "parent": 37, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 17}}, {"id": 40, "type": "assignment_expression", "text": "*ptr = '\\0'", "parent": 3, "children": [41, 44, 45], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 12}}, {"id": 41, "type": "pointer_expression", "text": "*ptr", "parent": 40, "children": [42, 43], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 5}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 2}}, {"id": 43, "type": "identifier", "text": "ptr", "parent": 41, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 5}}, {"id": 44, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 7}}, {"id": 45, "type": "char_literal", "text": "'\\0'", "parent": 40, "children": [46, 47, 48], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 46, "type": "'", "text": "'", "parent": 45, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 9}}, {"id": 47, "type": "escape_sequence", "text": "\\0", "parent": 45, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 11}}, {"id": 48, "type": "'", "text": "'", "parent": 45, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 49, "type": "do_statement", "text": "do {\n\t\t*--ptr = Representation[num % base];\n\t\tnum /= base;\n\t} while (num != 0);", "parent": 3, "children": [67], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 13, "column": 20}}, {"id": 50, "type": "assignment_expression", "text": "*--ptr = Representation[num % base]", "parent": 49, "children": [51, 56, 57], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 37}}, {"id": 51, "type": "pointer_expression", "text": "*--ptr", "parent": 50, "children": [52, 53], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 8}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 3}}, {"id": 53, "type": "update_expression", "text": "--ptr", "parent": 51, "children": [54, 55], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 8}}, {"id": 54, "type": "--", "text": "--", "parent": 53, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 5}}, {"id": 55, "type": "identifier", "text": "ptr", "parent": 53, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 8}}, {"id": 56, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 10}}, {"id": 57, "type": "subscript_expression", "text": "Representation[num % base]", "parent": 50, "children": [58, 59], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 37}}, {"id": 58, "type": "identifier", "text": "Representation", "parent": 57, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 25}}, {"id": 59, "type": "binary_expression", "text": "num % base", "parent": 57, "children": [60, 61, 62], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 36}}, {"id": 60, "type": "identifier", "text": "num", "parent": 59, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 29}}, {"id": 61, "type": "%", "text": "%", "parent": 59, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 31}}, {"id": 62, "type": "identifier", "text": "base", "parent": 59, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 36}}, {"id": 63, "type": "assignment_expression", "text": "num /= base", "parent": 49, "children": [64, 65, 66], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 13}}, {"id": 64, "type": "identifier", "text": "num", "parent": 63, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 5}}, {"id": 65, "type": "/=", "text": "/=", "parent": 63, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 8}}, {"id": 66, "type": "identifier", "text": "base", "parent": 63, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 13}}, {"id": 67, "type": "parenthesized_expression", "text": "(num != 0)", "parent": 49, "children": [68], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 68, "type": "binary_expression", "text": "num != 0", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 18}}, {"id": 69, "type": "identifier", "text": "num", "parent": 68, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 13}}, {"id": 70, "type": "!=", "text": "!=", "parent": 68, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 71, "type": "number_literal", "text": "0", "parent": 68, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 18}}, {"id": 72, "type": "return_statement", "text": "return (ptr);", "parent": 3, "children": [73], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 14}}, {"id": 73, "type": "parenthesized_expression", "text": "(ptr)", "parent": 72, "children": [74], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 13}}, {"id": 74, "type": "identifier", "text": "ptr", "parent": 73, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 75, "type": "function_definition", "text": "uint32_t strlen(char* str) {\n\tuint32_t i = 0;\n\tfor (; str[i] != '\\0'; i++);\n\treturn i;\n}", "parent": null, "children": [76, 77], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 76, "type": "primitive_type", "text": "uint32_t", "parent": 75, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 77, "type": "function_declarator", "text": "strlen(char* str)", "parent": 75, "children": [78, 79], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 26}}, {"id": 78, "type": "identifier", "text": "strlen", "parent": 77, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 15}}, {"id": 79, "type": "parameter_list", "text": "(char* str)", "parent": 77, "children": [80], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 26}}, {"id": 80, "type": "parameter_declaration", "text": "char* str", "parent": 79, "children": [81, 82], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 25}}, {"id": 81, "type": "primitive_type", "text": "char", "parent": 80, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 20}}, {"id": 82, "type": "pointer_declarator", "text": "* str", "parent": 80, "children": [83, 84], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 25}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 84, "type": "identifier", "text": "str", "parent": 82, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 25}}, {"id": 85, "type": "declaration", "text": "uint32_t i = 0;", "parent": 75, "children": [86, 87], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 16}}, {"id": 86, "type": "primitive_type", "text": "uint32_t", "parent": 85, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 87, "type": "init_declarator", "text": "i = 0", "parent": 85, "children": [88, 89, 90], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 15}}, {"id": 88, "type": "identifier", "text": "i", "parent": 87, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 11}}, {"id": 89, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 13}}, {"id": 90, "type": "number_literal", "text": "0", "parent": 87, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 15}}, {"id": 91, "type": "for_statement", "text": "for (; str[i] != '\\0'; i++);", "parent": 75, "children": [92, 101], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 29}}, {"id": 92, "type": "binary_expression", "text": "str[i] != '\\0'", "parent": 91, "children": [93, 96, 97], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 93, "type": "subscript_expression", "text": "str[i]", "parent": 92, "children": [94, 95], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 94, "type": "identifier", "text": "str", "parent": 93, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 11}}, {"id": 95, "type": "identifier", "text": "i", "parent": 93, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 13}}, {"id": 96, "type": "!=", "text": "!=", "parent": 92, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 17}}, {"id": 97, "type": "char_literal", "text": "'\\0'", "parent": 92, "children": [98, 99, 100], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 22}}, {"id": 98, "type": "'", "text": "'", "parent": 97, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 19}}, {"id": 99, "type": "escape_sequence", "text": "\\0", "parent": 97, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 21}}, {"id": 100, "type": "'", "text": "'", "parent": 97, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 101, "type": "update_expression", "text": "i++", "parent": 91, "children": [102, 103], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 27}}, {"id": 102, "type": "identifier", "text": "i", "parent": 101, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 25}}, {"id": 103, "type": "++", "text": "++", "parent": 101, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 27}}, {"id": 104, "type": "return_statement", "text": "return i;", "parent": 75, "children": [105], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 10}}, {"id": 105, "type": "identifier", "text": "i", "parent": 104, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 106, "type": "function_definition", "text": "char *strncat(char *dest, char *src, uint32_t n) {\n\tuint32_t dest_length = strlen(dest);\n\tuint32_t i;\n\n\tfor (i = 0; i < n && src[i] != '\\0'; i++) {\n\t\tdest[dest_length + i] = src[i];\n\t}\n\n\tdest[dest_length + i] = '\\0';\n\n\treturn dest;\n}", "parent": null, "children": [107, 108], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 107, "type": "primitive_type", "text": "char", "parent": 106, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 108, "type": "pointer_declarator", "text": "*strncat(char *dest, char *src, uint32_t n)", "parent": 106, "children": [109, 110], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 48}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 6}}, {"id": 110, "type": "function_declarator", "text": "strncat(char *dest, char *src, uint32_t n)", "parent": 108, "children": [111, 112], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 48}}, {"id": 111, "type": "identifier", "text": "strncat", "parent": 110, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 13}}, {"id": 112, "type": "parameter_list", "text": "(char *dest, char *src, uint32_t n)", "parent": 110, "children": [113, 118, 123], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 48}}, {"id": 113, "type": "parameter_declaration", "text": "char *dest", "parent": 112, "children": [114, 115], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 24}}, {"id": 114, "type": "primitive_type", "text": "char", "parent": 113, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 18}}, {"id": 115, "type": "pointer_declarator", "text": "*dest", "parent": 113, "children": [116, 117], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 24}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 117, "type": "identifier", "text": "dest", "parent": 115, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 24}}, {"id": 118, "type": "parameter_declaration", "text": "char *src", "parent": 112, "children": [119, 120], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 35}}, {"id": 119, "type": "primitive_type", "text": "char", "parent": 118, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 30}}, {"id": 120, "type": "pointer_declarator", "text": "*src", "parent": 118, "children": [121, 122], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 35}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 32}}, {"id": 122, "type": "identifier", "text": "src", "parent": 120, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 35}}, {"id": 123, "type": "parameter_declaration", "text": "uint32_t n", "parent": 112, "children": [124, 125], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 47}}, {"id": 124, "type": "primitive_type", "text": "uint32_t", "parent": 123, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 45}}, {"id": 125, "type": "identifier", "text": "n", "parent": 123, "children": [], "start_point": {"row": 23, "column": 46}, "end_point": {"row": 23, "column": 47}}, {"id": 126, "type": "declaration", "text": "uint32_t dest_length = strlen(dest);", "parent": 106, "children": [127, 128], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 37}}, {"id": 127, "type": "primitive_type", "text": "uint32_t", "parent": 126, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 128, "type": "init_declarator", "text": "dest_length = strlen(dest)", "parent": 126, "children": [129, 130, 131], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 36}}, {"id": 129, "type": "identifier", "text": "dest_length", "parent": 128, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 21}}, {"id": 130, "type": "=", "text": "=", "parent": 128, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 131, "type": "call_expression", "text": "strlen(dest)", "parent": 128, "children": [132, 133], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 36}}, {"id": 132, "type": "identifier", "text": "strlen", "parent": 131, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 30}}, {"id": 133, "type": "argument_list", "text": "(dest)", "parent": 131, "children": [134], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 36}}, {"id": 134, "type": "identifier", "text": "dest", "parent": 133, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 35}}, {"id": 135, "type": "declaration", "text": "uint32_t i;", "parent": 106, "children": [136, 137], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 12}}, {"id": 136, "type": "primitive_type", "text": "uint32_t", "parent": 135, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 137, "type": "identifier", "text": "i", "parent": 135, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 138, "type": "for_statement", "text": "for (i = 0; i < n && src[i] != '\\0'; i++) {\n\t\tdest[dest_length + i] = src[i];\n\t}", "parent": 106, "children": [139, 143, 158], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 29, "column": 2}}, {"id": 139, "type": "assignment_expression", "text": "i = 0", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 11}}, {"id": 140, "type": "identifier", "text": "i", "parent": 139, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 7}}, {"id": 141, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 9}}, {"id": 142, "type": "number_literal", "text": "0", "parent": 139, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 11}}, {"id": 143, "type": "binary_expression", "text": "i < n && src[i] != '\\0'", "parent": 138, "children": [144, 148, 149], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 36}}, {"id": 144, "type": "binary_expression", "text": "i < n", "parent": 143, "children": [145, 146, 147], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 18}}, {"id": 145, "type": "identifier", "text": "i", "parent": 144, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 146, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 16}}, {"id": 147, "type": "identifier", "text": "n", "parent": 144, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 148, "type": "&&", "text": "&&", "parent": 143, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 21}}, {"id": 149, "type": "binary_expression", "text": "src[i] != '\\0'", "parent": 143, "children": [150, 153, 154], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 36}}, {"id": 150, "type": "subscript_expression", "text": "src[i]", "parent": 149, "children": [151, 152], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 28}}, {"id": 151, "type": "identifier", "text": "src", "parent": 150, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 25}}, {"id": 152, "type": "identifier", "text": "i", "parent": 150, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 153, "type": "!=", "text": "!=", "parent": 149, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 31}}, {"id": 154, "type": "char_literal", "text": "'\\0'", "parent": 149, "children": [155, 156, 157], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 36}}, {"id": 155, "type": "'", "text": "'", "parent": 154, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 33}}, {"id": 156, "type": "escape_sequence", "text": "\\0", "parent": 154, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 35}}, {"id": 157, "type": "'", "text": "'", "parent": 154, "children": [], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 36}}, {"id": 158, "type": "update_expression", "text": "i++", "parent": 138, "children": [159, 160], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 41}}, {"id": 159, "type": "identifier", "text": "i", "parent": 158, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 39}}, {"id": 160, "type": "++", "text": "++", "parent": 158, "children": [], "start_point": {"row": 27, "column": 39}, "end_point": {"row": 27, "column": 41}}, {"id": 161, "type": "assignment_expression", "text": "dest[dest_length + i] = src[i]", "parent": 138, "children": [162, 168, 169], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 32}}, {"id": 162, "type": "subscript_expression", "text": "dest[dest_length + i]", "parent": 161, "children": [163, 164], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 23}}, {"id": 163, "type": "identifier", "text": "dest", "parent": 162, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 6}}, {"id": 164, "type": "binary_expression", "text": "dest_length + i", "parent": 162, "children": [165, 166, 167], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 22}}, {"id": 165, "type": "identifier", "text": "dest_length", "parent": 164, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 18}}, {"id": 166, "type": "+", "text": "+", "parent": 164, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 167, "type": "identifier", "text": "i", "parent": 164, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 22}}, {"id": 168, "type": "=", "text": "=", "parent": 161, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 169, "type": "subscript_expression", "text": "src[i]", "parent": 161, "children": [170, 171], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 32}}, {"id": 170, "type": "identifier", "text": "src", "parent": 169, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 29}}, {"id": 171, "type": "identifier", "text": "i", "parent": 169, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 31}}, {"id": 172, "type": "assignment_expression", "text": "dest[dest_length + i] = '\\0'", "parent": 106, "children": [173, 179, 180], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 29}}, {"id": 173, "type": "subscript_expression", "text": "dest[dest_length + i]", "parent": 172, "children": [174, 175], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 22}}, {"id": 174, "type": "identifier", "text": "dest", "parent": 173, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 175, "type": "binary_expression", "text": "dest_length + i", "parent": 173, "children": [176, 177, 178], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 21}}, {"id": 176, "type": "identifier", "text": "dest_length", "parent": 175, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 17}}, {"id": 177, "type": "+", "text": "+", "parent": 175, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 19}}, {"id": 178, "type": "identifier", "text": "i", "parent": 175, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 21}}, {"id": 179, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 24}}, {"id": 180, "type": "char_literal", "text": "'\\0'", "parent": 172, "children": [181, 182, 183], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 29}}, {"id": 181, "type": "'", "text": "'", "parent": 180, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 26}}, {"id": 182, "type": "escape_sequence", "text": "\\0", "parent": 180, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 28}}, {"id": 183, "type": "'", "text": "'", "parent": 180, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 29}}, {"id": 184, "type": "return_statement", "text": "return dest;", "parent": 106, "children": [185], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 13}}, {"id": 185, "type": "identifier", "text": "dest", "parent": 184, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 12}}, {"id": 186, "type": "function_definition", "text": "char *strcat(char *dest, char *src) {\n\treturn strncat(dest, src, strlen(src));\n}", "parent": null, "children": [187, 188], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 187, "type": "primitive_type", "text": "char", "parent": 186, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 4}}, {"id": 188, "type": "pointer_declarator", "text": "*strcat(char *dest, char *src)", "parent": 186, "children": [189, 190], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 35}}, {"id": 189, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 6}}, {"id": 190, "type": "function_declarator", "text": "strcat(char *dest, char *src)", "parent": 188, "children": [191, 192], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 35}}, {"id": 191, "type": "identifier", "text": "strcat", "parent": 190, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 12}}, {"id": 192, "type": "parameter_list", "text": "(char *dest, char *src)", "parent": 190, "children": [193, 198], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 35}}, {"id": 193, "type": "parameter_declaration", "text": "char *dest", "parent": 192, "children": [194, 195], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 23}}, {"id": 194, "type": "primitive_type", "text": "char", "parent": 193, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 17}}, {"id": 195, "type": "pointer_declarator", "text": "*dest", "parent": 193, "children": [196, 197], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 23}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 19}}, {"id": 197, "type": "identifier", "text": "dest", "parent": 195, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 23}}, {"id": 198, "type": "parameter_declaration", "text": "char *src", "parent": 192, "children": [199, 200], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 34}}, {"id": 199, "type": "primitive_type", "text": "char", "parent": 198, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 29}}, {"id": 200, "type": "pointer_declarator", "text": "*src", "parent": 198, "children": [201, 202], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 34}}, {"id": 201, "type": "*", "text": "*", "parent": 200, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 31}}, {"id": 202, "type": "identifier", "text": "src", "parent": 200, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 34}}, {"id": 203, "type": "return_statement", "text": "return strncat(dest, src, strlen(src));", "parent": 186, "children": [204], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 40}}, {"id": 204, "type": "call_expression", "text": "strncat(dest, src, strlen(src))", "parent": 203, "children": [205, 206], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 39}}, {"id": 205, "type": "identifier", "text": "strncat", "parent": 204, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 15}}, {"id": 206, "type": "argument_list", "text": "(dest, src, strlen(src))", "parent": 204, "children": [207, 208, 209], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 39}}, {"id": 207, "type": "identifier", "text": "dest", "parent": 206, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 20}}, {"id": 208, "type": "identifier", "text": "src", "parent": 206, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 25}}, {"id": 209, "type": "call_expression", "text": "strlen(src)", "parent": 206, "children": [210, 211], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 38}}, {"id": 210, "type": "identifier", "text": "strlen", "parent": 209, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 33}}, {"id": 211, "type": "argument_list", "text": "(src)", "parent": 209, "children": [212], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 38}}, {"id": 212, "type": "identifier", "text": "src", "parent": 211, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 37}}, {"id": 213, "type": "function_definition", "text": "void vsprintf(char *str, char *format, va_list arg) {\n\tunsigned int i;\n\tunsigned int ZERO = 0;\n\tchar *s;\n\n\tint position = 0;\n\n\twhile (*format) {\n\n\t\tif (*format == '%') {\n\t\t\tformat++;\n\t\t\tswitch (*format) {\n\t\t\tcase 'c':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tstr[position] = i;\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\n\t\t\tcase 'd':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tif (i < ZERO) {\n\t\t\t\t\ti = -i;\n\t\t\t\t\tstr[position] = '-';\n\t\t\t\t}\n\t\t\t\tstrcat(str, strconv(i, 10));\n\t\t\t\tposition += strlen(strconv(i, 10));\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'o':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 8));\n\t\t\t\tposition += strlen(strconv(i, 8));\n\t\t\t\tbreak;\n\n\t\t\tcase 's':\n\t\t\t\ts = va_arg(arg, char *);\n\t\t\t\tstrcat(str, s);\n\t\t\t\tposition += strlen(s);\n\t\t\t\tbreak;\n\n\t\t\tcase 'x':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 16));\n\t\t\t\tposition += strlen(strconv(i, 16));\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tstr[position] = '%';\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tstr[position] = *format;\n\t\t\tposition++;\n\t\t}\n\n\t\tformat++;\n\t}\n}", "parent": null, "children": [214, 215], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 101, "column": 1}}, {"id": 214, "type": "primitive_type", "text": "void", "parent": 213, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 215, "type": "function_declarator", "text": "vsprintf(char *str, char *format, va_list arg)", "parent": 213, "children": [216, 217], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 51}}, {"id": 216, "type": "identifier", "text": "vsprintf", "parent": 215, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 13}}, {"id": 217, "type": "parameter_list", "text": "(char *str, char *format, va_list arg)", "parent": 215, "children": [218, 223, 228], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 51}}, {"id": 218, "type": "parameter_declaration", "text": "char *str", "parent": 217, "children": [219, 220], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 23}}, {"id": 219, "type": "primitive_type", "text": "char", "parent": 218, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 18}}, {"id": 220, "type": "pointer_declarator", "text": "*str", "parent": 218, "children": [221, 222], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 23}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 20}}, {"id": 222, "type": "identifier", "text": "str", "parent": 220, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 23}}, {"id": 223, "type": "parameter_declaration", "text": "char *format", "parent": 217, "children": [224, 225], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 37}}, {"id": 224, "type": "primitive_type", "text": "char", "parent": 223, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 29}}, {"id": 225, "type": "pointer_declarator", "text": "*format", "parent": 223, "children": [226, 227], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 37}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 31}}, {"id": 227, "type": "identifier", "text": "format", "parent": 225, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 37}}, {"id": 228, "type": "parameter_declaration", "text": "va_list arg", "parent": 217, "children": [229, 230], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 50}}, {"id": 229, "type": "type_identifier", "text": "va_list", "parent": 228, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 46}}, {"id": 230, "type": "identifier", "text": "arg", "parent": 228, "children": [], "start_point": {"row": 40, "column": 47}, "end_point": {"row": 40, "column": 50}}, {"id": 231, "type": "declaration", "text": "unsigned int i;", "parent": 213, "children": [232, 235], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 16}}, {"id": 232, "type": "sized_type_specifier", "text": "unsigned int", "parent": 231, "children": [233, 234], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 13}}, {"id": 233, "type": "unsigned", "text": "unsigned", "parent": 232, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 234, "type": "primitive_type", "text": "int", "parent": 232, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 13}}, {"id": 235, "type": "identifier", "text": "i", "parent": 231, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 236, "type": "declaration", "text": "unsigned int ZERO = 0;", "parent": 213, "children": [237, 240], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 23}}, {"id": 237, "type": "sized_type_specifier", "text": "unsigned int", "parent": 236, "children": [238, 239], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 13}}, {"id": 238, "type": "unsigned", "text": "unsigned", "parent": 237, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 9}}, {"id": 239, "type": "primitive_type", "text": "int", "parent": 237, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 13}}, {"id": 240, "type": "init_declarator", "text": "ZERO = 0", "parent": 236, "children": [241, 242, 243], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 22}}, {"id": 241, "type": "identifier", "text": "ZERO", "parent": 240, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 18}}, {"id": 242, "type": "=", "text": "=", "parent": 240, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 20}}, {"id": 243, "type": "number_literal", "text": "0", "parent": 240, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 22}}, {"id": 244, "type": "declaration", "text": "char *s;", "parent": 213, "children": [245, 246], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 245, "type": "primitive_type", "text": "char", "parent": 244, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 246, "type": "pointer_declarator", "text": "*s", "parent": 244, "children": [247, 248], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 8}}, {"id": 247, "type": "*", "text": "*", "parent": 246, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 7}}, {"id": 248, "type": "identifier", "text": "s", "parent": 246, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 8}}, {"id": 249, "type": "declaration", "text": "int position = 0;", "parent": 213, "children": [250, 251], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 18}}, {"id": 250, "type": "primitive_type", "text": "int", "parent": 249, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 4}}, {"id": 251, "type": "init_declarator", "text": "position = 0", "parent": 249, "children": [252, 253, 254], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 17}}, {"id": 252, "type": "identifier", "text": "position", "parent": 251, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 13}}, {"id": 253, "type": "=", "text": "=", "parent": 251, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 254, "type": "number_literal", "text": "0", "parent": 251, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 17}}, {"id": 255, "type": "while_statement", "text": "while (*format) {\n\n\t\tif (*format == '%') {\n\t\t\tformat++;\n\t\t\tswitch (*format) {\n\t\t\tcase 'c':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tstr[position] = i;\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\n\t\t\tcase 'd':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tif (i < ZERO) {\n\t\t\t\t\ti = -i;\n\t\t\t\t\tstr[position] = '-';\n\t\t\t\t}\n\t\t\t\tstrcat(str, strconv(i, 10));\n\t\t\t\tposition += strlen(strconv(i, 10));\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'o':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 8));\n\t\t\t\tposition += strlen(strconv(i, 8));\n\t\t\t\tbreak;\n\n\t\t\tcase 's':\n\t\t\t\ts = va_arg(arg, char *);\n\t\t\t\tstrcat(str, s);\n\t\t\t\tposition += strlen(s);\n\t\t\t\tbreak;\n\n\t\t\tcase 'x':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 16));\n\t\t\t\tposition += strlen(strconv(i, 16));\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tstr[position] = '%';\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tstr[position] = *format;\n\t\t\tposition++;\n\t\t}\n\n\t\tformat++;\n\t}", "parent": 213, "children": [256], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 100, "column": 2}}, {"id": 256, "type": "parenthesized_expression", "text": "(*format)", "parent": 255, "children": [257], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 16}}, {"id": 257, "type": "pointer_expression", "text": "*format", "parent": 256, "children": [258, 259], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 15}}, {"id": 258, "type": "*", "text": "*", "parent": 257, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 259, "type": "identifier", "text": "format", "parent": 257, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 15}}, {"id": 260, "type": "if_statement", "text": "if (*format == '%') {\n\t\t\tformat++;\n\t\t\tswitch (*format) {\n\t\t\tcase 'c':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tstr[position] = i;\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\n\t\t\tcase 'd':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tif (i < ZERO) {\n\t\t\t\t\ti = -i;\n\t\t\t\t\tstr[position] = '-';\n\t\t\t\t}\n\t\t\t\tstrcat(str, strconv(i, 10));\n\t\t\t\tposition += strlen(strconv(i, 10));\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'o':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 8));\n\t\t\t\tposition += strlen(strconv(i, 8));\n\t\t\t\tbreak;\n\n\t\t\tcase 's':\n\t\t\t\ts = va_arg(arg, char *);\n\t\t\t\tstrcat(str, s);\n\t\t\t\tposition += strlen(s);\n\t\t\t\tbreak;\n\n\t\t\tcase 'x':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 16));\n\t\t\t\tposition += strlen(strconv(i, 16));\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tstr[position] = '%';\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tstr[position] = *format;\n\t\t\tposition++;\n\t\t}", "parent": 255, "children": [261, 484], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 97, "column": 3}}, {"id": 261, "type": "parenthesized_expression", "text": "(*format == '%')", "parent": 260, "children": [262], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 21}}, {"id": 262, "type": "binary_expression", "text": "*format == '%'", "parent": 261, "children": [263, 266, 267], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 20}}, {"id": 263, "type": "pointer_expression", "text": "*format", "parent": 262, "children": [264, 265], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 13}}, {"id": 264, "type": "*", "text": "*", "parent": 263, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 7}}, {"id": 265, "type": "identifier", "text": "format", "parent": 263, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 13}}, {"id": 266, "type": "==", "text": "==", "parent": 262, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 16}}, {"id": 267, "type": "char_literal", "text": "'%'", "parent": 262, "children": [268, 269, 270], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 20}}, {"id": 268, "type": "'", "text": "'", "parent": 267, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 18}}, {"id": 269, "type": "character", "text": "%", "parent": 267, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 19}}, {"id": 270, "type": "'", "text": "'", "parent": 267, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 271, "type": "update_expression", "text": "format++", "parent": 260, "children": [272, 273], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 11}}, {"id": 272, "type": "identifier", "text": "format", "parent": 271, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 9}}, {"id": 273, "type": "++", "text": "++", "parent": 271, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 11}}, {"id": 274, "type": "switch_statement", "text": "switch (*format) {\n\t\t\tcase 'c':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tstr[position] = i;\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\n\t\t\tcase 'd':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tif (i < ZERO) {\n\t\t\t\t\ti = -i;\n\t\t\t\t\tstr[position] = '-';\n\t\t\t\t}\n\t\t\t\tstrcat(str, strconv(i, 10));\n\t\t\t\tposition += strlen(strconv(i, 10));\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'o':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 8));\n\t\t\t\tposition += strlen(strconv(i, 8));\n\t\t\t\tbreak;\n\n\t\t\tcase 's':\n\t\t\t\ts = va_arg(arg, char *);\n\t\t\t\tstrcat(str, s);\n\t\t\t\tposition += strlen(s);\n\t\t\t\tbreak;\n\n\t\t\tcase 'x':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 16));\n\t\t\t\tposition += strlen(strconv(i, 16));\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tstr[position] = '%';\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\t\t\t}", "parent": 260, "children": [275, 276], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 91, "column": 4}}, {"id": 275, "type": "switch", "text": "switch", "parent": 274, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 9}}, {"id": 276, "type": "parenthesized_expression", "text": "(*format)", "parent": 274, "children": [277], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 19}}, {"id": 277, "type": "pointer_expression", "text": "*format", "parent": 276, "children": [278, 279], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 18}}, {"id": 278, "type": "*", "text": "*", "parent": 277, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 12}}, {"id": 279, "type": "identifier", "text": "format", "parent": 277, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 18}}, {"id": 280, "type": "case_statement", "text": "case 'c':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tstr[position] = i;\n\t\t\t\tposition++;\n\t\t\t\tbreak;", "parent": 274, "children": [281, 282, 303], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 56, "column": 10}}, {"id": 281, "type": "case", "text": "case", "parent": 280, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 282, "type": "char_literal", "text": "'c'", "parent": 280, "children": [283, 284, 285], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 11}}, {"id": 283, "type": "'", "text": "'", "parent": 282, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 9}}, {"id": 284, "type": "character", "text": "c", "parent": 282, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 10}}, {"id": 285, "type": "'", "text": "'", "parent": 282, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 11}}, {"id": 286, "type": "assignment_expression", "text": "i = va_arg(arg, int)", "parent": 280, "children": [287, 288, 289], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 24}}, {"id": 287, "type": "identifier", "text": "i", "parent": 286, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 5}}, {"id": 288, "type": "=", "text": "=", "parent": 286, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 7}}, {"id": 289, "type": "call_expression", "text": "va_arg(arg, int)", "parent": 286, "children": [290, 291], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 24}}, {"id": 290, "type": "identifier", "text": "va_arg", "parent": 289, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 14}}, {"id": 291, "type": "argument_list", "text": "(arg, int)", "parent": 289, "children": [292, 293], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 24}}, {"id": 292, "type": "identifier", "text": "arg", "parent": 291, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 18}}, {"id": 293, "type": "identifier", "text": "int", "parent": 291, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 23}}, {"id": 294, "type": "assignment_expression", "text": "str[position] = i", "parent": 280, "children": [295, 298, 299], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 21}}, {"id": 295, "type": "subscript_expression", "text": "str[position]", "parent": 294, "children": [296, 297], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 17}}, {"id": 296, "type": "identifier", "text": "str", "parent": 295, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 7}}, {"id": 297, "type": "identifier", "text": "position", "parent": 295, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 16}}, {"id": 298, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 19}}, {"id": 299, "type": "identifier", "text": "i", "parent": 294, "children": [], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 21}}, {"id": 300, "type": "update_expression", "text": "position++", "parent": 280, "children": [301, 302], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 14}}, {"id": 301, "type": "identifier", "text": "position", "parent": 300, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 12}}, {"id": 302, "type": "++", "text": "++", "parent": 300, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 14}}, {"id": 303, "type": "break_statement", "text": "break;", "parent": 280, "children": [304], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 10}}, {"id": 304, "type": "break", "text": "break", "parent": 303, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 9}}, {"id": 305, "type": "case_statement", "text": "case 'd':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tif (i < ZERO) {\n\t\t\t\t\ti = -i;\n\t\t\t\t\tstr[position] = '-';\n\t\t\t\t}\n\t\t\t\tstrcat(str, strconv(i, 10));\n\t\t\t\tposition += strlen(strconv(i, 10));\n\n\t\t\t\tbreak;", "parent": 274, "children": [306, 307, 319, 360], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 67, "column": 10}}, {"id": 306, "type": "case", "text": "case", "parent": 305, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 7}}, {"id": 307, "type": "char_literal", "text": "'d'", "parent": 305, "children": [308, 309, 310], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 11}}, {"id": 308, "type": "'", "text": "'", "parent": 307, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 9}}, {"id": 309, "type": "character", "text": "d", "parent": 307, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 310, "type": "'", "text": "'", "parent": 307, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 11}}, {"id": 311, "type": "assignment_expression", "text": "i = va_arg(arg, int)", "parent": 305, "children": [312, 313, 314], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 24}}, {"id": 312, "type": "identifier", "text": "i", "parent": 311, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 5}}, {"id": 313, "type": "=", "text": "=", "parent": 311, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 7}}, {"id": 314, "type": "call_expression", "text": "va_arg(arg, int)", "parent": 311, "children": [315, 316], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 24}}, {"id": 315, "type": "identifier", "text": "va_arg", "parent": 314, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 14}}, {"id": 316, "type": "argument_list", "text": "(arg, int)", "parent": 314, "children": [317, 318], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 24}}, {"id": 317, "type": "identifier", "text": "arg", "parent": 316, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 18}}, {"id": 318, "type": "identifier", "text": "int", "parent": 316, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 23}}, {"id": 319, "type": "if_statement", "text": "if (i < ZERO) {\n\t\t\t\t\ti = -i;\n\t\t\t\t\tstr[position] = '-';\n\t\t\t\t}", "parent": 305, "children": [320], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 63, "column": 5}}, {"id": 320, "type": "parenthesized_expression", "text": "(i < ZERO)", "parent": 319, "children": [321], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 17}}, {"id": 321, "type": "binary_expression", "text": "i < ZERO", "parent": 320, "children": [322, 323, 324], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 16}}, {"id": 322, "type": "identifier", "text": "i", "parent": 321, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 323, "type": "<", "text": "<", "parent": 321, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 11}}, {"id": 324, "type": "identifier", "text": "ZERO", "parent": 321, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 16}}, {"id": 325, "type": "assignment_expression", "text": "i = -i", "parent": 319, "children": [326, 327, 328], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 11}}, {"id": 326, "type": "identifier", "text": "i", "parent": 325, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 6}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 328, "type": "unary_expression", "text": "-i", "parent": 325, "children": [329, 330], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 11}}, {"id": 329, "type": "-", "text": "-", "parent": 328, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 330, "type": "identifier", "text": "i", "parent": 328, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 11}}, {"id": 331, "type": "assignment_expression", "text": "str[position] = '-'", "parent": 319, "children": [332, 335, 336], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 24}}, {"id": 332, "type": "subscript_expression", "text": "str[position]", "parent": 331, "children": [333, 334], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 18}}, {"id": 333, "type": "identifier", "text": "str", "parent": 332, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 8}}, {"id": 334, "type": "identifier", "text": "position", "parent": 332, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 17}}, {"id": 335, "type": "=", "text": "=", "parent": 331, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 20}}, {"id": 336, "type": "char_literal", "text": "'-'", "parent": 331, "children": [337, 338, 339], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 24}}, {"id": 337, "type": "'", "text": "'", "parent": 336, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 22}}, {"id": 338, "type": "character", "text": "-", "parent": 336, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 23}}, {"id": 339, "type": "'", "text": "'", "parent": 336, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 24}}, {"id": 340, "type": "call_expression", "text": "strcat(str, strconv(i, 10))", "parent": 305, "children": [341, 342], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 31}}, {"id": 341, "type": "identifier", "text": "strcat", "parent": 340, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 10}}, {"id": 342, "type": "argument_list", "text": "(str, strconv(i, 10))", "parent": 340, "children": [343, 344], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 31}}, {"id": 343, "type": "identifier", "text": "str", "parent": 342, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 14}}, {"id": 344, "type": "call_expression", "text": "strconv(i, 10)", "parent": 342, "children": [345, 346], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 30}}, {"id": 345, "type": "identifier", "text": "strconv", "parent": 344, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 23}}, {"id": 346, "type": "argument_list", "text": "(i, 10)", "parent": 344, "children": [347, 348], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 30}}, {"id": 347, "type": "identifier", "text": "i", "parent": 346, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 25}}, {"id": 348, "type": "number_literal", "text": "10", "parent": 346, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 29}}, {"id": 349, "type": "assignment_expression", "text": "position += strlen(strconv(i, 10))", "parent": 305, "children": [350, 351, 352], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 38}}, {"id": 350, "type": "identifier", "text": "position", "parent": 349, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 12}}, {"id": 351, "type": "+=", "text": "+=", "parent": 349, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 15}}, {"id": 352, "type": "call_expression", "text": "strlen(strconv(i, 10))", "parent": 349, "children": [353, 354], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 38}}, {"id": 353, "type": "identifier", "text": "strlen", "parent": 352, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 22}}, {"id": 354, "type": "argument_list", "text": "(strconv(i, 10))", "parent": 352, "children": [355], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 38}}, {"id": 355, "type": "call_expression", "text": "strconv(i, 10)", "parent": 354, "children": [356, 357], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 37}}, {"id": 356, "type": "identifier", "text": "strconv", "parent": 355, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 30}}, {"id": 357, "type": "argument_list", "text": "(i, 10)", "parent": 355, "children": [358, 359], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 37}}, {"id": 358, "type": "identifier", "text": "i", "parent": 357, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 32}}, {"id": 359, "type": "number_literal", "text": "10", "parent": 357, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 36}}, {"id": 360, "type": "break_statement", "text": "break;", "parent": 305, "children": [361], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 10}}, {"id": 361, "type": "break", "text": "break", "parent": 360, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 9}}, {"id": 362, "type": "case_statement", "text": "case 'o':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 8));\n\t\t\t\tposition += strlen(strconv(i, 8));\n\t\t\t\tbreak;", "parent": 274, "children": [363, 364, 398], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 73, "column": 10}}, {"id": 363, "type": "case", "text": "case", "parent": 362, "children": [], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 7}}, {"id": 364, "type": "char_literal", "text": "'o'", "parent": 362, "children": [365, 366, 367], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 11}}, {"id": 365, "type": "'", "text": "'", "parent": 364, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 9}}, {"id": 366, "type": "character", "text": "o", "parent": 364, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 10}}, {"id": 367, "type": "'", "text": "'", "parent": 364, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 11}}, {"id": 368, "type": "assignment_expression", "text": "i = va_arg(arg, unsigned int)", "parent": 362, "children": [369, 370, 371], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 33}}, {"id": 369, "type": "identifier", "text": "i", "parent": 368, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 370, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 371, "type": "call_expression", "text": "va_arg(arg, unsigned int)", "parent": 368, "children": [372, 373], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 33}}, {"id": 372, "type": "identifier", "text": "va_arg", "parent": 371, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 14}}, {"id": 373, "type": "argument_list", "text": "(arg, unsigned int)", "parent": 371, "children": [374, 375, 376], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 33}}, {"id": 374, "type": "identifier", "text": "arg", "parent": 373, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 18}}, {"id": 375, "type": "identifier", "text": "unsigned", "parent": 373, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 28}}, {"id": 376, "type": "ERROR", "text": "int", "parent": 373, "children": [377], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 32}}, {"id": 377, "type": "identifier", "text": "int", "parent": 376, "children": [], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 32}}, {"id": 378, "type": "call_expression", "text": "strcat(str, strconv(i, 8))", "parent": 362, "children": [379, 380], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 30}}, {"id": 379, "type": "identifier", "text": "strcat", "parent": 378, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 10}}, {"id": 380, "type": "argument_list", "text": "(str, strconv(i, 8))", "parent": 378, "children": [381, 382], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 30}}, {"id": 381, "type": "identifier", "text": "str", "parent": 380, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 14}}, {"id": 382, "type": "call_expression", "text": "strconv(i, 8)", "parent": 380, "children": [383, 384], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 29}}, {"id": 383, "type": "identifier", "text": "strconv", "parent": 382, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 23}}, {"id": 384, "type": "argument_list", "text": "(i, 8)", "parent": 382, "children": [385, 386], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 29}}, {"id": 385, "type": "identifier", "text": "i", "parent": 384, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 25}}, {"id": 386, "type": "number_literal", "text": "8", "parent": 384, "children": [], "start_point": {"row": 71, "column": 27}, "end_point": {"row": 71, "column": 28}}, {"id": 387, "type": "assignment_expression", "text": "position += strlen(strconv(i, 8))", "parent": 362, "children": [388, 389, 390], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 37}}, {"id": 388, "type": "identifier", "text": "position", "parent": 387, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 12}}, {"id": 389, "type": "+=", "text": "+=", "parent": 387, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 15}}, {"id": 390, "type": "call_expression", "text": "strlen(strconv(i, 8))", "parent": 387, "children": [391, 392], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 37}}, {"id": 391, "type": "identifier", "text": "strlen", "parent": 390, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 22}}, {"id": 392, "type": "argument_list", "text": "(strconv(i, 8))", "parent": 390, "children": [393], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 37}}, {"id": 393, "type": "call_expression", "text": "strconv(i, 8)", "parent": 392, "children": [394, 395], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 36}}, {"id": 394, "type": "identifier", "text": "strconv", "parent": 393, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 30}}, {"id": 395, "type": "argument_list", "text": "(i, 8)", "parent": 393, "children": [396, 397], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 36}}, {"id": 396, "type": "identifier", "text": "i", "parent": 395, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 32}}, {"id": 397, "type": "number_literal", "text": "8", "parent": 395, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 35}}, {"id": 398, "type": "break_statement", "text": "break;", "parent": 362, "children": [399], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 10}}, {"id": 399, "type": "break", "text": "break", "parent": 398, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 9}}, {"id": 400, "type": "case_statement", "text": "case 's':\n\t\t\t\ts = va_arg(arg, char *);\n\t\t\t\tstrcat(str, s);\n\t\t\t\tposition += strlen(s);\n\t\t\t\tbreak;", "parent": 274, "children": [401, 402, 428], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 79, "column": 10}}, {"id": 401, "type": "case", "text": "case", "parent": 400, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 7}}, {"id": 402, "type": "char_literal", "text": "'s'", "parent": 400, "children": [403, 404, 405], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 11}}, {"id": 403, "type": "'", "text": "'", "parent": 402, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 9}}, {"id": 404, "type": "character", "text": "s", "parent": 402, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 10}}, {"id": 405, "type": "'", "text": "'", "parent": 402, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 11}}, {"id": 406, "type": "assignment_expression", "text": "s = va_arg(arg, char *)", "parent": 400, "children": [407, 408, 409], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 27}}, {"id": 407, "type": "identifier", "text": "s", "parent": 406, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 5}}, {"id": 408, "type": "=", "text": "=", "parent": 406, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 7}}, {"id": 409, "type": "call_expression", "text": "va_arg(arg, char *)", "parent": 406, "children": [410, 411], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 27}}, {"id": 410, "type": "identifier", "text": "va_arg", "parent": 409, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 14}}, {"id": 411, "type": "argument_list", "text": "(arg, char *)", "parent": 409, "children": [412, 413, 414], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 27}}, {"id": 412, "type": "identifier", "text": "arg", "parent": 411, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 18}}, {"id": 413, "type": "identifier", "text": "char", "parent": 411, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 24}}, {"id": 414, "type": "ERROR", "text": "*", "parent": 411, "children": [415], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 26}}, {"id": 415, "type": "*", "text": "*", "parent": 414, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 26}}, {"id": 416, "type": "call_expression", "text": "strcat(str, s)", "parent": 400, "children": [417, 418], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 18}}, {"id": 417, "type": "identifier", "text": "strcat", "parent": 416, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 10}}, {"id": 418, "type": "argument_list", "text": "(str, s)", "parent": 416, "children": [419, 420], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 18}}, {"id": 419, "type": "identifier", "text": "str", "parent": 418, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 14}}, {"id": 420, "type": "identifier", "text": "s", "parent": 418, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 17}}, {"id": 421, "type": "assignment_expression", "text": "position += strlen(s)", "parent": 400, "children": [422, 423, 424], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 25}}, {"id": 422, "type": "identifier", "text": "position", "parent": 421, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 12}}, {"id": 423, "type": "+=", "text": "+=", "parent": 421, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 15}}, {"id": 424, "type": "call_expression", "text": "strlen(s)", "parent": 421, "children": [425, 426], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 25}}, {"id": 425, "type": "identifier", "text": "strlen", "parent": 424, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 22}}, {"id": 426, "type": "argument_list", "text": "(s)", "parent": 424, "children": [427], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 25}}, {"id": 427, "type": "identifier", "text": "s", "parent": 426, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 24}}, {"id": 428, "type": "break_statement", "text": "break;", "parent": 400, "children": [429], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 10}}, {"id": 429, "type": "break", "text": "break", "parent": 428, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 9}}, {"id": 430, "type": "case_statement", "text": "case 'x':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 16));\n\t\t\t\tposition += strlen(strconv(i, 16));\n\t\t\t\tbreak;", "parent": 274, "children": [431, 432, 466], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 85, "column": 10}}, {"id": 431, "type": "case", "text": "case", "parent": 430, "children": [], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 7}}, {"id": 432, "type": "char_literal", "text": "'x'", "parent": 430, "children": [433, 434, 435], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 11}}, {"id": 433, "type": "'", "text": "'", "parent": 432, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 9}}, {"id": 434, "type": "character", "text": "x", "parent": 432, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 10}}, {"id": 435, "type": "'", "text": "'", "parent": 432, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 11}}, {"id": 436, "type": "assignment_expression", "text": "i = va_arg(arg, unsigned int)", "parent": 430, "children": [437, 438, 439], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 33}}, {"id": 437, "type": "identifier", "text": "i", "parent": 436, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 5}}, {"id": 438, "type": "=", "text": "=", "parent": 436, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 7}}, {"id": 439, "type": "call_expression", "text": "va_arg(arg, unsigned int)", "parent": 436, "children": [440, 441], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 33}}, {"id": 440, "type": "identifier", "text": "va_arg", "parent": 439, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 14}}, {"id": 441, "type": "argument_list", "text": "(arg, unsigned int)", "parent": 439, "children": [442, 443, 444], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 33}}, {"id": 442, "type": "identifier", "text": "arg", "parent": 441, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 18}}, {"id": 443, "type": "identifier", "text": "unsigned", "parent": 441, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 28}}, {"id": 444, "type": "ERROR", "text": "int", "parent": 441, "children": [445], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 32}}, {"id": 445, "type": "identifier", "text": "int", "parent": 444, "children": [], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 32}}, {"id": 446, "type": "call_expression", "text": "strcat(str, strconv(i, 16))", "parent": 430, "children": [447, 448], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 31}}, {"id": 447, "type": "identifier", "text": "strcat", "parent": 446, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 10}}, {"id": 448, "type": "argument_list", "text": "(str, strconv(i, 16))", "parent": 446, "children": [449, 450], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 31}}, {"id": 449, "type": "identifier", "text": "str", "parent": 448, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 14}}, {"id": 450, "type": "call_expression", "text": "strconv(i, 16)", "parent": 448, "children": [451, 452], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 30}}, {"id": 451, "type": "identifier", "text": "strconv", "parent": 450, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 23}}, {"id": 452, "type": "argument_list", "text": "(i, 16)", "parent": 450, "children": [453, 454], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 30}}, {"id": 453, "type": "identifier", "text": "i", "parent": 452, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 25}}, {"id": 454, "type": "number_literal", "text": "16", "parent": 452, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 29}}, {"id": 455, "type": "assignment_expression", "text": "position += strlen(strconv(i, 16))", "parent": 430, "children": [456, 457, 458], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 38}}, {"id": 456, "type": "identifier", "text": "position", "parent": 455, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 12}}, {"id": 457, "type": "+=", "text": "+=", "parent": 455, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 15}}, {"id": 458, "type": "call_expression", "text": "strlen(strconv(i, 16))", "parent": 455, "children": [459, 460], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 38}}, {"id": 459, "type": "identifier", "text": "strlen", "parent": 458, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 22}}, {"id": 460, "type": "argument_list", "text": "(strconv(i, 16))", "parent": 458, "children": [461], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 38}}, {"id": 461, "type": "call_expression", "text": "strconv(i, 16)", "parent": 460, "children": [462, 463], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 37}}, {"id": 462, "type": "identifier", "text": "strconv", "parent": 461, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 30}}, {"id": 463, "type": "argument_list", "text": "(i, 16)", "parent": 461, "children": [464, 465], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 37}}, {"id": 464, "type": "identifier", "text": "i", "parent": 463, "children": [], "start_point": {"row": 84, "column": 31}, "end_point": {"row": 84, "column": 32}}, {"id": 465, "type": "number_literal", "text": "16", "parent": 463, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 36}}, {"id": 466, "type": "break_statement", "text": "break;", "parent": 430, "children": [467], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 10}}, {"id": 467, "type": "break", "text": "break", "parent": 466, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 9}}, {"id": 468, "type": "case_statement", "text": "default:\n\t\t\t\tstr[position] = '%';\n\t\t\t\tposition++;\n\t\t\t\tbreak;", "parent": 274, "children": [469, 482], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 90, "column": 10}}, {"id": 469, "type": "default", "text": "default", "parent": 468, "children": [], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 10}}, {"id": 470, "type": "assignment_expression", "text": "str[position] = '%'", "parent": 468, "children": [471, 474, 475], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 23}}, {"id": 471, "type": "subscript_expression", "text": "str[position]", "parent": 470, "children": [472, 473], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 17}}, {"id": 472, "type": "identifier", "text": "str", "parent": 471, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 7}}, {"id": 473, "type": "identifier", "text": "position", "parent": 471, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 16}}, {"id": 474, "type": "=", "text": "=", "parent": 470, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 19}}, {"id": 475, "type": "char_literal", "text": "'%'", "parent": 470, "children": [476, 477, 478], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 23}}, {"id": 476, "type": "'", "text": "'", "parent": 475, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 21}}, {"id": 477, "type": "character", "text": "%", "parent": 475, "children": [], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 22}}, {"id": 478, "type": "'", "text": "'", "parent": 475, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 23}}, {"id": 479, "type": "update_expression", "text": "position++", "parent": 468, "children": [480, 481], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 14}}, {"id": 480, "type": "identifier", "text": "position", "parent": 479, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 12}}, {"id": 481, "type": "++", "text": "++", "parent": 479, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 14}}, {"id": 482, "type": "break_statement", "text": "break;", "parent": 468, "children": [483], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 10}}, {"id": 483, "type": "break", "text": "break", "parent": 482, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 9}}, {"id": 484, "type": "else_clause", "text": "else {\n\t\t\tstr[position] = *format;\n\t\t\tposition++;\n\t\t}", "parent": 260, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 97, "column": 3}}, {"id": 485, "type": "assignment_expression", "text": "str[position] = *format", "parent": 484, "children": [486, 489, 490], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 26}}, {"id": 486, "type": "subscript_expression", "text": "str[position]", "parent": 485, "children": [487, 488], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 16}}, {"id": 487, "type": "identifier", "text": "str", "parent": 486, "children": [], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 6}}, {"id": 488, "type": "identifier", "text": "position", "parent": 486, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 15}}, {"id": 489, "type": "=", "text": "=", "parent": 485, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 18}}, {"id": 490, "type": "pointer_expression", "text": "*format", "parent": 485, "children": [491, 492], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 26}}, {"id": 491, "type": "*", "text": "*", "parent": 490, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 20}}, {"id": 492, "type": "identifier", "text": "format", "parent": 490, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 26}}, {"id": 493, "type": "update_expression", "text": "position++", "parent": 484, "children": [494, 495], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 13}}, {"id": 494, "type": "identifier", "text": "position", "parent": 493, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 11}}, {"id": 495, "type": "++", "text": "++", "parent": 493, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 13}}, {"id": 496, "type": "update_expression", "text": "format++", "parent": 255, "children": [497, 498], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 10}}, {"id": 497, "type": "identifier", "text": "format", "parent": 496, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 8}}, {"id": 498, "type": "++", "text": "++", "parent": 496, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 10}}]}, "node_categories": {"declarations": {"functions": [3, 7, 75, 77, 106, 110, 186, 190, 213, 215], "variables": [10, 13, 16, 23, 28, 80, 85, 113, 118, 123, 126, 135, 193, 198, 218, 223, 228, 231, 236, 244, 249], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [36, 37, 41, 51, 53, 57, 59, 67, 68, 73, 92, 93, 101, 131, 143, 144, 149, 150, 158, 162, 164, 169, 173, 175, 204, 209, 256, 257, 261, 262, 263, 271, 276, 277, 289, 295, 300, 314, 320, 321, 328, 332, 340, 344, 352, 355, 371, 378, 382, 390, 393, 409, 416, 424, 439, 446, 450, 458, 461, 471, 479, 486, 490, 493, 496], "assignments": [33, 40, 50, 63, 139, 161, 172, 286, 294, 311, 325, 331, 349, 368, 387, 406, 421, 436, 455, 470, 485], "loops": [91, 138, 255], "conditionals": [8, 12, 15, 20, 26, 32, 34, 38, 43, 55, 58, 60, 62, 64, 66, 69, 74, 78, 84, 88, 94, 95, 102, 105, 111, 117, 122, 125, 129, 132, 134, 137, 140, 145, 147, 151, 152, 159, 163, 165, 167, 170, 171, 174, 176, 178, 185, 191, 197, 202, 205, 207, 208, 210, 212, 216, 222, 227, 229, 230, 232, 235, 237, 241, 248, 252, 259, 260, 265, 272, 274, 275, 279, 280, 281, 287, 290, 292, 293, 296, 297, 299, 301, 305, 306, 312, 315, 317, 318, 319, 322, 324, 326, 330, 333, 334, 341, 343, 345, 347, 350, 353, 356, 358, 362, 363, 369, 372, 374, 375, 377, 379, 381, 383, 385, 388, 391, 394, 396, 400, 401, 407, 410, 412, 413, 417, 419, 420, 422, 425, 427, 430, 431, 437, 440, 442, 443, 445, 447, 449, 451, 453, 456, 459, 462, 464, 468, 472, 473, 480, 487, 488, 492, 494, 497], "returns": [72, 104, 184, 203], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 22, 27, 39, 45, 71, 90, 97, 142, 154, 180, 243, 254, 267, 282, 307, 336, 348, 359, 364, 386, 397, 402, 432, 454, 465, 475], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "base)", "text_snippet": "char* strconv(uint32_t num, int base) {\n\tstatic char Representation[] = \"0123456789ABCDEF\";\n\tstatic "}, {"node_id": 7, "universal_type": "function", "name": "base)", "text_snippet": "strconv(uint32_t num, int base)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t strlen(char* str) {\n\tuint32_t i = 0;\n\tfor (; str[i] != '\\0'; i++);\n\treturn i;\n}"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "strlen(char* str)"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "char *strncat(char *dest, char *src, uint32_t n) {\n\tuint32_t dest_length = strlen(dest);\n\tuint32_t i"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "strncat(char *dest, char *src, uint32_t n)"}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "char *strcat(char *dest, char *src) {\n\treturn strncat(dest, src, strlen(src));\n}"}, {"node_id": 190, "universal_type": "function", "name": "unknown", "text_snippet": "strcat(char *dest, char *src)"}, {"node_id": 213, "universal_type": "function", "name": "vsprintf", "text_snippet": "void vsprintf(char *str, char *format, va_list arg) {\n\tunsigned int i;\n\tunsigned int ZERO = 0;\n\tchar"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "vsprintf(char *str, char *format, va_list arg)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"string.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"string.h\"\n\nchar* strconv(uint32_t num, int base) {\n\tstatic char Representation[] = \"0123456789ABCDEF\";\n\tstatic char buffer[50];\n\tchar *ptr;\n\n\tptr = &buffer[49];\n\t*ptr = '\\0';\n\n\tdo {\n\t\t*--ptr = Representation[num % base];\n\t\tnum /= base;\n\t} while (num != 0);\n\treturn (ptr);\n}\n\nuint32_t strlen(char* str) {\n\tuint32_t i = 0;\n\tfor (; str[i] != '\\0'; i++);\n\treturn i;\n}\n\nchar *strncat(char *dest, char *src, uint32_t n) {\n\tuint32_t dest_length = strlen(dest);\n\tuint32_t i;\n\n\tfor (i = 0; i < n && src[i] != '\\0'; i++) {\n\t\tdest[dest_length + i] = src[i];\n\t}\n\n\tdest[dest_length + i] = '\\0';\n\n\treturn dest;\n}\n\nchar *strcat(char *dest, char *src) {\n\treturn strncat(dest, src, strlen(src));\n}\n\nvoid vsprintf(char *str, char *format, va_list arg) {\n\tunsigned int i;\n\tunsigned int ZERO = 0;\n\tchar *s;\n\n\tint position = 0;\n\n\twhile (*format) {\n\n\t\tif (*format == '%') {\n\t\t\tformat++;\n\t\t\tswitch (*format) {\n\t\t\tcase 'c':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tstr[position] = i;\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\n\t\t\tcase 'd':\n\t\t\t\ti = va_arg(arg, int);\n\t\t\t\tif (i < ZERO) {\n\t\t\t\t\ti = -i;\n\t\t\t\t\tstr[position] = '-';\n\t\t\t\t}\n\t\t\t\tstrcat(str, strconv(i, 10));\n\t\t\t\tposition += strlen(strconv(i, 10));\n\n\t\t\t\tbreak;\n\n\t\t\tcase 'o':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 8));\n\t\t\t\tposition += strlen(strconv(i, 8));\n\t\t\t\tbreak;\n\n\t\t\tcase 's':\n\t\t\t\ts = va_arg(arg, char *);\n\t\t\t\tstrcat(str, s);\n\t\t\t\tposition += strlen(s);\n\t\t\t\tbreak;\n\n\t\t\tcase 'x':\n\t\t\t\ti = va_arg(arg, unsigned int);\n\t\t\t\tstrcat(str, strconv(i, 16));\n\t\t\t\tposition += strlen(strconv(i, 16));\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tstr[position] = '%';\n\t\t\t\tposition++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tstr[position] = *format;\n\t\t\tposition++;\n\t\t}\n\n\t\tformat++;\n\t}\n}\n"}
80,831
c
/* * Copyright 2003-2004 The Apache Software Foundation. * * 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. */ enum { BT_NONXML, /* 0: */ BT_MALFORM, /* 1: */ BT_LT, /* 2:less than */ BT_AMP, /* 3:ampersand */ BT_RSQB, /* 4: */ BT_LEAD2, /* 5: */ BT_LEAD3, /* 6: */ BT_LEAD4, /* 7: */ BT_TRAIL, /* 8: */ BT_CR, /* 9: */ BT_LF, /* 10:carriage return(new line) */ BT_GT, /* 11:greater than */ BT_QUOT, /* 12:double quote */ BT_APOS, /* 13:single quote */ BT_EQUALS, /* 14:equal sign */ BT_QUEST, /* 15:question mark(?) */ BT_EXCL, /* 16: */ BT_SOL, /* 17:slash */ BT_SEMI, /* 18: */ BT_NUM, /* 19: */ BT_LSQB, /* 20: */ BT_S, /* 21:space */ BT_NMSTRT, /* //22:_, */ BT_COLON, /*23:colon */ BT_HEX, /* 24:hexadecimal characters */ BT_DIGIT, /* 25:digit */ BT_NAME, /* 26:dot, */ BT_MINUS, /* 27:dash(minus sign) */ BT_OTHER, /*28: known not to be a name or name start character... for ex ` character */ BT_NONASCII, /* 29: might be a name or name start character */ BT_PERCNT, /* 30: */ BT_LPAR, /* 31: */ BT_RPAR, /* 32: */ BT_AST, /* 33: */ BT_PLUS, /* 34: */ BT_COMMA, /* 35: */ BT_VERBAR /* 36: */ }; #include <stddef.h>
31.56
57
(translation_unit) "/*\n * Copyright 2003-2004 The Apache Software Foundation.\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\nenum \n{\n BT_NONXML, /* 0: */\n BT_MALFORM, /* 1: */\n BT_LT, /* 2:less than */\n BT_AMP, /* 3:ampersand */\n BT_RSQB, /* 4: */\n BT_LEAD2, /* 5: */\n BT_LEAD3, /* 6: */\n BT_LEAD4, /* 7: */\n BT_TRAIL, /* 8: */\n BT_CR, /* 9: */\n BT_LF, /* 10:carriage return(new line) */\n BT_GT, /* 11:greater than */\n BT_QUOT, /* 12:double quote */\n BT_APOS, /* 13:single quote */\n BT_EQUALS, /* 14:equal sign */\n BT_QUEST, /* 15:question mark(?) */\n BT_EXCL, /* 16: */\n BT_SOL, /* 17:slash */\n BT_SEMI, /* 18: */\n BT_NUM, /* 19: */\n BT_LSQB, /* 20: */\n BT_S, /* 21:space */\n BT_NMSTRT, /* //22:_, */\n BT_COLON, /*23:colon */\n BT_HEX, /* 24:hexadecimal characters */\n BT_DIGIT, /* 25:digit */\n BT_NAME, /* 26:dot, */\n BT_MINUS, /* 27:dash(minus sign) */\n BT_OTHER, /*28: known not to be a name or name start character... for ex ` character */\n BT_NONASCII, /* 29: might be a name or name start character */\n BT_PERCNT, /* 30: */\n BT_LPAR, /* 31: */\n BT_RPAR, /* 32: */ \n BT_AST, /* 33: */\n BT_PLUS, /* 34: */ \n BT_COMMA, /* 35: */\n BT_VERBAR /* 36: */\n}; \n\n\n#include <stddef.h>\n\n\n" (comment) "/*\n * Copyright 2003-2004 The Apache Software Foundation.\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 */" (enum_specifier) "enum \n{\n BT_NONXML, /* 0: */\n BT_MALFORM, /* 1: */\n BT_LT, /* 2:less than */\n BT_AMP, /* 3:ampersand */\n BT_RSQB, /* 4: */\n BT_LEAD2, /* 5: */\n BT_LEAD3, /* 6: */\n BT_LEAD4, /* 7: */\n BT_TRAIL, /* 8: */\n BT_CR, /* 9: */\n BT_LF, /* 10:carriage return(new line) */\n BT_GT, /* 11:greater than */\n BT_QUOT, /* 12:double quote */\n BT_APOS, /* 13:single quote */\n BT_EQUALS, /* 14:equal sign */\n BT_QUEST, /* 15:question mark(?) */\n BT_EXCL, /* 16: */\n BT_SOL, /* 17:slash */\n BT_SEMI, /* 18: */\n BT_NUM, /* 19: */\n BT_LSQB, /* 20: */\n BT_S, /* 21:space */\n BT_NMSTRT, /* //22:_, */\n BT_COLON, /*23:colon */\n BT_HEX, /* 24:hexadecimal characters */\n BT_DIGIT, /* 25:digit */\n BT_NAME, /* 26:dot, */\n BT_MINUS, /* 27:dash(minus sign) */\n BT_OTHER, /*28: known not to be a name or name start character... for ex ` character */\n BT_NONASCII, /* 29: might be a name or name start character */\n BT_PERCNT, /* 30: */\n BT_LPAR, /* 31: */\n BT_RPAR, /* 32: */ \n BT_AST, /* 33: */\n BT_PLUS, /* 34: */ \n BT_COMMA, /* 35: */\n BT_VERBAR /* 36: */\n}" (enum) "enum" (enumerator_list) "{\n BT_NONXML, /* 0: */\n BT_MALFORM, /* 1: */\n BT_LT, /* 2:less than */\n BT_AMP, /* 3:ampersand */\n BT_RSQB, /* 4: */\n BT_LEAD2, /* 5: */\n BT_LEAD3, /* 6: */\n BT_LEAD4, /* 7: */\n BT_TRAIL, /* 8: */\n BT_CR, /* 9: */\n BT_LF, /* 10:carriage return(new line) */\n BT_GT, /* 11:greater than */\n BT_QUOT, /* 12:double quote */\n BT_APOS, /* 13:single quote */\n BT_EQUALS, /* 14:equal sign */\n BT_QUEST, /* 15:question mark(?) */\n BT_EXCL, /* 16: */\n BT_SOL, /* 17:slash */\n BT_SEMI, /* 18: */\n BT_NUM, /* 19: */\n BT_LSQB, /* 20: */\n BT_S, /* 21:space */\n BT_NMSTRT, /* //22:_, */\n BT_COLON, /*23:colon */\n BT_HEX, /* 24:hexadecimal characters */\n BT_DIGIT, /* 25:digit */\n BT_NAME, /* 26:dot, */\n BT_MINUS, /* 27:dash(minus sign) */\n BT_OTHER, /*28: known not to be a name or name start character... for ex ` character */\n BT_NONASCII, /* 29: might be a name or name start character */\n BT_PERCNT, /* 30: */\n BT_LPAR, /* 31: */\n BT_RPAR, /* 32: */ \n BT_AST, /* 33: */\n BT_PLUS, /* 34: */ \n BT_COMMA, /* 35: */\n BT_VERBAR /* 36: */\n}" ({) "{" (enumerator) "BT_NONXML" (identifier) "BT_NONXML" (,) "," (comment) "/* 0: */" (enumerator) "BT_MALFORM" (identifier) "BT_MALFORM" (,) "," (comment) "/* 1: */" (enumerator) "BT_LT" (identifier) "BT_LT" (,) "," (comment) "/* 2:less than */" (enumerator) "BT_AMP" (identifier) "BT_AMP" (,) "," (comment) "/* 3:ampersand */" (enumerator) "BT_RSQB" (identifier) "BT_RSQB" (,) "," (comment) "/* 4: */" (enumerator) "BT_LEAD2" (identifier) "BT_LEAD2" (,) "," (comment) "/* 5: */" (enumerator) "BT_LEAD3" (identifier) "BT_LEAD3" (,) "," (comment) "/* 6: */" (enumerator) "BT_LEAD4" (identifier) "BT_LEAD4" (,) "," (comment) "/* 7: */" (enumerator) "BT_TRAIL" (identifier) "BT_TRAIL" (,) "," (comment) "/* 8: */" (enumerator) "BT_CR" (identifier) "BT_CR" (,) "," (comment) "/* 9: */" (enumerator) "BT_LF" (identifier) "BT_LF" (,) "," (comment) "/* 10:carriage return(new line) */" (enumerator) "BT_GT" (identifier) "BT_GT" (,) "," (comment) "/* 11:greater than */" (enumerator) "BT_QUOT" (identifier) "BT_QUOT" (,) "," (comment) "/* 12:double quote */" (enumerator) "BT_APOS" (identifier) "BT_APOS" (,) "," (comment) "/* 13:single quote */" (enumerator) "BT_EQUALS" (identifier) "BT_EQUALS" (,) "," (comment) "/* 14:equal sign */" (enumerator) "BT_QUEST" (identifier) "BT_QUEST" (,) "," (comment) "/* 15:question mark(?) */" (enumerator) "BT_EXCL" (identifier) "BT_EXCL" (,) "," (comment) "/* 16: */" (enumerator) "BT_SOL" (identifier) "BT_SOL" (,) "," (comment) "/* 17:slash */" (enumerator) "BT_SEMI" (identifier) "BT_SEMI" (,) "," (comment) "/* 18: */" (enumerator) "BT_NUM" (identifier) "BT_NUM" (,) "," (comment) "/* 19: */" (enumerator) "BT_LSQB" (identifier) "BT_LSQB" (,) "," (comment) "/* 20: */" (enumerator) "BT_S" (identifier) "BT_S" (,) "," (comment) "/* 21:space */" (enumerator) "BT_NMSTRT" (identifier) "BT_NMSTRT" (,) "," (comment) "/* //22:_, */" (enumerator) "BT_COLON" (identifier) "BT_COLON" (,) "," (comment) "/*23:colon */" (enumerator) "BT_HEX" (identifier) "BT_HEX" (,) "," (comment) "/* 24:hexadecimal characters */" (enumerator) "BT_DIGIT" (identifier) "BT_DIGIT" (,) "," (comment) "/* 25:digit */" (enumerator) "BT_NAME" (identifier) "BT_NAME" (,) "," (comment) "/* 26:dot, */" (enumerator) "BT_MINUS" (identifier) "BT_MINUS" (,) "," (comment) "/* 27:dash(minus sign) */" (enumerator) "BT_OTHER" (identifier) "BT_OTHER" (,) "," (comment) "/*28: known not to be a name or name start character... for ex ` character */" (enumerator) "BT_NONASCII" (identifier) "BT_NONASCII" (,) "," (comment) "/* 29: might be a name or name start character */" (enumerator) "BT_PERCNT" (identifier) "BT_PERCNT" (,) "," (comment) "/* 30: */" (enumerator) "BT_LPAR" (identifier) "BT_LPAR" (,) "," (comment) "/* 31: */" (enumerator) "BT_RPAR" (identifier) "BT_RPAR" (,) "," (comment) "/* 32: */" (enumerator) "BT_AST" (identifier) "BT_AST" (,) "," (comment) "/* 33: */" (enumerator) "BT_PLUS" (identifier) "BT_PLUS" (,) "," (comment) "/* 34: */" (enumerator) "BT_COMMA" (identifier) "BT_COMMA" (,) "," (comment) "/* 35: */" (enumerator) "BT_VERBAR" (identifier) "BT_VERBAR" (comment) "/* 36: */" (}) "}" (;) ";" (preproc_include) "#include <stddef.h>\n" (#include) "#include" (system_lib_string) "<stddef.h>"
158
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 31.56, "nodes": 80, "errors": 0, "source_hash": "6c0f27e17aa57dec4950702a1acafef61bfbf11ecc97d333e68b97259d44ae56", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "enum_specifier", "text": "enum \n{\n BT_NONXML, /* 0: */\n BT_MALFORM, /* 1: */\n BT_LT, /* 2:less than */\n BT_AMP, /* 3:ampersand */\n BT_RSQB, /* 4: */\n BT_LEAD2, /* 5: */\n BT_LEAD3, /* 6: */\n BT_LEAD4, /* 7: */\n BT_TRAIL, /* 8: */\n BT_CR, /* 9: */\n BT_LF, /* 10:carriage return(new line) */\n BT_GT, /* 11:greater than */\n BT_QUOT, /* 12:double quote */\n BT_APOS, /* 13:single quote */\n BT_EQUALS, /* 14:equal sign */\n BT_QUEST, /* 15:question mark(?) */\n BT_EXCL, /* 16: */\n BT_SOL, /* 17:slash */\n BT_SEMI, /* 18: */\n BT_NUM, /* 19: */\n BT_LSQB, /* 20: */\n BT_S, /* 21:space */\n BT_NMSTRT, /* //22:_, */\n BT_COLON, /*23:colon */\n BT_HEX, /* 24:hexadecimal characters */\n BT_DIGIT, /* 25:digit */\n BT_NAME, /* 26:dot, */\n BT_MINUS, /* 27:dash(minus sign) */\n BT_OTHER, /*28: known not to be a name or name start character... for ex ` character */\n BT_NONASCII, /* 29: might be a name or name start character */\n BT_PERCNT, /* 30: */\n BT_LPAR, /* 31: */\n BT_RPAR, /* 32: */ \n BT_AST, /* 33: */\n BT_PLUS, /* 34: */ \n BT_COMMA, /* 35: */\n BT_VERBAR /* 36: */\n}", "parent": null, "children": [1, 2], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 1, "type": "enum", "text": "enum", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 2, "type": "enumerator_list", "text": "{\n BT_NONXML, /* 0: */\n BT_MALFORM, /* 1: */\n BT_LT, /* 2:less than */\n BT_AMP, /* 3:ampersand */\n BT_RSQB, /* 4: */\n BT_LEAD2, /* 5: */\n BT_LEAD3, /* 6: */\n BT_LEAD4, /* 7: */\n BT_TRAIL, /* 8: */\n BT_CR, /* 9: */\n BT_LF, /* 10:carriage return(new line) */\n BT_GT, /* 11:greater than */\n BT_QUOT, /* 12:double quote */\n BT_APOS, /* 13:single quote */\n BT_EQUALS, /* 14:equal sign */\n BT_QUEST, /* 15:question mark(?) */\n BT_EXCL, /* 16: */\n BT_SOL, /* 17:slash */\n BT_SEMI, /* 18: */\n BT_NUM, /* 19: */\n BT_LSQB, /* 20: */\n BT_S, /* 21:space */\n BT_NMSTRT, /* //22:_, */\n BT_COLON, /*23:colon */\n BT_HEX, /* 24:hexadecimal characters */\n BT_DIGIT, /* 25:digit */\n BT_NAME, /* 26:dot, */\n BT_MINUS, /* 27:dash(minus sign) */\n BT_OTHER, /*28: known not to be a name or name start character... for ex ` character */\n BT_NONASCII, /* 29: might be a name or name start character */\n BT_PERCNT, /* 30: */\n BT_LPAR, /* 31: */\n BT_RPAR, /* 32: */ \n BT_AST, /* 33: */\n BT_PLUS, /* 34: */ \n BT_COMMA, /* 35: */\n BT_VERBAR /* 36: */\n}", "parent": 0, "children": [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 3, "type": "enumerator", "text": "BT_NONXML", "parent": 2, "children": [4], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 11}}, {"id": 4, "type": "identifier", "text": "BT_NONXML", "parent": 3, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 11}}, {"id": 5, "type": "enumerator", "text": "BT_MALFORM", "parent": 2, "children": [6], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 12}}, {"id": 6, "type": "identifier", "text": "BT_MALFORM", "parent": 5, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 12}}, {"id": 7, "type": "enumerator", "text": "BT_LT", "parent": 2, "children": [8], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 7}}, {"id": 8, "type": "identifier", "text": "BT_LT", "parent": 7, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 7}}, {"id": 9, "type": "enumerator", "text": "BT_AMP", "parent": 2, "children": [10], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 10, "type": "identifier", "text": "BT_AMP", "parent": 9, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 11, "type": "enumerator", "text": "BT_RSQB", "parent": 2, "children": [12], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 12, "type": "identifier", "text": "BT_RSQB", "parent": 11, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 13, "type": "enumerator", "text": "BT_LEAD2", "parent": 2, "children": [14], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 10}}, {"id": 14, "type": "identifier", "text": "BT_LEAD2", "parent": 13, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 10}}, {"id": 15, "type": "enumerator", "text": "BT_LEAD3", "parent": 2, "children": [16], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 10}}, {"id": 16, "type": "identifier", "text": "BT_LEAD3", "parent": 15, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 10}}, {"id": 17, "type": "enumerator", "text": "BT_LEAD4", "parent": 2, "children": [18], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 10}}, {"id": 18, "type": "identifier", "text": "BT_LEAD4", "parent": 17, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 10}}, {"id": 19, "type": "enumerator", "text": "BT_TRAIL", "parent": 2, "children": [20], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 10}}, {"id": 20, "type": "identifier", "text": "BT_TRAIL", "parent": 19, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 10}}, {"id": 21, "type": "enumerator", "text": "BT_CR", "parent": 2, "children": [22], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 7}}, {"id": 22, "type": "identifier", "text": "BT_CR", "parent": 21, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 7}}, {"id": 23, "type": "enumerator", "text": "BT_LF", "parent": 2, "children": [24], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 7}}, {"id": 24, "type": "identifier", "text": "BT_LF", "parent": 23, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 7}}, {"id": 25, "type": "enumerator", "text": "BT_GT", "parent": 2, "children": [26], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 7}}, {"id": 26, "type": "identifier", "text": "BT_GT", "parent": 25, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 7}}, {"id": 27, "type": "enumerator", "text": "BT_QUOT", "parent": 2, "children": [28], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 28, "type": "identifier", "text": "BT_QUOT", "parent": 27, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 29, "type": "enumerator", "text": "BT_APOS", "parent": 2, "children": [30], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 30, "type": "identifier", "text": "BT_APOS", "parent": 29, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 31, "type": "enumerator", "text": "BT_EQUALS", "parent": 2, "children": [32], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 11}}, {"id": 32, "type": "identifier", "text": "BT_EQUALS", "parent": 31, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 11}}, {"id": 33, "type": "enumerator", "text": "BT_QUEST", "parent": 2, "children": [34], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 10}}, {"id": 34, "type": "identifier", "text": "BT_QUEST", "parent": 33, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 10}}, {"id": 35, "type": "enumerator", "text": "BT_EXCL", "parent": 2, "children": [36], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 9}}, {"id": 36, "type": "identifier", "text": "BT_EXCL", "parent": 35, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 9}}, {"id": 37, "type": "enumerator", "text": "BT_SOL", "parent": 2, "children": [38], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 38, "type": "identifier", "text": "BT_SOL", "parent": 37, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 39, "type": "enumerator", "text": "BT_SEMI", "parent": 2, "children": [40], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 40, "type": "identifier", "text": "BT_SEMI", "parent": 39, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 41, "type": "enumerator", "text": "BT_NUM", "parent": 2, "children": [42], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 8}}, {"id": 42, "type": "identifier", "text": "BT_NUM", "parent": 41, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 8}}, {"id": 43, "type": "enumerator", "text": "BT_LSQB", "parent": 2, "children": [44], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 9}}, {"id": 44, "type": "identifier", "text": "BT_LSQB", "parent": 43, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 9}}, {"id": 45, "type": "enumerator", "text": "BT_S", "parent": 2, "children": [46], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 6}}, {"id": 46, "type": "identifier", "text": "BT_S", "parent": 45, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 6}}, {"id": 47, "type": "enumerator", "text": "BT_NMSTRT", "parent": 2, "children": [48], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 11}}, {"id": 48, "type": "identifier", "text": "BT_NMSTRT", "parent": 47, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 11}}, {"id": 49, "type": "enumerator", "text": "BT_COLON", "parent": 2, "children": [50], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 10}}, {"id": 50, "type": "identifier", "text": "BT_COLON", "parent": 49, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 10}}, {"id": 51, "type": "enumerator", "text": "BT_HEX", "parent": 2, "children": [52], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 8}}, {"id": 52, "type": "identifier", "text": "BT_HEX", "parent": 51, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 8}}, {"id": 53, "type": "enumerator", "text": "BT_DIGIT", "parent": 2, "children": [54], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 10}}, {"id": 54, "type": "identifier", "text": "BT_DIGIT", "parent": 53, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 10}}, {"id": 55, "type": "enumerator", "text": "BT_NAME", "parent": 2, "children": [56], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 9}}, {"id": 56, "type": "identifier", "text": "BT_NAME", "parent": 55, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 9}}, {"id": 57, "type": "enumerator", "text": "BT_MINUS", "parent": 2, "children": [58], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 10}}, {"id": 58, "type": "identifier", "text": "BT_MINUS", "parent": 57, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 10}}, {"id": 59, "type": "enumerator", "text": "BT_OTHER", "parent": 2, "children": [60], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 10}}, {"id": 60, "type": "identifier", "text": "BT_OTHER", "parent": 59, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 10}}, {"id": 61, "type": "enumerator", "text": "BT_NONASCII", "parent": 2, "children": [62], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 13}}, {"id": 62, "type": "identifier", "text": "BT_NONASCII", "parent": 61, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 13}}, {"id": 63, "type": "enumerator", "text": "BT_PERCNT", "parent": 2, "children": [64], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 11}}, {"id": 64, "type": "identifier", "text": "BT_PERCNT", "parent": 63, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 11}}, {"id": 65, "type": "enumerator", "text": "BT_LPAR", "parent": 2, "children": [66], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 9}}, {"id": 66, "type": "identifier", "text": "BT_LPAR", "parent": 65, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 9}}, {"id": 67, "type": "enumerator", "text": "BT_RPAR", "parent": 2, "children": [68], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 68, "type": "identifier", "text": "BT_RPAR", "parent": 67, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 69, "type": "enumerator", "text": "BT_AST", "parent": 2, "children": [70], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 8}}, {"id": 70, "type": "identifier", "text": "BT_AST", "parent": 69, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 8}}, {"id": 71, "type": "enumerator", "text": "BT_PLUS", "parent": 2, "children": [72], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 9}}, {"id": 72, "type": "identifier", "text": "BT_PLUS", "parent": 71, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 9}}, {"id": 73, "type": "enumerator", "text": "BT_COMMA", "parent": 2, "children": [74], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 10}}, {"id": 74, "type": "identifier", "text": "BT_COMMA", "parent": 73, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 10}}, {"id": 75, "type": "enumerator", "text": "BT_VERBAR", "parent": 2, "children": [76], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 11}}, {"id": 76, "type": "identifier", "text": "BT_VERBAR", "parent": 75, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 11}}, {"id": 77, "type": "preproc_include", "text": "#include <stddef.h>\n", "parent": null, "children": [78, 79], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 78, "type": "#include", "text": "#include", "parent": 77, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 8}}, {"id": 79, "type": "system_lib_string", "text": "<stddef.h>", "parent": 77, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 19}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [77, 78], "modules": [], "enums": [0, 1, 2, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [79], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 77, "text": "#include <stddef.h>\n"}, {"node_id": 78, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2003-2004 The Apache Software Foundation.\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\nenum \n{\n BT_NONXML, /* 0: */\n BT_MALFORM, /* 1: */\n BT_LT, /* 2:less than */\n BT_AMP, /* 3:ampersand */\n BT_RSQB, /* 4: */\n BT_LEAD2, /* 5: */\n BT_LEAD3, /* 6: */\n BT_LEAD4, /* 7: */\n BT_TRAIL, /* 8: */\n BT_CR, /* 9: */\n BT_LF, /* 10:carriage return(new line) */\n BT_GT, /* 11:greater than */\n BT_QUOT, /* 12:double quote */\n BT_APOS, /* 13:single quote */\n BT_EQUALS, /* 14:equal sign */\n BT_QUEST, /* 15:question mark(?) */\n BT_EXCL, /* 16: */\n BT_SOL, /* 17:slash */\n BT_SEMI, /* 18: */\n BT_NUM, /* 19: */\n BT_LSQB, /* 20: */\n BT_S, /* 21:space */\n BT_NMSTRT, /* //22:_, */\n BT_COLON, /*23:colon */\n BT_HEX, /* 24:hexadecimal characters */\n BT_DIGIT, /* 25:digit */\n BT_NAME, /* 26:dot, */\n BT_MINUS, /* 27:dash(minus sign) */\n BT_OTHER, /*28: known not to be a name or name start character... for ex ` character */\n BT_NONASCII, /* 29: might be a name or name start character */\n BT_PERCNT, /* 30: */\n BT_LPAR, /* 31: */\n BT_RPAR, /* 32: */ \n BT_AST, /* 33: */\n BT_PLUS, /* 34: */ \n BT_COMMA, /* 35: */\n BT_VERBAR /* 36: */\n}; \n\n\n#include <stddef.h>\n\n\n"}
80,832
c
// Copyright 2004-present Facebook. All Rights Reserved. // // You are hereby granted a non-exclusive, worldwide, royalty-free license to use, // copy, modify, and distribute this software in source code or binary form for use // in connection with the web services and APIs provided by Facebook. // // As with any software that integrates with the Facebook platform, your use of // this software is subject to the Facebook Developer Principles and Policies // [http://developers.facebook.com/policy/]. This copyright notice shall be // included in all copies or substantial portions of the software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #import <Foundation/Foundation.h> #import <FBAudienceNetwork/FBAdDefines.h> NS_ASSUME_NONNULL_BEGIN /** Audience Network error domain (returned in NSErrors generated by the SDK) */ FB_EXPORT NSString * const FBAudienceNetworkErrorDomain; typedef NS_ENUM(NSInteger, FBAdLogLevel) { FBAdLogLevelNone, FBAdLogLevelNotification, FBAdLogLevelError, FBAdLogLevelWarning, FBAdLogLevelLog, FBAdLogLevelDebug, FBAdLogLevelVerbose }; typedef NS_ENUM(NSInteger, FBMediaViewRenderingMethod) { FBMediaViewRenderingMethodDefault, FBMediaViewRenderingMethodMetal, FBMediaViewRenderingMethodOpenGL, FBMediaViewRenderingMethodSoftware }; /** AdSettings contains global settings for all ad controls. */ FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED @interface FBAdSettings : NSObject /** Returns test mode on/off. */ + (BOOL)isTestMode; /** Returns the hashid of the device to use test mode on. */ + (NSString *)testDeviceHash; /** Adds a test device. - Parameter deviceHash: The id of the device to use test mode, can be obtained from debug log or testDeviceHash Copy the current device Id from debug log and add it as a test device to get test ads. Apps running on emulator will automatically get test ads. Test devices should be added before loadAd is called. */ + (void)addTestDevice:(NSString *)deviceHash; /** Add a collection of test devices. See `+addTestDevices:` for details. - Parameter devicesHash: The array of the device id to use test mode, can be obtained from debug log or testDeviceHash */ + (void)addTestDevices:(FB_NSArrayOf(NSString *)*)devicesHash; /** Clear all the added test devices */ + (void)clearTestDevices; /** Clears the added test device - Parameter deviceHash: The id of the device using test mode, can be obtained from debug log or testDeviceHash */ + (void)clearTestDevice:(NSString *)deviceHash; /** Configures the ad control for treatment as child-directed. - Parameter isChildDirected: Indicates whether you would like your ad control to be treated as child-directed Note that you may have other legal obligations under the Children's Online Privacy Protection Act (COPPA). Please review the FTC's guidance and consult with your own legal counsel. */ + (void)setIsChildDirected:(BOOL)isChildDirected; /** If an ad provided service is mediating Audience Network in their sdk, it is required to set the name of the mediation service - Parameter service: Representing the name of the mediation that is mediation Audience Network */ + (void)setMediationService:(NSString *)service; /** Gets the url prefix to use when making ad requests. This method should never be used in production. */ + (NSString *)urlPrefix; /** Sets the url prefix to use when making ad requests. This method should never be used in production. */ + (void)setUrlPrefix:(NSString *) urlPrefix; /** Gets the current SDK logging level */ + (FBAdLogLevel)getLogLevel; /** Sets the current SDK logging level */ + (void)setLogLevel:(FBAdLogLevel)level; /** Gets the FBMediaView rendering method */ + (FBMediaViewRenderingMethod)mediaViewRenderingMethod; /** Sets the FBMediaView rendering method - Parameter mediaViewRenderingMethod: FBMediaViewRenderingMethodDefault: SDK chooses optimized rendering method FBMediaViewRenderingMethodMetal: use Metal kit rendering method FBMediaViewRenderingMethodOpenGL: use OpenGL rendering method FBMediaViewRenderingMethodSoftware: use software rendering method */ + (void)setMediaViewRenderingMethod:(FBMediaViewRenderingMethod)mediaViewRenderingMethod; @end NS_ASSUME_NONNULL_END
37.57
122
(translation_unit) "// Copyright 2004-present Facebook. All Rights Reserved.\n//\n// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,\n// copy, modify, and distribute this software in source code or binary form for use\n// in connection with the web services and APIs provided by Facebook.\n//\n// As with any software that integrates with the Facebook platform, your use of\n// this software is subject to the Facebook Developer Principles and Policies\n// [http://developers.facebook.com/policy/]. This copyright 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, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <FBAudienceNetwork/FBAdDefines.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n Audience Network error domain (returned in NSErrors generated by the SDK)\n */\nFB_EXPORT NSString * const FBAudienceNetworkErrorDomain;\n\ntypedef NS_ENUM(NSInteger, FBAdLogLevel) {\n FBAdLogLevelNone,\n FBAdLogLevelNotification,\n FBAdLogLevelError,\n FBAdLogLevelWarning,\n FBAdLogLevelLog,\n FBAdLogLevelDebug,\n FBAdLogLevelVerbose\n};\n\ntypedef NS_ENUM(NSInteger, FBMediaViewRenderingMethod) {\n FBMediaViewRenderingMethodDefault,\n FBMediaViewRenderingMethodMetal,\n FBMediaViewRenderingMethodOpenGL,\n FBMediaViewRenderingMethodSoftware\n};\n\n/**\n AdSettings contains global settings for all ad controls.\n */\nFB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED\n@interface FBAdSettings : NSObject\n\n/**\n Returns test mode on/off.\n */\n+ (BOOL)isTestMode;\n\n/**\n Returns the hashid of the device to use test mode on.\n */\n+ (NSString *)testDeviceHash;\n\n/**\n Adds a test device.\n\n - Parameter deviceHash: The id of the device to use test mode, can be obtained from debug log or testDeviceHash\n\n\n\n Copy the current device Id from debug log and add it as a test device to get test ads. Apps\n running on emulator will automatically get test ads. Test devices should be added before loadAd is called.\n */\n+ (void)addTestDevice:(NSString *)deviceHash;\n\n/**\n Add a collection of test devices. See `+addTestDevices:` for details.\n\n - Parameter devicesHash: The array of the device id to use test mode, can be obtained from debug log or testDeviceHash\n */\n+ (void)addTestDevices:(FB_NSArrayOf(NSString *)*)devicesHash;\n\n/**\n Clear all the added test devices\n */\n+ (void)clearTestDevices;\n\n/**\n Clears the added test device\n\n - Parameter deviceHash: The id of the device using test mode, can be obtained from debug log or testDeviceHash\n */\n+ (void)clearTestDevice:(NSString *)deviceHash;\n\n/**\n Configures the ad control for treatment as child-directed.\n\n - Parameter isChildDirected: Indicates whether you would like your ad control to be treated as child-directed\n\n\n\n Note that you may have other legal obligations under the Children's Online Privacy Protection Act (COPPA).\n Please review the FTC's guidance and consult with your own legal counsel.\n */\n+ (void)setIsChildDirected:(BOOL)isChildDirected;\n\n/**\n If an ad provided service is mediating Audience Network in their sdk, it is required to set the name of the mediation service\n\n - Parameter service: Representing the name of the mediation that is mediation Audience Network\n */\n+ (void)setMediationService:(NSString *)service;\n\n/**\n Gets the url prefix to use when making ad requests.\n\n\n\n This method should never be used in production.\n */\n+ (NSString *)urlPrefix;\n\n/**\n Sets the url prefix to use when making ad requests.\n\n\n\n This method should never be used in production.\n */\n+ (void)setUrlPrefix:(NSString *) urlPrefix;\n\n/**\n Gets the current SDK logging level\n */\n+ (FBAdLogLevel)getLogLevel;\n\n/**\n Sets the current SDK logging level\n */\n+ (void)setLogLevel:(FBAdLogLevel)level;\n\n/**\n Gets the FBMediaView rendering method\n */\n+ (FBMediaViewRenderingMethod)mediaViewRenderingMethod;\n\n/**\n Sets the FBMediaView rendering method\n - Parameter mediaViewRenderingMethod:\n FBMediaViewRenderingMethodDefault: SDK chooses optimized rendering method\n FBMediaViewRenderingMethodMetal: use Metal kit rendering method\n FBMediaViewRenderingMethodOpenGL: use OpenGL rendering method\n FBMediaViewRenderingMethodSoftware: use software rendering method\n */\n+ (void)setMediaViewRenderingMethod:(FBMediaViewRenderingMethod)mediaViewRenderingMethod;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "// Copyright 2004-present Facebook. All Rights Reserved." (comment) "//" (comment) "// You are hereby granted a non-exclusive, worldwide, royalty-free license to use," (comment) "// copy, modify, and distribute this software in source code or binary form for use" (comment) "// in connection with the web services and APIs provided by Facebook." (comment) "//" (comment) "// As with any software that integrates with the Facebook platform, your use of" (comment) "// this software is subject to the Facebook Developer Principles and Policies" (comment) "// [http://developers.facebook.com/policy/]. This copyright notice shall be" (comment) "// included in all copies or substantial portions of the software." (comment) "//" (comment) "// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" (comment) "// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS" (comment) "// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR" (comment) "// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER" (comment) "// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN" (comment) "// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import <FBAudienceNetwork/FBAdDefines.h>\n" (preproc_directive) "#import" (preproc_arg) "<FBAudienceNetwork/FBAdDefines.h>" (declaration) "NS_ASSUME_NONNULL_BEGIN\n\n/**\n Audience Network error domain (returned in NSErrors generated by the SDK)\n */\nFB_EXPORT" (type_identifier) "NS_ASSUME_NONNULL_BEGIN" (comment) "/**\n Audience Network error domain (returned in NSErrors generated by the SDK)\n */" (identifier) "FB_EXPORT" (;) "" (declaration) "NSString * const FBAudienceNetworkErrorDomain;" (type_identifier) "NSString" (pointer_declarator) "* const FBAudienceNetworkErrorDomain" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "FBAudienceNetworkErrorDomain" (;) ";" (type_definition) "typedef NS_ENUM(NSInteger, FBAdLogLevel) {\n FBAdLogLevelNone,\n FBAdLogLevelNotification,\n FBAdLogLevelError,\n FBAdLogLevelWarning,\n FBAdLogLevelLog,\n FBAdLogLevelDebug,\n FBAdLogLevelVerbose\n};" (typedef) "typedef" (macro_type_specifier) "NS_ENUM(NSInteger, FBAdLogLevel)" (identifier) "NS_ENUM" (() "(" (ERROR) "NSInteger," (type_descriptor) "NSInteger" (type_identifier) "NSInteger" (,) "," (type_descriptor) "FBAdLogLevel" (type_identifier) "FBAdLogLevel" ()) ")" (ERROR) "{" ({) "{" (type_identifier) "FBAdLogLevelNone" (,) "," (type_identifier) "FBAdLogLevelNotification" (,) "," (type_identifier) "FBAdLogLevelError" (,) "," (type_identifier) "FBAdLogLevelWarning" (,) "," (type_identifier) "FBAdLogLevelLog" (,) "," (type_identifier) "FBAdLogLevelDebug" (,) "," (type_identifier) "FBAdLogLevelVerbose" (ERROR) "}" (}) "}" (;) ";" (type_definition) "typedef NS_ENUM(NSInteger, FBMediaViewRenderingMethod) {\n FBMediaViewRenderingMethodDefault,\n FBMediaViewRenderingMethodMetal,\n FBMediaViewRenderingMethodOpenGL,\n FBMediaViewRenderingMethodSoftware\n};" (typedef) "typedef" (macro_type_specifier) "NS_ENUM(NSInteger, FBMediaViewRenderingMethod)" (identifier) "NS_ENUM" (() "(" (ERROR) "NSInteger," (type_descriptor) "NSInteger" (type_identifier) "NSInteger" (,) "," (type_descriptor) "FBMediaViewRenderingMethod" (type_identifier) "FBMediaViewRenderingMethod" ()) ")" (ERROR) "{" ({) "{" (type_identifier) "FBMediaViewRenderingMethodDefault" (,) "," (type_identifier) "FBMediaViewRenderingMethodMetal" (,) "," (type_identifier) "FBMediaViewRenderingMethodOpenGL" (,) "," (type_identifier) "FBMediaViewRenderingMethodSoftware" (ERROR) "}" (}) "}" (;) ";" (comment) "/**\n AdSettings contains global settings for all ad controls.\n */" (ERROR) "FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED\n@interface FBAdSettings : NSObject" (type_identifier) "FB_CLASS_EXPORT" (identifier) "FB_SUBCLASSING_RESTRICTED" (ERROR) "@" (identifier) "interface" (identifier) "FBAdSettings" (:) ":" (identifier) "NSObject" (comment) "/**\n Returns test mode on/off.\n */" (expression_statement) "+ (BOOL)isTestMode;" (unary_expression) "+ (BOOL)isTestMode" (+) "+" (cast_expression) "(BOOL)isTestMode" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isTestMode" (;) ";" (comment) "/**\n Returns the hashid of the device to use test mode on.\n */" (expression_statement) "+ (NSString *)testDeviceHash;" (unary_expression) "+ (NSString *)testDeviceHash" (+) "+" (cast_expression) "(NSString *)testDeviceHash" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "testDeviceHash" (;) ";" (comment) "/**\n Adds a test device.\n\n - Parameter deviceHash: The id of the device to use test mode, can be obtained from debug log or testDeviceHash\n\n\n\n Copy the current device Id from debug log and add it as a test device to get test ads. Apps\n running on emulator will automatically get test ads. Test devices should be added before loadAd is called.\n */" (expression_statement) "+ (void)addTestDevice:(NSString *)deviceHash;" (update_expression) "+ (void)addTestDevice:(NSString *)deviceHash" (binary_expression) "+ (void)addTestDevice:(NSString *)deviceHash" (unary_expression) "+ (void)addTestDevice" (+) "+" (cast_expression) "(void)addTestDevice" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addTestDevice" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "deviceHash" (--) "" (;) ";" (comment) "/**\n Add a collection of test devices. See `+addTestDevices:` for details.\n\n - Parameter devicesHash: The array of the device id to use test mode, can be obtained from debug log or testDeviceHash\n */" (ERROR) "+ (void)addTestDevices:(" (unary_expression) "+ (void)addTestDevices" (+) "+" (cast_expression) "(void)addTestDevices" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addTestDevices" (:) ":" (() "(" (declaration) "FB_NSArrayOf(NSString *)*)devicesHash;" (macro_type_specifier) "FB_NSArrayOf(NSString *)" (identifier) "FB_NSArrayOf" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_declarator) "*)devicesHash" (*) "*" (ERROR) ")" ()) ")" (identifier) "devicesHash" (;) ";" (comment) "/**\n Clear all the added test devices\n */" (expression_statement) "+ (void)clearTestDevices;" (unary_expression) "+ (void)clearTestDevices" (+) "+" (cast_expression) "(void)clearTestDevices" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "clearTestDevices" (;) ";" (comment) "/**\n Clears the added test device\n\n - Parameter deviceHash: The id of the device using test mode, can be obtained from debug log or testDeviceHash\n */" (expression_statement) "+ (void)clearTestDevice:(NSString *)deviceHash;" (update_expression) "+ (void)clearTestDevice:(NSString *)deviceHash" (binary_expression) "+ (void)clearTestDevice:(NSString *)deviceHash" (unary_expression) "+ (void)clearTestDevice" (+) "+" (cast_expression) "(void)clearTestDevice" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "clearTestDevice" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "deviceHash" (--) "" (;) ";" (comment) "/**\n Configures the ad control for treatment as child-directed.\n\n - Parameter isChildDirected: Indicates whether you would like your ad control to be treated as child-directed\n\n\n\n Note that you may have other legal obligations under the Children's Online Privacy Protection Act (COPPA).\n Please review the FTC's guidance and consult with your own legal counsel.\n */" (expression_statement) "+ (void)setIsChildDirected:(BOOL)isChildDirected;" (unary_expression) "+ (void)setIsChildDirected" (+) "+" (cast_expression) "(void)setIsChildDirected" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setIsChildDirected" (ERROR) ":(BOOL)isChildDirected" (:) ":" (() "(" (identifier) "BOOL" ()) ")" (identifier) "isChildDirected" (;) ";" (comment) "/**\n If an ad provided service is mediating Audience Network in their sdk, it is required to set the name of the mediation service\n\n - Parameter service: Representing the name of the mediation that is mediation Audience Network\n */" (expression_statement) "+ (void)setMediationService:(NSString *)service;" (update_expression) "+ (void)setMediationService:(NSString *)service" (binary_expression) "+ (void)setMediationService:(NSString *)service" (unary_expression) "+ (void)setMediationService" (+) "+" (cast_expression) "(void)setMediationService" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setMediationService" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "service" (--) "" (;) ";" (comment) "/**\n Gets the url prefix to use when making ad requests.\n\n\n\n This method should never be used in production.\n */" (expression_statement) "+ (NSString *)urlPrefix;" (unary_expression) "+ (NSString *)urlPrefix" (+) "+" (cast_expression) "(NSString *)urlPrefix" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "urlPrefix" (;) ";" (comment) "/**\n Sets the url prefix to use when making ad requests.\n\n\n\n This method should never be used in production.\n */" (expression_statement) "+ (void)setUrlPrefix:(NSString *) urlPrefix;" (update_expression) "+ (void)setUrlPrefix:(NSString *) urlPrefix" (binary_expression) "+ (void)setUrlPrefix:(NSString *) urlPrefix" (unary_expression) "+ (void)setUrlPrefix" (+) "+" (cast_expression) "(void)setUrlPrefix" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setUrlPrefix" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "urlPrefix" (--) "" (;) ";" (comment) "/**\n Gets the current SDK logging level\n */" (expression_statement) "+ (FBAdLogLevel)getLogLevel;" (unary_expression) "+ (FBAdLogLevel)getLogLevel" (+) "+" (cast_expression) "(FBAdLogLevel)getLogLevel" (() "(" (type_descriptor) "FBAdLogLevel" (type_identifier) "FBAdLogLevel" ()) ")" (identifier) "getLogLevel" (;) ";" (comment) "/**\n Sets the current SDK logging level\n */" (expression_statement) "+ (void)setLogLevel:(FBAdLogLevel)level;" (unary_expression) "+ (void)setLogLevel" (+) "+" (cast_expression) "(void)setLogLevel" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setLogLevel" (ERROR) ":(FBAdLogLevel)level" (:) ":" (() "(" (identifier) "FBAdLogLevel" ()) ")" (identifier) "level" (;) ";" (comment) "/**\n Gets the FBMediaView rendering method\n */" (expression_statement) "+ (FBMediaViewRenderingMethod)mediaViewRenderingMethod;" (unary_expression) "+ (FBMediaViewRenderingMethod)mediaViewRenderingMethod" (+) "+" (cast_expression) "(FBMediaViewRenderingMethod)mediaViewRenderingMethod" (() "(" (type_descriptor) "FBMediaViewRenderingMethod" (type_identifier) "FBMediaViewRenderingMethod" ()) ")" (identifier) "mediaViewRenderingMethod" (;) ";" (comment) "/**\n Sets the FBMediaView rendering method\n - Parameter mediaViewRenderingMethod:\n FBMediaViewRenderingMethodDefault: SDK chooses optimized rendering method\n FBMediaViewRenderingMethodMetal: use Metal kit rendering method\n FBMediaViewRenderingMethodOpenGL: use OpenGL rendering method\n FBMediaViewRenderingMethodSoftware: use software rendering method\n */" (expression_statement) "+ (void)setMediaViewRenderingMethod:(FBMediaViewRenderingMethod)mediaViewRenderingMethod;" (unary_expression) "+ (void)setMediaViewRenderingMethod" (+) "+" (cast_expression) "(void)setMediaViewRenderingMethod" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setMediaViewRenderingMethod" (ERROR) ":(FBMediaViewRenderingMethod)mediaViewRenderingMethod" (:) ":" (() "(" (identifier) "FBMediaViewRenderingMethod" ()) ")" (identifier) "mediaViewRenderingMethod" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\n\nNS_ASSUME_NONNULL_END" (type_identifier) "end" (identifier) "NS_ASSUME_NONNULL_END" (;) ""
342
23
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 37.57, "nodes": 190, "errors": 0, "source_hash": "190fc4f81054e5619a7d8e7c9d393b0ee459fc539cfb3426cfb39e66438d58fc", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "#import <FBAudienceNetwork/FBAdDefines.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "<FBAudienceNetwork/FBAdDefines.h>", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 41}}, {"id": 6, "type": "declaration", "text": "NS_ASSUME_NONNULL_BEGIN\n\n/**\n Audience Network error domain (returned in NSErrors generated by the SDK)\n */\nFB_EXPORT", "parent": null, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 27, "column": 9}}, {"id": 7, "type": "type_identifier", "text": "NS_ASSUME_NONNULL_BEGIN", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 23}}, {"id": 8, "type": "identifier", "text": "FB_EXPORT", "parent": 6, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 9}}, {"id": 9, "type": "declaration", "text": "NSString * const FBAudienceNetworkErrorDomain;", "parent": null, "children": [10, 11], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 56}}, {"id": 10, "type": "type_identifier", "text": "NSString", "parent": 9, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 18}}, {"id": 11, "type": "pointer_declarator", "text": "* const FBAudienceNetworkErrorDomain", "parent": 9, "children": [12, 13], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 55}}, {"id": 12, "type": "*", "text": "*", "parent": 11, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 13, "type": "identifier", "text": "FBAudienceNetworkErrorDomain", "parent": 11, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 55}}, {"id": 14, "type": "type_definition", "text": "typedef NS_ENUM(NSInteger, FBAdLogLevel) {\n FBAdLogLevelNone,\n FBAdLogLevelNotification,\n FBAdLogLevelError,\n FBAdLogLevelWarning,\n FBAdLogLevelLog,\n FBAdLogLevelDebug,\n FBAdLogLevelVerbose\n};", "parent": null, "children": [15, 16, 23, 24, 25, 26, 27, 28, 29], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 37, "column": 2}}, {"id": 15, "type": "typedef", "text": "typedef", "parent": 14, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 16, "type": "macro_type_specifier", "text": "NS_ENUM(NSInteger, FBAdLogLevel)", "parent": 14, "children": [17, 18, 21], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 40}}, {"id": 17, "type": "identifier", "text": "NS_ENUM", "parent": 16, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 15}}, {"id": 18, "type": "ERROR", "text": "NSInteger,", "parent": 16, "children": [19], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 26}}, {"id": 19, "type": "type_descriptor", "text": "NSInteger", "parent": 18, "children": [20], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 25}}, {"id": 20, "type": "type_identifier", "text": "NSInteger", "parent": 19, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 25}}, {"id": 21, "type": "type_descriptor", "text": "FBAdLogLevel", "parent": 16, "children": [22], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 39}}, {"id": 22, "type": "type_identifier", "text": "FBAdLogLevel", "parent": 21, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 39}}, {"id": 23, "type": "type_identifier", "text": "FBAdLogLevelNone", "parent": 14, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 20}}, {"id": 24, "type": "type_identifier", "text": "FBAdLogLevelNotification", "parent": 14, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 28}}, {"id": 25, "type": "type_identifier", "text": "FBAdLogLevelError", "parent": 14, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 21}}, {"id": 26, "type": "type_identifier", "text": "FBAdLogLevelWarning", "parent": 14, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 23}}, {"id": 27, "type": "type_identifier", "text": "FBAdLogLevelLog", "parent": 14, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 19}}, {"id": 28, "type": "type_identifier", "text": "FBAdLogLevelDebug", "parent": 14, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 21}}, {"id": 29, "type": "type_identifier", "text": "FBAdLogLevelVerbose", "parent": 14, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 23}}, {"id": 30, "type": "type_definition", "text": "typedef NS_ENUM(NSInteger, FBMediaViewRenderingMethod) {\n FBMediaViewRenderingMethodDefault,\n FBMediaViewRenderingMethodMetal,\n FBMediaViewRenderingMethodOpenGL,\n FBMediaViewRenderingMethodSoftware\n};", "parent": null, "children": [31, 32, 39, 40, 41, 42], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 44, "column": 2}}, {"id": 31, "type": "typedef", "text": "typedef", "parent": 30, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 32, "type": "macro_type_specifier", "text": "NS_ENUM(NSInteger, FBMediaViewRenderingMethod)", "parent": 30, "children": [33, 34, 37], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 54}}, {"id": 33, "type": "identifier", "text": "NS_ENUM", "parent": 32, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 15}}, {"id": 34, "type": "ERROR", "text": "NSInteger,", "parent": 32, "children": [35], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 26}}, {"id": 35, "type": "type_descriptor", "text": "NSInteger", "parent": 34, "children": [36], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 25}}, {"id": 36, "type": "type_identifier", "text": "NSInteger", "parent": 35, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 25}}, {"id": 37, "type": "type_descriptor", "text": "FBMediaViewRenderingMethod", "parent": 32, "children": [38], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 53}}, {"id": 38, "type": "type_identifier", "text": "FBMediaViewRenderingMethod", "parent": 37, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 53}}, {"id": 39, "type": "type_identifier", "text": "FBMediaViewRenderingMethodDefault", "parent": 30, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 37}}, {"id": 40, "type": "type_identifier", "text": "FBMediaViewRenderingMethodMetal", "parent": 30, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 35}}, {"id": 41, "type": "type_identifier", "text": "FBMediaViewRenderingMethodOpenGL", "parent": 30, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 36}}, {"id": 42, "type": "type_identifier", "text": "FBMediaViewRenderingMethodSoftware", "parent": 30, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 38}}, {"id": 43, "type": "ERROR", "text": "FB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED\n@interface FBAdSettings : NSObject", "parent": null, "children": [44, 45, 46, 47, 48, 49], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 34}}, {"id": 44, "type": "type_identifier", "text": "FB_CLASS_EXPORT", "parent": 43, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 15}}, {"id": 45, "type": "identifier", "text": "FB_SUBCLASSING_RESTRICTED", "parent": 43, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 41}}, {"id": 46, "type": "ERROR", "text": "@", "parent": 43, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 47, "type": "identifier", "text": "interface", "parent": 43, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 10}}, {"id": 48, "type": "identifier", "text": "FBAdSettings", "parent": 43, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 23}}, {"id": 49, "type": "identifier", "text": "NSObject", "parent": 43, "children": [], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 34}}, {"id": 50, "type": "unary_expression", "text": "+ (BOOL)isTestMode", "parent": null, "children": [51, 52], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 18}}, {"id": 51, "type": "+", "text": "+", "parent": 50, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 52, "type": "cast_expression", "text": "(BOOL)isTestMode", "parent": 50, "children": [53, 55], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 18}}, {"id": 53, "type": "type_descriptor", "text": "BOOL", "parent": 52, "children": [54], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 7}}, {"id": 54, "type": "type_identifier", "text": "BOOL", "parent": 53, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 7}}, {"id": 55, "type": "identifier", "text": "isTestMode", "parent": 52, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 18}}, {"id": 56, "type": "unary_expression", "text": "+ (NSString *)testDeviceHash", "parent": null, "children": [57, 58], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 28}}, {"id": 57, "type": "+", "text": "+", "parent": 56, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 58, "type": "cast_expression", "text": "(NSString *)testDeviceHash", "parent": 56, "children": [59, 63], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 28}}, {"id": 59, "type": "type_descriptor", "text": "NSString *", "parent": 58, "children": [60, 61], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 13}}, {"id": 60, "type": "type_identifier", "text": "NSString", "parent": 59, "children": [], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 11}}, {"id": 61, "type": "abstract_pointer_declarator", "text": "*", "parent": 59, "children": [62], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 63, "type": "identifier", "text": "testDeviceHash", "parent": 58, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 28}}, {"id": 64, "type": "update_expression", "text": "+ (void)addTestDevice:(NSString *)deviceHash", "parent": null, "children": [65, 76], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 44}}, {"id": 65, "type": "binary_expression", "text": "+ (void)addTestDevice:(NSString *)deviceHash", "parent": 64, "children": [66, 72, 74, 75], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 44}}, {"id": 66, "type": "unary_expression", "text": "+ (void)addTestDevice", "parent": 65, "children": [67, 68], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 21}}, {"id": 67, "type": "+", "text": "+", "parent": 66, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 68, "type": "cast_expression", "text": "(void)addTestDevice", "parent": 66, "children": [69, 71], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 21}}, {"id": 69, "type": "type_descriptor", "text": "void", "parent": 68, "children": [70], "start_point": {"row": 72, "column": 3}, "end_point": {"row": 72, "column": 7}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 72, "column": 3}, "end_point": {"row": 72, "column": 7}}, {"id": 71, "type": "identifier", "text": "addTestDevice", "parent": 68, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 21}}, {"id": 72, "type": "ERROR", "text": ":(NSString", "parent": 65, "children": [73], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 31}}, {"id": 73, "type": "identifier", "text": "NSString", "parent": 72, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 31}}, {"id": 74, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 33}}, {"id": 75, "type": "identifier", "text": "deviceHash", "parent": 65, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 44}}, {"id": 76, "type": "--", "text": "", "parent": 64, "children": [], "start_point": {"row": 72, "column": 44}, "end_point": {"row": 72, "column": 44}}, {"id": 77, "type": "ERROR", "text": "+ (void)addTestDevices:(", "parent": null, "children": [78], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 24}}, {"id": 78, "type": "unary_expression", "text": "+ (void)addTestDevices", "parent": 77, "children": [79, 80], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 22}}, {"id": 79, "type": "+", "text": "+", "parent": 78, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 80, "type": "cast_expression", "text": "(void)addTestDevices", "parent": 78, "children": [81, 83], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 22}}, {"id": 81, "type": "type_descriptor", "text": "void", "parent": 80, "children": [82], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 7}}, {"id": 82, "type": "primitive_type", "text": "void", "parent": 81, "children": [], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 7}}, {"id": 83, "type": "identifier", "text": "addTestDevices", "parent": 80, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 22}}, {"id": 84, "type": "declaration", "text": "FB_NSArrayOf(NSString *)*)devicesHash;", "parent": null, "children": [85, 91], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 62}}, {"id": 85, "type": "macro_type_specifier", "text": "FB_NSArrayOf(NSString *)", "parent": 84, "children": [86, 87], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 48}}, {"id": 86, "type": "identifier", "text": "FB_NSArrayOf", "parent": 85, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 36}}, {"id": 87, "type": "type_descriptor", "text": "NSString *", "parent": 85, "children": [88, 89], "start_point": {"row": 79, "column": 37}, "end_point": {"row": 79, "column": 47}}, {"id": 88, "type": "type_identifier", "text": "NSString", "parent": 87, "children": [], "start_point": {"row": 79, "column": 37}, "end_point": {"row": 79, "column": 45}}, {"id": 89, "type": "abstract_pointer_declarator", "text": "*", "parent": 87, "children": [90], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 47}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 47}}, {"id": 91, "type": "pointer_declarator", "text": "*)devicesHash", "parent": 84, "children": [92, 93], "start_point": {"row": 79, "column": 48}, "end_point": {"row": 79, "column": 61}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 79, "column": 48}, "end_point": {"row": 79, "column": 49}}, {"id": 93, "type": "identifier", "text": "devicesHash", "parent": 91, "children": [], "start_point": {"row": 79, "column": 50}, "end_point": {"row": 79, "column": 61}}, {"id": 94, "type": "unary_expression", "text": "+ (void)clearTestDevices", "parent": null, "children": [95, 96], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 24}}, {"id": 95, "type": "+", "text": "+", "parent": 94, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 96, "type": "cast_expression", "text": "(void)clearTestDevices", "parent": 94, "children": [97, 99], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 24}}, {"id": 97, "type": "type_descriptor", "text": "void", "parent": 96, "children": [98], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 7}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 97, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 7}}, {"id": 99, "type": "identifier", "text": "clearTestDevices", "parent": 96, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 24}}, {"id": 100, "type": "update_expression", "text": "+ (void)clearTestDevice:(NSString *)deviceHash", "parent": null, "children": [101, 112], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 46}}, {"id": 101, "type": "binary_expression", "text": "+ (void)clearTestDevice:(NSString *)deviceHash", "parent": 100, "children": [102, 108, 110, 111], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 46}}, {"id": 102, "type": "unary_expression", "text": "+ (void)clearTestDevice", "parent": 101, "children": [103, 104], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 23}}, {"id": 103, "type": "+", "text": "+", "parent": 102, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 1}}, {"id": 104, "type": "cast_expression", "text": "(void)clearTestDevice", "parent": 102, "children": [105, 107], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 23}}, {"id": 105, "type": "type_descriptor", "text": "void", "parent": 104, "children": [106], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 7}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 7}}, {"id": 107, "type": "identifier", "text": "clearTestDevice", "parent": 104, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 23}}, {"id": 108, "type": "ERROR", "text": ":(NSString", "parent": 101, "children": [109], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 33}}, {"id": 109, "type": "identifier", "text": "NSString", "parent": 108, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 33}}, {"id": 110, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 35}}, {"id": 111, "type": "identifier", "text": "deviceHash", "parent": 101, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 46}}, {"id": 112, "type": "--", "text": "", "parent": 100, "children": [], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 46}}, {"id": 113, "type": "unary_expression", "text": "+ (void)setIsChildDirected", "parent": null, "children": [114, 115], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 26}}, {"id": 114, "type": "+", "text": "+", "parent": 113, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 1}}, {"id": 115, "type": "cast_expression", "text": "(void)setIsChildDirected", "parent": 113, "children": [116, 118], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 26}}, {"id": 116, "type": "type_descriptor", "text": "void", "parent": 115, "children": [117], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 7}}, {"id": 117, "type": "primitive_type", "text": "void", "parent": 116, "children": [], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 7}}, {"id": 118, "type": "identifier", "text": "setIsChildDirected", "parent": 115, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 26}}, {"id": 119, "type": "ERROR", "text": ":(BOOL)isChildDirected", "parent": null, "children": [120, 121], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 48}}, {"id": 120, "type": "identifier", "text": "BOOL", "parent": 119, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 32}}, {"id": 121, "type": "identifier", "text": "isChildDirected", "parent": 119, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 48}}, {"id": 122, "type": "update_expression", "text": "+ (void)setMediationService:(NSString *)service", "parent": null, "children": [123, 134], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 47}}, {"id": 123, "type": "binary_expression", "text": "+ (void)setMediationService:(NSString *)service", "parent": 122, "children": [124, 130, 132, 133], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 47}}, {"id": 124, "type": "unary_expression", "text": "+ (void)setMediationService", "parent": 123, "children": [125, 126], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 27}}, {"id": 125, "type": "+", "text": "+", "parent": 124, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 1}}, {"id": 126, "type": "cast_expression", "text": "(void)setMediationService", "parent": 124, "children": [127, 129], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 27}}, {"id": 127, "type": "type_descriptor", "text": "void", "parent": 126, "children": [128], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 7}}, {"id": 128, "type": "primitive_type", "text": "void", "parent": 127, "children": [], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 7}}, {"id": 129, "type": "identifier", "text": "setMediationService", "parent": 126, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 27}}, {"id": 130, "type": "ERROR", "text": ":(NSString", "parent": 123, "children": [131], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 37}}, {"id": 131, "type": "identifier", "text": "NSString", "parent": 130, "children": [], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 37}}, {"id": 132, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 110, "column": 38}, "end_point": {"row": 110, "column": 39}}, {"id": 133, "type": "identifier", "text": "service", "parent": 123, "children": [], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 47}}, {"id": 134, "type": "--", "text": "", "parent": 122, "children": [], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 110, "column": 47}}, {"id": 135, "type": "unary_expression", "text": "+ (NSString *)urlPrefix", "parent": null, "children": [136, 137], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 23}}, {"id": 136, "type": "+", "text": "+", "parent": 135, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 1}}, {"id": 137, "type": "cast_expression", "text": "(NSString *)urlPrefix", "parent": 135, "children": [138, 142], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 23}}, {"id": 138, "type": "type_descriptor", "text": "NSString *", "parent": 137, "children": [139, 140], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 13}}, {"id": 139, "type": "type_identifier", "text": "NSString", "parent": 138, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 11}}, {"id": 140, "type": "abstract_pointer_declarator", "text": "*", "parent": 138, "children": [141], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 13}}, {"id": 141, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 13}}, {"id": 142, "type": "identifier", "text": "urlPrefix", "parent": 137, "children": [], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 23}}, {"id": 143, "type": "update_expression", "text": "+ (void)setUrlPrefix:(NSString *) urlPrefix", "parent": null, "children": [144, 155], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 43}}, {"id": 144, "type": "binary_expression", "text": "+ (void)setUrlPrefix:(NSString *) urlPrefix", "parent": 143, "children": [145, 151, 153, 154], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 43}}, {"id": 145, "type": "unary_expression", "text": "+ (void)setUrlPrefix", "parent": 144, "children": [146, 147], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 20}}, {"id": 146, "type": "+", "text": "+", "parent": 145, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 1}}, {"id": 147, "type": "cast_expression", "text": "(void)setUrlPrefix", "parent": 145, "children": [148, 150], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 20}}, {"id": 148, "type": "type_descriptor", "text": "void", "parent": 147, "children": [149], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 149, "type": "primitive_type", "text": "void", "parent": 148, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 150, "type": "identifier", "text": "setUrlPrefix", "parent": 147, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 20}}, {"id": 151, "type": "ERROR", "text": ":(NSString", "parent": 144, "children": [152], "start_point": {"row": 128, "column": 20}, "end_point": {"row": 128, "column": 30}}, {"id": 152, "type": "identifier", "text": "NSString", "parent": 151, "children": [], "start_point": {"row": 128, "column": 22}, "end_point": {"row": 128, "column": 30}}, {"id": 153, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 128, "column": 31}, "end_point": {"row": 128, "column": 32}}, {"id": 154, "type": "identifier", "text": "urlPrefix", "parent": 144, "children": [], "start_point": {"row": 128, "column": 34}, "end_point": {"row": 128, "column": 43}}, {"id": 155, "type": "--", "text": "", "parent": 143, "children": [], "start_point": {"row": 128, "column": 43}, "end_point": {"row": 128, "column": 43}}, {"id": 156, "type": "unary_expression", "text": "+ (FBAdLogLevel)getLogLevel", "parent": null, "children": [157, 158], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 27}}, {"id": 157, "type": "+", "text": "+", "parent": 156, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 1}}, {"id": 158, "type": "cast_expression", "text": "(FBAdLogLevel)getLogLevel", "parent": 156, "children": [159, 161], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 27}}, {"id": 159, "type": "type_descriptor", "text": "FBAdLogLevel", "parent": 158, "children": [160], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 15}}, {"id": 160, "type": "type_identifier", "text": "FBAdLogLevel", "parent": 159, "children": [], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 15}}, {"id": 161, "type": "identifier", "text": "getLogLevel", "parent": 158, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 27}}, {"id": 162, "type": "unary_expression", "text": "+ (void)setLogLevel", "parent": null, "children": [163, 164], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 19}}, {"id": 163, "type": "+", "text": "+", "parent": 162, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 164, "type": "cast_expression", "text": "(void)setLogLevel", "parent": 162, "children": [165, 167], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 19}}, {"id": 165, "type": "type_descriptor", "text": "void", "parent": 164, "children": [166], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 7}}, {"id": 166, "type": "primitive_type", "text": "void", "parent": 165, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 7}}, {"id": 167, "type": "identifier", "text": "setLogLevel", "parent": 164, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 19}}, {"id": 168, "type": "ERROR", "text": ":(FBAdLogLevel)level", "parent": null, "children": [169, 170], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 39}}, {"id": 169, "type": "identifier", "text": "FBAdLogLevel", "parent": 168, "children": [], "start_point": {"row": 138, "column": 21}, "end_point": {"row": 138, "column": 33}}, {"id": 170, "type": "identifier", "text": "level", "parent": 168, "children": [], "start_point": {"row": 138, "column": 34}, "end_point": {"row": 138, "column": 39}}, {"id": 171, "type": "unary_expression", "text": "+ (FBMediaViewRenderingMethod)mediaViewRenderingMethod", "parent": null, "children": [172, 173], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 54}}, {"id": 172, "type": "+", "text": "+", "parent": 171, "children": [], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 1}}, {"id": 173, "type": "cast_expression", "text": "(FBMediaViewRenderingMethod)mediaViewRenderingMethod", "parent": 171, "children": [174, 176], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 54}}, {"id": 174, "type": "type_descriptor", "text": "FBMediaViewRenderingMethod", "parent": 173, "children": [175], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 29}}, {"id": 175, "type": "type_identifier", "text": "FBMediaViewRenderingMethod", "parent": 174, "children": [], "start_point": {"row": 143, "column": 3}, "end_point": {"row": 143, "column": 29}}, {"id": 176, "type": "identifier", "text": "mediaViewRenderingMethod", "parent": 173, "children": [], "start_point": {"row": 143, "column": 30}, "end_point": {"row": 143, "column": 54}}, {"id": 177, "type": "unary_expression", "text": "+ (void)setMediaViewRenderingMethod", "parent": null, "children": [178, 179], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 35}}, {"id": 178, "type": "+", "text": "+", "parent": 177, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 179, "type": "cast_expression", "text": "(void)setMediaViewRenderingMethod", "parent": 177, "children": [180, 182], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 35}}, {"id": 180, "type": "type_descriptor", "text": "void", "parent": 179, "children": [181], "start_point": {"row": 153, "column": 3}, "end_point": {"row": 153, "column": 7}}, {"id": 181, "type": "primitive_type", "text": "void", "parent": 180, "children": [], "start_point": {"row": 153, "column": 3}, "end_point": {"row": 153, "column": 7}}, {"id": 182, "type": "identifier", "text": "setMediaViewRenderingMethod", "parent": 179, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 35}}, {"id": 183, "type": "ERROR", "text": ":(FBMediaViewRenderingMethod)mediaViewRenderingMethod", "parent": null, "children": [184, 185], "start_point": {"row": 153, "column": 35}, "end_point": {"row": 153, "column": 88}}, {"id": 184, "type": "identifier", "text": "FBMediaViewRenderingMethod", "parent": 183, "children": [], "start_point": {"row": 153, "column": 37}, "end_point": {"row": 153, "column": 63}}, {"id": 185, "type": "identifier", "text": "mediaViewRenderingMethod", "parent": 183, "children": [], "start_point": {"row": 153, "column": 64}, "end_point": {"row": 153, "column": 88}}, {"id": 186, "type": "ERROR", "text": "@", "parent": null, "children": [187], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 1}}, {"id": 187, "type": "ERROR", "text": "@", "parent": 186, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 1}}, {"id": 188, "type": "declaration", "text": "end\n\nNS_ASSUME_NONNULL_END", "parent": null, "children": [189], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 157, "column": 21}}, {"id": 189, "type": "identifier", "text": "NS_ASSUME_NONNULL_END", "parent": 188, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [6, 9, 14, 30, 84, 188], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [50, 52, 56, 58, 64, 65, 66, 68, 78, 80, 94, 96, 100, 101, 102, 104, 113, 115, 122, 123, 124, 126, 135, 137, 143, 144, 145, 147, 156, 158, 162, 164, 171, 173, 177, 179], "assignments": [], "loops": [], "conditionals": [7, 8, 10, 13, 16, 17, 20, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 36, 38, 39, 40, 41, 42, 44, 45, 47, 48, 49, 54, 55, 60, 63, 71, 73, 75, 83, 85, 86, 88, 93, 99, 107, 109, 111, 118, 120, 121, 129, 131, 133, 139, 142, 150, 152, 154, 160, 161, 167, 169, 170, 175, 176, 182, 184, 185, 189], "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": "// Copyright 2004-present Facebook. All Rights Reserved.\n//\n// You are hereby granted a non-exclusive, worldwide, royalty-free license to use,\n// copy, modify, and distribute this software in source code or binary form for use\n// in connection with the web services and APIs provided by Facebook.\n//\n// As with any software that integrates with the Facebook platform, your use of\n// this software is subject to the Facebook Developer Principles and Policies\n// [http://developers.facebook.com/policy/]. This copyright 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, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n#import <Foundation/Foundation.h>\n\n#import <FBAudienceNetwork/FBAdDefines.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n Audience Network error domain (returned in NSErrors generated by the SDK)\n */\nFB_EXPORT NSString * const FBAudienceNetworkErrorDomain;\n\ntypedef NS_ENUM(NSInteger, FBAdLogLevel) {\n FBAdLogLevelNone,\n FBAdLogLevelNotification,\n FBAdLogLevelError,\n FBAdLogLevelWarning,\n FBAdLogLevelLog,\n FBAdLogLevelDebug,\n FBAdLogLevelVerbose\n};\n\ntypedef NS_ENUM(NSInteger, FBMediaViewRenderingMethod) {\n FBMediaViewRenderingMethodDefault,\n FBMediaViewRenderingMethodMetal,\n FBMediaViewRenderingMethodOpenGL,\n FBMediaViewRenderingMethodSoftware\n};\n\n/**\n AdSettings contains global settings for all ad controls.\n */\nFB_CLASS_EXPORT FB_SUBCLASSING_RESTRICTED\n@interface FBAdSettings : NSObject\n\n/**\n Returns test mode on/off.\n */\n+ (BOOL)isTestMode;\n\n/**\n Returns the hashid of the device to use test mode on.\n */\n+ (NSString *)testDeviceHash;\n\n/**\n Adds a test device.\n\n - Parameter deviceHash: The id of the device to use test mode, can be obtained from debug log or testDeviceHash\n\n\n\n Copy the current device Id from debug log and add it as a test device to get test ads. Apps\n running on emulator will automatically get test ads. Test devices should be added before loadAd is called.\n */\n+ (void)addTestDevice:(NSString *)deviceHash;\n\n/**\n Add a collection of test devices. See `+addTestDevices:` for details.\n\n - Parameter devicesHash: The array of the device id to use test mode, can be obtained from debug log or testDeviceHash\n */\n+ (void)addTestDevices:(FB_NSArrayOf(NSString *)*)devicesHash;\n\n/**\n Clear all the added test devices\n */\n+ (void)clearTestDevices;\n\n/**\n Clears the added test device\n\n - Parameter deviceHash: The id of the device using test mode, can be obtained from debug log or testDeviceHash\n */\n+ (void)clearTestDevice:(NSString *)deviceHash;\n\n/**\n Configures the ad control for treatment as child-directed.\n\n - Parameter isChildDirected: Indicates whether you would like your ad control to be treated as child-directed\n\n\n\n Note that you may have other legal obligations under the Children's Online Privacy Protection Act (COPPA).\n Please review the FTC's guidance and consult with your own legal counsel.\n */\n+ (void)setIsChildDirected:(BOOL)isChildDirected;\n\n/**\n If an ad provided service is mediating Audience Network in their sdk, it is required to set the name of the mediation service\n\n - Parameter service: Representing the name of the mediation that is mediation Audience Network\n */\n+ (void)setMediationService:(NSString *)service;\n\n/**\n Gets the url prefix to use when making ad requests.\n\n\n\n This method should never be used in production.\n */\n+ (NSString *)urlPrefix;\n\n/**\n Sets the url prefix to use when making ad requests.\n\n\n\n This method should never be used in production.\n */\n+ (void)setUrlPrefix:(NSString *) urlPrefix;\n\n/**\n Gets the current SDK logging level\n */\n+ (FBAdLogLevel)getLogLevel;\n\n/**\n Sets the current SDK logging level\n */\n+ (void)setLogLevel:(FBAdLogLevel)level;\n\n/**\n Gets the FBMediaView rendering method\n */\n+ (FBMediaViewRenderingMethod)mediaViewRenderingMethod;\n\n/**\n Sets the FBMediaView rendering method\n - Parameter mediaViewRenderingMethod:\n FBMediaViewRenderingMethodDefault: SDK chooses optimized rendering method\n FBMediaViewRenderingMethodMetal: use Metal kit rendering method\n FBMediaViewRenderingMethodOpenGL: use OpenGL rendering method\n FBMediaViewRenderingMethodSoftware: use software rendering method\n */\n+ (void)setMediaViewRenderingMethod:(FBMediaViewRenderingMethod)mediaViewRenderingMethod;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,833
c
/* This file is part of the YAZ toolkit. * Copyright (C) Index Data * See the file LICENSE for details. */ /* * Local variables: * c-basic-offset: 4 * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */
20.83
12
(translation_unit) "/* This file is part of the YAZ toolkit.\n * Copyright (C) Index Data\n * See the file LICENSE for details.\n */\n\n/*\n * Local variables:\n * c-basic-offset: 4\n * c-file-style: "Stroustrup"\n * indent-tabs-mode: nil\n * End:\n * vim: shiftwidth=4 tabstop=8 expandtab\n */\n\n" (comment) "/* This file is part of the YAZ toolkit.\n * Copyright (C) Index Data\n * See the file LICENSE for details.\n */" (comment) "/*\n * Local variables:\n * c-basic-offset: 4\n * c-file-style: "Stroustrup"\n * indent-tabs-mode: nil\n * End:\n * vim: shiftwidth=4 tabstop=8 expandtab\n */"
3
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.83, "nodes": 0, "errors": 0, "source_hash": "b3c10383cf4bb799c0fd648b3b98a903c164bccf6df687acbe69c34d68332a0f", "categorized_nodes": 0}, "ast": {"root": "translation_unit", "nodes": []}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/* This file is part of the YAZ toolkit.\n * Copyright (C) Index Data\n * See the file LICENSE for details.\n */\n\n/*\n * Local variables:\n * c-basic-offset: 4\n * c-file-style: \"Stroustrup\"\n * indent-tabs-mode: nil\n * End:\n * vim: shiftwidth=4 tabstop=8 expandtab\n */\n\n"}
80,834
c
#pragma once struct SimpleGenericCredential { std::wstring m_name; blob m_blob; std::wstring m_password; bool Empty() { return m_name.empty(); } static bool CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs) { return lhs.m_name < rhs.m_name; } };
21.27
15
(translation_unit) "#pragma once\n\nstruct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_password;\n\n bool Empty()\n {\n return m_name.empty();\n }\n\n static bool CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)\n {\n return lhs.m_name < rhs.m_name;\n }\n};\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "struct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_password;\n\n bool Empty()\n {\n return m_name.empty();\n }\n\n static bool CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)\n {\n return lhs.m_name < rhs.m_name;\n }" (struct_specifier) "struct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_password;\n\n bool Empty()\n {\n return m_name.empty();\n }" (struct) "struct" (type_identifier) "SimpleGenericCredential" (field_declaration_list) "{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_password;\n\n bool Empty()\n {\n return m_name.empty();\n }" ({) "{" (field_declaration) "std::wstring m_name;" (type_identifier) "std" (ERROR) "::wstring" (:) ":" (:) ":" (field_identifier) "wstring" (field_identifier) "m_name" (;) ";" (field_declaration) "blob m_blob;" (type_identifier) "blob" (field_identifier) "m_blob" (;) ";" (field_declaration) "std::wstring m_password;" (type_identifier) "std" (ERROR) "::wstring" (:) ":" (:) ":" (field_identifier) "wstring" (field_identifier) "m_password" (;) ";" (field_declaration) "bool Empty()\n {\n return m_name.empty();" (primitive_type) "bool" (ERROR) "Empty()\n {\n return m_name." (function_declarator) "Empty()" (field_identifier) "Empty" (parameter_list) "()" (() "(" ()) ")" ({) "{" (return) "return" (identifier) "m_name" (.) "." (function_declarator) "empty()" (field_identifier) "empty" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (storage_class_specifier) "static" (static) "static" (ERROR) "bool" (identifier) "bool" (function_declarator) "CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)" (identifier) "CompareByName" (parameter_list) "(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)" (() "(" (parameter_declaration) "const SimpleGenericCredential& lhs" (type_qualifier) "const" (const) "const" (type_identifier) "SimpleGenericCredential" (ERROR) "&" (&) "&" (identifier) "lhs" (,) "," (parameter_declaration) "const SimpleGenericCredential& rhs" (type_qualifier) "const" (const) "const" (type_identifier) "SimpleGenericCredential" (ERROR) "&" (&) "&" (identifier) "rhs" ()) ")" (compound_statement) "{\n return lhs.m_name < rhs.m_name;\n }" ({) "{" (return_statement) "return lhs.m_name < rhs.m_name;" (return) "return" (binary_expression) "lhs.m_name < rhs.m_name" (field_expression) "lhs.m_name" (identifier) "lhs" (.) "." (field_identifier) "m_name" (<) "<" (field_expression) "rhs.m_name" (identifier) "rhs" (.) "." (field_identifier) "m_name" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";"
93
7
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 21.27, "nodes": 50, "errors": 0, "source_hash": "beee8eabdb3f240633df8581bc0e07752491a16ed822a7f02ada4143dc97defa", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "function_definition", "text": "struct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_password;\n\n bool Empty()\n {\n return m_name.empty();\n }\n\n static bool CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)\n {\n return lhs.m_name < rhs.m_name;\n }", "parent": null, "children": [4, 30, 32], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 16, "column": 5}}, {"id": 4, "type": "struct_specifier", "text": "struct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_password;\n\n bool Empty()\n {\n return m_name.empty();\n }", "parent": 3, "children": [5, 6], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 5, "type": "struct", "text": "struct", "parent": 4, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 6, "type": "type_identifier", "text": "SimpleGenericCredential", "parent": 4, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 30}}, {"id": 7, "type": "field_declaration", "text": "std::wstring m_name;", "parent": 4, "children": [8, 9, 11], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 24}}, {"id": 8, "type": "type_identifier", "text": "std", "parent": 7, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 7}}, {"id": 9, "type": "ERROR", "text": "::wstring", "parent": 7, "children": [10], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 16}}, {"id": 10, "type": "field_identifier", "text": "wstring", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 16}}, {"id": 11, "type": "field_identifier", "text": "m_name", "parent": 7, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 23}}, {"id": 12, "type": "field_declaration", "text": "blob m_blob;", "parent": 4, "children": [13, 14], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 16}}, {"id": 13, "type": "type_identifier", "text": "blob", "parent": 12, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "field_identifier", "text": "m_blob", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 15}}, {"id": 15, "type": "field_declaration", "text": "std::wstring m_password;", "parent": 4, "children": [16, 17, 19], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 28}}, {"id": 16, "type": "type_identifier", "text": "std", "parent": 15, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 17, "type": "ERROR", "text": "::wstring", "parent": 15, "children": [18], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 16}}, {"id": 18, "type": "field_identifier", "text": "wstring", "parent": 17, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 16}}, {"id": 19, "type": "field_identifier", "text": "m_password", "parent": 15, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 27}}, {"id": 20, "type": "field_declaration", "text": "bool Empty()\n {\n return m_name.empty();", "parent": 4, "children": [21, 22, 27], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 10, "column": 30}}, {"id": 21, "type": "primitive_type", "text": "bool", "parent": 20, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 8}}, {"id": 22, "type": "ERROR", "text": "Empty()\n {\n return m_name.", "parent": 20, "children": [23, 26], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 10, "column": 22}}, {"id": 23, "type": "function_declarator", "text": "Empty()", "parent": 22, "children": [24, 25], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 16}}, {"id": 24, "type": "field_identifier", "text": "Empty", "parent": 23, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 14}}, {"id": 25, "type": "parameter_list", "text": "()", "parent": 23, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 16}}, {"id": 26, "type": "identifier", "text": "m_name", "parent": 22, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 21}}, {"id": 27, "type": "function_declarator", "text": "empty()", "parent": 20, "children": [28, 29], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 29}}, {"id": 28, "type": "field_identifier", "text": "empty", "parent": 27, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 27}}, {"id": 29, "type": "parameter_list", "text": "()", "parent": 27, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 29}}, {"id": 30, "type": "ERROR", "text": "bool", "parent": 3, "children": [31], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 15}}, {"id": 31, "type": "identifier", "text": "bool", "parent": 30, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 15}}, {"id": 32, "type": "function_declarator", "text": "CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)", "parent": 3, "children": [33, 34], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 101}}, {"id": 33, "type": "identifier", "text": "CompareByName", "parent": 32, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 29}}, {"id": 34, "type": "parameter_list", "text": "(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)", "parent": 32, "children": [35, 38], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 101}}, {"id": 35, "type": "parameter_declaration", "text": "const SimpleGenericCredential& lhs", "parent": 34, "children": [36, 37], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 64}}, {"id": 36, "type": "type_identifier", "text": "SimpleGenericCredential", "parent": 35, "children": [], "start_point": {"row": 13, "column": 36}, "end_point": {"row": 13, "column": 59}}, {"id": 37, "type": "identifier", "text": "lhs", "parent": 35, "children": [], "start_point": {"row": 13, "column": 61}, "end_point": {"row": 13, "column": 64}}, {"id": 38, "type": "parameter_declaration", "text": "const SimpleGenericCredential& rhs", "parent": 34, "children": [39, 40], "start_point": {"row": 13, "column": 66}, "end_point": {"row": 13, "column": 100}}, {"id": 39, "type": "type_identifier", "text": "SimpleGenericCredential", "parent": 38, "children": [], "start_point": {"row": 13, "column": 72}, "end_point": {"row": 13, "column": 95}}, {"id": 40, "type": "identifier", "text": "rhs", "parent": 38, "children": [], "start_point": {"row": 13, "column": 97}, "end_point": {"row": 13, "column": 100}}, {"id": 41, "type": "return_statement", "text": "return lhs.m_name < rhs.m_name;", "parent": 3, "children": [42], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 39}}, {"id": 42, "type": "binary_expression", "text": "lhs.m_name < rhs.m_name", "parent": 41, "children": [43, 46, 47], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 38}}, {"id": 43, "type": "field_expression", "text": "lhs.m_name", "parent": 42, "children": [44, 45], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 25}}, {"id": 44, "type": "identifier", "text": "lhs", "parent": 43, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 18}}, {"id": 45, "type": "field_identifier", "text": "m_name", "parent": 43, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 25}}, {"id": 46, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 27}}, {"id": 47, "type": "field_expression", "text": "rhs.m_name", "parent": 42, "children": [48, 49], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 38}}, {"id": 48, "type": "identifier", "text": "rhs", "parent": 47, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 31}}, {"id": 49, "type": "field_identifier", "text": "m_name", "parent": 47, "children": [], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 38}}]}, "node_categories": {"declarations": {"functions": [3, 23, 27, 32], "variables": [7, 12, 15, 20, 35, 38], "classes": [4, 5], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [42, 43, 47], "assignments": [], "loops": [], "conditionals": [6, 8, 10, 11, 13, 14, 16, 18, 19, 24, 26, 28, 31, 33, 36, 37, 39, 40, 44, 45, 48, 49], "returns": [41], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "SimpleGenericCredential", "text_snippet": "struct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_passwo"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "Empty()"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "empty()"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)"}], "class_declarations": [{"node_id": 4, "universal_type": "class", "name": "SimpleGenericCredential", "text_snippet": "struct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_passwo"}, {"node_id": 5, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#pragma once\n\nstruct SimpleGenericCredential\n{\n std::wstring m_name;\n blob m_blob;\n std::wstring m_password;\n\n bool Empty()\n {\n return m_name.empty();\n }\n\n static bool CompareByName(const SimpleGenericCredential& lhs, const SimpleGenericCredential& rhs)\n {\n return lhs.m_name < rhs.m_name;\n }\n};\n"}
80,835
c
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:52:59 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/ConversationKit.framework/ConversationKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ @interface ConversationKit.IDSCapabilitiesChecker : _UKNOWN_SUPERCLASS_ { participantCapabilities; delegate; participantDestinations; lookupManager; } -(void)handleLookupManagerDidChangeNotification:(id)arg1 ; @end
34.25
16
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:52:59 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/ConversationKit.framework/ConversationKit\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.\n*/\n\n\n@interface ConversationKit.IDSCapabilitiesChecker : _UKNOWN_SUPERCLASS_ {\n\n participantCapabilities;\n delegate;\n participantDestinations;\n lookupManager;\n\n}\n-(void)handleLookupManagerDidChangeNotification:(id)arg1 ;\n@end\n\n" (comment) "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:52:59 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/ConversationKit.framework/ConversationKit\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.\n*/\n" (ERROR) "i" (ERROR) "i" (function_definition) "nterface ConversationKit.IDSCapabilitiesChecker : _UKNOWN_SUPERCLASS_ {\n\n participantCapabilities;\n delegate;\n participantDestinations;\n lookupManager;\n\n}\n" (type_identifier) "nterface " (ERROR) "onversationKit.IDSCapabilitiesChecker : " (identifier) "onversationKit." (.) "I" (identifier) "DSCapabilitiesChecker " (:) " " (identifier) "UKNOWN_SUPERCLASS_ " (compound_statement) "\n\n participantCapabilities;\n delegate;\n participantDestinations;\n lookupManager;\n\n}\n" ({) "\n" (expression_statement) "articipantCapabilities;\n" (identifier) "articipantCapabilities;" (;) "\n" (expression_statement) "elegate;\n" (identifier) "elegate;" (;) "\n" (expression_statement) "articipantDestinations;\n" (identifier) "articipantDestinations;" (;) "\n" (expression_statement) "ookupManager;\n" (identifier) "ookupManager;" (;) "\n" (}) "\n" (expression_statement) "(void)handleLookupManagerDidChangeNotification:(id)arg1 ;\n" (unary_expression) "(void)handleLookupManagerDidChangeNotification:" (-) "(" (cast_expression) "void)handleLookupManagerDidChangeNotification:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "h" (identifier) "andleLookupManagerDidChangeNotification:" (ERROR) "(id)arg1 " (:) "(" (() "i" (identifier) "d)" ()) "a" (identifier) "rg1 " (;) "\n" (ERROR) "e" (ERROR) "e" (expression_statement) "nd\n" (identifier) "nd\n" (;) ""
48
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.25, "nodes": 23, "errors": 0, "source_hash": "c75115c060355fe8a3c306bb58dc3ab831ce9a96d1682c149fe66060e53b875e", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "i", "parent": null, "children": [1], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 1, "type": "ERROR", "text": "i", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 2, "type": "function_definition", "text": "nterface ConversationKit.IDSCapabilitiesChecker : _UKNOWN_SUPERCLASS_ {\n\n\t participantCapabilities;\n\t delegate;\n\t participantDestinations;\n\t lookupManager;\n\n}\n", "parent": null, "children": [3, 4, 7], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 16, "column": 1}}, {"id": 3, "type": "type_identifier", "text": "nterface ", "parent": 2, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 10}}, {"id": 4, "type": "ERROR", "text": "onversationKit.IDSCapabilitiesChecker : ", "parent": 2, "children": [5, 6], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 51}}, {"id": 5, "type": "identifier", "text": "onversationKit.", "parent": 4, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 26}}, {"id": 6, "type": "identifier", "text": "DSCapabilitiesChecker ", "parent": 4, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 49}}, {"id": 7, "type": "identifier", "text": "UKNOWN_SUPERCLASS_ ", "parent": 2, "children": [], "start_point": {"row": 9, "column": 52}, "end_point": {"row": 9, "column": 71}}, {"id": 8, "type": "identifier", "text": "articipantCapabilities;", "parent": 2, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 25}}, {"id": 9, "type": "identifier", "text": "elegate;", "parent": 2, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 10}}, {"id": 10, "type": "identifier", "text": "articipantDestinations;", "parent": 2, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 25}}, {"id": 11, "type": "identifier", "text": "ookupManager;", "parent": 2, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 15}}, {"id": 12, "type": "unary_expression", "text": "(void)handleLookupManagerDidChangeNotification:", "parent": null, "children": [13], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 47}}, {"id": 13, "type": "cast_expression", "text": "void)handleLookupManagerDidChangeNotification:", "parent": 12, "children": [14, 16], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 47}}, {"id": 14, "type": "type_descriptor", "text": "oid)", "parent": 13, "children": [15], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 15, "type": "primitive_type", "text": "oid)", "parent": 14, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 16, "type": "identifier", "text": "andleLookupManagerDidChangeNotification:", "parent": 13, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 47}}, {"id": 17, "type": "ERROR", "text": "(id)arg1 ", "parent": null, "children": [18, 19], "start_point": {"row": 17, "column": 47}, "end_point": {"row": 17, "column": 56}}, {"id": 18, "type": "identifier", "text": "d)", "parent": 17, "children": [], "start_point": {"row": 17, "column": 49}, "end_point": {"row": 17, "column": 51}}, {"id": 19, "type": "identifier", "text": "rg1 ", "parent": 17, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 56}}, {"id": 20, "type": "ERROR", "text": "e", "parent": null, "children": [21], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 21, "type": "ERROR", "text": "e", "parent": 20, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 22, "type": "identifier", "text": "nd\n", "parent": null, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 4}}]}, "node_categories": {"declarations": {"functions": [2], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [12, 13], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 7, 8, 9, 10, 11, 16, 18, 19, 22], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "unknown", "text_snippet": "nterface ConversationKit.IDSCapabilitiesChecker : _UKNOWN_SUPERCLASS_ {\n\n\t participantCapabilities;\n"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, September 27, 2020 at 11:52:59 AM Mountain Standard Time\n* Operating System: Version 14.0 (Build 18A373)\n* Image Source: /System/Library/PrivateFrameworks/ConversationKit.framework/ConversationKit\n* classdump-dyld is licensed under GPLv3, Copyright \u00a9 2013-2016 by <NAME>.\n*/\n\n\n@interface ConversationKit.IDSCapabilitiesChecker : _UKNOWN_SUPERCLASS_ {\n\n\t participantCapabilities;\n\t delegate;\n\t participantDestinations;\n\t lookupManager;\n\n}\n-(void)handleLookupManagerDidChangeNotification:(id)arg1 ;\n@end\n\n"}
80,836
c
// // SMKTrack.h // SNRMusicKit // // Created by <NAME> on 2012-08-21. // Copyright (c) 2012 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "SMKAlbum.h" #import "SMKArtist.h" #import "SMKContentSource.h" #import "SMKContentObject.h" @protocol SMKTrack <NSObject, SMKContentObject> @required /** @return The parent artist of the track. */ - (id<SMKArtist>)artist; /** @return The parent album of the track. */ - (id<SMKAlbum>)album; /** @return The name of the artist */ - (NSString *)artistName; /** @return The name of the album artist */ - (NSString *)albumArtistName; /** @return The duration of the track in seconds. */ - (NSTimeInterval)duration; /** @return The player class used to play this track */ - (Class)playerClass; @optional /** @return The URL to play the track from @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil. */ - (NSURL *)playbackURL; /** @return The composer of the track. */ - (NSString *)composer; /** @return The track's track number. */ - (NSUInteger)trackNumber; /** @return The track's disc number. */ - (NSUInteger)discNumber; /** @return The number of times the track has been played. */ - (NSUInteger)playCount; /** @return The lyrics for the song. */ - (NSString *)lyrics; /** @return The genre of the song. */ - (NSString *)genre; /** @return The rating of the song */ - (NSUInteger)rating; /** @return The last play date of the song. */ - (NSDate *)lastPlayedDate; /** @return The popularity index for the track. @discussion This value can have different scales depending on the content source, but in general, a higher popularity index means the track is more popular. If this information is not available, this method will return 0. */ - (NSUInteger)popularity; /** @return Whether the track contains explicit content. */ - (BOOL)isExplicit; /** @return Whether the track is free of explicit content. */ - (BOOL)isClean; @end
21.04
92
(translation_unit) "//\n// SMKTrack.h\n// SNRMusicKit\n//\n// Created by <NAME> on 2012-08-21.\n// Copyright (c) 2012 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "SMKAlbum.h"\n#import "SMKArtist.h"\n#import "SMKContentSource.h"\n\n#import "SMKContentObject.h"\n\n@protocol SMKTrack <NSObject, SMKContentObject>\n@required\n/**\n @return The parent artist of the track.\n */\n- (id<SMKArtist>)artist;\n\n/**\n @return The parent album of the track.\n */\n- (id<SMKAlbum>)album;\n\n/**\n @return The name of the artist\n */\n- (NSString *)artistName;\n\n/**\n @return The name of the album artist\n */\n- (NSString *)albumArtistName;\n\n/**\n @return The duration of the track in seconds.\n */\n- (NSTimeInterval)duration;\n\n/**\n @return The player class used to play this track\n */\n- (Class)playerClass;\n\n@optional\n\n/**\n @return The URL to play the track from\n @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil.\n */\n- (NSURL *)playbackURL;\n\n/**\n @return The composer of the track.\n */\n- (NSString *)composer;\n\n/**\n @return The track's track number.\n */\n- (NSUInteger)trackNumber;\n\n/**\n @return The track's disc number.\n*/\n- (NSUInteger)discNumber;\n\n/**\n @return The number of times the track has been played.\n */\n- (NSUInteger)playCount;\n\n/**\n @return The lyrics for the song.\n */\n- (NSString *)lyrics;\n\n/**\n @return The genre of the song.\n */\n- (NSString *)genre;\n\n/**\n @return The rating of the song\n */\n- (NSUInteger)rating;\n\n/**\n @return The last play date of the song.\n*/\n- (NSDate *)lastPlayedDate;\n\n/**\n @return The popularity index for the track.\n @discussion This value can have different scales depending on the content source,\n but in general, a higher popularity index means the track is more popular. If this\n information is not available, this method will return 0.\n*/\n- (NSUInteger)popularity;\n\n/**\n @return Whether the track contains explicit content.\n */\n- (BOOL)isExplicit;\n\n/**\n @return Whether the track is free of explicit content.\n */\n- (BOOL)isClean;\n@end\n" (comment) "//" (comment) "// SMKTrack.h" (comment) "// SNRMusicKit" (comment) "//" (comment) "// Created by <NAME> on 2012-08-21." (comment) "// Copyright (c) 2012 <NAME>. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import "SMKAlbum.h"\n" (preproc_directive) "#import" (preproc_arg) ""SMKAlbum.h"" (preproc_call) "#import "SMKArtist.h"\n" (preproc_directive) "#import" (preproc_arg) ""SMKArtist.h"" (preproc_call) "#import "SMKContentSource.h"\n" (preproc_directive) "#import" (preproc_arg) ""SMKContentSource.h"" (preproc_call) "#import "SMKContentObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""SMKContentObject.h"" (ERROR) "@protocol SMKTrack <NSObject, SMKContentObject>\n@required" (ERROR) "@" (type_identifier) "protocol" (identifier) "SMKTrack" (ERROR) "<NSObject" (<) "<" (identifier) "NSObject" (,) "," (identifier) "SMKContentObject" (>) ">" (ERROR) "@" (identifier) "required" (comment) "/**\n @return The parent artist of the track.\n */" (expression_statement) "- (id<SMKArtist>)artist;" (unary_expression) "- (id<SMKArtist>)artist" (-) "-" (parenthesized_expression) "(id<SMKArtist>)artist" (() "(" (binary_expression) "id<SMKArtist>)artist" (binary_expression) "id<SMKArtist" (identifier) "id" (<) "<" (identifier) "SMKArtist" (>) ">" (ERROR) ")" ()) ")" (identifier) "artist" ()) "" (;) ";" (comment) "/**\n @return The parent album of the track.\n */" (expression_statement) "- (id<SMKAlbum>)album;" (unary_expression) "- (id<SMKAlbum>)album" (-) "-" (parenthesized_expression) "(id<SMKAlbum>)album" (() "(" (binary_expression) "id<SMKAlbum>)album" (binary_expression) "id<SMKAlbum" (identifier) "id" (<) "<" (identifier) "SMKAlbum" (>) ">" (ERROR) ")" ()) ")" (identifier) "album" ()) "" (;) ";" (comment) "/**\n @return The name of the artist\n */" (expression_statement) "- (NSString *)artistName;" (unary_expression) "- (NSString *)artistName" (-) "-" (cast_expression) "(NSString *)artistName" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "artistName" (;) ";" (comment) "/**\n @return The name of the album artist\n */" (expression_statement) "- (NSString *)albumArtistName;" (unary_expression) "- (NSString *)albumArtistName" (-) "-" (cast_expression) "(NSString *)albumArtistName" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "albumArtistName" (;) ";" (comment) "/**\n @return The duration of the track in seconds.\n */" (expression_statement) "- (NSTimeInterval)duration;" (unary_expression) "- (NSTimeInterval)duration" (-) "-" (cast_expression) "(NSTimeInterval)duration" (() "(" (type_descriptor) "NSTimeInterval" (type_identifier) "NSTimeInterval" ()) ")" (identifier) "duration" (;) ";" (comment) "/**\n @return The player class used to play this track\n */" (expression_statement) "- (Class)playerClass;" (unary_expression) "- (Class)playerClass" (-) "-" (cast_expression) "(Class)playerClass" (() "(" (type_descriptor) "Class" (type_identifier) "Class" ()) ")" (identifier) "playerClass" (;) ";" (ERROR) "@optional\n\n/**\n @return The URL to play the track from\n @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil.\n */\n- (NSURL *)playbackURL" (ERROR) "@" (binary_expression) "optional\n\n/**\n @return The URL to play the track from\n @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil.\n */\n- (NSURL *)playbackURL" (identifier) "optional" (comment) "/**\n @return The URL to play the track from\n @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil.\n */" (-) "-" (cast_expression) "(NSURL *)playbackURL" (() "(" (type_descriptor) "NSURL *" (type_identifier) "NSURL" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "playbackURL" (expression_statement) ";" (;) ";" (comment) "/**\n @return The composer of the track.\n */" (expression_statement) "- (NSString *)composer;" (unary_expression) "- (NSString *)composer" (-) "-" (cast_expression) "(NSString *)composer" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "composer" (;) ";" (comment) "/**\n @return The track's track number.\n */" (expression_statement) "- (NSUInteger)trackNumber;" (unary_expression) "- (NSUInteger)trackNumber" (-) "-" (cast_expression) "(NSUInteger)trackNumber" (() "(" (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" ()) ")" (identifier) "trackNumber" (;) ";" (comment) "/**\n @return The track's disc number.\n*/" (expression_statement) "- (NSUInteger)discNumber;" (unary_expression) "- (NSUInteger)discNumber" (-) "-" (cast_expression) "(NSUInteger)discNumber" (() "(" (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" ()) ")" (identifier) "discNumber" (;) ";" (comment) "/**\n @return The number of times the track has been played.\n */" (expression_statement) "- (NSUInteger)playCount;" (unary_expression) "- (NSUInteger)playCount" (-) "-" (cast_expression) "(NSUInteger)playCount" (() "(" (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" ()) ")" (identifier) "playCount" (;) ";" (comment) "/**\n @return The lyrics for the song.\n */" (expression_statement) "- (NSString *)lyrics;" (unary_expression) "- (NSString *)lyrics" (-) "-" (cast_expression) "(NSString *)lyrics" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "lyrics" (;) ";" (comment) "/**\n @return The genre of the song.\n */" (expression_statement) "- (NSString *)genre;" (unary_expression) "- (NSString *)genre" (-) "-" (cast_expression) "(NSString *)genre" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "genre" (;) ";" (comment) "/**\n @return The rating of the song\n */" (expression_statement) "- (NSUInteger)rating;" (unary_expression) "- (NSUInteger)rating" (-) "-" (cast_expression) "(NSUInteger)rating" (() "(" (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" ()) ")" (identifier) "rating" (;) ";" (comment) "/**\n @return The last play date of the song.\n*/" (expression_statement) "- (NSDate *)lastPlayedDate;" (unary_expression) "- (NSDate *)lastPlayedDate" (-) "-" (cast_expression) "(NSDate *)lastPlayedDate" (() "(" (type_descriptor) "NSDate *" (type_identifier) "NSDate" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "lastPlayedDate" (;) ";" (comment) "/**\n @return The popularity index for the track.\n @discussion This value can have different scales depending on the content source,\n but in general, a higher popularity index means the track is more popular. If this\n information is not available, this method will return 0.\n*/" (expression_statement) "- (NSUInteger)popularity;" (unary_expression) "- (NSUInteger)popularity" (-) "-" (cast_expression) "(NSUInteger)popularity" (() "(" (type_descriptor) "NSUInteger" (type_identifier) "NSUInteger" ()) ")" (identifier) "popularity" (;) ";" (comment) "/**\n @return Whether the track contains explicit content.\n */" (expression_statement) "- (BOOL)isExplicit;" (unary_expression) "- (BOOL)isExplicit" (-) "-" (cast_expression) "(BOOL)isExplicit" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isExplicit" (;) ";" (comment) "/**\n @return Whether the track is free of explicit content.\n */" (expression_statement) "- (BOOL)isClean;" (unary_expression) "- (BOOL)isClean" (-) "-" (cast_expression) "(BOOL)isClean" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isClean" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
267
10
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 21.04, "nodes": 161, "errors": 0, "source_hash": "f2f085b084b7c01efa125a7873d9284ba4fe14d56edaeeb4c877078b22cdd85e", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "#import \"SMKAlbum.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "\"SMKAlbum.h\"", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 20}}, {"id": 6, "type": "preproc_call", "text": "#import \"SMKArtist.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": "#import", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "\"SMKArtist.h\"", "parent": 6, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 21}}, {"id": 9, "type": "preproc_call", "text": "#import \"SMKContentSource.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "#import", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "\"SMKContentSource.h\"", "parent": 9, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 28}}, {"id": 12, "type": "preproc_call", "text": "#import \"SMKContentObject.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#import", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 14, "type": "preproc_arg", "text": "\"SMKContentObject.h\"", "parent": 12, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 28}}, {"id": 15, "type": "ERROR", "text": "@protocol SMKTrack <NSObject, SMKContentObject>\n@required", "parent": null, "children": [16, 17, 18, 19, 22, 23, 24, 25], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 16, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 17, "type": "type_identifier", "text": "protocol", "parent": 15, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 18, "type": "identifier", "text": "SMKTrack", "parent": 15, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 18}}, {"id": 19, "type": "ERROR", "text": "<NSObject", "parent": 15, "children": [20, 21], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 28}}, {"id": 20, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 21, "type": "identifier", "text": "NSObject", "parent": 19, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 28}}, {"id": 22, "type": "identifier", "text": "SMKContentObject", "parent": 15, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 46}}, {"id": 23, "type": ">", "text": ">", "parent": 15, "children": [], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 47}}, {"id": 24, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 25, "type": "identifier", "text": "required", "parent": 15, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 26, "type": "unary_expression", "text": "- (id<SMKArtist>)artist", "parent": null, "children": [27, 28], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 23}}, {"id": 27, "type": "-", "text": "-", "parent": 26, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 28, "type": "parenthesized_expression", "text": "(id<SMKArtist>)artist", "parent": 26, "children": [29], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 23}}, {"id": 29, "type": "binary_expression", "text": "id<SMKArtist>)artist", "parent": 28, "children": [30, 34, 35], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 23}}, {"id": 30, "type": "binary_expression", "text": "id<SMKArtist", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 15}}, {"id": 31, "type": "identifier", "text": "id", "parent": 30, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 5}}, {"id": 32, "type": "<", "text": "<", "parent": 30, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 6}}, {"id": 33, "type": "identifier", "text": "SMKArtist", "parent": 30, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 15}}, {"id": 34, "type": ">", "text": ">", "parent": 29, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 16}}, {"id": 35, "type": "identifier", "text": "artist", "parent": 29, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 23}}, {"id": 36, "type": "unary_expression", "text": "- (id<SMKAlbum>)album", "parent": null, "children": [37, 38], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 21}}, {"id": 37, "type": "-", "text": "-", "parent": 36, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 38, "type": "parenthesized_expression", "text": "(id<SMKAlbum>)album", "parent": 36, "children": [39], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 21}}, {"id": 39, "type": "binary_expression", "text": "id<SMKAlbum>)album", "parent": 38, "children": [40, 44, 45], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 21}}, {"id": 40, "type": "binary_expression", "text": "id<SMKAlbum", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 14}}, {"id": 41, "type": "identifier", "text": "id", "parent": 40, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 42, "type": "<", "text": "<", "parent": 40, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 6}}, {"id": 43, "type": "identifier", "text": "SMKAlbum", "parent": 40, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 14}}, {"id": 44, "type": ">", "text": ">", "parent": 39, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 15}}, {"id": 45, "type": "identifier", "text": "album", "parent": 39, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 21}}, {"id": 46, "type": "unary_expression", "text": "- (NSString *)artistName", "parent": null, "children": [47, 48], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 24}}, {"id": 47, "type": "-", "text": "-", "parent": 46, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 48, "type": "cast_expression", "text": "(NSString *)artistName", "parent": 46, "children": [49, 53], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 24}}, {"id": 49, "type": "type_descriptor", "text": "NSString *", "parent": 48, "children": [50, 51], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 13}}, {"id": 50, "type": "type_identifier", "text": "NSString", "parent": 49, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 11}}, {"id": 51, "type": "abstract_pointer_declarator", "text": "*", "parent": 49, "children": [52], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 53, "type": "identifier", "text": "artistName", "parent": 48, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 24}}, {"id": 54, "type": "unary_expression", "text": "- (NSString *)albumArtistName", "parent": null, "children": [55, 56], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 29}}, {"id": 55, "type": "-", "text": "-", "parent": 54, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 56, "type": "cast_expression", "text": "(NSString *)albumArtistName", "parent": 54, "children": [57, 61], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 29}}, {"id": 57, "type": "type_descriptor", "text": "NSString *", "parent": 56, "children": [58, 59], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 13}}, {"id": 58, "type": "type_identifier", "text": "NSString", "parent": 57, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 11}}, {"id": 59, "type": "abstract_pointer_declarator", "text": "*", "parent": 57, "children": [60], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 61, "type": "identifier", "text": "albumArtistName", "parent": 56, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 29}}, {"id": 62, "type": "unary_expression", "text": "- (NSTimeInterval)duration", "parent": null, "children": [63, 64], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 26}}, {"id": 63, "type": "-", "text": "-", "parent": 62, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 64, "type": "cast_expression", "text": "(NSTimeInterval)duration", "parent": 62, "children": [65, 67], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 26}}, {"id": 65, "type": "type_descriptor", "text": "NSTimeInterval", "parent": 64, "children": [66], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 17}}, {"id": 66, "type": "type_identifier", "text": "NSTimeInterval", "parent": 65, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 17}}, {"id": 67, "type": "identifier", "text": "duration", "parent": 64, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 26}}, {"id": 68, "type": "unary_expression", "text": "- (Class)playerClass", "parent": null, "children": [69, 70], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 20}}, {"id": 69, "type": "-", "text": "-", "parent": 68, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 70, "type": "cast_expression", "text": "(Class)playerClass", "parent": 68, "children": [71, 73], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 20}}, {"id": 71, "type": "type_descriptor", "text": "Class", "parent": 70, "children": [72], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 8}}, {"id": 72, "type": "type_identifier", "text": "Class", "parent": 71, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 8}}, {"id": 73, "type": "identifier", "text": "playerClass", "parent": 70, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 20}}, {"id": 74, "type": "ERROR", "text": "@optional\n\n/**\n @return The URL to play the track from\n @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil.\n */\n- (NSURL *)playbackURL", "parent": null, "children": [75, 76], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 53, "column": 22}}, {"id": 75, "type": "ERROR", "text": "@", "parent": 74, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 76, "type": "binary_expression", "text": "optional\n\n/**\n @return The URL to play the track from\n @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil.\n */\n- (NSURL *)playbackURL", "parent": 74, "children": [77, 78, 79], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 53, "column": 22}}, {"id": 77, "type": "identifier", "text": "optional", "parent": 76, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 9}}, {"id": 78, "type": "-", "text": "-", "parent": 76, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 79, "type": "cast_expression", "text": "(NSURL *)playbackURL", "parent": 76, "children": [80, 84], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 22}}, {"id": 80, "type": "type_descriptor", "text": "NSURL *", "parent": 79, "children": [81, 82], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 10}}, {"id": 81, "type": "type_identifier", "text": "NSURL", "parent": 80, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 8}}, {"id": 82, "type": "abstract_pointer_declarator", "text": "*", "parent": 80, "children": [83], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 84, "type": "identifier", "text": "playbackURL", "parent": 79, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 22}}, {"id": 85, "type": "unary_expression", "text": "- (NSString *)composer", "parent": null, "children": [86, 87], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 22}}, {"id": 86, "type": "-", "text": "-", "parent": 85, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 87, "type": "cast_expression", "text": "(NSString *)composer", "parent": 85, "children": [88, 92], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 22}}, {"id": 88, "type": "type_descriptor", "text": "NSString *", "parent": 87, "children": [89, 90], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 13}}, {"id": 89, "type": "type_identifier", "text": "NSString", "parent": 88, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 11}}, {"id": 90, "type": "abstract_pointer_declarator", "text": "*", "parent": 88, "children": [91], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 92, "type": "identifier", "text": "composer", "parent": 87, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 22}}, {"id": 93, "type": "unary_expression", "text": "- (NSUInteger)trackNumber", "parent": null, "children": [94, 95], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 25}}, {"id": 94, "type": "-", "text": "-", "parent": 93, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 95, "type": "cast_expression", "text": "(NSUInteger)trackNumber", "parent": 93, "children": [96, 98], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 25}}, {"id": 96, "type": "type_descriptor", "text": "NSUInteger", "parent": 95, "children": [97], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 13}}, {"id": 97, "type": "type_identifier", "text": "NSUInteger", "parent": 96, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 13}}, {"id": 98, "type": "identifier", "text": "trackNumber", "parent": 95, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 25}}, {"id": 99, "type": "unary_expression", "text": "- (NSUInteger)discNumber", "parent": null, "children": [100, 101], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 24}}, {"id": 100, "type": "-", "text": "-", "parent": 99, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 101, "type": "cast_expression", "text": "(NSUInteger)discNumber", "parent": 99, "children": [102, 104], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 24}}, {"id": 102, "type": "type_descriptor", "text": "NSUInteger", "parent": 101, "children": [103], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 13}}, {"id": 103, "type": "type_identifier", "text": "NSUInteger", "parent": 102, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 13}}, {"id": 104, "type": "identifier", "text": "discNumber", "parent": 101, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 24}}, {"id": 105, "type": "unary_expression", "text": "- (NSUInteger)playCount", "parent": null, "children": [106, 107], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 23}}, {"id": 106, "type": "-", "text": "-", "parent": 105, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 107, "type": "cast_expression", "text": "(NSUInteger)playCount", "parent": 105, "children": [108, 110], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 23}}, {"id": 108, "type": "type_descriptor", "text": "NSUInteger", "parent": 107, "children": [109], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 13}}, {"id": 109, "type": "type_identifier", "text": "NSUInteger", "parent": 108, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 13}}, {"id": 110, "type": "identifier", "text": "playCount", "parent": 107, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 23}}, {"id": 111, "type": "unary_expression", "text": "- (NSString *)lyrics", "parent": null, "children": [112, 113], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 20}}, {"id": 112, "type": "-", "text": "-", "parent": 111, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 113, "type": "cast_expression", "text": "(NSString *)lyrics", "parent": 111, "children": [114, 118], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 20}}, {"id": 114, "type": "type_descriptor", "text": "NSString *", "parent": 113, "children": [115, 116], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 13}}, {"id": 115, "type": "type_identifier", "text": "NSString", "parent": 114, "children": [], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 11}}, {"id": 116, "type": "abstract_pointer_declarator", "text": "*", "parent": 114, "children": [117], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 13}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 13}}, {"id": 118, "type": "identifier", "text": "lyrics", "parent": 113, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 20}}, {"id": 119, "type": "unary_expression", "text": "- (NSString *)genre", "parent": null, "children": [120, 121], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 19}}, {"id": 120, "type": "-", "text": "-", "parent": 119, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 121, "type": "cast_expression", "text": "(NSString *)genre", "parent": 119, "children": [122, 126], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 19}}, {"id": 122, "type": "type_descriptor", "text": "NSString *", "parent": 121, "children": [123, 124], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 13}}, {"id": 123, "type": "type_identifier", "text": "NSString", "parent": 122, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 11}}, {"id": 124, "type": "abstract_pointer_declarator", "text": "*", "parent": 122, "children": [125], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 126, "type": "identifier", "text": "genre", "parent": 121, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 19}}, {"id": 127, "type": "unary_expression", "text": "- (NSUInteger)rating", "parent": null, "children": [128, 129], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 20}}, {"id": 128, "type": "-", "text": "-", "parent": 127, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 1}}, {"id": 129, "type": "cast_expression", "text": "(NSUInteger)rating", "parent": 127, "children": [130, 132], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 20}}, {"id": 130, "type": "type_descriptor", "text": "NSUInteger", "parent": 129, "children": [131], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 13}}, {"id": 131, "type": "type_identifier", "text": "NSUInteger", "parent": 130, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 13}}, {"id": 132, "type": "identifier", "text": "rating", "parent": 129, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 20}}, {"id": 133, "type": "unary_expression", "text": "- (NSDate *)lastPlayedDate", "parent": null, "children": [134, 135], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 26}}, {"id": 134, "type": "-", "text": "-", "parent": 133, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 135, "type": "cast_expression", "text": "(NSDate *)lastPlayedDate", "parent": 133, "children": [136, 140], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 26}}, {"id": 136, "type": "type_descriptor", "text": "NSDate *", "parent": 135, "children": [137, 138], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 11}}, {"id": 137, "type": "type_identifier", "text": "NSDate", "parent": 136, "children": [], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 9}}, {"id": 138, "type": "abstract_pointer_declarator", "text": "*", "parent": 136, "children": [139], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 11}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 11}}, {"id": 140, "type": "identifier", "text": "lastPlayedDate", "parent": 135, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 26}}, {"id": 141, "type": "unary_expression", "text": "- (NSUInteger)popularity", "parent": null, "children": [142, 143], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 24}}, {"id": 142, "type": "-", "text": "-", "parent": 141, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 1}}, {"id": 143, "type": "cast_expression", "text": "(NSUInteger)popularity", "parent": 141, "children": [144, 146], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 24}}, {"id": 144, "type": "type_descriptor", "text": "NSUInteger", "parent": 143, "children": [145], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 13}}, {"id": 145, "type": "type_identifier", "text": "NSUInteger", "parent": 144, "children": [], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 13}}, {"id": 146, "type": "identifier", "text": "popularity", "parent": 143, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 24}}, {"id": 147, "type": "unary_expression", "text": "- (BOOL)isExplicit", "parent": null, "children": [148, 149], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 18}}, {"id": 148, "type": "-", "text": "-", "parent": 147, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 149, "type": "cast_expression", "text": "(BOOL)isExplicit", "parent": 147, "children": [150, 152], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 18}}, {"id": 150, "type": "type_descriptor", "text": "BOOL", "parent": 149, "children": [151], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 7}}, {"id": 151, "type": "type_identifier", "text": "BOOL", "parent": 150, "children": [], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 7}}, {"id": 152, "type": "identifier", "text": "isExplicit", "parent": 149, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 18}}, {"id": 153, "type": "unary_expression", "text": "- (BOOL)isClean", "parent": null, "children": [154, 155], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 15}}, {"id": 154, "type": "-", "text": "-", "parent": 153, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 1}}, {"id": 155, "type": "cast_expression", "text": "(BOOL)isClean", "parent": 153, "children": [156, 158], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 15}}, {"id": 156, "type": "type_descriptor", "text": "BOOL", "parent": 155, "children": [157], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 7}}, {"id": 157, "type": "type_identifier", "text": "BOOL", "parent": 156, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 7}}, {"id": 158, "type": "identifier", "text": "isClean", "parent": 155, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 15}}, {"id": 159, "type": "ERROR", "text": "@", "parent": null, "children": [160], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 160, "type": "ERROR", "text": "@", "parent": 159, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [26, 28, 29, 30, 36, 38, 39, 40, 46, 48, 54, 56, 62, 64, 68, 70, 76, 79, 85, 87, 93, 95, 99, 101, 105, 107, 111, 113, 119, 121, 127, 129, 133, 135, 141, 143, 147, 149, 153, 155], "assignments": [], "loops": [], "conditionals": [17, 18, 21, 22, 25, 31, 33, 35, 41, 43, 45, 50, 53, 58, 61, 66, 67, 72, 73, 77, 81, 84, 89, 92, 97, 98, 103, 104, 109, 110, 115, 118, 123, 126, 131, 132, 137, 140, 145, 146, 151, 152, 157, 158], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3, 6, 9, 12], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// SMKTrack.h\n// SNRMusicKit\n//\n// Created by <NAME> on 2012-08-21.\n// Copyright (c) 2012 <NAME>. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"SMKAlbum.h\"\n#import \"SMKArtist.h\"\n#import \"SMKContentSource.h\"\n\n#import \"SMKContentObject.h\"\n\n@protocol SMKTrack <NSObject, SMKContentObject>\n@required\n/**\n @return The parent artist of the track.\n */\n- (id<SMKArtist>)artist;\n\n/**\n @return The parent album of the track.\n */\n- (id<SMKAlbum>)album;\n\n/**\n @return The name of the artist\n */\n- (NSString *)artistName;\n\n/**\n @return The name of the album artist\n */\n- (NSString *)albumArtistName;\n\n/**\n @return The duration of the track in seconds.\n */\n- (NSTimeInterval)duration;\n\n/**\n @return The player class used to play this track\n */\n- (Class)playerClass;\n\n@optional\n\n/**\n @return The URL to play the track from\n @discussion This URL could be local or remote (for streaming services). If the track cannot be played via a URL, this method should return nil.\n */\n- (NSURL *)playbackURL;\n\n/**\n @return The composer of the track.\n */\n- (NSString *)composer;\n\n/**\n @return The track's track number.\n */\n- (NSUInteger)trackNumber;\n\n/**\n @return The track's disc number.\n*/\n- (NSUInteger)discNumber;\n\n/**\n @return The number of times the track has been played.\n */\n- (NSUInteger)playCount;\n\n/**\n @return The lyrics for the song.\n */\n- (NSString *)lyrics;\n\n/**\n @return The genre of the song.\n */\n- (NSString *)genre;\n\n/**\n @return The rating of the song\n */\n- (NSUInteger)rating;\n\n/**\n @return The last play date of the song.\n*/\n- (NSDate *)lastPlayedDate;\n\n/**\n @return The popularity index for the track.\n @discussion This value can have different scales depending on the content source,\n but in general, a higher popularity index means the track is more popular. If this\n information is not available, this method will return 0.\n*/\n- (NSUInteger)popularity;\n\n/**\n @return Whether the track contains explicit content.\n */\n- (BOOL)isExplicit;\n\n/**\n @return Whether the track is free of explicit content.\n */\n- (BOOL)isClean;\n@end\n"}
80,837
c
/* Ask about updates checking */ #include "e_wizard.h" static int do_up = 0; /* EAPI int wizard_page_init(E_Wizard_Page *pg __UNUSED__, Eina_Bool *need_xdg_desktops __UNUSED__, Eina_Bool *need_xdg_icons __UNUSED__) { return 1; } EAPI int wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__) { return 1; } */ EAPI int wizard_page_show(E_Wizard_Page *pg) { Evas_Object *o, *of, *ob; o = e_widget_list_add(pg->evas, 1, 0); if (! ecore_file_exists("/etc/bodhi/iso")) e_wizard_title_set(_("Updates")); of = e_widget_framelist_add(pg->evas, _("Check for available updates"), 0); ob = e_widget_textblock_add(pg->evas); e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale); e_widget_textblock_markup_set (ob, _("Moksha can check for new<br>" "versions, updates, security and<br>" "bugfixes, as well as available add-ons.<br>" "<br>" "This is very useful, because it lets<br>" "you know about available bug fixes and<br>" "security fixes when they happen. As a<br>" "result, Moksha will connect to<br>" "enlightenment.org and transmit some<br>" "information, much like any web browser<br>" "might do. No personal information such as<br>" "username, password or any personal files<br>" "will be transmitted. If you don't like this,<br>" "please disable this below. It is highly<br>" "advised that you do not disable this as it<br>" "may leave you vulnerable or having to live<br>" "with bugs." ) ); e_widget_framelist_object_append(of, ob); ob = e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up)); e_widget_framelist_object_append(of, ob); e_widget_list_object_append(o, of, 0, 0, 0.5); evas_object_show(of); e_wizard_page_show(o); return 0; /* 1 == show ui, and wait for user, 0 == just continue */ } EAPI int wizard_page_hide(E_Wizard_Page *pg __UNUSED__) { e_config->update.check = do_up; e_config_save_queue(); return 1; } /* EAPI int wizard_page_apply(E_Wizard_Page *pg __UNUSED__) { return 1; } */
30.06
68
(translation_unit) "/* Ask about updates checking */\n#include "e_wizard.h"\n\nstatic int do_up = 0;\n/*\nEAPI int\nwizard_page_init(E_Wizard_Page *pg __UNUSED__, Eina_Bool *need_xdg_desktops __UNUSED__, Eina_Bool *need_xdg_icons __UNUSED__)\n{\n return 1;\n}\n\nEAPI int\nwizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)\n{\n return 1;\n}\n*/\nEAPI int\nwizard_page_show(E_Wizard_Page *pg)\n{\n Evas_Object *o, *of, *ob;\n\n o = e_widget_list_add(pg->evas, 1, 0);\n if (! ecore_file_exists("/etc/bodhi/iso"))\n e_wizard_title_set(_("Updates"));\n\n of = e_widget_framelist_add(pg->evas, _("Check for available updates"), 0);\n\n ob = e_widget_textblock_add(pg->evas);\n e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale);\n e_widget_textblock_markup_set\n (ob,\n _("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )\n );\n e_widget_framelist_object_append(of, ob);\n\n ob = e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up));\n e_widget_framelist_object_append(of, ob);\n\n e_widget_list_object_append(o, of, 0, 0, 0.5);\n\n evas_object_show(of);\n\n e_wizard_page_show(o);\n return 0; /* 1 == show ui, and wait for user, 0 == just continue */\n}\n\nEAPI int\nwizard_page_hide(E_Wizard_Page *pg __UNUSED__)\n{\n e_config->update.check = do_up;\n e_config_save_queue();\n return 1;\n}\n/*\nEAPI int\nwizard_page_apply(E_Wizard_Page *pg __UNUSED__)\n{\n return 1;\n}\n*/\n" (comment) "/* Ask about updates checking */" (preproc_include) "#include "e_wizard.h"\n" (#include) "#include" (string_literal) ""e_wizard.h"" (") """ (string_content) "e_wizard.h" (") """ (declaration) "static int do_up = 0;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (init_declarator) "do_up = 0" (identifier) "do_up" (=) "=" (number_literal) "0" (;) ";" (comment) "/*\nEAPI int\nwizard_page_init(E_Wizard_Page *pg __UNUSED__, Eina_Bool *need_xdg_desktops __UNUSED__, Eina_Bool *need_xdg_icons __UNUSED__)\n{\n return 1;\n}\n\nEAPI int\nwizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)\n{\n return 1;\n}\n*/" (function_definition) "EAPI int\nwizard_page_show(E_Wizard_Page *pg)\n{\n Evas_Object *o, *of, *ob;\n\n o = e_widget_list_add(pg->evas, 1, 0);\n if (! ecore_file_exists("/etc/bodhi/iso"))\n e_wizard_title_set(_("Updates"));\n\n of = e_widget_framelist_add(pg->evas, _("Check for available updates"), 0);\n\n ob = e_widget_textblock_add(pg->evas);\n e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale);\n e_widget_textblock_markup_set\n (ob,\n _("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )\n );\n e_widget_framelist_object_append(of, ob);\n\n ob = e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up));\n e_widget_framelist_object_append(of, ob);\n\n e_widget_list_object_append(o, of, 0, 0, 0.5);\n\n evas_object_show(of);\n\n e_wizard_page_show(o);\n return 0; /* 1 == show ui, and wait for user, 0 == just continue */\n}" (type_identifier) "EAPI" (ERROR) "int" (identifier) "int" (function_declarator) "wizard_page_show(E_Wizard_Page *pg)" (identifier) "wizard_page_show" (parameter_list) "(E_Wizard_Page *pg)" (() "(" (parameter_declaration) "E_Wizard_Page *pg" (type_identifier) "E_Wizard_Page" (pointer_declarator) "*pg" (*) "*" (identifier) "pg" ()) ")" (compound_statement) "{\n Evas_Object *o, *of, *ob;\n\n o = e_widget_list_add(pg->evas, 1, 0);\n if (! ecore_file_exists("/etc/bodhi/iso"))\n e_wizard_title_set(_("Updates"));\n\n of = e_widget_framelist_add(pg->evas, _("Check for available updates"), 0);\n\n ob = e_widget_textblock_add(pg->evas);\n e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale);\n e_widget_textblock_markup_set\n (ob,\n _("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )\n );\n e_widget_framelist_object_append(of, ob);\n\n ob = e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up));\n e_widget_framelist_object_append(of, ob);\n\n e_widget_list_object_append(o, of, 0, 0, 0.5);\n\n evas_object_show(of);\n\n e_wizard_page_show(o);\n return 0; /* 1 == show ui, and wait for user, 0 == just continue */\n}" ({) "{" (declaration) "Evas_Object *o, *of, *ob;" (type_identifier) "Evas_Object" (pointer_declarator) "*o" (*) "*" (identifier) "o" (,) "," (pointer_declarator) "*of" (*) "*" (identifier) "of" (,) "," (pointer_declarator) "*ob" (*) "*" (identifier) "ob" (;) ";" (expression_statement) "o = e_widget_list_add(pg->evas, 1, 0);" (assignment_expression) "o = e_widget_list_add(pg->evas, 1, 0)" (identifier) "o" (=) "=" (call_expression) "e_widget_list_add(pg->evas, 1, 0)" (identifier) "e_widget_list_add" (argument_list) "(pg->evas, 1, 0)" (() "(" (field_expression) "pg->evas" (identifier) "pg" (->) "->" (field_identifier) "evas" (,) "," (number_literal) "1" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (! ecore_file_exists("/etc/bodhi/iso"))\n e_wizard_title_set(_("Updates"));" (if) "if" (parenthesized_expression) "(! ecore_file_exists("/etc/bodhi/iso"))" (() "(" (unary_expression) "! ecore_file_exists("/etc/bodhi/iso")" (!) "!" (call_expression) "ecore_file_exists("/etc/bodhi/iso")" (identifier) "ecore_file_exists" (argument_list) "("/etc/bodhi/iso")" (() "(" (string_literal) ""/etc/bodhi/iso"" (") """ (string_content) "/etc/bodhi/iso" (") """ ()) ")" ()) ")" (expression_statement) "e_wizard_title_set(_("Updates"));" (call_expression) "e_wizard_title_set(_("Updates"))" (identifier) "e_wizard_title_set" (argument_list) "(_("Updates"))" (() "(" (call_expression) "_("Updates")" (identifier) "_" (argument_list) "("Updates")" (() "(" (string_literal) ""Updates"" (") """ (string_content) "Updates" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "of = e_widget_framelist_add(pg->evas, _("Check for available updates"), 0);" (assignment_expression) "of = e_widget_framelist_add(pg->evas, _("Check for available updates"), 0)" (identifier) "of" (=) "=" (call_expression) "e_widget_framelist_add(pg->evas, _("Check for available updates"), 0)" (identifier) "e_widget_framelist_add" (argument_list) "(pg->evas, _("Check for available updates"), 0)" (() "(" (field_expression) "pg->evas" (identifier) "pg" (->) "->" (field_identifier) "evas" (,) "," (call_expression) "_("Check for available updates")" (identifier) "_" (argument_list) "("Check for available updates")" (() "(" (string_literal) ""Check for available updates"" (") """ (string_content) "Check for available updates" (") """ ()) ")" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "ob = e_widget_textblock_add(pg->evas);" (assignment_expression) "ob = e_widget_textblock_add(pg->evas)" (identifier) "ob" (=) "=" (call_expression) "e_widget_textblock_add(pg->evas)" (identifier) "e_widget_textblock_add" (argument_list) "(pg->evas)" (() "(" (field_expression) "pg->evas" (identifier) "pg" (->) "->" (field_identifier) "evas" ()) ")" (;) ";" (expression_statement) "e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale);" (call_expression) "e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale)" (identifier) "e_widget_size_min_set" (argument_list) "(ob, 260 * e_scale, 280 * e_scale)" (() "(" (identifier) "ob" (,) "," (binary_expression) "260 * e_scale" (number_literal) "260" (*) "*" (identifier) "e_scale" (,) "," (binary_expression) "280 * e_scale" (number_literal) "280" (*) "*" (identifier) "e_scale" ()) ")" (;) ";" (expression_statement) "e_widget_textblock_markup_set\n (ob,\n _("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )\n );" (call_expression) "e_widget_textblock_markup_set\n (ob,\n _("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )\n )" (identifier) "e_widget_textblock_markup_set" (argument_list) "(ob,\n _("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )\n )" (() "(" (identifier) "ob" (,) "," (call_expression) "_("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )" (identifier) "_" (argument_list) "("Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."\n )" (() "(" (concatenated_string) ""Moksha can check for new<br>"\n "versions, updates, security and<br>"\n "bugfixes, as well as available add-ons.<br>"\n "<br>"\n "This is very useful, because it lets<br>"\n "you know about available bug fixes and<br>"\n "security fixes when they happen. As a<br>"\n "result, Moksha will connect to<br>"\n "enlightenment.org and transmit some<br>"\n "information, much like any web browser<br>"\n "might do. No personal information such as<br>"\n "username, password or any personal files<br>"\n "will be transmitted. If you don't like this,<br>"\n "please disable this below. It is highly<br>"\n "advised that you do not disable this as it<br>"\n "may leave you vulnerable or having to live<br>"\n "with bugs."" (string_literal) ""Moksha can check for new<br>"" (") """ (string_content) "Moksha can check for new<br>" (") """ (string_literal) ""versions, updates, security and<br>"" (") """ (string_content) "versions, updates, security and<br>" (") """ (string_literal) ""bugfixes, as well as available add-ons.<br>"" (") """ (string_content) "bugfixes, as well as available add-ons.<br>" (") """ (string_literal) ""<br>"" (") """ (string_content) "<br>" (") """ (string_literal) ""This is very useful, because it lets<br>"" (") """ (string_content) "This is very useful, because it lets<br>" (") """ (string_literal) ""you know about available bug fixes and<br>"" (") """ (string_content) "you know about available bug fixes and<br>" (") """ (string_literal) ""security fixes when they happen. As a<br>"" (") """ (string_content) "security fixes when they happen. As a<br>" (") """ (string_literal) ""result, Moksha will connect to<br>"" (") """ (string_content) "result, Moksha will connect to<br>" (") """ (string_literal) ""enlightenment.org and transmit some<br>"" (") """ (string_content) "enlightenment.org and transmit some<br>" (") """ (string_literal) ""information, much like any web browser<br>"" (") """ (string_content) "information, much like any web browser<br>" (") """ (string_literal) ""might do. No personal information such as<br>"" (") """ (string_content) "might do. No personal information such as<br>" (") """ (string_literal) ""username, password or any personal files<br>"" (") """ (string_content) "username, password or any personal files<br>" (") """ (string_literal) ""will be transmitted. If you don't like this,<br>"" (") """ (string_content) "will be transmitted. If you don't like this,<br>" (") """ (string_literal) ""please disable this below. It is highly<br>"" (") """ (string_content) "please disable this below. It is highly<br>" (") """ (string_literal) ""advised that you do not disable this as it<br>"" (") """ (string_content) "advised that you do not disable this as it<br>" (") """ (string_literal) ""may leave you vulnerable or having to live<br>"" (") """ (string_content) "may leave you vulnerable or having to live<br>" (") """ (string_literal) ""with bugs."" (") """ (string_content) "with bugs." (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "e_widget_framelist_object_append(of, ob);" (call_expression) "e_widget_framelist_object_append(of, ob)" (identifier) "e_widget_framelist_object_append" (argument_list) "(of, ob)" (() "(" (identifier) "of" (,) "," (identifier) "ob" ()) ")" (;) ";" (expression_statement) "ob = e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up));" (assignment_expression) "ob = e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up))" (identifier) "ob" (=) "=" (call_expression) "e_widget_check_add(pg->evas, _("Enable update checking"), &(do_up))" (identifier) "e_widget_check_add" (argument_list) "(pg->evas, _("Enable update checking"), &(do_up))" (() "(" (field_expression) "pg->evas" (identifier) "pg" (->) "->" (field_identifier) "evas" (,) "," (call_expression) "_("Enable update checking")" (identifier) "_" (argument_list) "("Enable update checking")" (() "(" (string_literal) ""Enable update checking"" (") """ (string_content) "Enable update checking" (") """ ()) ")" (,) "," (pointer_expression) "&(do_up)" (&) "&" (parenthesized_expression) "(do_up)" (() "(" (identifier) "do_up" ()) ")" ()) ")" (;) ";" (expression_statement) "e_widget_framelist_object_append(of, ob);" (call_expression) "e_widget_framelist_object_append(of, ob)" (identifier) "e_widget_framelist_object_append" (argument_list) "(of, ob)" (() "(" (identifier) "of" (,) "," (identifier) "ob" ()) ")" (;) ";" (expression_statement) "e_widget_list_object_append(o, of, 0, 0, 0.5);" (call_expression) "e_widget_list_object_append(o, of, 0, 0, 0.5)" (identifier) "e_widget_list_object_append" (argument_list) "(o, of, 0, 0, 0.5)" (() "(" (identifier) "o" (,) "," (identifier) "of" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0.5" ()) ")" (;) ";" (expression_statement) "evas_object_show(of);" (call_expression) "evas_object_show(of)" (identifier) "evas_object_show" (argument_list) "(of)" (() "(" (identifier) "of" ()) ")" (;) ";" (expression_statement) "e_wizard_page_show(o);" (call_expression) "e_wizard_page_show(o)" (identifier) "e_wizard_page_show" (argument_list) "(o)" (() "(" (identifier) "o" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (comment) "/* 1 == show ui, and wait for user, 0 == just continue */" (}) "}" (function_definition) "EAPI int\nwizard_page_hide(E_Wizard_Page *pg __UNUSED__)\n{\n e_config->update.check = do_up;\n e_config_save_queue();\n return 1;\n}" (type_identifier) "EAPI" (ERROR) "int" (identifier) "int" (function_declarator) "wizard_page_hide(E_Wizard_Page *pg __UNUSED__)" (identifier) "wizard_page_hide" (parameter_list) "(E_Wizard_Page *pg __UNUSED__)" (() "(" (parameter_declaration) "E_Wizard_Page *pg __UNUSED__" (type_identifier) "E_Wizard_Page" (pointer_declarator) "*pg __UNUSED__" (*) "*" (ERROR) "pg" (identifier) "pg" (identifier) "__UNUSED__" ()) ")" (compound_statement) "{\n e_config->update.check = do_up;\n e_config_save_queue();\n return 1;\n}" ({) "{" (expression_statement) "e_config->update.check = do_up;" (assignment_expression) "e_config->update.check = do_up" (field_expression) "e_config->update.check" (field_expression) "e_config->update" (identifier) "e_config" (->) "->" (field_identifier) "update" (.) "." (field_identifier) "check" (=) "=" (identifier) "do_up" (;) ";" (expression_statement) "e_config_save_queue();" (call_expression) "e_config_save_queue()" (identifier) "e_config_save_queue" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (comment) "/*\nEAPI int\nwizard_page_apply(E_Wizard_Page *pg __UNUSED__)\n{\n return 1;\n}\n*/"
371
3
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 30.06, "nodes": 189, "errors": 0, "source_hash": "555e637d4aa3f6cd328bb115d7f5fffd74eae835fc08e38c40bd7216804991d1", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"e_wizard.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": "\"e_wizard.h\"", "parent": 0, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 21}}, {"id": 3, "type": "declaration", "text": "static int do_up = 0;", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 21}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 10}}, {"id": 5, "type": "init_declarator", "text": "do_up = 0", "parent": 3, "children": [6, 7, 8], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 20}}, {"id": 6, "type": "identifier", "text": "do_up", "parent": 5, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 16}}, {"id": 7, "type": "=", "text": "=", "parent": 5, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 18}}, {"id": 8, "type": "number_literal", "text": "0", "parent": 5, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "function_definition", "text": "EAPI int\nwizard_page_show(E_Wizard_Page *pg)\n{\n Evas_Object *o, *of, *ob;\n\n o = e_widget_list_add(pg->evas, 1, 0);\n if (! ecore_file_exists(\"/etc/bodhi/iso\"))\n e_wizard_title_set(_(\"Updates\"));\n\n of = e_widget_framelist_add(pg->evas, _(\"Check for available updates\"), 0);\n\n ob = e_widget_textblock_add(pg->evas);\n e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale);\n e_widget_textblock_markup_set\n (ob,\n _(\"Moksha can check for new<br>\"\n \"versions, updates, security and<br>\"\n \"bugfixes, as well as available add-ons.<br>\"\n \"<br>\"\n \"This is very useful, because it lets<br>\"\n \"you know about available bug fixes and<br>\"\n \"security fixes when they happen. As a<br>\"\n \"result, Moksha will connect to<br>\"\n \"enlightenment.org and transmit some<br>\"\n \"information, much like any web browser<br>\"\n \"might do. No personal information such as<br>\"\n \"username, password or any personal files<br>\"\n \"will be transmitted. If you don't like this,<br>\"\n \"please disable this below. It is highly<br>\"\n \"advised that you do not disable this as it<br>\"\n \"may leave you vulnerable or having to live<br>\"\n \"with bugs.\"\n )\n );\n e_widget_framelist_object_append(of, ob);\n\n ob = e_widget_check_add(pg->evas, _(\"Enable update checking\"), &(do_up));\n e_widget_framelist_object_append(of, ob);\n\n e_widget_list_object_append(o, of, 0, 0, 0.5);\n\n evas_object_show(of);\n\n e_wizard_page_show(o);\n return 0; /* 1 == show ui, and wait for user, 0 == just continue */\n}", "parent": null, "children": [10, 11, 13], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "EAPI", "parent": 9, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 11, "type": "ERROR", "text": "int", "parent": 9, "children": [12], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 8}}, {"id": 12, "type": "identifier", "text": "int", "parent": 11, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 8}}, {"id": 13, "type": "function_declarator", "text": "wizard_page_show(E_Wizard_Page *pg)", "parent": 9, "children": [14, 15], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 35}}, {"id": 14, "type": "identifier", "text": "wizard_page_show", "parent": 13, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 16}}, {"id": 15, "type": "parameter_list", "text": "(E_Wizard_Page *pg)", "parent": 13, "children": [16], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 35}}, {"id": 16, "type": "parameter_declaration", "text": "E_Wizard_Page *pg", "parent": 15, "children": [17, 18], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 34}}, {"id": 17, "type": "type_identifier", "text": "E_Wizard_Page", "parent": 16, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 30}}, {"id": 18, "type": "pointer_declarator", "text": "*pg", "parent": 16, "children": [19, 20], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 34}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 32}}, {"id": 20, "type": "identifier", "text": "pg", "parent": 18, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 34}}, {"id": 21, "type": "declaration", "text": "Evas_Object *o, *of, *ob;", "parent": 9, "children": [22, 23, 26, 29], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 28}}, {"id": 22, "type": "type_identifier", "text": "Evas_Object", "parent": 21, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 14}}, {"id": 23, "type": "pointer_declarator", "text": "*o", "parent": 21, "children": [24, 25], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 17}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 16}}, {"id": 25, "type": "identifier", "text": "o", "parent": 23, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 26, "type": "pointer_declarator", "text": "*of", "parent": 21, "children": [27, 28], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 22}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 28, "type": "identifier", "text": "of", "parent": 26, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 22}}, {"id": 29, "type": "pointer_declarator", "text": "*ob", "parent": 21, "children": [30, 31], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 27}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 31, "type": "identifier", "text": "ob", "parent": 29, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 27}}, {"id": 32, "type": "assignment_expression", "text": "o = e_widget_list_add(pg->evas, 1, 0)", "parent": 9, "children": [33, 34, 35], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 40}}, {"id": 33, "type": "identifier", "text": "o", "parent": 32, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 4}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 6}}, {"id": 35, "type": "call_expression", "text": "e_widget_list_add(pg->evas, 1, 0)", "parent": 32, "children": [36, 37], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 40}}, {"id": 36, "type": "identifier", "text": "e_widget_list_add", "parent": 35, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 24}}, {"id": 37, "type": "argument_list", "text": "(pg->evas, 1, 0)", "parent": 35, "children": [38, 41, 42], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 40}}, {"id": 38, "type": "field_expression", "text": "pg->evas", "parent": 37, "children": [39, 40], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 33}}, {"id": 39, "type": "identifier", "text": "pg", "parent": 38, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 27}}, {"id": 40, "type": "field_identifier", "text": "evas", "parent": 38, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 33}}, {"id": 41, "type": "number_literal", "text": "1", "parent": 37, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 36}}, {"id": 42, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 43, "type": "if_statement", "text": "if (! ecore_file_exists(\"/etc/bodhi/iso\"))\n e_wizard_title_set(_(\"Updates\"));", "parent": 9, "children": [44], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 24, "column": 39}}, {"id": 44, "type": "parenthesized_expression", "text": "(! ecore_file_exists(\"/etc/bodhi/iso\"))", "parent": 43, "children": [45], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 45}}, {"id": 45, "type": "unary_expression", "text": "! ecore_file_exists(\"/etc/bodhi/iso\")", "parent": 44, "children": [46, 47], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 44}}, {"id": 46, "type": "!", "text": "!", "parent": 45, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 8}}, {"id": 47, "type": "call_expression", "text": "ecore_file_exists(\"/etc/bodhi/iso\")", "parent": 45, "children": [48, 49], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 44}}, {"id": 48, "type": "identifier", "text": "ecore_file_exists", "parent": 47, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 26}}, {"id": 49, "type": "argument_list", "text": "(\"/etc/bodhi/iso\")", "parent": 47, "children": [50], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 44}}, {"id": 50, "type": "string_literal", "text": "\"/etc/bodhi/iso\"", "parent": 49, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 43}}, {"id": 51, "type": "call_expression", "text": "e_wizard_title_set(_(\"Updates\"))", "parent": 43, "children": [52, 53], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 38}}, {"id": 52, "type": "identifier", "text": "e_wizard_title_set", "parent": 51, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 24}}, {"id": 53, "type": "argument_list", "text": "(_(\"Updates\"))", "parent": 51, "children": [54], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 38}}, {"id": 54, "type": "call_expression", "text": "_(\"Updates\")", "parent": 53, "children": [55, 56], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 37}}, {"id": 55, "type": "identifier", "text": "_", "parent": 54, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 26}}, {"id": 56, "type": "argument_list", "text": "(\"Updates\")", "parent": 54, "children": [57], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 37}}, {"id": 57, "type": "string_literal", "text": "\"Updates\"", "parent": 56, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 36}}, {"id": 58, "type": "assignment_expression", "text": "of = e_widget_framelist_add(pg->evas, _(\"Check for available updates\"), 0)", "parent": 9, "children": [59, 60, 61], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 77}}, {"id": 59, "type": "identifier", "text": "of", "parent": 58, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 60, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 7}}, {"id": 61, "type": "call_expression", "text": "e_widget_framelist_add(pg->evas, _(\"Check for available updates\"), 0)", "parent": 58, "children": [62, 63], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 77}}, {"id": 62, "type": "identifier", "text": "e_widget_framelist_add", "parent": 61, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 30}}, {"id": 63, "type": "argument_list", "text": "(pg->evas, _(\"Check for available updates\"), 0)", "parent": 61, "children": [64, 67, 71], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 77}}, {"id": 64, "type": "field_expression", "text": "pg->evas", "parent": 63, "children": [65, 66], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 39}}, {"id": 65, "type": "identifier", "text": "pg", "parent": 64, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 33}}, {"id": 66, "type": "field_identifier", "text": "evas", "parent": 64, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 39}}, {"id": 67, "type": "call_expression", "text": "_(\"Check for available updates\")", "parent": 63, "children": [68, 69], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 73}}, {"id": 68, "type": "identifier", "text": "_", "parent": 67, "children": [], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 42}}, {"id": 69, "type": "argument_list", "text": "(\"Check for available updates\")", "parent": 67, "children": [70], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 73}}, {"id": 70, "type": "string_literal", "text": "\"Check for available updates\"", "parent": 69, "children": [], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 72}}, {"id": 71, "type": "number_literal", "text": "0", "parent": 63, "children": [], "start_point": {"row": 26, "column": 75}, "end_point": {"row": 26, "column": 76}}, {"id": 72, "type": "assignment_expression", "text": "ob = e_widget_textblock_add(pg->evas)", "parent": 9, "children": [73, 74, 75], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 40}}, {"id": 73, "type": "identifier", "text": "ob", "parent": 72, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 5}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 7}}, {"id": 75, "type": "call_expression", "text": "e_widget_textblock_add(pg->evas)", "parent": 72, "children": [76, 77], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 40}}, {"id": 76, "type": "identifier", "text": "e_widget_textblock_add", "parent": 75, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 30}}, {"id": 77, "type": "argument_list", "text": "(pg->evas)", "parent": 75, "children": [78], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 40}}, {"id": 78, "type": "field_expression", "text": "pg->evas", "parent": 77, "children": [79, 80], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 39}}, {"id": 79, "type": "identifier", "text": "pg", "parent": 78, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 33}}, {"id": 80, "type": "field_identifier", "text": "evas", "parent": 78, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 39}}, {"id": 81, "type": "call_expression", "text": "e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale)", "parent": 9, "children": [82, 83], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 58}}, {"id": 82, "type": "identifier", "text": "e_widget_size_min_set", "parent": 81, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 24}}, {"id": 83, "type": "argument_list", "text": "(ob, 260 * e_scale, 280 * e_scale)", "parent": 81, "children": [84, 85, 89], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 58}}, {"id": 84, "type": "identifier", "text": "ob", "parent": 83, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 27}}, {"id": 85, "type": "binary_expression", "text": "260 * e_scale", "parent": 83, "children": [86, 87, 88], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 42}}, {"id": 86, "type": "number_literal", "text": "260", "parent": 85, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 32}}, {"id": 87, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 34}}, {"id": 88, "type": "identifier", "text": "e_scale", "parent": 85, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 42}}, {"id": 89, "type": "binary_expression", "text": "280 * e_scale", "parent": 83, "children": [90, 91, 92], "start_point": {"row": 29, "column": 44}, "end_point": {"row": 29, "column": 57}}, {"id": 90, "type": "number_literal", "text": "280", "parent": 89, "children": [], "start_point": {"row": 29, "column": 44}, "end_point": {"row": 29, "column": 47}}, {"id": 91, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 29, "column": 48}, "end_point": {"row": 29, "column": 49}}, {"id": 92, "type": "identifier", "text": "e_scale", "parent": 89, "children": [], "start_point": {"row": 29, "column": 50}, "end_point": {"row": 29, "column": 57}}, {"id": 93, "type": "call_expression", "text": "e_widget_textblock_markup_set\n (ob,\n _(\"Moksha can check for new<br>\"\n \"versions, updates, security and<br>\"\n \"bugfixes, as well as available add-ons.<br>\"\n \"<br>\"\n \"This is very useful, because it lets<br>\"\n \"you know about available bug fixes and<br>\"\n \"security fixes when they happen. As a<br>\"\n \"result, Moksha will connect to<br>\"\n \"enlightenment.org and transmit some<br>\"\n \"information, much like any web browser<br>\"\n \"might do. No personal information such as<br>\"\n \"username, password or any personal files<br>\"\n \"will be transmitted. If you don't like this,<br>\"\n \"please disable this below. It is highly<br>\"\n \"advised that you do not disable this as it<br>\"\n \"may leave you vulnerable or having to live<br>\"\n \"with bugs.\"\n )\n )", "parent": 9, "children": [94, 95], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 50, "column": 6}}, {"id": 94, "type": "identifier", "text": "e_widget_textblock_markup_set", "parent": 93, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 32}}, {"id": 95, "type": "argument_list", "text": "(ob,\n _(\"Moksha can check for new<br>\"\n \"versions, updates, security and<br>\"\n \"bugfixes, as well as available add-ons.<br>\"\n \"<br>\"\n \"This is very useful, because it lets<br>\"\n \"you know about available bug fixes and<br>\"\n \"security fixes when they happen. As a<br>\"\n \"result, Moksha will connect to<br>\"\n \"enlightenment.org and transmit some<br>\"\n \"information, much like any web browser<br>\"\n \"might do. No personal information such as<br>\"\n \"username, password or any personal files<br>\"\n \"will be transmitted. If you don't like this,<br>\"\n \"please disable this below. It is highly<br>\"\n \"advised that you do not disable this as it<br>\"\n \"may leave you vulnerable or having to live<br>\"\n \"with bugs.\"\n )\n )", "parent": 93, "children": [96, 97], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 50, "column": 6}}, {"id": 96, "type": "identifier", "text": "ob", "parent": 95, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 8}}, {"id": 97, "type": "call_expression", "text": "_(\"Moksha can check for new<br>\"\n \"versions, updates, security and<br>\"\n \"bugfixes, as well as available add-ons.<br>\"\n \"<br>\"\n \"This is very useful, because it lets<br>\"\n \"you know about available bug fixes and<br>\"\n \"security fixes when they happen. As a<br>\"\n \"result, Moksha will connect to<br>\"\n \"enlightenment.org and transmit some<br>\"\n \"information, much like any web browser<br>\"\n \"might do. No personal information such as<br>\"\n \"username, password or any personal files<br>\"\n \"will be transmitted. If you don't like this,<br>\"\n \"please disable this below. It is highly<br>\"\n \"advised that you do not disable this as it<br>\"\n \"may leave you vulnerable or having to live<br>\"\n \"with bugs.\"\n )", "parent": 95, "children": [98, 99], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 49, "column": 8}}, {"id": 98, "type": "identifier", "text": "_", "parent": 97, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 6}}, {"id": 99, "type": "argument_list", "text": "(\"Moksha can check for new<br>\"\n \"versions, updates, security and<br>\"\n \"bugfixes, as well as available add-ons.<br>\"\n \"<br>\"\n \"This is very useful, because it lets<br>\"\n \"you know about available bug fixes and<br>\"\n \"security fixes when they happen. As a<br>\"\n \"result, Moksha will connect to<br>\"\n \"enlightenment.org and transmit some<br>\"\n \"information, much like any web browser<br>\"\n \"might do. No personal information such as<br>\"\n \"username, password or any personal files<br>\"\n \"will be transmitted. If you don't like this,<br>\"\n \"please disable this below. It is highly<br>\"\n \"advised that you do not disable this as it<br>\"\n \"may leave you vulnerable or having to live<br>\"\n \"with bugs.\"\n )", "parent": 97, "children": [100], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 49, "column": 8}}, {"id": 100, "type": "concatenated_string", "text": "\"Moksha can check for new<br>\"\n \"versions, updates, security and<br>\"\n \"bugfixes, as well as available add-ons.<br>\"\n \"<br>\"\n \"This is very useful, because it lets<br>\"\n \"you know about available bug fixes and<br>\"\n \"security fixes when they happen. As a<br>\"\n \"result, Moksha will connect to<br>\"\n \"enlightenment.org and transmit some<br>\"\n \"information, much like any web browser<br>\"\n \"might do. No personal information such as<br>\"\n \"username, password or any personal files<br>\"\n \"will be transmitted. If you don't like this,<br>\"\n \"please disable this below. It is highly<br>\"\n \"advised that you do not disable this as it<br>\"\n \"may leave you vulnerable or having to live<br>\"\n \"with bugs.\"", "parent": 99, "children": [101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 48, "column": 19}}, {"id": 101, "type": "string_literal", "text": "\"Moksha can check for new<br>\"", "parent": 100, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 37}}, {"id": 102, "type": "string_literal", "text": "\"versions, updates, security and<br>\"", "parent": 100, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 44}}, {"id": 103, "type": "string_literal", "text": "\"bugfixes, as well as available add-ons.<br>\"", "parent": 100, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 52}}, {"id": 104, "type": "string_literal", "text": "\"<br>\"", "parent": 100, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 13}}, {"id": 105, "type": "string_literal", "text": "\"This is very useful, because it lets<br>\"", "parent": 100, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 49}}, {"id": 106, "type": "string_literal", "text": "\"you know about available bug fixes and<br>\"", "parent": 100, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 51}}, {"id": 107, "type": "string_literal", "text": "\"security fixes when they happen. As a<br>\"", "parent": 100, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 50}}, {"id": 108, "type": "string_literal", "text": "\"result, Moksha will connect to<br>\"", "parent": 100, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 43}}, {"id": 109, "type": "string_literal", "text": "\"enlightenment.org and transmit some<br>\"", "parent": 100, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 48}}, {"id": 110, "type": "string_literal", "text": "\"information, much like any web browser<br>\"", "parent": 100, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 51}}, {"id": 111, "type": "string_literal", "text": "\"might do. No personal information such as<br>\"", "parent": 100, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 54}}, {"id": 112, "type": "string_literal", "text": "\"username, password or any personal files<br>\"", "parent": 100, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 53}}, {"id": 113, "type": "string_literal", "text": "\"will be transmitted. If you don't like this,<br>\"", "parent": 100, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 57}}, {"id": 114, "type": "string_literal", "text": "\"please disable this below. It is highly<br>\"", "parent": 100, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 52}}, {"id": 115, "type": "string_literal", "text": "\"advised that you do not disable this as it<br>\"", "parent": 100, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 55}}, {"id": 116, "type": "string_literal", "text": "\"may leave you vulnerable or having to live<br>\"", "parent": 100, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 55}}, {"id": 117, "type": "string_literal", "text": "\"with bugs.\"", "parent": 100, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 19}}, {"id": 118, "type": "call_expression", "text": "e_widget_framelist_object_append(of, ob)", "parent": 9, "children": [119, 120], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 43}}, {"id": 119, "type": "identifier", "text": "e_widget_framelist_object_append", "parent": 118, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 35}}, {"id": 120, "type": "argument_list", "text": "(of, ob)", "parent": 118, "children": [121, 122], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 51, "column": 43}}, {"id": 121, "type": "identifier", "text": "of", "parent": 120, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 38}}, {"id": 122, "type": "identifier", "text": "ob", "parent": 120, "children": [], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 42}}, {"id": 123, "type": "assignment_expression", "text": "ob = e_widget_check_add(pg->evas, _(\"Enable update checking\"), &(do_up))", "parent": 9, "children": [124, 125, 126], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 75}}, {"id": 124, "type": "identifier", "text": "ob", "parent": 123, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 5}}, {"id": 125, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 7}}, {"id": 126, "type": "call_expression", "text": "e_widget_check_add(pg->evas, _(\"Enable update checking\"), &(do_up))", "parent": 123, "children": [127, 128], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 75}}, {"id": 127, "type": "identifier", "text": "e_widget_check_add", "parent": 126, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 26}}, {"id": 128, "type": "argument_list", "text": "(pg->evas, _(\"Enable update checking\"), &(do_up))", "parent": 126, "children": [129, 132, 136], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 75}}, {"id": 129, "type": "field_expression", "text": "pg->evas", "parent": 128, "children": [130, 131], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 35}}, {"id": 130, "type": "identifier", "text": "pg", "parent": 129, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 29}}, {"id": 131, "type": "field_identifier", "text": "evas", "parent": 129, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 35}}, {"id": 132, "type": "call_expression", "text": "_(\"Enable update checking\")", "parent": 128, "children": [133, 134], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 64}}, {"id": 133, "type": "identifier", "text": "_", "parent": 132, "children": [], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 38}}, {"id": 134, "type": "argument_list", "text": "(\"Enable update checking\")", "parent": 132, "children": [135], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 64}}, {"id": 135, "type": "string_literal", "text": "\"Enable update checking\"", "parent": 134, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 63}}, {"id": 136, "type": "pointer_expression", "text": "&(do_up)", "parent": 128, "children": [137], "start_point": {"row": 53, "column": 66}, "end_point": {"row": 53, "column": 74}}, {"id": 137, "type": "parenthesized_expression", "text": "(do_up)", "parent": 136, "children": [138], "start_point": {"row": 53, "column": 67}, "end_point": {"row": 53, "column": 74}}, {"id": 138, "type": "identifier", "text": "do_up", "parent": 137, "children": [], "start_point": {"row": 53, "column": 68}, "end_point": {"row": 53, "column": 73}}, {"id": 139, "type": "call_expression", "text": "e_widget_framelist_object_append(of, ob)", "parent": 9, "children": [140, 141], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 43}}, {"id": 140, "type": "identifier", "text": "e_widget_framelist_object_append", "parent": 139, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 35}}, {"id": 141, "type": "argument_list", "text": "(of, ob)", "parent": 139, "children": [142, 143], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 43}}, {"id": 142, "type": "identifier", "text": "of", "parent": 141, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 38}}, {"id": 143, "type": "identifier", "text": "ob", "parent": 141, "children": [], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 42}}, {"id": 144, "type": "call_expression", "text": "e_widget_list_object_append(o, of, 0, 0, 0.5)", "parent": 9, "children": [145, 146], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 48}}, {"id": 145, "type": "identifier", "text": "e_widget_list_object_append", "parent": 144, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 30}}, {"id": 146, "type": "argument_list", "text": "(o, of, 0, 0, 0.5)", "parent": 144, "children": [147, 148, 149, 150, 151], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 48}}, {"id": 147, "type": "identifier", "text": "o", "parent": 146, "children": [], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 32}}, {"id": 148, "type": "identifier", "text": "of", "parent": 146, "children": [], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 36}}, {"id": 149, "type": "number_literal", "text": "0", "parent": 146, "children": [], "start_point": {"row": 56, "column": 38}, "end_point": {"row": 56, "column": 39}}, {"id": 150, "type": "number_literal", "text": "0", "parent": 146, "children": [], "start_point": {"row": 56, "column": 41}, "end_point": {"row": 56, "column": 42}}, {"id": 151, "type": "number_literal", "text": "0.5", "parent": 146, "children": [], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 47}}, {"id": 152, "type": "call_expression", "text": "evas_object_show(of)", "parent": 9, "children": [153, 154], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 23}}, {"id": 153, "type": "identifier", "text": "evas_object_show", "parent": 152, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 19}}, {"id": 154, "type": "argument_list", "text": "(of)", "parent": 152, "children": [155], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 23}}, {"id": 155, "type": "identifier", "text": "of", "parent": 154, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 22}}, {"id": 156, "type": "call_expression", "text": "e_wizard_page_show(o)", "parent": 9, "children": [157, 158], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 24}}, {"id": 157, "type": "identifier", "text": "e_wizard_page_show", "parent": 156, "children": [], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 21}}, {"id": 158, "type": "argument_list", "text": "(o)", "parent": 156, "children": [159], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 24}}, {"id": 159, "type": "identifier", "text": "o", "parent": 158, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 160, "type": "return_statement", "text": "return 0;", "parent": 9, "children": [161], "start_point": {"row": 61, "column": 3}, "end_point": {"row": 61, "column": 12}}, {"id": 161, "type": "number_literal", "text": "0", "parent": 160, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 11}}, {"id": 162, "type": "function_definition", "text": "EAPI int\nwizard_page_hide(E_Wizard_Page *pg __UNUSED__)\n{\n e_config->update.check = do_up;\n e_config_save_queue();\n return 1;\n}", "parent": null, "children": [163, 164, 166], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 163, "type": "type_identifier", "text": "EAPI", "parent": 162, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 164, "type": "ERROR", "text": "int", "parent": 162, "children": [165], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 8}}, {"id": 165, "type": "identifier", "text": "int", "parent": 164, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 8}}, {"id": 166, "type": "function_declarator", "text": "wizard_page_hide(E_Wizard_Page *pg __UNUSED__)", "parent": 162, "children": [167, 168], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 46}}, {"id": 167, "type": "identifier", "text": "wizard_page_hide", "parent": 166, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 16}}, {"id": 168, "type": "parameter_list", "text": "(E_Wizard_Page *pg __UNUSED__)", "parent": 166, "children": [169], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 46}}, {"id": 169, "type": "parameter_declaration", "text": "E_Wizard_Page *pg __UNUSED__", "parent": 168, "children": [170, 171], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 45}}, {"id": 170, "type": "type_identifier", "text": "E_Wizard_Page", "parent": 169, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 30}}, {"id": 171, "type": "pointer_declarator", "text": "*pg __UNUSED__", "parent": 169, "children": [172, 173, 175], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 45}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 32}}, {"id": 173, "type": "ERROR", "text": "pg", "parent": 171, "children": [174], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 34}}, {"id": 174, "type": "identifier", "text": "pg", "parent": 173, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 34}}, {"id": 175, "type": "identifier", "text": "__UNUSED__", "parent": 171, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 45}}, {"id": 176, "type": "assignment_expression", "text": "e_config->update.check = do_up", "parent": 162, "children": [177, 182, 183], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 33}}, {"id": 177, "type": "field_expression", "text": "e_config->update.check", "parent": 176, "children": [178, 181], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 25}}, {"id": 178, "type": "field_expression", "text": "e_config->update", "parent": 177, "children": [179, 180], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 19}}, {"id": 179, "type": "identifier", "text": "e_config", "parent": 178, "children": [], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 11}}, {"id": 180, "type": "field_identifier", "text": "update", "parent": 178, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 19}}, {"id": 181, "type": "field_identifier", "text": "check", "parent": 177, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 25}}, {"id": 182, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 27}}, {"id": 183, "type": "identifier", "text": "do_up", "parent": 176, "children": [], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 33}}, {"id": 184, "type": "call_expression", "text": "e_config_save_queue()", "parent": 162, "children": [185, 186], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 24}}, {"id": 185, "type": "identifier", "text": "e_config_save_queue", "parent": 184, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 22}}, {"id": 186, "type": "argument_list", "text": "()", "parent": 184, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 24}}, {"id": 187, "type": "return_statement", "text": "return 1;", "parent": 162, "children": [188], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 12}}, {"id": 188, "type": "number_literal", "text": "1", "parent": 187, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 11}}]}, "node_categories": {"declarations": {"functions": [9, 13, 162, 166], "variables": [3, 16, 21, 169], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [35, 38, 44, 45, 47, 51, 54, 61, 64, 67, 75, 78, 81, 85, 89, 93, 97, 118, 126, 129, 132, 136, 137, 139, 144, 152, 156, 177, 178, 184], "assignments": [32, 58, 72, 123, 176], "loops": [], "conditionals": [6, 10, 12, 14, 17, 20, 22, 25, 28, 31, 33, 36, 39, 40, 43, 48, 52, 55, 59, 62, 65, 66, 68, 73, 76, 79, 80, 82, 84, 88, 92, 94, 96, 98, 119, 121, 122, 124, 127, 130, 131, 133, 138, 140, 142, 143, 145, 147, 148, 153, 155, 157, 159, 163, 165, 167, 170, 174, 175, 179, 180, 181, 183, 185], "returns": [160, 187], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 8, 41, 42, 50, 57, 70, 71, 86, 90, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 135, 149, 150, 151, 161, 188], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "wizard_page_show", "text_snippet": "EAPI int\nwizard_page_show(E_Wizard_Page *pg)\n{\n Evas_Object *o, *of, *ob;\n\n o = e_widget_list_ad"}, {"node_id": 13, "universal_type": "function", "name": "unknown", "text_snippet": "wizard_page_show(E_Wizard_Page *pg)"}, {"node_id": 162, "universal_type": "function", "name": "wizard_page_hide", "text_snippet": "EAPI int\nwizard_page_hide(E_Wizard_Page *pg __UNUSED__)\n{\n e_config->update.check = do_up;\n e_co"}, {"node_id": 166, "universal_type": "function", "name": "unknown", "text_snippet": "wizard_page_hide(E_Wizard_Page *pg __UNUSED__)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"e_wizard.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/* Ask about updates checking */\n#include \"e_wizard.h\"\n\nstatic int do_up = 0;\n/*\nEAPI int\nwizard_page_init(E_Wizard_Page *pg __UNUSED__, Eina_Bool *need_xdg_desktops __UNUSED__, Eina_Bool *need_xdg_icons __UNUSED__)\n{\n return 1;\n}\n\nEAPI int\nwizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)\n{\n return 1;\n}\n*/\nEAPI int\nwizard_page_show(E_Wizard_Page *pg)\n{\n Evas_Object *o, *of, *ob;\n\n o = e_widget_list_add(pg->evas, 1, 0);\n if (! ecore_file_exists(\"/etc/bodhi/iso\"))\n e_wizard_title_set(_(\"Updates\"));\n\n of = e_widget_framelist_add(pg->evas, _(\"Check for available updates\"), 0);\n\n ob = e_widget_textblock_add(pg->evas);\n e_widget_size_min_set(ob, 260 * e_scale, 280 * e_scale);\n e_widget_textblock_markup_set\n (ob,\n _(\"Moksha can check for new<br>\"\n \"versions, updates, security and<br>\"\n \"bugfixes, as well as available add-ons.<br>\"\n \"<br>\"\n \"This is very useful, because it lets<br>\"\n \"you know about available bug fixes and<br>\"\n \"security fixes when they happen. As a<br>\"\n \"result, Moksha will connect to<br>\"\n \"enlightenment.org and transmit some<br>\"\n \"information, much like any web browser<br>\"\n \"might do. No personal information such as<br>\"\n \"username, password or any personal files<br>\"\n \"will be transmitted. If you don't like this,<br>\"\n \"please disable this below. It is highly<br>\"\n \"advised that you do not disable this as it<br>\"\n \"may leave you vulnerable or having to live<br>\"\n \"with bugs.\"\n )\n );\n e_widget_framelist_object_append(of, ob);\n\n ob = e_widget_check_add(pg->evas, _(\"Enable update checking\"), &(do_up));\n e_widget_framelist_object_append(of, ob);\n\n e_widget_list_object_append(o, of, 0, 0, 0.5);\n\n evas_object_show(of);\n\n e_wizard_page_show(o);\n return 0; /* 1 == show ui, and wait for user, 0 == just continue */\n}\n\nEAPI int\nwizard_page_hide(E_Wizard_Page *pg __UNUSED__)\n{\n e_config->update.check = do_up;\n e_config_save_queue();\n return 1;\n}\n/*\nEAPI int\nwizard_page_apply(E_Wizard_Page *pg __UNUSED__)\n{\n return 1;\n}\n*/\n"}
80,838
c
#ifndef MODULE_H #define MODULE_H #include "symbol.h" struct module; struct function; extern struct module *m; struct module *module_new(const char *module_name); void module_free(struct module *m); struct function * module_get_or_create_function(struct module *m, struct symbol *sym); void module_print(struct module *m, FILE * out); void module_add_prototype(struct module *m, struct symbol *sym); void module_add_global(struct module *m, struct symbol *sym, bool extern_); #endif //MODULE_H
34.29
14
(translation_unit) "#ifndef MODULE_H\n#define MODULE_H\n\n#include "symbol.h"\n\nstruct module;\nstruct function;\n\nextern struct module *m;\n\nstruct module *module_new(const char *module_name);\nvoid module_free(struct module *m);\n\nstruct function *\nmodule_get_or_create_function(struct module *m, struct symbol *sym);\n\nvoid module_print(struct module *m, FILE * out);\n\nvoid module_add_prototype(struct module *m, struct symbol *sym);\nvoid module_add_global(struct module *m, struct symbol *sym, bool extern_);\n\n#endif //MODULE_H\n" (preproc_ifdef) "#ifndef MODULE_H\n#define MODULE_H\n\n#include "symbol.h"\n\nstruct module;\nstruct function;\n\nextern struct module *m;\n\nstruct module *module_new(const char *module_name);\nvoid module_free(struct module *m);\n\nstruct function *\nmodule_get_or_create_function(struct module *m, struct symbol *sym);\n\nvoid module_print(struct module *m, FILE * out);\n\nvoid module_add_prototype(struct module *m, struct symbol *sym);\nvoid module_add_global(struct module *m, struct symbol *sym, bool extern_);\n\n#endif" (#ifndef) "#ifndef" (identifier) "MODULE_H" (preproc_def) "#define MODULE_H\n" (#define) "#define" (identifier) "MODULE_H" (preproc_include) "#include "symbol.h"\n" (#include) "#include" (string_literal) ""symbol.h"" (") """ (string_content) "symbol.h" (") """ (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (;) ";" (struct_specifier) "struct function" (struct) "struct" (type_identifier) "function" (;) ";" (declaration) "extern struct module *m;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (pointer_declarator) "*m" (*) "*" (identifier) "m" (;) ";" (declaration) "struct module *module_new(const char *module_name);" (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (pointer_declarator) "*module_new(const char *module_name)" (*) "*" (function_declarator) "module_new(const char *module_name)" (identifier) "module_new" (parameter_list) "(const char *module_name)" (() "(" (parameter_declaration) "const char *module_name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*module_name" (*) "*" (identifier) "module_name" ()) ")" (;) ";" (declaration) "void module_free(struct module *m);" (primitive_type) "void" (function_declarator) "module_free(struct module *m)" (identifier) "module_free" (parameter_list) "(struct module *m)" (() "(" (parameter_declaration) "struct module *m" (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (pointer_declarator) "*m" (*) "*" (identifier) "m" ()) ")" (;) ";" (declaration) "struct function *\nmodule_get_or_create_function(struct module *m, struct symbol *sym);" (struct_specifier) "struct function" (struct) "struct" (type_identifier) "function" (pointer_declarator) "*\nmodule_get_or_create_function(struct module *m, struct symbol *sym)" (*) "*" (function_declarator) "module_get_or_create_function(struct module *m, struct symbol *sym)" (identifier) "module_get_or_create_function" (parameter_list) "(struct module *m, struct symbol *sym)" (() "(" (parameter_declaration) "struct module *m" (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "struct symbol *sym" (struct_specifier) "struct symbol" (struct) "struct" (type_identifier) "symbol" (pointer_declarator) "*sym" (*) "*" (identifier) "sym" ()) ")" (;) ";" (declaration) "void module_print(struct module *m, FILE * out);" (primitive_type) "void" (function_declarator) "module_print(struct module *m, FILE * out)" (identifier) "module_print" (parameter_list) "(struct module *m, FILE * out)" (() "(" (parameter_declaration) "struct module *m" (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "FILE * out" (type_identifier) "FILE" (pointer_declarator) "* out" (*) "*" (identifier) "out" ()) ")" (;) ";" (declaration) "void module_add_prototype(struct module *m, struct symbol *sym);" (primitive_type) "void" (function_declarator) "module_add_prototype(struct module *m, struct symbol *sym)" (identifier) "module_add_prototype" (parameter_list) "(struct module *m, struct symbol *sym)" (() "(" (parameter_declaration) "struct module *m" (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "struct symbol *sym" (struct_specifier) "struct symbol" (struct) "struct" (type_identifier) "symbol" (pointer_declarator) "*sym" (*) "*" (identifier) "sym" ()) ")" (;) ";" (declaration) "void module_add_global(struct module *m, struct symbol *sym, bool extern_);" (primitive_type) "void" (function_declarator) "module_add_global(struct module *m, struct symbol *sym, bool extern_)" (identifier) "module_add_global" (parameter_list) "(struct module *m, struct symbol *sym, bool extern_)" (() "(" (parameter_declaration) "struct module *m" (struct_specifier) "struct module" (struct) "struct" (type_identifier) "module" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "struct symbol *sym" (struct_specifier) "struct symbol" (struct) "struct" (type_identifier) "symbol" (pointer_declarator) "*sym" (*) "*" (identifier) "sym" (,) "," (parameter_declaration) "bool extern_" (primitive_type) "bool" (identifier) "extern_" ()) ")" (;) ";" (#endif) "#endif" (comment) "//MODULE_H"
165
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 34.29, "nodes": 130, "errors": 0, "source_hash": "9e6e6a68b09455087ff3ff85c0cf110a4c29fed68851b4364579887a5534ce64", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MODULE_H\n#define MODULE_H\n\n#include \"symbol.h\"\n\nstruct module;\nstruct function;\n\nextern struct module *m;\n\nstruct module *module_new(const char *module_name);\nvoid module_free(struct module *m);\n\nstruct function *\nmodule_get_or_create_function(struct module *m, struct symbol *sym);\n\nvoid module_print(struct module *m, FILE * out);\n\nvoid module_add_prototype(struct module *m, struct symbol *sym);\nvoid module_add_global(struct module *m, struct symbol *sym, bool extern_);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 14, 23, 37, 49, 71, 88, 107, 129], "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": "MODULE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 16}}, {"id": 3, "type": "preproc_def", "text": "#define MODULE_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": "MODULE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include \"symbol.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"symbol.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "struct_specifier", "text": "struct module", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 13}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "module", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 13}}, {"id": 12, "type": "struct_specifier", "text": "struct function", "parent": 0, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 15}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "declaration", "text": "extern struct module *m;", "parent": 0, "children": [15, 17, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 24}}, {"id": 15, "type": "storage_class_specifier", "text": "extern", "parent": 14, "children": [16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 16, "type": "extern", "text": "extern", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 17, "type": "struct_specifier", "text": "struct module", "parent": 14, "children": [18, 19], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 20}}, {"id": 18, "type": "struct", "text": "struct", "parent": 17, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 13}}, {"id": 19, "type": "type_identifier", "text": "module", "parent": 17, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 20}}, {"id": 20, "type": "pointer_declarator", "text": "*m", "parent": 14, "children": [21, 22], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 23}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 22}}, {"id": 22, "type": "identifier", "text": "m", "parent": 20, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 23}}, {"id": 23, "type": "declaration", "text": "struct module *module_new(const char *module_name);", "parent": 0, "children": [24, 27], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 51}}, {"id": 24, "type": "struct_specifier", "text": "struct module", "parent": 23, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 13}}, {"id": 25, "type": "struct", "text": "struct", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 26, "type": "type_identifier", "text": "module", "parent": 24, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 13}}, {"id": 27, "type": "pointer_declarator", "text": "*module_new(const char *module_name)", "parent": 23, "children": [28, 29], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 50}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 29, "type": "function_declarator", "text": "module_new(const char *module_name)", "parent": 27, "children": [30, 31], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 50}}, {"id": 30, "type": "identifier", "text": "module_new", "parent": 29, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 25}}, {"id": 31, "type": "parameter_list", "text": "(const char *module_name)", "parent": 29, "children": [32], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 50}}, {"id": 32, "type": "parameter_declaration", "text": "const char *module_name", "parent": 31, "children": [33, 34], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 49}}, {"id": 33, "type": "primitive_type", "text": "char", "parent": 32, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 36}}, {"id": 34, "type": "pointer_declarator", "text": "*module_name", "parent": 32, "children": [35, 36], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 49}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 38}}, {"id": 36, "type": "identifier", "text": "module_name", "parent": 34, "children": [], "start_point": {"row": 10, "column": 38}, "end_point": {"row": 10, "column": 49}}, {"id": 37, "type": "declaration", "text": "void module_free(struct module *m);", "parent": 0, "children": [38, 39], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 35}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 39, "type": "function_declarator", "text": "module_free(struct module *m)", "parent": 37, "children": [40, 41], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 34}}, {"id": 40, "type": "identifier", "text": "module_free", "parent": 39, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 16}}, {"id": 41, "type": "parameter_list", "text": "(struct module *m)", "parent": 39, "children": [42], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 34}}, {"id": 42, "type": "parameter_declaration", "text": "struct module *m", "parent": 41, "children": [43, 46], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 33}}, {"id": 43, "type": "struct_specifier", "text": "struct module", "parent": 42, "children": [44, 45], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 30}}, {"id": 44, "type": "struct", "text": "struct", "parent": 43, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 23}}, {"id": 45, "type": "type_identifier", "text": "module", "parent": 43, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 30}}, {"id": 46, "type": "pointer_declarator", "text": "*m", "parent": 42, "children": [47, 48], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 33}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 32}}, {"id": 48, "type": "identifier", "text": "m", "parent": 46, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 33}}, {"id": 49, "type": "declaration", "text": "struct function *\nmodule_get_or_create_function(struct module *m, struct symbol *sym);", "parent": 0, "children": [50, 52], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 68}}, {"id": 50, "type": "struct_specifier", "text": "struct function", "parent": 49, "children": [51], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 15}}, {"id": 51, "type": "struct", "text": "struct", "parent": 50, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 52, "type": "pointer_declarator", "text": "*\nmodule_get_or_create_function(struct module *m, struct symbol *sym)", "parent": 49, "children": [53, 54], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 14, "column": 67}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 17}}, {"id": 54, "type": "function_declarator", "text": "module_get_or_create_function(struct module *m, struct symbol *sym)", "parent": 52, "children": [55, 56], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 67}}, {"id": 55, "type": "identifier", "text": "module_get_or_create_function", "parent": 54, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 29}}, {"id": 56, "type": "parameter_list", "text": "(struct module *m, struct symbol *sym)", "parent": 54, "children": [57, 64], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 67}}, {"id": 57, "type": "parameter_declaration", "text": "struct module *m", "parent": 56, "children": [58, 61], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 46}}, {"id": 58, "type": "struct_specifier", "text": "struct module", "parent": 57, "children": [59, 60], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 43}}, {"id": 59, "type": "struct", "text": "struct", "parent": 58, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 36}}, {"id": 60, "type": "type_identifier", "text": "module", "parent": 58, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 43}}, {"id": 61, "type": "pointer_declarator", "text": "*m", "parent": 57, "children": [62, 63], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 46}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 45}}, {"id": 63, "type": "identifier", "text": "m", "parent": 61, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 46}}, {"id": 64, "type": "parameter_declaration", "text": "struct symbol *sym", "parent": 56, "children": [65, 68], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 66}}, {"id": 65, "type": "struct_specifier", "text": "struct symbol", "parent": 64, "children": [66, 67], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 61}}, {"id": 66, "type": "struct", "text": "struct", "parent": 65, "children": [], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 54}}, {"id": 67, "type": "type_identifier", "text": "symbol", "parent": 65, "children": [], "start_point": {"row": 14, "column": 55}, "end_point": {"row": 14, "column": 61}}, {"id": 68, "type": "pointer_declarator", "text": "*sym", "parent": 64, "children": [69, 70], "start_point": {"row": 14, "column": 62}, "end_point": {"row": 14, "column": 66}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 14, "column": 62}, "end_point": {"row": 14, "column": 63}}, {"id": 70, "type": "identifier", "text": "sym", "parent": 68, "children": [], "start_point": {"row": 14, "column": 63}, "end_point": {"row": 14, "column": 66}}, {"id": 71, "type": "declaration", "text": "void module_print(struct module *m, FILE * out);", "parent": 0, "children": [72, 73], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 48}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 73, "type": "function_declarator", "text": "module_print(struct module *m, FILE * out)", "parent": 71, "children": [74, 75], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 47}}, {"id": 74, "type": "identifier", "text": "module_print", "parent": 73, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 17}}, {"id": 75, "type": "parameter_list", "text": "(struct module *m, FILE * out)", "parent": 73, "children": [76, 83], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 47}}, {"id": 76, "type": "parameter_declaration", "text": "struct module *m", "parent": 75, "children": [77, 80], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 34}}, {"id": 77, "type": "struct_specifier", "text": "struct module", "parent": 76, "children": [78, 79], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 31}}, {"id": 78, "type": "struct", "text": "struct", "parent": 77, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 24}}, {"id": 79, "type": "type_identifier", "text": "module", "parent": 77, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 31}}, {"id": 80, "type": "pointer_declarator", "text": "*m", "parent": 76, "children": [81, 82], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 34}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 33}}, {"id": 82, "type": "identifier", "text": "m", "parent": 80, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 34}}, {"id": 83, "type": "parameter_declaration", "text": "FILE * out", "parent": 75, "children": [84, 85], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 46}}, {"id": 84, "type": "type_identifier", "text": "FILE", "parent": 83, "children": [], "start_point": {"row": 16, "column": 36}, "end_point": {"row": 16, "column": 40}}, {"id": 85, "type": "pointer_declarator", "text": "* out", "parent": 83, "children": [86, 87], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 46}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 42}}, {"id": 87, "type": "identifier", "text": "out", "parent": 85, "children": [], "start_point": {"row": 16, "column": 43}, "end_point": {"row": 16, "column": 46}}, {"id": 88, "type": "declaration", "text": "void module_add_prototype(struct module *m, struct symbol *sym);", "parent": 0, "children": [89, 90], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 64}}, {"id": 89, "type": "primitive_type", "text": "void", "parent": 88, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 90, "type": "function_declarator", "text": "module_add_prototype(struct module *m, struct symbol *sym)", "parent": 88, "children": [91, 92], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 63}}, {"id": 91, "type": "identifier", "text": "module_add_prototype", "parent": 90, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 25}}, {"id": 92, "type": "parameter_list", "text": "(struct module *m, struct symbol *sym)", "parent": 90, "children": [93, 100], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 63}}, {"id": 93, "type": "parameter_declaration", "text": "struct module *m", "parent": 92, "children": [94, 97], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 42}}, {"id": 94, "type": "struct_specifier", "text": "struct module", "parent": 93, "children": [95, 96], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 39}}, {"id": 95, "type": "struct", "text": "struct", "parent": 94, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 32}}, {"id": 96, "type": "type_identifier", "text": "module", "parent": 94, "children": [], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 39}}, {"id": 97, "type": "pointer_declarator", "text": "*m", "parent": 93, "children": [98, 99], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 42}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 41}}, {"id": 99, "type": "identifier", "text": "m", "parent": 97, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 42}}, {"id": 100, "type": "parameter_declaration", "text": "struct symbol *sym", "parent": 92, "children": [101, 104], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 62}}, {"id": 101, "type": "struct_specifier", "text": "struct symbol", "parent": 100, "children": [102, 103], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 57}}, {"id": 102, "type": "struct", "text": "struct", "parent": 101, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 50}}, {"id": 103, "type": "type_identifier", "text": "symbol", "parent": 101, "children": [], "start_point": {"row": 18, "column": 51}, "end_point": {"row": 18, "column": 57}}, {"id": 104, "type": "pointer_declarator", "text": "*sym", "parent": 100, "children": [105, 106], "start_point": {"row": 18, "column": 58}, "end_point": {"row": 18, "column": 62}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 18, "column": 58}, "end_point": {"row": 18, "column": 59}}, {"id": 106, "type": "identifier", "text": "sym", "parent": 104, "children": [], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 18, "column": 62}}, {"id": 107, "type": "declaration", "text": "void module_add_global(struct module *m, struct symbol *sym, bool extern_);", "parent": 0, "children": [108, 109], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 75}}, {"id": 108, "type": "primitive_type", "text": "void", "parent": 107, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 109, "type": "function_declarator", "text": "module_add_global(struct module *m, struct symbol *sym, bool extern_)", "parent": 107, "children": [110, 111], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 74}}, {"id": 110, "type": "identifier", "text": "module_add_global", "parent": 109, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 22}}, {"id": 111, "type": "parameter_list", "text": "(struct module *m, struct symbol *sym, bool extern_)", "parent": 109, "children": [112, 119, 126], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 74}}, {"id": 112, "type": "parameter_declaration", "text": "struct module *m", "parent": 111, "children": [113, 116], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 39}}, {"id": 113, "type": "struct_specifier", "text": "struct module", "parent": 112, "children": [114, 115], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 36}}, {"id": 114, "type": "struct", "text": "struct", "parent": 113, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 29}}, {"id": 115, "type": "type_identifier", "text": "module", "parent": 113, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 36}}, {"id": 116, "type": "pointer_declarator", "text": "*m", "parent": 112, "children": [117, 118], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 39}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 38}}, {"id": 118, "type": "identifier", "text": "m", "parent": 116, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 119, "type": "parameter_declaration", "text": "struct symbol *sym", "parent": 111, "children": [120, 123], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 59}}, {"id": 120, "type": "struct_specifier", "text": "struct symbol", "parent": 119, "children": [121, 122], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 54}}, {"id": 121, "type": "struct", "text": "struct", "parent": 120, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 47}}, {"id": 122, "type": "type_identifier", "text": "symbol", "parent": 120, "children": [], "start_point": {"row": 19, "column": 48}, "end_point": {"row": 19, "column": 54}}, {"id": 123, "type": "pointer_declarator", "text": "*sym", "parent": 119, "children": [124, 125], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 59}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 56}}, {"id": 125, "type": "identifier", "text": "sym", "parent": 123, "children": [], "start_point": {"row": 19, "column": 56}, "end_point": {"row": 19, "column": 59}}, {"id": 126, "type": "parameter_declaration", "text": "bool extern_", "parent": 111, "children": [127, 128], "start_point": {"row": 19, "column": 61}, "end_point": {"row": 19, "column": 73}}, {"id": 127, "type": "primitive_type", "text": "bool", "parent": 126, "children": [], "start_point": {"row": 19, "column": 61}, "end_point": {"row": 19, "column": 65}}, {"id": 128, "type": "identifier", "text": "extern_", "parent": 126, "children": [], "start_point": {"row": 19, "column": 66}, "end_point": {"row": 19, "column": 73}}, {"id": 129, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [29, 39, 54, 73, 90, 109], "variables": [14, 23, 32, 37, 42, 49, 57, 64, 71, 76, 83, 88, 93, 100, 107, 112, 119, 126], "classes": [9, 10, 12, 13, 15, 17, 18, 24, 25, 43, 44, 50, 51, 58, 59, 65, 66, 77, 78, 94, 95, 101, 102, 113, 114, 120, 121], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 19, 22, 26, 30, 36, 40, 45, 48, 55, 60, 63, 67, 70, 74, 79, 82, 84, 87, 91, 96, 99, 103, 106, 110, 115, 118, 122, 125, 128, 129], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "module_new(const char *module_name)"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "module_free(struct module *m)"}, {"node_id": 54, "universal_type": "function", "name": "symbol", "text_snippet": "module_get_or_create_function(struct module *m, struct symbol *sym)"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "module_print(struct module *m, FILE * out)"}, {"node_id": 90, "universal_type": "function", "name": "symbol", "text_snippet": "module_add_prototype(struct module *m, struct symbol *sym)"}, {"node_id": 109, "universal_type": "function", "name": "symbol", "text_snippet": "module_add_global(struct module *m, struct symbol *sym, bool extern_)"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 12, "universal_type": "class", "name": "function", "text_snippet": "struct function"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 17, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 18, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 24, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 43, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 44, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 50, "universal_type": "class", "name": "function", "text_snippet": "struct function"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 58, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 59, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 65, "universal_type": "class", "name": "symbol", "text_snippet": "struct symbol"}, {"node_id": 66, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 77, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 78, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 94, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 95, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 101, "universal_type": "class", "name": "symbol", "text_snippet": "struct symbol"}, {"node_id": 102, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 113, "universal_type": "class", "name": "module", "text_snippet": "struct module"}, {"node_id": 114, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 120, "universal_type": "class", "name": "symbol", "text_snippet": "struct symbol"}, {"node_id": 121, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"symbol.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef MODULE_H\n#define MODULE_H\n\n#include \"symbol.h\"\n\nstruct module;\nstruct function;\n\nextern struct module *m;\n\nstruct module *module_new(const char *module_name);\nvoid module_free(struct module *m);\n\nstruct function *\nmodule_get_or_create_function(struct module *m, struct symbol *sym);\n\nvoid module_print(struct module *m, FILE * out);\n\nvoid module_add_prototype(struct module *m, struct symbol *sym);\nvoid module_add_global(struct module *m, struct symbol *sym, bool extern_);\n\n#endif\t//MODULE_H\n"}
80,839
c
// OceanLoad3D_crust1.h // created by Kuangdai on 8-Oct-2016 // crustal model CRUST 1.0 // http://igppweb.ucsd.edu/~gabi/crust1.html #pragma once #include "OceanLoad3D.h" #include "eigenp.h" class OceanLoad3D_crust1: public OceanLoad3D { public: void initialize(); void initialize(const std::vector<std::string> &params); double getOceanDepth(double theta, double phi) const; std::string verbose() const; private: // model constants static const int sNLayer; static const int sNLat; static const int sNLon; // smoothening int mGaussianOrder = 2; double mGaussianDev = .5; // use geocentric or geographic bool mGeographic = true; // treat ice as water load bool mIncludeIceAsWater = false; // flag to benchmark with specfem bool mBenchmarkSPECFEM = false; // depth at grid points RDMatXX mDepth; RDColX mGridLat, mGridLon; };
22.88
40
(translation_unit) "// OceanLoad3D_crust1.h\n// created by Kuangdai on 8-Oct-2016 \n// crustal model CRUST 1.0 \n// http://igppweb.ucsd.edu/~gabi/crust1.html\n\n#pragma once\n\n#include "OceanLoad3D.h"\n#include "eigenp.h"\n\nclass OceanLoad3D_crust1: public OceanLoad3D {\npublic:\n\n void initialize();\n void initialize(const std::vector<std::string> &params);\n \n double getOceanDepth(double theta, double phi) const;\n \n std::string verbose() const;\n \nprivate:\n \n // model constants\n static const int sNLayer;\n static const int sNLat;\n static const int sNLon;\n \n // smoothening \n int mGaussianOrder = 2;\n double mGaussianDev = .5;\n \n // use geocentric or geographic\n bool mGeographic = true;\n \n // treat ice as water load\n bool mIncludeIceAsWater = false;\n \n // flag to benchmark with specfem\n bool mBenchmarkSPECFEM = false; \n \n // depth at grid points \n RDMatXX mDepth;\n RDColX mGridLat, mGridLon;\n};\n\n" (comment) "// OceanLoad3D_crust1.h" (comment) "// created by Kuangdai on 8-Oct-2016 " (comment) "// crustal model CRUST 1.0 " (comment) "// http://igppweb.ucsd.edu/~gabi/crust1.html" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "OceanLoad3D.h"\n" (#include) "#include" (string_literal) ""OceanLoad3D.h"" (") """ (string_content) "OceanLoad3D.h" (") """ (preproc_include) "#include "eigenp.h"\n" (#include) "#include" (string_literal) ""eigenp.h"" (") """ (string_content) "eigenp.h" (") """ (function_definition) "class OceanLoad3D_crust1: public OceanLoad3D {\npublic:\n\n void initialize();\n void initialize(const std::vector<std::string> &params);\n \n double getOceanDepth(double theta, double phi) const;\n \n std::string verbose() const;\n \nprivate:\n \n // model constants\n static const int sNLayer;\n static const int sNLat;\n static const int sNLon;\n \n // smoothening \n int mGaussianOrder = 2;\n double mGaussianDev = .5;\n \n // use geocentric or geographic\n bool mGeographic = true;\n \n // treat ice as water load\n bool mIncludeIceAsWater = false;\n \n // flag to benchmark with specfem\n bool mBenchmarkSPECFEM = false; \n \n // depth at grid points \n RDMatXX mDepth;\n RDColX mGridLat, mGridLon;\n}" (type_identifier) "class" (identifier) "OceanLoad3D_crust1" (ERROR) ": public OceanLoad3D" (:) ":" (identifier) "public" (identifier) "OceanLoad3D" (compound_statement) "{\npublic:\n\n void initialize();\n void initialize(const std::vector<std::string> &params);\n \n double getOceanDepth(double theta, double phi) const;\n \n std::string verbose() const;\n \nprivate:\n \n // model constants\n static const int sNLayer;\n static const int sNLat;\n static const int sNLon;\n \n // smoothening \n int mGaussianOrder = 2;\n double mGaussianDev = .5;\n \n // use geocentric or geographic\n bool mGeographic = true;\n \n // treat ice as water load\n bool mIncludeIceAsWater = false;\n \n // flag to benchmark with specfem\n bool mBenchmarkSPECFEM = false; \n \n // depth at grid points \n RDMatXX mDepth;\n RDColX mGridLat, mGridLon;\n}" ({) "{" (labeled_statement) "public:\n\n void initialize();" (statement_identifier) "public" (:) ":" (declaration) "void initialize();" (primitive_type) "void" (function_declarator) "initialize()" (identifier) "initialize" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void initialize(const std::vector<std::string> &params);" (primitive_type) "void" (function_declarator) "initialize(const std::vector<std::string> &params)" (identifier) "initialize" (parameter_list) "(const std::vector<std::string> &params)" (() "(" (parameter_declaration) "const std::vector<std::string> &params" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<std::string> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "params" ()) ")" (;) ";" (ERROR) "double getOceanDepth(double theta, double phi) const" (primitive_type) "double" (function_declarator) "getOceanDepth(double theta, double phi) const" (identifier) "getOceanDepth" (parameter_list) "(double theta, double phi)" (() "(" (parameter_declaration) "double theta" (primitive_type) "double" (identifier) "theta" (,) "," (parameter_declaration) "double phi" (primitive_type) "double" (identifier) "phi" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "std::string verbose() const;" (statement_identifier) "std" (:) ":" (ERROR) ":string verbose() const" (:) ":" (type_identifier) "string" (function_declarator) "verbose() const" (identifier) "verbose" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n \n // model constants\n static const int sNLayer;" (statement_identifier) "private" (:) ":" (comment) "// model constants" (declaration) "static const int sNLayer;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "sNLayer" (;) ";" (declaration) "static const int sNLat;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "sNLat" (;) ";" (declaration) "static const int sNLon;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "sNLon" (;) ";" (comment) "// smoothening " (declaration) "int mGaussianOrder = 2;" (primitive_type) "int" (init_declarator) "mGaussianOrder = 2" (identifier) "mGaussianOrder" (=) "=" (number_literal) "2" (;) ";" (declaration) "double mGaussianDev = .5;" (primitive_type) "double" (init_declarator) "mGaussianDev = .5" (identifier) "mGaussianDev" (=) "=" (number_literal) ".5" (;) ";" (comment) "// use geocentric or geographic" (declaration) "bool mGeographic = true;" (primitive_type) "bool" (init_declarator) "mGeographic = true" (identifier) "mGeographic" (=) "=" (true) "true" (;) ";" (comment) "// treat ice as water load" (declaration) "bool mIncludeIceAsWater = false;" (primitive_type) "bool" (init_declarator) "mIncludeIceAsWater = false" (identifier) "mIncludeIceAsWater" (=) "=" (false) "false" (;) ";" (comment) "// flag to benchmark with specfem" (declaration) "bool mBenchmarkSPECFEM = false;" (primitive_type) "bool" (init_declarator) "mBenchmarkSPECFEM = false" (identifier) "mBenchmarkSPECFEM" (=) "=" (false) "false" (;) ";" (comment) "// depth at grid points " (declaration) "RDMatXX mDepth;" (type_identifier) "RDMatXX" (identifier) "mDepth" (;) ";" (declaration) "RDColX mGridLat, mGridLon;" (type_identifier) "RDColX" (identifier) "mGridLat" (,) "," (identifier) "mGridLon" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
176
4
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 22.88, "nodes": 98, "errors": 0, "source_hash": "b788d24bbdc1e8997f4ea05d85a4ab3ccbffe4d8c3a53ea41eca8255a510bb20", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"OceanLoad3D.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": "string_literal", "text": "\"OceanLoad3D.h\"", "parent": 3, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"eigenp.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": "string_literal", "text": "\"eigenp.h\"", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 9, "type": "function_definition", "text": "class OceanLoad3D_crust1: public OceanLoad3D {\npublic:\n\n void initialize();\n void initialize(const std::vector<std::string> &params);\n \n double getOceanDepth(double theta, double phi) const;\n \n std::string verbose() const;\n \nprivate:\n \n // model constants\n static const int sNLayer;\n static const int sNLat;\n static const int sNLon;\n \n // smoothening \n int mGaussianOrder = 2;\n double mGaussianDev = .5;\n \n // use geocentric or geographic\n bool mGeographic = true;\n \n // treat ice as water load\n bool mIncludeIceAsWater = false;\n \n // flag to benchmark with specfem\n bool mBenchmarkSPECFEM = false; \n \n // depth at grid points \n RDMatXX mDepth;\n RDColX mGridLat, mGridLon;\n}", "parent": null, "children": [10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 10, "type": "identifier", "text": "OceanLoad3D_crust1", "parent": 9, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 24}}, {"id": 11, "type": "ERROR", "text": ": public OceanLoad3D", "parent": 9, "children": [12], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 44}}, {"id": 12, "type": "identifier", "text": "OceanLoad3D", "parent": 11, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 44}}, {"id": 13, "type": "labeled_statement", "text": "public:\n\n void initialize();", "parent": 9, "children": [14], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 22}}, {"id": 14, "type": "declaration", "text": "void initialize();", "parent": 13, "children": [15, 16], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 22}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 8}}, {"id": 16, "type": "function_declarator", "text": "initialize()", "parent": 14, "children": [17, 18], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 17, "type": "identifier", "text": "initialize", "parent": 16, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 18, "type": "parameter_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 21}}, {"id": 19, "type": "declaration", "text": "void initialize(const std::vector<std::string> &params);", "parent": 9, "children": [20, 21], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 60}}, {"id": 20, "type": "primitive_type", "text": "void", "parent": 19, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 8}}, {"id": 21, "type": "function_declarator", "text": "initialize(const std::vector<std::string> &params)", "parent": 19, "children": [22, 23], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 59}}, {"id": 22, "type": "identifier", "text": "initialize", "parent": 21, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 23, "type": "parameter_list", "text": "(const std::vector<std::string> &params)", "parent": 21, "children": [24], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 59}}, {"id": 24, "type": "parameter_declaration", "text": "const std::vector<std::string> &params", "parent": 23, "children": [25, 26, 32], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 58}}, {"id": 25, "type": "type_identifier", "text": "std", "parent": 24, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 29}}, {"id": 26, "type": "ERROR", "text": "::vector<std::string> &", "parent": 24, "children": [27, 28, 29, 30, 31], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 52}}, {"id": 27, "type": "identifier", "text": "vector", "parent": 26, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 37}}, {"id": 28, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 38}}, {"id": 29, "type": "identifier", "text": "std", "parent": 26, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 41}}, {"id": 30, "type": "identifier", "text": "string", "parent": 26, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 49}}, {"id": 31, "type": ">", "text": ">", "parent": 26, "children": [], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 50}}, {"id": 32, "type": "identifier", "text": "params", "parent": 24, "children": [], "start_point": {"row": 14, "column": 52}, "end_point": {"row": 14, "column": 58}}, {"id": 33, "type": "ERROR", "text": "double getOceanDepth(double theta, double phi) const", "parent": 9, "children": [34, 35], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 56}}, {"id": 34, "type": "primitive_type", "text": "double", "parent": 33, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 35, "type": "function_declarator", "text": "getOceanDepth(double theta, double phi) const", "parent": 33, "children": [36, 37], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 56}}, {"id": 36, "type": "identifier", "text": "getOceanDepth", "parent": 35, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 24}}, {"id": 37, "type": "parameter_list", "text": "(double theta, double phi)", "parent": 35, "children": [38, 41], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 50}}, {"id": 38, "type": "parameter_declaration", "text": "double theta", "parent": 37, "children": [39, 40], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 37}}, {"id": 39, "type": "primitive_type", "text": "double", "parent": 38, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 31}}, {"id": 40, "type": "identifier", "text": "theta", "parent": 38, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 37}}, {"id": 41, "type": "parameter_declaration", "text": "double phi", "parent": 37, "children": [42, 43], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 49}}, {"id": 42, "type": "primitive_type", "text": "double", "parent": 41, "children": [], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 45}}, {"id": 43, "type": "identifier", "text": "phi", "parent": 41, "children": [], "start_point": {"row": 16, "column": 46}, "end_point": {"row": 16, "column": 49}}, {"id": 44, "type": "labeled_statement", "text": "std::string verbose() const;", "parent": 9, "children": [45, 46], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 32}}, {"id": 45, "type": "statement_identifier", "text": "std", "parent": 44, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 7}}, {"id": 46, "type": "ERROR", "text": ":string verbose() const", "parent": 44, "children": [47, 48], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 31}}, {"id": 47, "type": "type_identifier", "text": "string", "parent": 46, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 15}}, {"id": 48, "type": "function_declarator", "text": "verbose() const", "parent": 46, "children": [49, 50], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 31}}, {"id": 49, "type": "identifier", "text": "verbose", "parent": 48, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 23}}, {"id": 50, "type": "parameter_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 25}}, {"id": 51, "type": "labeled_statement", "text": "private:\n \n // model constants\n static const int sNLayer;", "parent": 9, "children": [52], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 23, "column": 29}}, {"id": 52, "type": "declaration", "text": "static const int sNLayer;", "parent": 51, "children": [53, 54], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 29}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 20}}, {"id": 54, "type": "identifier", "text": "sNLayer", "parent": 52, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 28}}, {"id": 55, "type": "declaration", "text": "static const int sNLat;", "parent": 9, "children": [56, 57], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 27}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 20}}, {"id": 57, "type": "identifier", "text": "sNLat", "parent": 55, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 26}}, {"id": 58, "type": "declaration", "text": "static const int sNLon;", "parent": 9, "children": [59, 60], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 27}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 58, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 20}}, {"id": 60, "type": "identifier", "text": "sNLon", "parent": 58, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 26}}, {"id": 61, "type": "declaration", "text": "int mGaussianOrder = 2;", "parent": 9, "children": [62, 63], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 27}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 63, "type": "init_declarator", "text": "mGaussianOrder = 2", "parent": 61, "children": [64, 65, 66], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 26}}, {"id": 64, "type": "identifier", "text": "mGaussianOrder", "parent": 63, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 22}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 66, "type": "number_literal", "text": "2", "parent": 63, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 26}}, {"id": 67, "type": "declaration", "text": "double mGaussianDev = .5;", "parent": 9, "children": [68, 69], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 29}}, {"id": 68, "type": "primitive_type", "text": "double", "parent": 67, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 69, "type": "init_declarator", "text": "mGaussianDev = .5", "parent": 67, "children": [70, 71, 72], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 28}}, {"id": 70, "type": "identifier", "text": "mGaussianDev", "parent": 69, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 23}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 25}}, {"id": 72, "type": "number_literal", "text": ".5", "parent": 69, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 28}}, {"id": 73, "type": "declaration", "text": "bool mGeographic = true;", "parent": 9, "children": [74, 75], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 28}}, {"id": 74, "type": "primitive_type", "text": "bool", "parent": 73, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 8}}, {"id": 75, "type": "init_declarator", "text": "mGeographic = true", "parent": 73, "children": [76, 77, 78], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 27}}, {"id": 76, "type": "identifier", "text": "mGeographic", "parent": 75, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 20}}, {"id": 77, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 22}}, {"id": 78, "type": "true", "text": "true", "parent": 75, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 27}}, {"id": 79, "type": "declaration", "text": "bool mIncludeIceAsWater = false;", "parent": 9, "children": [80, 81], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 36}}, {"id": 80, "type": "primitive_type", "text": "bool", "parent": 79, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 8}}, {"id": 81, "type": "init_declarator", "text": "mIncludeIceAsWater = false", "parent": 79, "children": [82, 83, 84], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 35}}, {"id": 82, "type": "identifier", "text": "mIncludeIceAsWater", "parent": 81, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 27}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 29}}, {"id": 84, "type": "false", "text": "false", "parent": 81, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 35}}, {"id": 85, "type": "declaration", "text": "bool mBenchmarkSPECFEM = false;", "parent": 9, "children": [86, 87], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 35}}, {"id": 86, "type": "primitive_type", "text": "bool", "parent": 85, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 87, "type": "init_declarator", "text": "mBenchmarkSPECFEM = false", "parent": 85, "children": [88, 89, 90], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 34}}, {"id": 88, "type": "identifier", "text": "mBenchmarkSPECFEM", "parent": 87, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 26}}, {"id": 89, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 90, "type": "false", "text": "false", "parent": 87, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 34}}, {"id": 91, "type": "declaration", "text": "RDMatXX mDepth;", "parent": 9, "children": [92, 93], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 19}}, {"id": 92, "type": "type_identifier", "text": "RDMatXX", "parent": 91, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 11}}, {"id": 93, "type": "identifier", "text": "mDepth", "parent": 91, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 18}}, {"id": 94, "type": "declaration", "text": "RDColX mGridLat, mGridLon;", "parent": 9, "children": [95, 96, 97], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 30}}, {"id": 95, "type": "type_identifier", "text": "RDColX", "parent": 94, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 96, "type": "identifier", "text": "mGridLat", "parent": 94, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 19}}, {"id": 97, "type": "identifier", "text": "mGridLon", "parent": 94, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 29}}]}, "node_categories": {"declarations": {"functions": [9, 16, 21, 35, 48], "variables": [14, 19, 24, 38, 41, 52, 55, 58, 61, 67, 73, 79, 85, 91, 94], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [10, 12, 17, 22, 25, 27, 29, 30, 32, 36, 40, 43, 45, 47, 49, 54, 57, 60, 64, 70, 76, 82, 88, 92, 93, 95, 96, 97], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 66, 72], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "OceanLoad3D_crust1:", "text_snippet": "class OceanLoad3D_crust1: public OceanLoad3D {\npublic:\n\n void initialize();\n void initialize(c"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "initialize()"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "initialize(const std::vector<std::string> &params)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "getOceanDepth(double theta, double phi) const"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "verbose() const"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"OceanLoad3D.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"eigenp.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// OceanLoad3D_crust1.h\n// created by Kuangdai on 8-Oct-2016 \n// crustal model CRUST 1.0 \n// http://igppweb.ucsd.edu/~gabi/crust1.html\n\n#pragma once\n\n#include \"OceanLoad3D.h\"\n#include \"eigenp.h\"\n\nclass OceanLoad3D_crust1: public OceanLoad3D {\npublic:\n\n void initialize();\n void initialize(const std::vector<std::string> &params);\n \n double getOceanDepth(double theta, double phi) const;\n \n std::string verbose() const;\n \nprivate:\n \n // model constants\n static const int sNLayer;\n static const int sNLat;\n static const int sNLon;\n \n // smoothening \n int mGaussianOrder = 2;\n double mGaussianDev = .5;\n \n // use geocentric or geographic\n bool mGeographic = true;\n \n // treat ice as water load\n bool mIncludeIceAsWater = false;\n \n // flag to benchmark with specfem\n bool mBenchmarkSPECFEM = false; \n \n // depth at grid points \n RDMatXX mDepth;\n RDColX mGridLat, mGridLon;\n};\n\n"}
80,840
c
/*********************************************************************** ** E P P R O P . H * ** * ************************************************************************ ** Copyright (C) 1996 - 1999 Microsoft Corporation * ** All Rights Reserved * ************************************************************************/ /* EPPROP.H EpisodeProperty record object class definitions for Microsoft Guide */ #ifndef _EPPROP_H_ #pragma option push -b -a8 -pc -A- /*P_O_Push*/ #define _EPPROP_H_ #include "dbsets.h" /* EpisodeProperty objects are constructed from database records of the EpisodeProperty table. The CEpisodePropertyRecordset class is used to select and create CEpisodeProperty objects from the EpisodeProperty table via functions in the CDatabaseRecordset parent class. */ class COMMMSTVEXPORT CEpisodePropertyRecordset : public CDatabaseRecordset { // This class provides EpisodeProperty recordset manipulation via parent functions virtual CString GetTableName( VOID); virtual BOOL SetRecordsetObject( VOID* cRecordsetObject); public: virtual VOID* GetRecordsetObject( VOID); virtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo); }; class COMMMSTVEXPORT CEpisodeProperty : public CObject { friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object public: CEpisodeProperty(LONG m_lEpisodeID = 0, LONG lBroadcastPropertyID = 0) : m_lEpisodeID(m_lEpisodeID), m_lBroadcastPropertyID(lBroadcastPropertyID) { } ~CEpisodeProperty(VOID) { } VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; } VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; } LONG EpisodeID() { return m_lEpisodeID; } LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; } private: LONG m_lEpisodeID; LONG m_lBroadcastPropertyID; }; // Table: EpisodeProperty #define TBL_EpisodeProperty _T("[Episode Property]") // Field: Name Type Size #define FLD_EpisodeProperty_EpisodeID _T("EP Episode ID") // Long 4 #define FLD_EpisodeProperty_BroadcastPropertyID _T("EP Broadcast Property ID") // Long 4 #pragma option pop /*P_O_Pop*/ #endif
26.65
97
(translation_unit) "/*********************************************************************** \n** E P P R O P . H * \n** * \n************************************************************************ \n** Copyright (C) 1996 - 1999 Microsoft Corporation * \n** All Rights Reserved * \n************************************************************************/ \n/* \n \n EPPROP.H \n \n EpisodeProperty record object class definitions for Microsoft Guide \n \n \n \n*/ \n \n \n \n#ifndef _EPPROP_H_ \n#pragma option push -b -a8 -pc -A- /*P_O_Push*/ \n#define _EPPROP_H_ \n \n \n#include "dbsets.h" \n \n \n/* \n \nEpisodeProperty objects are constructed from database records of the EpisodeProperty table. \n \nThe CEpisodePropertyRecordset class is used to select and create CEpisodeProperty objects \nfrom the EpisodeProperty table via functions in the CDatabaseRecordset parent class. \n \n*/ \n \n \n \nclass COMMMSTVEXPORT CEpisodePropertyRecordset : public CDatabaseRecordset \n{ \n \n// This class provides EpisodeProperty recordset manipulation via parent functions \n \nvirtual CString GetTableName( VOID); \n \nvirtual BOOL SetRecordsetObject( VOID* cRecordsetObject); \n \npublic: \nvirtual VOID* GetRecordsetObject( VOID); \nvirtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo); \n}; \n \n \n \n \nclass COMMMSTVEXPORT CEpisodeProperty : public CObject \n{ \n \n friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object \n \n \npublic: \n \n CEpisodeProperty(LONG m_lEpisodeID = 0, \n LONG lBroadcastPropertyID = 0) : \n m_lEpisodeID(m_lEpisodeID), \n m_lBroadcastPropertyID(lBroadcastPropertyID) { } \n \n ~CEpisodeProperty(VOID) { } \n \n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; } \n VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; } \n \n LONG EpisodeID() { return m_lEpisodeID; } \n LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; } \n \n \nprivate: \n \n LONG m_lEpisodeID; \n LONG m_lBroadcastPropertyID; \n \n \n}; \n \n// Table: EpisodeProperty \n \n#define TBL_EpisodeProperty _T("[Episode Property]") \n \n// Field: Name Type Size \n \n#define FLD_EpisodeProperty_EpisodeID _T("EP Episode ID") // Long 4 \n#define FLD_EpisodeProperty_BroadcastPropertyID _T("EP Broadcast Property ID") // Long 4 \n \n \n#pragma option pop /*P_O_Pop*/ \n#endif \n \n" (comment) "/*********************************************************************** \n** E P P R O P . H * \n** * \n************************************************************************ \n** Copyright (C) 1996 - 1999 Microsoft Corporation * \n** All Rights Reserved * \n************************************************************************/" (comment) "/* \n \n EPPROP.H \n \n EpisodeProperty record object class definitions for Microsoft Guide \n \n \n \n*/" (preproc_ifdef) "#ifndef _EPPROP_H_ \n#pragma option push -b -a8 -pc -A- /*P_O_Push*/ \n#define _EPPROP_H_ \n \n \n#include "dbsets.h" \n \n \n/* \n \nEpisodeProperty objects are constructed from database records of the EpisodeProperty table. \n \nThe CEpisodePropertyRecordset class is used to select and create CEpisodeProperty objects \nfrom the EpisodeProperty table via functions in the CDatabaseRecordset parent class. \n \n*/ \n \n \n \nclass COMMMSTVEXPORT CEpisodePropertyRecordset : public CDatabaseRecordset \n{ \n \n// This class provides EpisodeProperty recordset manipulation via parent functions \n \nvirtual CString GetTableName( VOID); \n \nvirtual BOOL SetRecordsetObject( VOID* cRecordsetObject); \n \npublic: \nvirtual VOID* GetRecordsetObject( VOID); \nvirtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo); \n}; \n \n \n \n \nclass COMMMSTVEXPORT CEpisodeProperty : public CObject \n{ \n \n friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object \n \n \npublic: \n \n CEpisodeProperty(LONG m_lEpisodeID = 0, \n LONG lBroadcastPropertyID = 0) : \n m_lEpisodeID(m_lEpisodeID), \n m_lBroadcastPropertyID(lBroadcastPropertyID) { } \n \n ~CEpisodeProperty(VOID) { } \n \n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; } \n VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; } \n \n LONG EpisodeID() { return m_lEpisodeID; } \n LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; } \n \n \nprivate: \n \n LONG m_lEpisodeID; \n LONG m_lBroadcastPropertyID; \n \n \n}; \n \n// Table: EpisodeProperty \n \n#define TBL_EpisodeProperty _T("[Episode Property]") \n \n// Field: Name Type Size \n \n#define FLD_EpisodeProperty_EpisodeID _T("EP Episode ID") // Long 4 \n#define FLD_EpisodeProperty_BroadcastPropertyID _T("EP Broadcast Property ID") // Long 4 \n \n \n#pragma option pop /*P_O_Pop*/ \n#endif" (#ifndef) "#ifndef" (identifier) "_EPPROP_H_" (preproc_call) "#pragma option push -b -a8 -pc -A- /*P_O_Push*/ \n" (preproc_directive) "#pragma" (preproc_arg) "option push -b -a8 -pc -A- " (comment) "/*P_O_Push*/" (preproc_def) "#define _EPPROP_H_ \n" (#define) "#define" (identifier) "_EPPROP_H_" (preproc_include) "#include "dbsets.h" \n" (#include) "#include" (string_literal) ""dbsets.h"" (") """ (string_content) "dbsets.h" (") """ (comment) "/* \n \nEpisodeProperty objects are constructed from database records of the EpisodeProperty table. \n \nThe CEpisodePropertyRecordset class is used to select and create CEpisodeProperty objects \nfrom the EpisodeProperty table via functions in the CDatabaseRecordset parent class. \n \n*/" (declaration) "class COMMMSTVEXPORT" (type_identifier) "class" (identifier) "COMMMSTVEXPORT" (;) "" (labeled_statement) "CEpisodePropertyRecordset : public CDatabaseRecordset \n{ \n \n// This class provides EpisodeProperty recordset manipulation via parent functions \n \nvirtual CString GetTableName( VOID); \n \nvirtual BOOL SetRecordsetObject( VOID* cRecordsetObject); \n \npublic: \nvirtual VOID* GetRecordsetObject( VOID); \nvirtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo); \n}" (statement_identifier) "CEpisodePropertyRecordset" (:) ":" (ERROR) "public CDatabaseRecordset" (type_identifier) "public" (identifier) "CDatabaseRecordset" (compound_statement) "{ \n \n// This class provides EpisodeProperty recordset manipulation via parent functions \n \nvirtual CString GetTableName( VOID); \n \nvirtual BOOL SetRecordsetObject( VOID* cRecordsetObject); \n \npublic: \nvirtual VOID* GetRecordsetObject( VOID); \nvirtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo); \n}" ({) "{" (comment) "// This class provides EpisodeProperty recordset manipulation via parent functions " (declaration) "virtual CString GetTableName( VOID);" (type_identifier) "virtual" (ERROR) "CString" (identifier) "CString" (function_declarator) "GetTableName( VOID)" (identifier) "GetTableName" (parameter_list) "( VOID)" (() "(" (parameter_declaration) "VOID" (type_identifier) "VOID" ()) ")" (;) ";" (declaration) "virtual BOOL SetRecordsetObject( VOID* cRecordsetObject);" (type_identifier) "virtual" (ERROR) "BOOL" (identifier) "BOOL" (function_declarator) "SetRecordsetObject( VOID* cRecordsetObject)" (identifier) "SetRecordsetObject" (parameter_list) "( VOID* cRecordsetObject)" (() "(" (parameter_declaration) "VOID* cRecordsetObject" (type_identifier) "VOID" (pointer_declarator) "* cRecordsetObject" (*) "*" (identifier) "cRecordsetObject" ()) ")" (;) ";" (labeled_statement) "public: \nvirtual VOID* GetRecordsetObject( VOID);" (statement_identifier) "public" (:) ":" (declaration) "virtual VOID* GetRecordsetObject( VOID);" (type_identifier) "virtual" (ERROR) "VOID" (identifier) "VOID" (pointer_declarator) "* GetRecordsetObject( VOID)" (*) "*" (function_declarator) "GetRecordsetObject( VOID)" (identifier) "GetRecordsetObject" (parameter_list) "( VOID)" (() "(" (parameter_declaration) "VOID" (type_identifier) "VOID" ()) ")" (;) ";" (declaration) "virtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);" (type_identifier) "virtual" (ERROR) "BOOLEAN" (identifier) "BOOLEAN" (function_declarator) "Seek(LPCTSTR lpszComparison, CObject &coo)" (identifier) "Seek" (parameter_list) "(LPCTSTR lpszComparison, CObject &coo)" (() "(" (parameter_declaration) "LPCTSTR lpszComparison" (type_identifier) "LPCTSTR" (identifier) "lpszComparison" (,) "," (parameter_declaration) "CObject &coo" (type_identifier) "CObject" (ERROR) "&" (&) "&" (identifier) "coo" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "class COMMMSTVEXPORT" (type_identifier) "class" (identifier) "COMMMSTVEXPORT" (;) "" (labeled_statement) "CEpisodeProperty : public CObject \n{ \n \n friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object \n \n \npublic: \n \n CEpisodeProperty(LONG m_lEpisodeID = 0, \n LONG lBroadcastPropertyID = 0) : \n m_lEpisodeID(m_lEpisodeID), \n m_lBroadcastPropertyID(lBroadcastPropertyID) { } \n \n ~CEpisodeProperty(VOID) { } \n \n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; }" (statement_identifier) "CEpisodeProperty" (:) ":" (ERROR) "public CObject" (type_identifier) "public" (identifier) "CObject" (compound_statement) "{ \n \n friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object \n \n \npublic: \n \n CEpisodeProperty(LONG m_lEpisodeID = 0, \n LONG lBroadcastPropertyID = 0) : \n m_lEpisodeID(m_lEpisodeID), \n m_lBroadcastPropertyID(lBroadcastPropertyID) { } \n \n ~CEpisodeProperty(VOID) { } \n \n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; }" ({) "{" (declaration) "friend class CEpisodePropertyRecordset;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "CEpisodePropertyRecordset" (;) ";" (comment) "// generates the CEpisodeProperty record object " (labeled_statement) "public: \n \n CEpisodeProperty(LONG m_lEpisodeID = 0, \n LONG lBroadcastPropertyID = 0) : \n m_lEpisodeID(m_lEpisodeID), \n m_lBroadcastPropertyID(lBroadcastPropertyID) { } \n \n ~CEpisodeProperty(VOID) { } \n \n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID;" (statement_identifier) "public" (:) ":" (declaration) "CEpisodeProperty(LONG m_lEpisodeID = 0, \n LONG lBroadcastPropertyID = 0) : \n m_lEpisodeID(m_lEpisodeID), \n m_lBroadcastPropertyID(lBroadcastPropertyID) { } \n \n ~CEpisodeProperty(VOID) { } \n \n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID;" (macro_type_specifier) "CEpisodeProperty(LONG" (identifier) "CEpisodeProperty" (() "(" (type_descriptor) "LONG" (type_identifier) "LONG" ()) "" (init_declarator) "m_lEpisodeID = 0" (identifier) "m_lEpisodeID" (=) "=" (number_literal) "0" (,) "," (ERROR) "LONG" (identifier) "LONG" (init_declarator) "lBroadcastPropertyID = 0) : \n m_lEpisodeID(m_lEpisodeID)" (identifier) "lBroadcastPropertyID" (=) "=" (ERROR) "0) :" (number_literal) "0" ()) ")" (:) ":" (call_expression) "m_lEpisodeID(m_lEpisodeID)" (identifier) "m_lEpisodeID" (argument_list) "(m_lEpisodeID)" (() "(" (identifier) "m_lEpisodeID" ()) ")" (,) "," (ERROR) "m_lBroadcastPropertyID(lBroadcastPropertyID) { } \n \n ~CEpisodeProperty(VOID) { } \n \n VOID SetEpisodeID( LONG lEpisodeID) {" (function_declarator) "m_lBroadcastPropertyID(lBroadcastPropertyID)" (identifier) "m_lBroadcastPropertyID" (parameter_list) "(lBroadcastPropertyID)" (() "(" (parameter_declaration) "lBroadcastPropertyID" (type_identifier) "lBroadcastPropertyID" ()) ")" ({) "{" (}) "}" (~) "~" (function_declarator) "CEpisodeProperty(VOID)" (identifier) "CEpisodeProperty" (parameter_list) "(VOID)" (() "(" (parameter_declaration) "VOID" (type_identifier) "VOID" ()) ")" ({) "{" (}) "}" (identifier) "VOID" (function_declarator) "SetEpisodeID( LONG lEpisodeID)" (identifier) "SetEpisodeID" (parameter_list) "( LONG lEpisodeID)" (() "(" (parameter_declaration) "LONG lEpisodeID" (type_identifier) "LONG" (identifier) "lEpisodeID" ()) ")" ({) "{" (init_declarator) "m_lEpisodeID = lEpisodeID" (identifier) "m_lEpisodeID" (=) "=" (identifier) "lEpisodeID" (;) ";" (}) "}" (function_definition) "VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; }" (type_identifier) "VOID" (function_declarator) "SetBroadcastPropertyID( LONG lBroadcastPropertyID)" (identifier) "SetBroadcastPropertyID" (parameter_list) "( LONG lBroadcastPropertyID)" (() "(" (parameter_declaration) "LONG lBroadcastPropertyID" (type_identifier) "LONG" (identifier) "lBroadcastPropertyID" ()) ")" (compound_statement) "{ m_lBroadcastPropertyID = lBroadcastPropertyID; }" ({) "{" (expression_statement) "m_lBroadcastPropertyID = lBroadcastPropertyID;" (assignment_expression) "m_lBroadcastPropertyID = lBroadcastPropertyID" (identifier) "m_lBroadcastPropertyID" (=) "=" (identifier) "lBroadcastPropertyID" (;) ";" (}) "}" (function_definition) "LONG EpisodeID() { return m_lEpisodeID; }" (type_identifier) "LONG" (function_declarator) "EpisodeID()" (identifier) "EpisodeID" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return m_lEpisodeID; }" ({) "{" (return_statement) "return m_lEpisodeID;" (return) "return" (identifier) "m_lEpisodeID" (;) ";" (}) "}" (function_definition) "LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; }" (type_identifier) "LONG" (function_declarator) "BroadcastPropertyID()" (identifier) "BroadcastPropertyID" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return m_lBroadcastPropertyID; }" ({) "{" (return_statement) "return m_lBroadcastPropertyID;" (return) "return" (identifier) "m_lBroadcastPropertyID" (;) ";" (}) "}" (labeled_statement) "private: \n \n LONG m_lEpisodeID;" (statement_identifier) "private" (:) ":" (declaration) "LONG m_lEpisodeID;" (type_identifier) "LONG" (identifier) "m_lEpisodeID" (;) ";" (declaration) "LONG m_lBroadcastPropertyID;" (type_identifier) "LONG" (identifier) "m_lBroadcastPropertyID" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (comment) "// Table: EpisodeProperty " (preproc_def) "#define TBL_EpisodeProperty _T("[Episode Property]") \n" (#define) "#define" (identifier) "TBL_EpisodeProperty" (preproc_arg) "_T("[Episode Property]") " (comment) "// Field: Name Type Size " (preproc_def) "#define FLD_EpisodeProperty_EpisodeID _T("EP Episode ID") // Long 4 \n" (#define) "#define" (identifier) "FLD_EpisodeProperty_EpisodeID" (preproc_arg) "_T("EP Episode ID") // Long 4 " (preproc_def) "#define FLD_EpisodeProperty_BroadcastPropertyID _T("EP Broadcast Property ID") // Long 4 \n" (#define) "#define" (identifier) "FLD_EpisodeProperty_BroadcastPropertyID" (preproc_arg) "_T("EP Broadcast Property ID") // Long 4 " (preproc_call) "#pragma option pop /*P_O_Pop*/ \n" (preproc_directive) "#pragma" (preproc_arg) "option pop " (comment) "/*P_O_Pop*/" (#endif) "#endif"
266
12
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 26.65, "nodes": 166, "errors": 0, "source_hash": "0e4c6541369a44cb8187185670c4cc8857d4351652dccef61c343b8c8d2522c1", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _EPPROP_H_\r\n#pragma option push -b -a8 -pc -A- /*P_O_Push*/\r\n#define _EPPROP_H_\r\n\r\n\r\n#include \"dbsets.h\"\r\n\r\n\r\n/*\r\n\r\nEpisodeProperty objects are constructed from database records of the EpisodeProperty table.\r\n\r\nThe CEpisodePropertyRecordset class is used to select and create CEpisodeProperty objects\r\nfrom the EpisodeProperty table via functions in the CDatabaseRecordset parent class.\r\n\r\n*/\r\n\r\n\r\n\r\nclass COMMMSTVEXPORT CEpisodePropertyRecordset : public CDatabaseRecordset\r\n{\r\n\r\n// This class provides EpisodeProperty recordset manipulation via parent functions\r\n\r\nvirtual CString GetTableName( VOID);\r\n\r\nvirtual BOOL SetRecordsetObject( VOID* cRecordsetObject);\r\n\r\npublic:\r\nvirtual VOID* GetRecordsetObject( VOID);\r\nvirtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);\r\n};\r\n\r\n\r\n\r\n\r\nclass COMMMSTVEXPORT CEpisodeProperty : public CObject\r\n{\r\n\r\n friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object\r\n\r\n\r\npublic:\r\n\r\n\tCEpisodeProperty(LONG m_lEpisodeID = 0,\r\n\t\t\t\t\t\tLONG lBroadcastPropertyID = 0) :\r\n\t\t\t\t\t m_lEpisodeID(m_lEpisodeID),\r\n\t\t\t\t\t m_lBroadcastPropertyID(lBroadcastPropertyID) { }\r\n\r\n\t~CEpisodeProperty(VOID) { }\r\n\r\n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; }\r\n VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; }\r\n\r\n LONG EpisodeID() { return m_lEpisodeID; }\r\n LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; }\r\n\r\n\r\nprivate:\r\n\r\n LONG m_lEpisodeID;\r\n LONG m_lBroadcastPropertyID;\r\n\r\n\r\n};\r\n\r\n// Table: EpisodeProperty\r\n\r\n#define TBL_EpisodeProperty _T(\"[Episode Property]\")\r\n\r\n// Field: Name Type Size\r\n\r\n#define FLD_EpisodeProperty_EpisodeID _T(\"EP Episode ID\") // Long 4\r\n#define FLD_EpisodeProperty_BroadcastPropertyID _T(\"EP Broadcast Property ID\") // Long 4\r\n\r\n\r\n#pragma option pop /*P_O_Pop*/\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 14, 64, 66, 117, 129, 136, 143, 147, 150, 154, 158, 162, 165], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 96, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 2, "type": "identifier", "text": "_EPPROP_H_", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 18}}, {"id": 3, "type": "preproc_call", "text": "#pragma option push -b -a8 -pc -A- /*P_O_Push*/\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#pragma", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "option push -b -a8 -pc -A- ", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 35}}, {"id": 6, "type": "preproc_def", "text": "#define _EPPROP_H_\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 8, "type": "identifier", "text": "_EPPROP_H_", "parent": 6, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"dbsets.h\"\r\n", "parent": 0, "children": [10, 11], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"dbsets.h\"", "parent": 9, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 12, "type": "declaration", "text": "class COMMMSTVEXPORT", "parent": 0, "children": [13], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 21}}, {"id": 13, "type": "identifier", "text": "COMMMSTVEXPORT", "parent": 12, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 21}}, {"id": 14, "type": "labeled_statement", "text": "CEpisodePropertyRecordset : public CDatabaseRecordset\r\n{\r\n\r\n// This class provides EpisodeProperty recordset manipulation via parent functions\r\n\r\nvirtual CString GetTableName( VOID);\r\n\r\nvirtual BOOL SetRecordsetObject( VOID* cRecordsetObject);\r\n\r\npublic:\r\nvirtual VOID* GetRecordsetObject( VOID);\r\nvirtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);\r\n}", "parent": 0, "children": [15, 16], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 50, "column": 1}}, {"id": 15, "type": "statement_identifier", "text": "CEpisodePropertyRecordset", "parent": 14, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 47}}, {"id": 16, "type": "ERROR", "text": "public CDatabaseRecordset", "parent": 14, "children": [17], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 75}}, {"id": 17, "type": "identifier", "text": "CDatabaseRecordset", "parent": 16, "children": [], "start_point": {"row": 38, "column": 57}, "end_point": {"row": 38, "column": 75}}, {"id": 18, "type": "declaration", "text": "virtual CString GetTableName( VOID);", "parent": 14, "children": [19, 20, 22], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 36}}, {"id": 19, "type": "type_identifier", "text": "virtual", "parent": 18, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 20, "type": "ERROR", "text": "CString", "parent": 18, "children": [21], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 15}}, {"id": 21, "type": "identifier", "text": "CString", "parent": 20, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 15}}, {"id": 22, "type": "function_declarator", "text": "GetTableName( VOID)", "parent": 18, "children": [23, 24], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 35}}, {"id": 23, "type": "identifier", "text": "GetTableName", "parent": 22, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 28}}, {"id": 24, "type": "parameter_list", "text": "( VOID)", "parent": 22, "children": [25], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 35}}, {"id": 25, "type": "parameter_declaration", "text": "VOID", "parent": 24, "children": [26], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 34}}, {"id": 26, "type": "type_identifier", "text": "VOID", "parent": 25, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 34}}, {"id": 27, "type": "declaration", "text": "virtual BOOL SetRecordsetObject( VOID* cRecordsetObject);", "parent": 14, "children": [28, 29, 31], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 60}}, {"id": 28, "type": "type_identifier", "text": "virtual", "parent": 27, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 29, "type": "ERROR", "text": "BOOL", "parent": 27, "children": [30], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 12}}, {"id": 30, "type": "identifier", "text": "BOOL", "parent": 29, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 12}}, {"id": 31, "type": "function_declarator", "text": "SetRecordsetObject( VOID* cRecordsetObject)", "parent": 27, "children": [32, 33], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 59}}, {"id": 32, "type": "identifier", "text": "SetRecordsetObject", "parent": 31, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 34}}, {"id": 33, "type": "parameter_list", "text": "( VOID* cRecordsetObject)", "parent": 31, "children": [34], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 59}}, {"id": 34, "type": "parameter_declaration", "text": "VOID* cRecordsetObject", "parent": 33, "children": [35, 36], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 58}}, {"id": 35, "type": "type_identifier", "text": "VOID", "parent": 34, "children": [], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 40}}, {"id": 36, "type": "pointer_declarator", "text": "* cRecordsetObject", "parent": 34, "children": [37, 38], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 58}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 41}}, {"id": 38, "type": "identifier", "text": "cRecordsetObject", "parent": 36, "children": [], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 58}}, {"id": 39, "type": "labeled_statement", "text": "public:\r\nvirtual VOID* GetRecordsetObject( VOID);", "parent": 14, "children": [40], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 42}}, {"id": 40, "type": "declaration", "text": "virtual VOID* GetRecordsetObject( VOID);", "parent": 39, "children": [41, 42, 44], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 42}}, {"id": 41, "type": "type_identifier", "text": "virtual", "parent": 40, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 42, "type": "ERROR", "text": "VOID", "parent": 40, "children": [43], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 12}}, {"id": 43, "type": "identifier", "text": "VOID", "parent": 42, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 12}}, {"id": 44, "type": "pointer_declarator", "text": "* GetRecordsetObject( VOID)", "parent": 40, "children": [45, 46], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 41}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 13}}, {"id": 46, "type": "function_declarator", "text": "GetRecordsetObject( VOID)", "parent": 44, "children": [47, 48], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 41}}, {"id": 47, "type": "identifier", "text": "GetRecordsetObject", "parent": 46, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 34}}, {"id": 48, "type": "parameter_list", "text": "( VOID)", "parent": 46, "children": [49], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 41}}, {"id": 49, "type": "parameter_declaration", "text": "VOID", "parent": 48, "children": [50], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 40}}, {"id": 50, "type": "type_identifier", "text": "VOID", "parent": 49, "children": [], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 40}}, {"id": 51, "type": "declaration", "text": "virtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);", "parent": 14, "children": [52, 53, 55], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 59}}, {"id": 52, "type": "type_identifier", "text": "virtual", "parent": 51, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 53, "type": "ERROR", "text": "BOOLEAN", "parent": 51, "children": [54], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 15}}, {"id": 54, "type": "identifier", "text": "BOOLEAN", "parent": 53, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 15}}, {"id": 55, "type": "function_declarator", "text": "Seek(LPCTSTR lpszComparison, CObject &coo)", "parent": 51, "children": [56, 57], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 58}}, {"id": 56, "type": "identifier", "text": "Seek", "parent": 55, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 20}}, {"id": 57, "type": "parameter_list", "text": "(LPCTSTR lpszComparison, CObject &coo)", "parent": 55, "children": [58, 61], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 58}}, {"id": 58, "type": "parameter_declaration", "text": "LPCTSTR lpszComparison", "parent": 57, "children": [59, 60], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 43}}, {"id": 59, "type": "type_identifier", "text": "LPCTSTR", "parent": 58, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 28}}, {"id": 60, "type": "identifier", "text": "lpszComparison", "parent": 58, "children": [], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 43}}, {"id": 61, "type": "parameter_declaration", "text": "CObject &coo", "parent": 57, "children": [62, 63], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 57}}, {"id": 62, "type": "type_identifier", "text": "CObject", "parent": 61, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 52}}, {"id": 63, "type": "identifier", "text": "coo", "parent": 61, "children": [], "start_point": {"row": 49, "column": 54}, "end_point": {"row": 49, "column": 57}}, {"id": 64, "type": "declaration", "text": "class COMMMSTVEXPORT", "parent": 0, "children": [65], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 20}}, {"id": 65, "type": "identifier", "text": "COMMMSTVEXPORT", "parent": 64, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 20}}, {"id": 66, "type": "labeled_statement", "text": "CEpisodeProperty : public CObject\r\n{\r\n\r\n friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object\r\n\r\n\r\npublic:\r\n\r\n\tCEpisodeProperty(LONG m_lEpisodeID = 0,\r\n\t\t\t\t\t\tLONG lBroadcastPropertyID = 0) :\r\n\t\t\t\t\t m_lEpisodeID(m_lEpisodeID),\r\n\t\t\t\t\t m_lBroadcastPropertyID(lBroadcastPropertyID) { }\r\n\r\n\t~CEpisodeProperty(VOID) { }\r\n\r\n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; }", "parent": 0, "children": [67, 68], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 70, "column": 73}}, {"id": 67, "type": "statement_identifier", "text": "CEpisodeProperty", "parent": 66, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 37}}, {"id": 68, "type": "ERROR", "text": "public CObject", "parent": 66, "children": [69], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 54}}, {"id": 69, "type": "identifier", "text": "CObject", "parent": 68, "children": [], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 54}}, {"id": 70, "type": "declaration", "text": "friend class CEpisodePropertyRecordset;", "parent": 66, "children": [71, 72], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 43}}, {"id": 71, "type": "type_identifier", "text": "friend", "parent": 70, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 72, "type": "identifier", "text": "CEpisodePropertyRecordset", "parent": 70, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 42}}, {"id": 73, "type": "labeled_statement", "text": "public:\r\n\r\n\tCEpisodeProperty(LONG m_lEpisodeID = 0,\r\n\t\t\t\t\t\tLONG lBroadcastPropertyID = 0) :\r\n\t\t\t\t\t m_lEpisodeID(m_lEpisodeID),\r\n\t\t\t\t\t m_lBroadcastPropertyID(lBroadcastPropertyID) { }\r\n\r\n\t~CEpisodeProperty(VOID) { }\r\n\r\n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID;", "parent": 66, "children": [74], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 70, "column": 71}}, {"id": 74, "type": "declaration", "text": "CEpisodeProperty(LONG m_lEpisodeID = 0,\r\n\t\t\t\t\t\tLONG lBroadcastPropertyID = 0) :\r\n\t\t\t\t\t m_lEpisodeID(m_lEpisodeID),\r\n\t\t\t\t\t m_lBroadcastPropertyID(lBroadcastPropertyID) { }\r\n\r\n\t~CEpisodeProperty(VOID) { }\r\n\r\n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID;", "parent": 73, "children": [75, 79, 83, 85, 94, 113], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 70, "column": 71}}, {"id": 75, "type": "macro_type_specifier", "text": "CEpisodeProperty(LONG", "parent": 74, "children": [76, 77], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 22}}, {"id": 76, "type": "identifier", "text": "CEpisodeProperty", "parent": 75, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 17}}, {"id": 77, "type": "type_descriptor", "text": "LONG", "parent": 75, "children": [78], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 22}}, {"id": 78, "type": "type_identifier", "text": "LONG", "parent": 77, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 22}}, {"id": 79, "type": "init_declarator", "text": "m_lEpisodeID = 0", "parent": 74, "children": [80, 81, 82], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 39}}, {"id": 80, "type": "identifier", "text": "m_lEpisodeID", "parent": 79, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 35}}, {"id": 81, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 37}}, {"id": 82, "type": "number_literal", "text": "0", "parent": 79, "children": [], "start_point": {"row": 63, "column": 38}, "end_point": {"row": 63, "column": 39}}, {"id": 83, "type": "ERROR", "text": "LONG", "parent": 74, "children": [84], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 10}}, {"id": 84, "type": "identifier", "text": "LONG", "parent": 83, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 10}}, {"id": 85, "type": "init_declarator", "text": "lBroadcastPropertyID = 0) :\r\n\t\t\t\t\t m_lEpisodeID(m_lEpisodeID)", "parent": 74, "children": [86, 87, 88, 90], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 65, "column": 35}}, {"id": 86, "type": "identifier", "text": "lBroadcastPropertyID", "parent": 85, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 31}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 33}}, {"id": 88, "type": "ERROR", "text": "0) :", "parent": 85, "children": [89], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 38}}, {"id": 89, "type": "number_literal", "text": "0", "parent": 88, "children": [], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 35}}, {"id": 90, "type": "call_expression", "text": "m_lEpisodeID(m_lEpisodeID)", "parent": 85, "children": [91, 92], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 35}}, {"id": 91, "type": "identifier", "text": "m_lEpisodeID", "parent": 90, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 21}}, {"id": 92, "type": "argument_list", "text": "(m_lEpisodeID)", "parent": 90, "children": [93], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 35}}, {"id": 93, "type": "identifier", "text": "m_lEpisodeID", "parent": 92, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 34}}, {"id": 94, "type": "ERROR", "text": "m_lBroadcastPropertyID(lBroadcastPropertyID) { }\r\n\r\n\t~CEpisodeProperty(VOID) { }\r\n\r\n VOID SetEpisodeID( LONG lEpisodeID) {", "parent": 74, "children": [95, 100, 101, 106, 107], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 70, "column": 44}}, {"id": 95, "type": "function_declarator", "text": "m_lBroadcastPropertyID(lBroadcastPropertyID)", "parent": 94, "children": [96, 97], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 53}}, {"id": 96, "type": "identifier", "text": "m_lBroadcastPropertyID", "parent": 95, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 31}}, {"id": 97, "type": "parameter_list", "text": "(lBroadcastPropertyID)", "parent": 95, "children": [98], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 53}}, {"id": 98, "type": "parameter_declaration", "text": "lBroadcastPropertyID", "parent": 97, "children": [99], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 52}}, {"id": 99, "type": "type_identifier", "text": "lBroadcastPropertyID", "parent": 98, "children": [], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 52}}, {"id": 100, "type": "~", "text": "~", "parent": 94, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 2}}, {"id": 101, "type": "function_declarator", "text": "CEpisodeProperty(VOID)", "parent": 94, "children": [102, 103], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 24}}, {"id": 102, "type": "identifier", "text": "CEpisodeProperty", "parent": 101, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 18}}, {"id": 103, "type": "parameter_list", "text": "(VOID)", "parent": 101, "children": [104], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 24}}, {"id": 104, "type": "parameter_declaration", "text": "VOID", "parent": 103, "children": [105], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 23}}, {"id": 105, "type": "type_identifier", "text": "VOID", "parent": 104, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 23}}, {"id": 106, "type": "identifier", "text": "VOID", "parent": 94, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 8}}, {"id": 107, "type": "function_declarator", "text": "SetEpisodeID( LONG lEpisodeID)", "parent": 94, "children": [108, 109], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 42}}, {"id": 108, "type": "identifier", "text": "SetEpisodeID", "parent": 107, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 24}}, {"id": 109, "type": "parameter_list", "text": "( LONG lEpisodeID)", "parent": 107, "children": [110], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 42}}, {"id": 110, "type": "parameter_declaration", "text": "LONG lEpisodeID", "parent": 109, "children": [111, 112], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 41}}, {"id": 111, "type": "type_identifier", "text": "LONG", "parent": 110, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 30}}, {"id": 112, "type": "identifier", "text": "lEpisodeID", "parent": 110, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 41}}, {"id": 113, "type": "init_declarator", "text": "m_lEpisodeID = lEpisodeID", "parent": 74, "children": [114, 115, 116], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 70}}, {"id": 114, "type": "identifier", "text": "m_lEpisodeID", "parent": 113, "children": [], "start_point": {"row": 70, "column": 45}, "end_point": {"row": 70, "column": 57}}, {"id": 115, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 70, "column": 58}, "end_point": {"row": 70, "column": 59}}, {"id": 116, "type": "identifier", "text": "lEpisodeID", "parent": 113, "children": [], "start_point": {"row": 70, "column": 60}, "end_point": {"row": 70, "column": 70}}, {"id": 117, "type": "function_definition", "text": "VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; }", "parent": 0, "children": [118, 119], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 113}}, {"id": 118, "type": "type_identifier", "text": "VOID", "parent": 117, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 119, "type": "function_declarator", "text": "SetBroadcastPropertyID( LONG lBroadcastPropertyID)", "parent": 117, "children": [120, 121], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 62}}, {"id": 120, "type": "identifier", "text": "SetBroadcastPropertyID", "parent": 119, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 34}}, {"id": 121, "type": "parameter_list", "text": "( LONG lBroadcastPropertyID)", "parent": 119, "children": [122], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 62}}, {"id": 122, "type": "parameter_declaration", "text": "LONG lBroadcastPropertyID", "parent": 121, "children": [123, 124], "start_point": {"row": 71, "column": 36}, "end_point": {"row": 71, "column": 61}}, {"id": 123, "type": "type_identifier", "text": "LONG", "parent": 122, "children": [], "start_point": {"row": 71, "column": 36}, "end_point": {"row": 71, "column": 40}}, {"id": 124, "type": "identifier", "text": "lBroadcastPropertyID", "parent": 122, "children": [], "start_point": {"row": 71, "column": 41}, "end_point": {"row": 71, "column": 61}}, {"id": 125, "type": "assignment_expression", "text": "m_lBroadcastPropertyID = lBroadcastPropertyID", "parent": 117, "children": [126, 127, 128], "start_point": {"row": 71, "column": 65}, "end_point": {"row": 71, "column": 110}}, {"id": 126, "type": "identifier", "text": "m_lBroadcastPropertyID", "parent": 125, "children": [], "start_point": {"row": 71, "column": 65}, "end_point": {"row": 71, "column": 87}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 71, "column": 88}, "end_point": {"row": 71, "column": 89}}, {"id": 128, "type": "identifier", "text": "lBroadcastPropertyID", "parent": 125, "children": [], "start_point": {"row": 71, "column": 90}, "end_point": {"row": 71, "column": 110}}, {"id": 129, "type": "function_definition", "text": "LONG EpisodeID() { return m_lEpisodeID; }", "parent": 0, "children": [130, 131], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 56}}, {"id": 130, "type": "type_identifier", "text": "LONG", "parent": 129, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 8}}, {"id": 131, "type": "function_declarator", "text": "EpisodeID()", "parent": 129, "children": [132, 133], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 31}}, {"id": 132, "type": "identifier", "text": "EpisodeID", "parent": 131, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 29}}, {"id": 133, "type": "parameter_list", "text": "()", "parent": 131, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 31}}, {"id": 134, "type": "return_statement", "text": "return m_lEpisodeID;", "parent": 129, "children": [135], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 54}}, {"id": 135, "type": "identifier", "text": "m_lEpisodeID", "parent": 134, "children": [], "start_point": {"row": 73, "column": 41}, "end_point": {"row": 73, "column": 53}}, {"id": 136, "type": "function_definition", "text": "LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; }", "parent": 0, "children": [137, 138], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 76}}, {"id": 137, "type": "type_identifier", "text": "LONG", "parent": 136, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 8}}, {"id": 138, "type": "function_declarator", "text": "BroadcastPropertyID()", "parent": 136, "children": [139, 140], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 41}}, {"id": 139, "type": "identifier", "text": "BroadcastPropertyID", "parent": 138, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 39}}, {"id": 140, "type": "parameter_list", "text": "()", "parent": 138, "children": [], "start_point": {"row": 74, "column": 39}, "end_point": {"row": 74, "column": 41}}, {"id": 141, "type": "return_statement", "text": "return m_lBroadcastPropertyID;", "parent": 136, "children": [142], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 74}}, {"id": 142, "type": "identifier", "text": "m_lBroadcastPropertyID", "parent": 141, "children": [], "start_point": {"row": 74, "column": 51}, "end_point": {"row": 74, "column": 73}}, {"id": 143, "type": "labeled_statement", "text": "private:\r\n\r\n LONG m_lEpisodeID;", "parent": 0, "children": [144], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 79, "column": 33}}, {"id": 144, "type": "declaration", "text": "LONG m_lEpisodeID;", "parent": 143, "children": [145, 146], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 33}}, {"id": 145, "type": "type_identifier", "text": "LONG", "parent": 144, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 8}}, {"id": 146, "type": "identifier", "text": "m_lEpisodeID", "parent": 144, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 32}}, {"id": 147, "type": "declaration", "text": "LONG m_lBroadcastPropertyID;", "parent": 0, "children": [148, 149], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 43}}, {"id": 148, "type": "type_identifier", "text": "LONG", "parent": 147, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 149, "type": "identifier", "text": "m_lBroadcastPropertyID", "parent": 147, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 42}}, {"id": 150, "type": "preproc_def", "text": "#define TBL_EpisodeProperty _T(\"[Episode Property]\")\r\n", "parent": 0, "children": [151, 152, 153], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 88, "column": 0}}, {"id": 151, "type": "#define", "text": "#define", "parent": 150, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 7}}, {"id": 152, "type": "identifier", "text": "TBL_EpisodeProperty", "parent": 150, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 28}}, {"id": 153, "type": "preproc_arg", "text": "_T(\"[Episode Property]\")\r", "parent": 150, "children": [], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 55}}, {"id": 154, "type": "preproc_def", "text": "#define FLD_EpisodeProperty_EpisodeID _T(\"EP Episode ID\") // Long 4\r\n", "parent": 0, "children": [155, 156, 157], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 92, "column": 0}}, {"id": 155, "type": "#define", "text": "#define", "parent": 154, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 7}}, {"id": 156, "type": "identifier", "text": "FLD_EpisodeProperty_EpisodeID", "parent": 154, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 37}}, {"id": 157, "type": "preproc_arg", "text": "_T(\"EP Episode ID\") // Long 4\r", "parent": 154, "children": [], "start_point": {"row": 91, "column": 48}, "end_point": {"row": 91, "column": 94}}, {"id": 158, "type": "preproc_def", "text": "#define FLD_EpisodeProperty_BroadcastPropertyID _T(\"EP Broadcast Property ID\") // Long 4\r\n", "parent": 0, "children": [159, 160, 161], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 93, "column": 0}}, {"id": 159, "type": "#define", "text": "#define", "parent": 158, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 7}}, {"id": 160, "type": "identifier", "text": "FLD_EpisodeProperty_BroadcastPropertyID", "parent": 158, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 47}}, {"id": 161, "type": "preproc_arg", "text": "_T(\"EP Broadcast Property ID\") // Long 4\r", "parent": 158, "children": [], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 94}}, {"id": 162, "type": "preproc_call", "text": "#pragma option pop /*P_O_Pop*/\r\n", "parent": 0, "children": [163, 164], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 0}}, {"id": 163, "type": "preproc_directive", "text": "#pragma", "parent": 162, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 164, "type": "preproc_arg", "text": "option pop ", "parent": 162, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 19}}, {"id": 165, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 6}}]}, "node_categories": {"declarations": {"functions": [22, 31, 46, 55, 95, 101, 107, 117, 119, 129, 131, 136, 138], "variables": [12, 18, 25, 27, 34, 40, 49, 51, 58, 61, 64, 70, 74, 98, 104, 110, 122, 144, 147], "classes": [], "imports": [9, 10], "modules": [], "enums": []}, "statements": {"expressions": [90], "assignments": [125], "loops": [], "conditionals": [0, 1, 2, 8, 13, 15, 17, 19, 21, 23, 26, 28, 30, 32, 35, 38, 41, 43, 47, 50, 52, 54, 56, 59, 60, 62, 63, 65, 67, 69, 71, 72, 75, 76, 78, 80, 84, 86, 91, 93, 96, 99, 102, 105, 106, 108, 111, 112, 114, 116, 118, 120, 123, 124, 126, 128, 130, 132, 135, 137, 139, 142, 145, 146, 148, 149, 152, 156, 160, 165], "returns": [134, 141], "exceptions": []}, "expressions": {"calls": [3, 162], "literals": [11, 82, 89], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "GetTableName( VOID)"}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "SetRecordsetObject( VOID* cRecordsetObject)"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "GetRecordsetObject( VOID)"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "Seek(LPCTSTR lpszComparison, CObject &coo)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "m_lBroadcastPropertyID(lBroadcastPropertyID)"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "CEpisodeProperty(VOID)"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "SetEpisodeID( LONG lEpisodeID)"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastProp"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "SetBroadcastPropertyID( LONG lBroadcastPropertyID)"}, {"node_id": 129, "universal_type": "function", "name": "unknown", "text_snippet": "LONG EpisodeID() { return m_lEpisodeID; }"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "EpisodeID()"}, {"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; }"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "BroadcastPropertyID()"}], "class_declarations": [], "import_statements": [{"node_id": 9, "text": "#include \"dbsets.h\"\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/***********************************************************************\r\n** E P P R O P . H *\r\n** *\r\n************************************************************************\r\n** Copyright (C) 1996 - 1999 Microsoft Corporation *\r\n** All Rights Reserved *\r\n************************************************************************/\r\n/*\r\n\r\n EPPROP.H\r\n\r\n EpisodeProperty record object class definitions for Microsoft Guide\r\n\r\n\r\n\r\n*/\r\n\r\n\r\n\r\n#ifndef _EPPROP_H_\r\n#pragma option push -b -a8 -pc -A- /*P_O_Push*/\r\n#define _EPPROP_H_\r\n\r\n\r\n#include \"dbsets.h\"\r\n\r\n\r\n/*\r\n\r\nEpisodeProperty objects are constructed from database records of the EpisodeProperty table.\r\n\r\nThe CEpisodePropertyRecordset class is used to select and create CEpisodeProperty objects\r\nfrom the EpisodeProperty table via functions in the CDatabaseRecordset parent class.\r\n\r\n*/\r\n\r\n\r\n\r\nclass COMMMSTVEXPORT CEpisodePropertyRecordset : public CDatabaseRecordset\r\n{\r\n\r\n// This class provides EpisodeProperty recordset manipulation via parent functions\r\n\r\nvirtual CString GetTableName( VOID);\r\n\r\nvirtual BOOL SetRecordsetObject( VOID* cRecordsetObject);\r\n\r\npublic:\r\nvirtual VOID* GetRecordsetObject( VOID);\r\nvirtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);\r\n};\r\n\r\n\r\n\r\n\r\nclass COMMMSTVEXPORT CEpisodeProperty : public CObject\r\n{\r\n\r\n friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object\r\n\r\n\r\npublic:\r\n\r\n\tCEpisodeProperty(LONG m_lEpisodeID = 0,\r\n\t\t\t\t\t\tLONG lBroadcastPropertyID = 0) :\r\n\t\t\t\t\t m_lEpisodeID(m_lEpisodeID),\r\n\t\t\t\t\t m_lBroadcastPropertyID(lBroadcastPropertyID) { }\r\n\r\n\t~CEpisodeProperty(VOID) { }\r\n\r\n VOID SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; }\r\n VOID SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; }\r\n\r\n LONG EpisodeID() { return m_lEpisodeID; }\r\n LONG BroadcastPropertyID() { return m_lBroadcastPropertyID; }\r\n\r\n\r\nprivate:\r\n\r\n LONG m_lEpisodeID;\r\n LONG m_lBroadcastPropertyID;\r\n\r\n\r\n};\r\n\r\n// Table: EpisodeProperty\r\n\r\n#define TBL_EpisodeProperty _T(\"[Episode Property]\")\r\n\r\n// Field: Name Type Size\r\n\r\n#define FLD_EpisodeProperty_EpisodeID _T(\"EP Episode ID\") // Long 4\r\n#define FLD_EpisodeProperty_BroadcastPropertyID _T(\"EP Broadcast Property ID\") // Long 4\r\n\r\n\r\n#pragma option pop /*P_O_Pop*/\r\n#endif\r\n\r\n"}
80,841
c
/* * * Test functions * * */ #include <stdio.h> #include <stdlib.h> unsigned int test(unsigned int (*tests[]) (void)) { for (int i = 0; tests[i] != NULL; i++) { if (tests[i]()) { printf("Error in test number %i.\n", i); return 1; } } return 0; }
13.77
22
(translation_unit) "/*\n *\n * Test functions\n *\n *\n*/\n\n\n#include <stdio.h>\n#include <stdlib.h>\n\n\nunsigned int test(unsigned int (*tests[]) (void))\n{\n for (int i = 0; tests[i] != NULL; i++)\n {\n if (tests[i]()) \n {\n printf("Error in test number %i.\n", i);\n return 1; \n }\n }\n\n return 0; \n}\n" (comment) "/*\n *\n * Test functions\n *\n *\n*/" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (function_definition) "unsigned int test(unsigned int (*tests[]) (void))\n{\n for (int i = 0; tests[i] != NULL; i++)\n {\n if (tests[i]()) \n {\n printf("Error in test number %i.\n", i);\n return 1; \n }\n }\n\n return 0; \n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "test(unsigned int (*tests[]) (void))" (identifier) "test" (parameter_list) "(unsigned int (*tests[]) (void))" (() "(" (parameter_declaration) "unsigned int (*tests[]) (void)" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "(*tests[]) (void)" (parenthesized_declarator) "(*tests[])" (() "(" (pointer_declarator) "*tests[]" (*) "*" (array_declarator) "tests[]" (identifier) "tests" ([) "[" (]) "]" ()) ")" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" ()) ")" (compound_statement) "{\n for (int i = 0; tests[i] != NULL; i++)\n {\n if (tests[i]()) \n {\n printf("Error in test number %i.\n", i);\n return 1; \n }\n }\n\n return 0; \n}" ({) "{" (for_statement) "for (int i = 0; tests[i] != NULL; i++)\n {\n if (tests[i]()) \n {\n printf("Error in test number %i.\n", i);\n return 1; \n }\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "tests[i] != NULL" (subscript_expression) "tests[i]" (identifier) "tests" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (tests[i]()) \n {\n printf("Error in test number %i.\n", i);\n return 1; \n }\n }" ({) "{" (if_statement) "if (tests[i]()) \n {\n printf("Error in test number %i.\n", i);\n return 1; \n }" (if) "if" (parenthesized_expression) "(tests[i]())" (() "(" (call_expression) "tests[i]()" (subscript_expression) "tests[i]" (identifier) "tests" ([) "[" (identifier) "i" (]) "]" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n printf("Error in test number %i.\n", i);\n return 1; \n }" ({) "{" (expression_statement) "printf("Error in test number %i.\n", i);" (call_expression) "printf("Error in test number %i.\n", i)" (identifier) "printf" (argument_list) "("Error in test number %i.\n", i)" (() "(" (string_literal) ""Error in test number %i.\n"" (") """ (string_content) "Error in test number %i." (escape_sequence) "\n" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
105
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 13.77, "nodes": 60, "errors": 0, "source_hash": "9373cfcacd1fd783391c5fe6642238b09a4708feee9d0c37bf1546c1f6cd8e71", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\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": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 6, "type": "function_definition", "text": "unsigned int test(unsigned int (*tests[]) (void))\n{\n for (int i = 0; tests[i] != NULL; i++)\n {\n if (tests[i]()) \n {\n printf(\"Error in test number %i.\\n\", i);\n return 1; \n }\n }\n\n return 0; \n}", "parent": null, "children": [7, 10], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 7, "type": "sized_type_specifier", "text": "unsigned int", "parent": 6, "children": [8, 9], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 12}}, {"id": 8, "type": "unsigned", "text": "unsigned", "parent": 7, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 7, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 10, "type": "function_declarator", "text": "test(unsigned int (*tests[]) (void))", "parent": 6, "children": [11, 12], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 49}}, {"id": 11, "type": "identifier", "text": "test", "parent": 10, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 17}}, {"id": 12, "type": "parameter_list", "text": "(unsigned int (*tests[]) (void))", "parent": 10, "children": [13], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 49}}, {"id": 13, "type": "parameter_declaration", "text": "unsigned int (*tests[]) (void)", "parent": 12, "children": [14, 17], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 48}}, {"id": 14, "type": "sized_type_specifier", "text": "unsigned int", "parent": 13, "children": [15, 16], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 30}}, {"id": 15, "type": "unsigned", "text": "unsigned", "parent": 14, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 26}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 30}}, {"id": 17, "type": "function_declarator", "text": "(*tests[]) (void)", "parent": 13, "children": [18, 23], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 48}}, {"id": 18, "type": "parenthesized_declarator", "text": "(*tests[])", "parent": 17, "children": [19], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 41}}, {"id": 19, "type": "pointer_declarator", "text": "*tests[]", "parent": 18, "children": [20, 21], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 40}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 33}}, {"id": 21, "type": "array_declarator", "text": "tests[]", "parent": 19, "children": [22], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 40}}, {"id": 22, "type": "identifier", "text": "tests", "parent": 21, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 38}}, {"id": 23, "type": "parameter_list", "text": "(void)", "parent": 17, "children": [24], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 48}}, {"id": 24, "type": "parameter_declaration", "text": "void", "parent": 23, "children": [25], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 47}}, {"id": 25, "type": "primitive_type", "text": "void", "parent": 24, "children": [], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 47}}, {"id": 26, "type": "for_statement", "text": "for (int i = 0; tests[i] != NULL; i++)\n {\n if (tests[i]()) \n {\n printf(\"Error in test number %i.\\n\", i);\n return 1; \n }\n }", "parent": 6, "children": [27, 33, 40], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 21, "column": 5}}, {"id": 27, "type": "declaration", "text": "int i = 0;", "parent": 26, "children": [28, 29], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 29, "type": "init_declarator", "text": "i = 0", "parent": 27, "children": [30, 31, 32], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 18}}, {"id": 30, "type": "identifier", "text": "i", "parent": 29, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 31, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 32, "type": "number_literal", "text": "0", "parent": 29, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 33, "type": "binary_expression", "text": "tests[i] != NULL", "parent": 26, "children": [34, 37, 38], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 36}}, {"id": 34, "type": "subscript_expression", "text": "tests[i]", "parent": 33, "children": [35, 36], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 28}}, {"id": 35, "type": "identifier", "text": "tests", "parent": 34, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 25}}, {"id": 36, "type": "identifier", "text": "i", "parent": 34, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 37, "type": "!=", "text": "!=", "parent": 33, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 31}}, {"id": 38, "type": "null", "text": "NULL", "parent": 33, "children": [39], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 36}}, {"id": 39, "type": "NULL", "text": "NULL", "parent": 38, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 36}}, {"id": 40, "type": "update_expression", "text": "i++", "parent": 26, "children": [41, 42], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 41}}, {"id": 41, "type": "identifier", "text": "i", "parent": 40, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 39}}, {"id": 42, "type": "++", "text": "++", "parent": 40, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 41}}, {"id": 43, "type": "if_statement", "text": "if (tests[i]()) \n {\n printf(\"Error in test number %i.\\n\", i);\n return 1; \n }", "parent": 26, "children": [44], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 44, "type": "parenthesized_expression", "text": "(tests[i]())", "parent": 43, "children": [45], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 23}}, {"id": 45, "type": "call_expression", "text": "tests[i]()", "parent": 44, "children": [46, 49], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 22}}, {"id": 46, "type": "subscript_expression", "text": "tests[i]", "parent": 45, "children": [47, 48], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 20}}, {"id": 47, "type": "identifier", "text": "tests", "parent": 46, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 17}}, {"id": 48, "type": "identifier", "text": "i", "parent": 46, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 49, "type": "argument_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 22}}, {"id": 50, "type": "call_expression", "text": "printf(\"Error in test number %i.\\n\", i)", "parent": 43, "children": [51, 52], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 51}}, {"id": 51, "type": "identifier", "text": "printf", "parent": 50, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 18}}, {"id": 52, "type": "argument_list", "text": "(\"Error in test number %i.\\n\", i)", "parent": 50, "children": [53, 55], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 51}}, {"id": 53, "type": "string_literal", "text": "\"Error in test number %i.\\n\"", "parent": 52, "children": [54], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 47}}, {"id": 54, "type": "escape_sequence", "text": "\\n", "parent": 53, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 46}}, {"id": 55, "type": "identifier", "text": "i", "parent": 52, "children": [], "start_point": {"row": 18, "column": 49}, "end_point": {"row": 18, "column": 50}}, {"id": 56, "type": "return_statement", "text": "return 1;", "parent": 43, "children": [57], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 21}}, {"id": 57, "type": "number_literal", "text": "1", "parent": 56, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 20}}, {"id": 58, "type": "return_statement", "text": "return 0;", "parent": 6, "children": [59], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 13}}, {"id": 59, "type": "number_literal", "text": "0", "parent": 58, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}]}, "node_categories": {"declarations": {"functions": [6, 10, 17], "variables": [13, 24, 27], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [33, 34, 40, 44, 45, 46, 50], "assignments": [], "loops": [26], "conditionals": [7, 11, 14, 22, 30, 35, 36, 41, 43, 47, 48, 51, 55], "returns": [56, 58], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 32, 53, 57, 59], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "test", "text_snippet": "unsigned int test(unsigned int (*tests[]) (void))\n{\n for (int i = 0; tests[i] != NULL; i++)\n {"}, {"node_id": 10, "universal_type": "function", "name": "", "text_snippet": "test(unsigned int (*tests[]) (void))"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "(*tests[]) (void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\n *\n * Test functions\n *\n *\n*/\n\n\n#include <stdio.h>\n#include <stdlib.h>\n\n\nunsigned int test(unsigned int (*tests[]) (void))\n{\n for (int i = 0; tests[i] != NULL; i++)\n {\n if (tests[i]()) \n {\n printf(\"Error in test number %i.\\n\", i);\n return 1; \n }\n }\n\n return 0; \n}\n"}
80,842
c
// BSD 2-Clause License // // Copyright (c) 2021, <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: // // 1. Redistributions of source code must retain the above copyright notice, this // list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef SLVNINPUTMANAGER_H #define SLVNINPUTMANAGER_H #include <glm/glm.hpp> #include <core.h> #include <slvn_camera.h> // This include breaks the customary type rules of this project // This is because GLFW implementation contains a macro redefinition on Windows // platforms, which is resolved after it is included after the offending windows headers. #include <GLFW/glfw3.h> namespace slvn_tech { class SlvnInputManager { public: SlvnInputManager(); ~SlvnInputManager(); SlvnResult Initialize(float centerX, float centerY); SlvnResult Deinitialize(); void Update(GLFWwindow* window, SlvnCamera* camera); void HandleMovement(GLFWwindow* window, SlvnCamera* camera); void HandleRotation(GLFWwindow* window, SlvnCamera* camera); float CalculateDelta(); private: // Frame variables float dt = 0.0f; float last = 0.0f; // Input variables double lastX; double lastY; double yaw; double pitch; bool firstMouse = true; const float cameraSpeed = 50.f; const float sens = 0.2f; SlvnState mState; }; } // slvn_tech #endif // SLVNINPUTMANAGER_H
37.14
64
(translation_unit) "// BSD 2-Clause License\n//\n// Copyright (c) 2021, <NAME>\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice, this\n// list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n#ifndef SLVNINPUTMANAGER_H\n#define SLVNINPUTMANAGER_H\n\n#include <glm/glm.hpp>\n\n#include <core.h>\n#include <slvn_camera.h>\n\n// This include breaks the customary type rules of this project\n// This is because GLFW implementation contains a macro redefinition on Windows\n// platforms, which is resolved after it is included after the offending windows headers.\n#include <GLFW/glfw3.h>\n\nnamespace slvn_tech\n{\n\nclass SlvnInputManager\n{\npublic:\n SlvnInputManager();\n ~SlvnInputManager();\n\n SlvnResult Initialize(float centerX, float centerY);\n SlvnResult Deinitialize();\n \n void Update(GLFWwindow* window, SlvnCamera* camera);\n void HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n void HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n float CalculateDelta();\n\nprivate:\n\n // Frame variables\n float dt = 0.0f;\n float last = 0.0f;\n\n // Input variables\n double lastX;\n double lastY;\n double yaw;\n double pitch;\n bool firstMouse = true;\n const float cameraSpeed = 50.f;\n const float sens = 0.2f;\n\n SlvnState mState;\n};\n\n} // slvn_tech\n\n#endif // SLVNINPUTMANAGER_H" (comment) "// BSD 2-Clause License" (comment) "//" (comment) "// Copyright (c) 2021, <NAME>" (comment) "// All rights reserved." (comment) "//" (comment) "// Redistribution and use in source and binary forms, with or without" (comment) "// modification, are permitted provided that the following conditions are met:" (comment) "//" (comment) "// 1. Redistributions of source code must retain the above copyright notice, this" (comment) "// list of conditions and the following disclaimer." (comment) "//" (comment) "// 2. Redistributions in binary form must reproduce the above copyright notice," (comment) "// this list of conditions and the following disclaimer in the documentation" (comment) "// and/or other materials provided with the distribution." (comment) "//" (comment) "// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"" (comment) "// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE" (comment) "// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE" (comment) "// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE" (comment) "// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL" (comment) "// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR" (comment) "// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER" (comment) "// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY," (comment) "// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE" (comment) "// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." (preproc_ifdef) "#ifndef SLVNINPUTMANAGER_H\n#define SLVNINPUTMANAGER_H\n\n#include <glm/glm.hpp>\n\n#include <core.h>\n#include <slvn_camera.h>\n\n// This include breaks the customary type rules of this project\n// This is because GLFW implementation contains a macro redefinition on Windows\n// platforms, which is resolved after it is included after the offending windows headers.\n#include <GLFW/glfw3.h>\n\nnamespace slvn_tech\n{\n\nclass SlvnInputManager\n{\npublic:\n SlvnInputManager();\n ~SlvnInputManager();\n\n SlvnResult Initialize(float centerX, float centerY);\n SlvnResult Deinitialize();\n \n void Update(GLFWwindow* window, SlvnCamera* camera);\n void HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n void HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n float CalculateDelta();\n\nprivate:\n\n // Frame variables\n float dt = 0.0f;\n float last = 0.0f;\n\n // Input variables\n double lastX;\n double lastY;\n double yaw;\n double pitch;\n bool firstMouse = true;\n const float cameraSpeed = 50.f;\n const float sens = 0.2f;\n\n SlvnState mState;\n};\n\n} // slvn_tech\n\n#endif" (#ifndef) "#ifndef" (identifier) "SLVNINPUTMANAGER_H" (preproc_def) "#define SLVNINPUTMANAGER_H\n" (#define) "#define" (identifier) "SLVNINPUTMANAGER_H" (preproc_include) "#include <glm/glm.hpp>\n" (#include) "#include" (system_lib_string) "<glm/glm.hpp>" (preproc_include) "#include <core.h>\n" (#include) "#include" (system_lib_string) "<core.h>" (preproc_include) "#include <slvn_camera.h>\n" (#include) "#include" (system_lib_string) "<slvn_camera.h>" (comment) "// This include breaks the customary type rules of this project" (comment) "// This is because GLFW implementation contains a macro redefinition on Windows" (comment) "// platforms, which is resolved after it is included after the offending windows headers." (preproc_include) "#include <GLFW/glfw3.h>\n" (#include) "#include" (system_lib_string) "<GLFW/glfw3.h>" (function_definition) "namespace slvn_tech\n{\n\nclass SlvnInputManager\n{\npublic:\n SlvnInputManager();\n ~SlvnInputManager();\n\n SlvnResult Initialize(float centerX, float centerY);\n SlvnResult Deinitialize();\n \n void Update(GLFWwindow* window, SlvnCamera* camera);\n void HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n void HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n float CalculateDelta();\n\nprivate:\n\n // Frame variables\n float dt = 0.0f;\n float last = 0.0f;\n\n // Input variables\n double lastX;\n double lastY;\n double yaw;\n double pitch;\n bool firstMouse = true;\n const float cameraSpeed = 50.f;\n const float sens = 0.2f;\n\n SlvnState mState;\n};\n\n}" (type_identifier) "namespace" (identifier) "slvn_tech" (compound_statement) "{\n\nclass SlvnInputManager\n{\npublic:\n SlvnInputManager();\n ~SlvnInputManager();\n\n SlvnResult Initialize(float centerX, float centerY);\n SlvnResult Deinitialize();\n \n void Update(GLFWwindow* window, SlvnCamera* camera);\n void HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n void HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n float CalculateDelta();\n\nprivate:\n\n // Frame variables\n float dt = 0.0f;\n float last = 0.0f;\n\n // Input variables\n double lastX;\n double lastY;\n double yaw;\n double pitch;\n bool firstMouse = true;\n const float cameraSpeed = 50.f;\n const float sens = 0.2f;\n\n SlvnState mState;\n};\n\n}" ({) "{" (function_definition) "class SlvnInputManager\n{\npublic:\n SlvnInputManager();\n ~SlvnInputManager();\n\n SlvnResult Initialize(float centerX, float centerY);\n SlvnResult Deinitialize();\n \n void Update(GLFWwindow* window, SlvnCamera* camera);\n void HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n void HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n float CalculateDelta();\n\nprivate:\n\n // Frame variables\n float dt = 0.0f;\n float last = 0.0f;\n\n // Input variables\n double lastX;\n double lastY;\n double yaw;\n double pitch;\n bool firstMouse = true;\n const float cameraSpeed = 50.f;\n const float sens = 0.2f;\n\n SlvnState mState;\n}" (type_identifier) "class" (identifier) "SlvnInputManager" (compound_statement) "{\npublic:\n SlvnInputManager();\n ~SlvnInputManager();\n\n SlvnResult Initialize(float centerX, float centerY);\n SlvnResult Deinitialize();\n \n void Update(GLFWwindow* window, SlvnCamera* camera);\n void HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n void HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n float CalculateDelta();\n\nprivate:\n\n // Frame variables\n float dt = 0.0f;\n float last = 0.0f;\n\n // Input variables\n double lastX;\n double lastY;\n double yaw;\n double pitch;\n bool firstMouse = true;\n const float cameraSpeed = 50.f;\n const float sens = 0.2f;\n\n SlvnState mState;\n}" ({) "{" (labeled_statement) "public:\n SlvnInputManager();" (statement_identifier) "public" (:) ":" (expression_statement) "SlvnInputManager();" (call_expression) "SlvnInputManager()" (identifier) "SlvnInputManager" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~SlvnInputManager();" (unary_expression) "~SlvnInputManager()" (~) "~" (call_expression) "SlvnInputManager()" (identifier) "SlvnInputManager" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "SlvnResult Initialize(float centerX, float centerY);" (type_identifier) "SlvnResult" (function_declarator) "Initialize(float centerX, float centerY)" (identifier) "Initialize" (parameter_list) "(float centerX, float centerY)" (() "(" (parameter_declaration) "float centerX" (primitive_type) "float" (identifier) "centerX" (,) "," (parameter_declaration) "float centerY" (primitive_type) "float" (identifier) "centerY" ()) ")" (;) ";" (declaration) "SlvnResult Deinitialize();" (type_identifier) "SlvnResult" (function_declarator) "Deinitialize()" (identifier) "Deinitialize" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void Update(GLFWwindow* window, SlvnCamera* camera);" (primitive_type) "void" (function_declarator) "Update(GLFWwindow* window, SlvnCamera* camera)" (identifier) "Update" (parameter_list) "(GLFWwindow* window, SlvnCamera* camera)" (() "(" (parameter_declaration) "GLFWwindow* window" (type_identifier) "GLFWwindow" (pointer_declarator) "* window" (*) "*" (identifier) "window" (,) "," (parameter_declaration) "SlvnCamera* camera" (type_identifier) "SlvnCamera" (pointer_declarator) "* camera" (*) "*" (identifier) "camera" ()) ")" (;) ";" (declaration) "void HandleMovement(GLFWwindow* window, SlvnCamera* camera);" (primitive_type) "void" (function_declarator) "HandleMovement(GLFWwindow* window, SlvnCamera* camera)" (identifier) "HandleMovement" (parameter_list) "(GLFWwindow* window, SlvnCamera* camera)" (() "(" (parameter_declaration) "GLFWwindow* window" (type_identifier) "GLFWwindow" (pointer_declarator) "* window" (*) "*" (identifier) "window" (,) "," (parameter_declaration) "SlvnCamera* camera" (type_identifier) "SlvnCamera" (pointer_declarator) "* camera" (*) "*" (identifier) "camera" ()) ")" (;) ";" (declaration) "void HandleRotation(GLFWwindow* window, SlvnCamera* camera);" (primitive_type) "void" (function_declarator) "HandleRotation(GLFWwindow* window, SlvnCamera* camera)" (identifier) "HandleRotation" (parameter_list) "(GLFWwindow* window, SlvnCamera* camera)" (() "(" (parameter_declaration) "GLFWwindow* window" (type_identifier) "GLFWwindow" (pointer_declarator) "* window" (*) "*" (identifier) "window" (,) "," (parameter_declaration) "SlvnCamera* camera" (type_identifier) "SlvnCamera" (pointer_declarator) "* camera" (*) "*" (identifier) "camera" ()) ")" (;) ";" (declaration) "float CalculateDelta();" (primitive_type) "float" (function_declarator) "CalculateDelta()" (identifier) "CalculateDelta" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n\n // Frame variables\n float dt = 0.0f;" (statement_identifier) "private" (:) ":" (comment) "// Frame variables" (declaration) "float dt = 0.0f;" (primitive_type) "float" (init_declarator) "dt = 0.0f" (identifier) "dt" (=) "=" (number_literal) "0.0f" (;) ";" (declaration) "float last = 0.0f;" (primitive_type) "float" (init_declarator) "last = 0.0f" (identifier) "last" (=) "=" (number_literal) "0.0f" (;) ";" (comment) "// Input variables" (declaration) "double lastX;" (primitive_type) "double" (identifier) "lastX" (;) ";" (declaration) "double lastY;" (primitive_type) "double" (identifier) "lastY" (;) ";" (declaration) "double yaw;" (primitive_type) "double" (identifier) "yaw" (;) ";" (declaration) "double pitch;" (primitive_type) "double" (identifier) "pitch" (;) ";" (declaration) "bool firstMouse = true;" (primitive_type) "bool" (init_declarator) "firstMouse = true" (identifier) "firstMouse" (=) "=" (true) "true" (;) ";" (declaration) "const float cameraSpeed = 50.f;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "cameraSpeed = 50.f" (identifier) "cameraSpeed" (=) "=" (number_literal) "50.f" (;) ";" (declaration) "const float sens = 0.2f;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "sens = 0.2f" (identifier) "sens" (=) "=" (number_literal) "0.2f" (;) ";" (declaration) "SlvnState mState;" (type_identifier) "SlvnState" (identifier) "mState" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// slvn_tech" (#endif) "#endif" (comment) "// SLVNINPUTMANAGER_H"
235
0
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 37.14, "nodes": 145, "errors": 0, "source_hash": "f2a7cbdb7a6489cdcf143ec398e12585c9f2798022f4dc6979d6f2c474288137", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SLVNINPUTMANAGER_H\n#define SLVNINPUTMANAGER_H\n\n#include <glm/glm.hpp>\n\n#include <core.h>\n#include <slvn_camera.h>\n\n// This include breaks the customary type rules of this project\n// This is because GLFW implementation contains a macro redefinition on Windows\n// platforms, which is resolved after it is included after the offending windows headers.\n#include <GLFW/glfw3.h>\n\nnamespace slvn_tech\n{\n\nclass SlvnInputManager\n{\npublic:\n\tSlvnInputManager();\n\t~SlvnInputManager();\n\n\tSlvnResult Initialize(float centerX, float centerY);\n\tSlvnResult Deinitialize();\n\t\n\tvoid Update(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n\tfloat CalculateDelta();\n\nprivate:\n\n\t// Frame variables\n\tfloat dt = 0.0f;\n\tfloat last = 0.0f;\n\n\t// Input variables\n\tdouble lastX;\n\tdouble lastY;\n\tdouble yaw;\n\tdouble pitch;\n\tbool firstMouse = true;\n\tconst float cameraSpeed = 50.f;\n\tconst float sens = 0.2f;\n\n\tSlvnState mState;\n};\n\n} // slvn_tech\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 144], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 2, "type": "identifier", "text": "SLVNINPUTMANAGER_H", "parent": 0, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define SLVNINPUTMANAGER_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 5, "type": "identifier", "text": "SLVNINPUTMANAGER_H", "parent": 3, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include <glm/glm.hpp>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<glm/glm.hpp>", "parent": 6, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include <core.h>\n", "parent": 0, "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": "<core.h>", "parent": 9, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <slvn_camera.h>\n", "parent": 0, "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": "<slvn_camera.h>", "parent": 12, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 24}}, {"id": 15, "type": "preproc_include", "text": "#include <GLFW/glfw3.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<GLFW/glfw3.h>", "parent": 15, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 23}}, {"id": 18, "type": "function_definition", "text": "namespace slvn_tech\n{\n\nclass SlvnInputManager\n{\npublic:\n\tSlvnInputManager();\n\t~SlvnInputManager();\n\n\tSlvnResult Initialize(float centerX, float centerY);\n\tSlvnResult Deinitialize();\n\t\n\tvoid Update(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n\tfloat CalculateDelta();\n\nprivate:\n\n\t// Frame variables\n\tfloat dt = 0.0f;\n\tfloat last = 0.0f;\n\n\t// Input variables\n\tdouble lastX;\n\tdouble lastY;\n\tdouble yaw;\n\tdouble pitch;\n\tbool firstMouse = true;\n\tconst float cameraSpeed = 50.f;\n\tconst float sens = 0.2f;\n\n\tSlvnState mState;\n};\n\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 9}}, {"id": 20, "type": "identifier", "text": "slvn_tech", "parent": 18, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 19}}, {"id": 21, "type": "function_definition", "text": "class SlvnInputManager\n{\npublic:\n\tSlvnInputManager();\n\t~SlvnInputManager();\n\n\tSlvnResult Initialize(float centerX, float centerY);\n\tSlvnResult Deinitialize();\n\t\n\tvoid Update(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n\tfloat CalculateDelta();\n\nprivate:\n\n\t// Frame variables\n\tfloat dt = 0.0f;\n\tfloat last = 0.0f;\n\n\t// Input variables\n\tdouble lastX;\n\tdouble lastY;\n\tdouble yaw;\n\tdouble pitch;\n\tbool firstMouse = true;\n\tconst float cameraSpeed = 50.f;\n\tconst float sens = 0.2f;\n\n\tSlvnState mState;\n}", "parent": 18, "children": [22], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 22, "type": "identifier", "text": "SlvnInputManager", "parent": 21, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 22}}, {"id": 23, "type": "labeled_statement", "text": "public:\n\tSlvnInputManager();", "parent": 21, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 20}}, {"id": 24, "type": "call_expression", "text": "SlvnInputManager()", "parent": 23, "children": [25, 26], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 19}}, {"id": 25, "type": "identifier", "text": "SlvnInputManager", "parent": 24, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 17}}, {"id": 26, "type": "argument_list", "text": "()", "parent": 24, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 19}}, {"id": 27, "type": "unary_expression", "text": "~SlvnInputManager()", "parent": 21, "children": [28, 29], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 20}}, {"id": 28, "type": "~", "text": "~", "parent": 27, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 29, "type": "call_expression", "text": "SlvnInputManager()", "parent": 27, "children": [30, 31], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 20}}, {"id": 30, "type": "identifier", "text": "SlvnInputManager", "parent": 29, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 18}}, {"id": 31, "type": "argument_list", "text": "()", "parent": 29, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 20}}, {"id": 32, "type": "declaration", "text": "SlvnResult Initialize(float centerX, float centerY);", "parent": 21, "children": [33, 34], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 53}}, {"id": 33, "type": "type_identifier", "text": "SlvnResult", "parent": 32, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 11}}, {"id": 34, "type": "function_declarator", "text": "Initialize(float centerX, float centerY)", "parent": 32, "children": [35, 36], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 52}}, {"id": 35, "type": "identifier", "text": "Initialize", "parent": 34, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 22}}, {"id": 36, "type": "parameter_list", "text": "(float centerX, float centerY)", "parent": 34, "children": [37, 40], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 52}}, {"id": 37, "type": "parameter_declaration", "text": "float centerX", "parent": 36, "children": [38, 39], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 36}}, {"id": 38, "type": "primitive_type", "text": "float", "parent": 37, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 28}}, {"id": 39, "type": "identifier", "text": "centerX", "parent": 37, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 36}}, {"id": 40, "type": "parameter_declaration", "text": "float centerY", "parent": 36, "children": [41, 42], "start_point": {"row": 48, "column": 38}, "end_point": {"row": 48, "column": 51}}, {"id": 41, "type": "primitive_type", "text": "float", "parent": 40, "children": [], "start_point": {"row": 48, "column": 38}, "end_point": {"row": 48, "column": 43}}, {"id": 42, "type": "identifier", "text": "centerY", "parent": 40, "children": [], "start_point": {"row": 48, "column": 44}, "end_point": {"row": 48, "column": 51}}, {"id": 43, "type": "declaration", "text": "SlvnResult Deinitialize();", "parent": 21, "children": [44, 45], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 27}}, {"id": 44, "type": "type_identifier", "text": "SlvnResult", "parent": 43, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 11}}, {"id": 45, "type": "function_declarator", "text": "Deinitialize()", "parent": 43, "children": [46, 47], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 26}}, {"id": 46, "type": "identifier", "text": "Deinitialize", "parent": 45, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 24}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 26}}, {"id": 48, "type": "declaration", "text": "void Update(GLFWwindow* window, SlvnCamera* camera);", "parent": 21, "children": [49, 50], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 53}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 5}}, {"id": 50, "type": "function_declarator", "text": "Update(GLFWwindow* window, SlvnCamera* camera)", "parent": 48, "children": [51, 52], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 52}}, {"id": 51, "type": "identifier", "text": "Update", "parent": 50, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 12}}, {"id": 52, "type": "parameter_list", "text": "(GLFWwindow* window, SlvnCamera* camera)", "parent": 50, "children": [53, 58], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 52}}, {"id": 53, "type": "parameter_declaration", "text": "GLFWwindow* window", "parent": 52, "children": [54, 55], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 31}}, {"id": 54, "type": "type_identifier", "text": "GLFWwindow", "parent": 53, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 23}}, {"id": 55, "type": "pointer_declarator", "text": "* window", "parent": 53, "children": [56, 57], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 31}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 24}}, {"id": 57, "type": "identifier", "text": "window", "parent": 55, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 31}}, {"id": 58, "type": "parameter_declaration", "text": "SlvnCamera* camera", "parent": 52, "children": [59, 60], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 51}}, {"id": 59, "type": "type_identifier", "text": "SlvnCamera", "parent": 58, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 43}}, {"id": 60, "type": "pointer_declarator", "text": "* camera", "parent": 58, "children": [61, 62], "start_point": {"row": 51, "column": 43}, "end_point": {"row": 51, "column": 51}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 51, "column": 43}, "end_point": {"row": 51, "column": 44}}, {"id": 62, "type": "identifier", "text": "camera", "parent": 60, "children": [], "start_point": {"row": 51, "column": 45}, "end_point": {"row": 51, "column": 51}}, {"id": 63, "type": "declaration", "text": "void HandleMovement(GLFWwindow* window, SlvnCamera* camera);", "parent": 21, "children": [64, 65], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 61}}, {"id": 64, "type": "primitive_type", "text": "void", "parent": 63, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 65, "type": "function_declarator", "text": "HandleMovement(GLFWwindow* window, SlvnCamera* camera)", "parent": 63, "children": [66, 67], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 60}}, {"id": 66, "type": "identifier", "text": "HandleMovement", "parent": 65, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 20}}, {"id": 67, "type": "parameter_list", "text": "(GLFWwindow* window, SlvnCamera* camera)", "parent": 65, "children": [68, 73], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 60}}, {"id": 68, "type": "parameter_declaration", "text": "GLFWwindow* window", "parent": 67, "children": [69, 70], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 39}}, {"id": 69, "type": "type_identifier", "text": "GLFWwindow", "parent": 68, "children": [], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 31}}, {"id": 70, "type": "pointer_declarator", "text": "* window", "parent": 68, "children": [71, 72], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 39}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 32}}, {"id": 72, "type": "identifier", "text": "window", "parent": 70, "children": [], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 39}}, {"id": 73, "type": "parameter_declaration", "text": "SlvnCamera* camera", "parent": 67, "children": [74, 75], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 59}}, {"id": 74, "type": "type_identifier", "text": "SlvnCamera", "parent": 73, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 51}}, {"id": 75, "type": "pointer_declarator", "text": "* camera", "parent": 73, "children": [76, 77], "start_point": {"row": 52, "column": 51}, "end_point": {"row": 52, "column": 59}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 52, "column": 51}, "end_point": {"row": 52, "column": 52}}, {"id": 77, "type": "identifier", "text": "camera", "parent": 75, "children": [], "start_point": {"row": 52, "column": 53}, "end_point": {"row": 52, "column": 59}}, {"id": 78, "type": "declaration", "text": "void HandleRotation(GLFWwindow* window, SlvnCamera* camera);", "parent": 21, "children": [79, 80], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 61}}, {"id": 79, "type": "primitive_type", "text": "void", "parent": 78, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 5}}, {"id": 80, "type": "function_declarator", "text": "HandleRotation(GLFWwindow* window, SlvnCamera* camera)", "parent": 78, "children": [81, 82], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 60}}, {"id": 81, "type": "identifier", "text": "HandleRotation", "parent": 80, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 20}}, {"id": 82, "type": "parameter_list", "text": "(GLFWwindow* window, SlvnCamera* camera)", "parent": 80, "children": [83, 88], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 60}}, {"id": 83, "type": "parameter_declaration", "text": "GLFWwindow* window", "parent": 82, "children": [84, 85], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 39}}, {"id": 84, "type": "type_identifier", "text": "GLFWwindow", "parent": 83, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 31}}, {"id": 85, "type": "pointer_declarator", "text": "* window", "parent": 83, "children": [86, 87], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 39}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 32}}, {"id": 87, "type": "identifier", "text": "window", "parent": 85, "children": [], "start_point": {"row": 53, "column": 33}, "end_point": {"row": 53, "column": 39}}, {"id": 88, "type": "parameter_declaration", "text": "SlvnCamera* camera", "parent": 82, "children": [89, 90], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 59}}, {"id": 89, "type": "type_identifier", "text": "SlvnCamera", "parent": 88, "children": [], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 51}}, {"id": 90, "type": "pointer_declarator", "text": "* camera", "parent": 88, "children": [91, 92], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 59}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 52}}, {"id": 92, "type": "identifier", "text": "camera", "parent": 90, "children": [], "start_point": {"row": 53, "column": 53}, "end_point": {"row": 53, "column": 59}}, {"id": 93, "type": "declaration", "text": "float CalculateDelta();", "parent": 21, "children": [94, 95], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 24}}, {"id": 94, "type": "primitive_type", "text": "float", "parent": 93, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 6}}, {"id": 95, "type": "function_declarator", "text": "CalculateDelta()", "parent": 93, "children": [96, 97], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 23}}, {"id": 96, "type": "identifier", "text": "CalculateDelta", "parent": 95, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 21}}, {"id": 97, "type": "parameter_list", "text": "()", "parent": 95, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 23}}, {"id": 98, "type": "labeled_statement", "text": "private:\n\n\t// Frame variables\n\tfloat dt = 0.0f;", "parent": 21, "children": [99], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 59, "column": 17}}, {"id": 99, "type": "declaration", "text": "float dt = 0.0f;", "parent": 98, "children": [100, 101], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 17}}, {"id": 100, "type": "primitive_type", "text": "float", "parent": 99, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 6}}, {"id": 101, "type": "init_declarator", "text": "dt = 0.0f", "parent": 99, "children": [102, 103, 104], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 16}}, {"id": 102, "type": "identifier", "text": "dt", "parent": 101, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 9}}, {"id": 103, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 11}}, {"id": 104, "type": "number_literal", "text": "0.0f", "parent": 101, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 16}}, {"id": 105, "type": "declaration", "text": "float last = 0.0f;", "parent": 21, "children": [106, 107], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 19}}, {"id": 106, "type": "primitive_type", "text": "float", "parent": 105, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 6}}, {"id": 107, "type": "init_declarator", "text": "last = 0.0f", "parent": 105, "children": [108, 109, 110], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 18}}, {"id": 108, "type": "identifier", "text": "last", "parent": 107, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 11}}, {"id": 109, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 110, "type": "number_literal", "text": "0.0f", "parent": 107, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 18}}, {"id": 111, "type": "declaration", "text": "double lastX;", "parent": 21, "children": [112, 113], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 14}}, {"id": 112, "type": "primitive_type", "text": "double", "parent": 111, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 7}}, {"id": 113, "type": "identifier", "text": "lastX", "parent": 111, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 13}}, {"id": 114, "type": "declaration", "text": "double lastY;", "parent": 21, "children": [115, 116], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 14}}, {"id": 115, "type": "primitive_type", "text": "double", "parent": 114, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 7}}, {"id": 116, "type": "identifier", "text": "lastY", "parent": 114, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 13}}, {"id": 117, "type": "declaration", "text": "double yaw;", "parent": 21, "children": [118, 119], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 12}}, {"id": 118, "type": "primitive_type", "text": "double", "parent": 117, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 7}}, {"id": 119, "type": "identifier", "text": "yaw", "parent": 117, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 11}}, {"id": 120, "type": "declaration", "text": "double pitch;", "parent": 21, "children": [121, 122], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 14}}, {"id": 121, "type": "primitive_type", "text": "double", "parent": 120, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 7}}, {"id": 122, "type": "identifier", "text": "pitch", "parent": 120, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 13}}, {"id": 123, "type": "declaration", "text": "bool firstMouse = true;", "parent": 21, "children": [124, 125], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 24}}, {"id": 124, "type": "primitive_type", "text": "bool", "parent": 123, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 5}}, {"id": 125, "type": "init_declarator", "text": "firstMouse = true", "parent": 123, "children": [126, 127, 128], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 23}}, {"id": 126, "type": "identifier", "text": "firstMouse", "parent": 125, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 16}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 18}}, {"id": 128, "type": "true", "text": "true", "parent": 125, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 23}}, {"id": 129, "type": "declaration", "text": "const float cameraSpeed = 50.f;", "parent": 21, "children": [130, 131], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 32}}, {"id": 130, "type": "primitive_type", "text": "float", "parent": 129, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 12}}, {"id": 131, "type": "init_declarator", "text": "cameraSpeed = 50.f", "parent": 129, "children": [132, 133, 134], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 31}}, {"id": 132, "type": "identifier", "text": "cameraSpeed", "parent": 131, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 24}}, {"id": 133, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 26}}, {"id": 134, "type": "number_literal", "text": "50.f", "parent": 131, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 31}}, {"id": 135, "type": "declaration", "text": "const float sens = 0.2f;", "parent": 21, "children": [136, 137], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 25}}, {"id": 136, "type": "primitive_type", "text": "float", "parent": 135, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 12}}, {"id": 137, "type": "init_declarator", "text": "sens = 0.2f", "parent": 135, "children": [138, 139, 140], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 24}}, {"id": 138, "type": "identifier", "text": "sens", "parent": 137, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 17}}, {"id": 139, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 140, "type": "number_literal", "text": "0.2f", "parent": 137, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 24}}, {"id": 141, "type": "declaration", "text": "SlvnState mState;", "parent": 21, "children": [142, 143], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 18}}, {"id": 142, "type": "type_identifier", "text": "SlvnState", "parent": 141, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 10}}, {"id": 143, "type": "identifier", "text": "mState", "parent": 141, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 17}}, {"id": 144, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 21, 34, 45, 50, 65, 80, 95], "variables": [32, 37, 40, 43, 48, 53, 58, 63, 68, 73, 78, 83, 88, 93, 99, 105, 111, 114, 117, 120, 123, 129, 135, 141], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [24, 27, 29], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 25, 30, 33, 35, 39, 42, 44, 46, 51, 54, 57, 59, 62, 66, 69, 72, 74, 77, 81, 84, 87, 89, 92, 96, 102, 108, 113, 116, 119, 122, 126, 132, 138, 142, 143, 144], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 104, 110, 134, 140], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "SlvnInputManager", "text_snippet": "namespace slvn_tech\n{\n\nclass SlvnInputManager\n{\npublic:\n\tSlvnInputManager();\n\t~SlvnInputManager();\n\n"}, {"node_id": 21, "universal_type": "function", "name": "SlvnInputManager", "text_snippet": "class SlvnInputManager\n{\npublic:\n\tSlvnInputManager();\n\t~SlvnInputManager();\n\n\tSlvnResult Initialize("}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "Initialize(float centerX, float centerY)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "Deinitialize()"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "Update(GLFWwindow* window, SlvnCamera* camera)"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "HandleMovement(GLFWwindow* window, SlvnCamera* camera)"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "HandleRotation(GLFWwindow* window, SlvnCamera* camera)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "CalculateDelta()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <glm/glm.hpp>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <core.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <slvn_camera.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <GLFW/glfw3.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "// BSD 2-Clause License\n//\n// Copyright (c) 2021, <NAME>\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// 1. Redistributions of source code must retain the above copyright notice, this\n// list of conditions and the following disclaimer.\n//\n// 2. Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n#ifndef SLVNINPUTMANAGER_H\n#define SLVNINPUTMANAGER_H\n\n#include <glm/glm.hpp>\n\n#include <core.h>\n#include <slvn_camera.h>\n\n// This include breaks the customary type rules of this project\n// This is because GLFW implementation contains a macro redefinition on Windows\n// platforms, which is resolved after it is included after the offending windows headers.\n#include <GLFW/glfw3.h>\n\nnamespace slvn_tech\n{\n\nclass SlvnInputManager\n{\npublic:\n\tSlvnInputManager();\n\t~SlvnInputManager();\n\n\tSlvnResult Initialize(float centerX, float centerY);\n\tSlvnResult Deinitialize();\n\t\n\tvoid Update(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleMovement(GLFWwindow* window, SlvnCamera* camera);\n\tvoid HandleRotation(GLFWwindow* window, SlvnCamera* camera);\n\tfloat CalculateDelta();\n\nprivate:\n\n\t// Frame variables\n\tfloat dt = 0.0f;\n\tfloat last = 0.0f;\n\n\t// Input variables\n\tdouble lastX;\n\tdouble lastY;\n\tdouble yaw;\n\tdouble pitch;\n\tbool firstMouse = true;\n\tconst float cameraSpeed = 50.f;\n\tconst float sens = 0.2f;\n\n\tSlvnState mState;\n};\n\n} // slvn_tech\n\n#endif // SLVNINPUTMANAGER_H"}
80,843
c
#ifndef OPENST_COMMON_COMMON_H #define OPENST_COMMON_COMMON_H #include "openst/common/arrayops.h" #include "openst/common/buildinfo.h" #include "openst/common/coordsys.h" #include "openst/common/dynarr.h" #include "openst/common/error.h" #include "openst/common/float.h" #include "openst/common/grad.h" #include "openst/common/hacks.h" #include "openst/common/interp.h" #include "openst/common/macros.h" #include "openst/common/memadr.h" #include "openst/common/version.h" #endif /* OPENST_COMMON_COMMON_H */
32.93
15
(translation_unit) "#ifndef OPENST_COMMON_COMMON_H\n#define OPENST_COMMON_COMMON_H\n\n#include "openst/common/arrayops.h"\n#include "openst/common/buildinfo.h"\n#include "openst/common/coordsys.h"\n#include "openst/common/dynarr.h"\n#include "openst/common/error.h"\n#include "openst/common/float.h"\n#include "openst/common/grad.h"\n#include "openst/common/hacks.h"\n#include "openst/common/interp.h"\n#include "openst/common/macros.h"\n#include "openst/common/memadr.h"\n#include "openst/common/version.h"\n\n#endif /* OPENST_COMMON_COMMON_H */\n" (preproc_ifdef) "#ifndef OPENST_COMMON_COMMON_H\n#define OPENST_COMMON_COMMON_H\n\n#include "openst/common/arrayops.h"\n#include "openst/common/buildinfo.h"\n#include "openst/common/coordsys.h"\n#include "openst/common/dynarr.h"\n#include "openst/common/error.h"\n#include "openst/common/float.h"\n#include "openst/common/grad.h"\n#include "openst/common/hacks.h"\n#include "openst/common/interp.h"\n#include "openst/common/macros.h"\n#include "openst/common/memadr.h"\n#include "openst/common/version.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "OPENST_COMMON_COMMON_H" (preproc_def) "#define OPENST_COMMON_COMMON_H\n" (#define) "#define" (identifier) "OPENST_COMMON_COMMON_H" (preproc_include) "#include "openst/common/arrayops.h"\n" (#include) "#include" (string_literal) ""openst/common/arrayops.h"" (") """ (string_content) "openst/common/arrayops.h" (") """ (preproc_include) "#include "openst/common/buildinfo.h"\n" (#include) "#include" (string_literal) ""openst/common/buildinfo.h"" (") """ (string_content) "openst/common/buildinfo.h" (") """ (preproc_include) "#include "openst/common/coordsys.h"\n" (#include) "#include" (string_literal) ""openst/common/coordsys.h"" (") """ (string_content) "openst/common/coordsys.h" (") """ (preproc_include) "#include "openst/common/dynarr.h"\n" (#include) "#include" (string_literal) ""openst/common/dynarr.h"" (") """ (string_content) "openst/common/dynarr.h" (") """ (preproc_include) "#include "openst/common/error.h"\n" (#include) "#include" (string_literal) ""openst/common/error.h"" (") """ (string_content) "openst/common/error.h" (") """ (preproc_include) "#include "openst/common/float.h"\n" (#include) "#include" (string_literal) ""openst/common/float.h"" (") """ (string_content) "openst/common/float.h" (") """ (preproc_include) "#include "openst/common/grad.h"\n" (#include) "#include" (string_literal) ""openst/common/grad.h"" (") """ (string_content) "openst/common/grad.h" (") """ (preproc_include) "#include "openst/common/hacks.h"\n" (#include) "#include" (string_literal) ""openst/common/hacks.h"" (") """ (string_content) "openst/common/hacks.h" (") """ (preproc_include) "#include "openst/common/interp.h"\n" (#include) "#include" (string_literal) ""openst/common/interp.h"" (") """ (string_content) "openst/common/interp.h" (") """ (preproc_include) "#include "openst/common/macros.h"\n" (#include) "#include" (string_literal) ""openst/common/macros.h"" (") """ (string_content) "openst/common/macros.h" (") """ (preproc_include) "#include "openst/common/memadr.h"\n" (#include) "#include" (string_literal) ""openst/common/memadr.h"" (") """ (string_content) "openst/common/memadr.h" (") """ (preproc_include) "#include "openst/common/version.h"\n" (#include) "#include" (string_literal) ""openst/common/version.h"" (") """ (string_content) "openst/common/version.h" (") """ (#endif) "#endif" (comment) "/* OPENST_COMMON_COMMON_H */"
81
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 32.93, "nodes": 43, "errors": 0, "source_hash": "760e67aef72cde5af3fe6cd5b17dbcb94e81a5f11ae11588b4dd2678847308d3", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef OPENST_COMMON_COMMON_H\n#define OPENST_COMMON_COMMON_H\n\n#include \"openst/common/arrayops.h\"\n#include \"openst/common/buildinfo.h\"\n#include \"openst/common/coordsys.h\"\n#include \"openst/common/dynarr.h\"\n#include \"openst/common/error.h\"\n#include \"openst/common/float.h\"\n#include \"openst/common/grad.h\"\n#include \"openst/common/hacks.h\"\n#include \"openst/common/interp.h\"\n#include \"openst/common/macros.h\"\n#include \"openst/common/memadr.h\"\n#include \"openst/common/version.h\"\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "OPENST_COMMON_COMMON_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 30}}, {"id": 3, "type": "preproc_def", "text": "#define OPENST_COMMON_COMMON_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": "OPENST_COMMON_COMMON_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"openst/common/arrayops.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": "\"openst/common/arrayops.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 35}}, {"id": 9, "type": "preproc_include", "text": "#include \"openst/common/buildinfo.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": "\"openst/common/buildinfo.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 36}}, {"id": 12, "type": "preproc_include", "text": "#include \"openst/common/coordsys.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": "\"openst/common/coordsys.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 35}}, {"id": 15, "type": "preproc_include", "text": "#include \"openst/common/dynarr.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"openst/common/dynarr.h\"", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 33}}, {"id": 18, "type": "preproc_include", "text": "#include \"openst/common/error.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"openst/common/error.h\"", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 32}}, {"id": 21, "type": "preproc_include", "text": "#include \"openst/common/float.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"openst/common/float.h\"", "parent": 21, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 32}}, {"id": 24, "type": "preproc_include", "text": "#include \"openst/common/grad.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"openst/common/grad.h\"", "parent": 24, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 31}}, {"id": 27, "type": "preproc_include", "text": "#include \"openst/common/hacks.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"openst/common/hacks.h\"", "parent": 27, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 32}}, {"id": 30, "type": "preproc_include", "text": "#include \"openst/common/interp.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"openst/common/interp.h\"", "parent": 30, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 33}}, {"id": 33, "type": "preproc_include", "text": "#include \"openst/common/macros.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"openst/common/macros.h\"", "parent": 33, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 33}}, {"id": 36, "type": "preproc_include", "text": "#include \"openst/common/memadr.h\"\n", "parent": 0, "children": [37, 38], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"openst/common/memadr.h\"", "parent": 36, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 33}}, {"id": 39, "type": "preproc_include", "text": "#include \"openst/common/version.h\"\n", "parent": 0, "children": [40, 41], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"openst/common/version.h\"", "parent": 39, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 34}}, {"id": 42, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 40], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 42], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"openst/common/arrayops.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"openst/common/buildinfo.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"openst/common/coordsys.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"openst/common/dynarr.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"openst/common/error.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"openst/common/float.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"openst/common/grad.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"openst/common/hacks.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"openst/common/interp.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"openst/common/macros.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"openst/common/memadr.h\"\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"openst/common/version.h\"\n"}, {"node_id": 40, "text": "#include"}]}, "original_source_code": "#ifndef OPENST_COMMON_COMMON_H\n#define OPENST_COMMON_COMMON_H\n\n#include \"openst/common/arrayops.h\"\n#include \"openst/common/buildinfo.h\"\n#include \"openst/common/coordsys.h\"\n#include \"openst/common/dynarr.h\"\n#include \"openst/common/error.h\"\n#include \"openst/common/float.h\"\n#include \"openst/common/grad.h\"\n#include \"openst/common/hacks.h\"\n#include \"openst/common/interp.h\"\n#include \"openst/common/macros.h\"\n#include \"openst/common/memadr.h\"\n#include \"openst/common/version.h\"\n\n#endif /* OPENST_COMMON_COMMON_H */\n"}
80,844
c
#ifndef TOKEN_SETTINGS_WIDGET_H #define TOKEN_SETTINGS_WIDGET_H #include <QString> #include <QWidget> namespace Ui { class TokenSettingsWidget; } class QSettings; class TokenSettingsWidget : public QWidget { Q_OBJECT public: explicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = "unknown", const QString &defaultMultiple = "multiple", QWidget *parent = nullptr); ~TokenSettingsWidget() override; public slots: void save(); private: Ui::TokenSettingsWidget *ui; QSettings *m_settings; QString m_name; bool m_enableShorter; }; #endif // TOKEN_SETTINGS_WIDGET_H
24.6
25
(translation_unit) "#ifndef TOKEN_SETTINGS_WIDGET_H\n#define TOKEN_SETTINGS_WIDGET_H\n\n#include <QString>\n#include <QWidget>\n\n\nnamespace Ui {\n class TokenSettingsWidget;\n}\n\n\nclass QSettings;\n\nclass TokenSettingsWidget : public QWidget\n{\n Q_OBJECT\n\n public:\n explicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = "unknown", const QString &defaultMultiple = "multiple", QWidget *parent = nullptr);\n ~TokenSettingsWidget() override;\n\n public slots:\n void save();\n\n private:\n Ui::TokenSettingsWidget *ui;\n QSettings *m_settings;\n QString m_name;\n bool m_enableShorter;\n};\n\n#endif // TOKEN_SETTINGS_WIDGET_H\n" (preproc_ifdef) "#ifndef TOKEN_SETTINGS_WIDGET_H\n#define TOKEN_SETTINGS_WIDGET_H\n\n#include <QString>\n#include <QWidget>\n\n\nnamespace Ui {\n class TokenSettingsWidget;\n}\n\n\nclass QSettings;\n\nclass TokenSettingsWidget : public QWidget\n{\n Q_OBJECT\n\n public:\n explicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = "unknown", const QString &defaultMultiple = "multiple", QWidget *parent = nullptr);\n ~TokenSettingsWidget() override;\n\n public slots:\n void save();\n\n private:\n Ui::TokenSettingsWidget *ui;\n QSettings *m_settings;\n QString m_name;\n bool m_enableShorter;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "TOKEN_SETTINGS_WIDGET_H" (preproc_def) "#define TOKEN_SETTINGS_WIDGET_H\n" (#define) "#define" (identifier) "TOKEN_SETTINGS_WIDGET_H" (preproc_include) "#include <QString>\n" (#include) "#include" (system_lib_string) "<QString>" (preproc_include) "#include <QWidget>\n" (#include) "#include" (system_lib_string) "<QWidget>" (function_definition) "namespace Ui {\n class TokenSettingsWidget;\n}" (type_identifier) "namespace" (identifier) "Ui" (compound_statement) "{\n class TokenSettingsWidget;\n}" ({) "{" (declaration) "class TokenSettingsWidget;" (type_identifier) "class" (identifier) "TokenSettingsWidget" (;) ";" (}) "}" (declaration) "class QSettings;" (type_identifier) "class" (identifier) "QSettings" (;) ";" (function_definition) "class TokenSettingsWidget : public QWidget\n{\n Q_OBJECT\n\n public:\n explicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = "unknown", const QString &defaultMultiple = "multiple", QWidget *parent = nullptr);\n ~TokenSettingsWidget() override;\n\n public slots:\n void save();\n\n private:\n Ui::TokenSettingsWidget *ui;\n QSettings *m_settings;\n QString m_name;\n bool m_enableShorter;\n}" (type_identifier) "class" (identifier) "TokenSettingsWidget" (ERROR) ": public QWidget" (:) ":" (identifier) "public" (identifier) "QWidget" (compound_statement) "{\n Q_OBJECT\n\n public:\n explicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = "unknown", const QString &defaultMultiple = "multiple", QWidget *parent = nullptr);\n ~TokenSettingsWidget() override;\n\n public slots:\n void save();\n\n private:\n Ui::TokenSettingsWidget *ui;\n QSettings *m_settings;\n QString m_name;\n bool m_enableShorter;\n}" ({) "{" (declaration) "Q_OBJECT\n\n public:\n explicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = "unknown", const QString &defaultMultiple = "multiple", QWidget *parent = nullptr);" (type_identifier) "Q_OBJECT" (ERROR) "public:\n explicit" (identifier) "public" (:) ":" (identifier) "explicit" (init_declarator) "TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = "unknown"" (function_declarator) "TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty" (identifier) "TokenSettingsWidget" (parameter_list) "(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty" (() "(" (parameter_declaration) "QSettings *settings" (type_identifier) "QSettings" (pointer_declarator) "*settings" (*) "*" (identifier) "settings" (,) "," (parameter_declaration) "QString name" (type_identifier) "QString" (identifier) "name" (,) "," (parameter_declaration) "bool enableShorter" (primitive_type) "bool" (identifier) "enableShorter" (,) "," (parameter_declaration) "const QString &defaultEmpty" (type_qualifier) "const" (const) "const" (type_identifier) "QString" (ERROR) "&" (&) "&" (identifier) "defaultEmpty" ()) "" (=) "=" (string_literal) ""unknown"" (") """ (string_content) "unknown" (") """ (,) "," (ERROR) "const QString &" (identifier) "const" (identifier) "QString" (&) "&" (init_declarator) "defaultMultiple = "multiple"" (identifier) "defaultMultiple" (=) "=" (string_literal) ""multiple"" (") """ (string_content) "multiple" (") """ (,) "," (ERROR) "QWidget" (identifier) "QWidget" (init_declarator) "*parent = nullptr" (pointer_declarator) "*parent" (*) "*" (identifier) "parent" (=) "=" (null) "nullptr" (nullptr) "nullptr" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "~TokenSettingsWidget() override;" (unary_expression) "~TokenSettingsWidget()" (~) "~" (call_expression) "TokenSettingsWidget()" (identifier) "TokenSettingsWidget" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (ERROR) "public slots:" (type_identifier) "public" (identifier) "slots" (:) ":" (declaration) "void save();" (primitive_type) "void" (function_declarator) "save()" (identifier) "save" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n Ui::TokenSettingsWidget *ui;" (statement_identifier) "private" (:) ":" (labeled_statement) "Ui::TokenSettingsWidget *ui;" (statement_identifier) "Ui" (:) ":" (ERROR) ":" (:) ":" (declaration) "TokenSettingsWidget *ui;" (type_identifier) "TokenSettingsWidget" (pointer_declarator) "*ui" (*) "*" (identifier) "ui" (;) ";" (declaration) "QSettings *m_settings;" (type_identifier) "QSettings" (pointer_declarator) "*m_settings" (*) "*" (identifier) "m_settings" (;) ";" (declaration) "QString m_name;" (type_identifier) "QString" (identifier) "m_name" (;) ";" (declaration) "bool m_enableShorter;" (primitive_type) "bool" (identifier) "m_enableShorter" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// TOKEN_SETTINGS_WIDGET_H"
155
9
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.6, "nodes": 96, "errors": 0, "source_hash": "abcae29bad30d91b8c07d919bd5863c5550214f71ca5ef1e3f97abd7b6b0b77b", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TOKEN_SETTINGS_WIDGET_H\n#define TOKEN_SETTINGS_WIDGET_H\n\n#include <QString>\n#include <QWidget>\n\n\nnamespace Ui {\n\tclass TokenSettingsWidget;\n}\n\n\nclass QSettings;\n\nclass TokenSettingsWidget : public QWidget\n{\n\tQ_OBJECT\n\n\tpublic:\n\t\texplicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = \"unknown\", const QString &defaultMultiple = \"multiple\", QWidget *parent = nullptr);\n\t\t~TokenSettingsWidget() override;\n\n\tpublic slots:\n\t\tvoid save();\n\n\tprivate:\n\t\tUi::TokenSettingsWidget *ui;\n\t\tQSettings *m_settings;\n\t\tQString m_name;\n\t\tbool m_enableShorter;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 17, 19, 95], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "TOKEN_SETTINGS_WIDGET_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 31}}, {"id": 3, "type": "preproc_def", "text": "#define TOKEN_SETTINGS_WIDGET_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": "TOKEN_SETTINGS_WIDGET_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 31}}, {"id": 6, "type": "preproc_include", "text": "#include <QString>\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": "<QString>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <QWidget>\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": "<QWidget>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 12, "type": "function_definition", "text": "namespace Ui {\n\tclass TokenSettingsWidget;\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 14, "type": "identifier", "text": "Ui", "parent": 12, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 15, "type": "declaration", "text": "class TokenSettingsWidget;", "parent": 12, "children": [16], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 27}}, {"id": 16, "type": "identifier", "text": "TokenSettingsWidget", "parent": 15, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 26}}, {"id": 17, "type": "declaration", "text": "class QSettings;", "parent": 0, "children": [18], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 16}}, {"id": 18, "type": "identifier", "text": "QSettings", "parent": 17, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 15}}, {"id": 19, "type": "function_definition", "text": "class TokenSettingsWidget : public QWidget\n{\n\tQ_OBJECT\n\n\tpublic:\n\t\texplicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = \"unknown\", const QString &defaultMultiple = \"multiple\", QWidget *parent = nullptr);\n\t\t~TokenSettingsWidget() override;\n\n\tpublic slots:\n\t\tvoid save();\n\n\tprivate:\n\t\tUi::TokenSettingsWidget *ui;\n\t\tQSettings *m_settings;\n\t\tQString m_name;\n\t\tbool m_enableShorter;\n}", "parent": 0, "children": [20, 21], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 20, "type": "identifier", "text": "TokenSettingsWidget", "parent": 19, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 25}}, {"id": 21, "type": "ERROR", "text": ": public QWidget", "parent": 19, "children": [22], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 42}}, {"id": 22, "type": "identifier", "text": "QWidget", "parent": 21, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 42}}, {"id": 23, "type": "declaration", "text": "Q_OBJECT\n\n\tpublic:\n\t\texplicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = \"unknown\", const QString &defaultMultiple = \"multiple\", QWidget *parent = nullptr);", "parent": 19, "children": [24, 25, 27, 47, 49, 53, 55], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 19, "column": 199}}, {"id": 24, "type": "type_identifier", "text": "Q_OBJECT", "parent": 23, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 25, "type": "ERROR", "text": "public:\n\t\texplicit", "parent": 23, "children": [26], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 19, "column": 10}}, {"id": 26, "type": "identifier", "text": "explicit", "parent": 25, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 10}}, {"id": 27, "type": "init_declarator", "text": "TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = \"unknown\"", "parent": 23, "children": [28, 45, 46], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 125}}, {"id": 28, "type": "function_declarator", "text": "TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty", "parent": 27, "children": [29, 30], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 113}}, {"id": 29, "type": "identifier", "text": "TokenSettingsWidget", "parent": 28, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 30}}, {"id": 30, "type": "parameter_list", "text": "(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty", "parent": 28, "children": [31, 36, 39, 42], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 113}}, {"id": 31, "type": "parameter_declaration", "text": "QSettings *settings", "parent": 30, "children": [32, 33], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 50}}, {"id": 32, "type": "type_identifier", "text": "QSettings", "parent": 31, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 40}}, {"id": 33, "type": "pointer_declarator", "text": "*settings", "parent": 31, "children": [34, 35], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 50}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 42}}, {"id": 35, "type": "identifier", "text": "settings", "parent": 33, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 50}}, {"id": 36, "type": "parameter_declaration", "text": "QString name", "parent": 30, "children": [37, 38], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 64}}, {"id": 37, "type": "type_identifier", "text": "QString", "parent": 36, "children": [], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 59}}, {"id": 38, "type": "identifier", "text": "name", "parent": 36, "children": [], "start_point": {"row": 19, "column": 60}, "end_point": {"row": 19, "column": 64}}, {"id": 39, "type": "parameter_declaration", "text": "bool enableShorter", "parent": 30, "children": [40, 41], "start_point": {"row": 19, "column": 66}, "end_point": {"row": 19, "column": 84}}, {"id": 40, "type": "primitive_type", "text": "bool", "parent": 39, "children": [], "start_point": {"row": 19, "column": 66}, "end_point": {"row": 19, "column": 70}}, {"id": 41, "type": "identifier", "text": "enableShorter", "parent": 39, "children": [], "start_point": {"row": 19, "column": 71}, "end_point": {"row": 19, "column": 84}}, {"id": 42, "type": "parameter_declaration", "text": "const QString &defaultEmpty", "parent": 30, "children": [43, 44], "start_point": {"row": 19, "column": 86}, "end_point": {"row": 19, "column": 113}}, {"id": 43, "type": "type_identifier", "text": "QString", "parent": 42, "children": [], "start_point": {"row": 19, "column": 92}, "end_point": {"row": 19, "column": 99}}, {"id": 44, "type": "identifier", "text": "defaultEmpty", "parent": 42, "children": [], "start_point": {"row": 19, "column": 101}, "end_point": {"row": 19, "column": 113}}, {"id": 45, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 19, "column": 114}, "end_point": {"row": 19, "column": 115}}, {"id": 46, "type": "string_literal", "text": "\"unknown\"", "parent": 27, "children": [], "start_point": {"row": 19, "column": 116}, "end_point": {"row": 19, "column": 125}}, {"id": 47, "type": "ERROR", "text": "const QString &", "parent": 23, "children": [48], "start_point": {"row": 19, "column": 127}, "end_point": {"row": 19, "column": 142}}, {"id": 48, "type": "identifier", "text": "QString", "parent": 47, "children": [], "start_point": {"row": 19, "column": 133}, "end_point": {"row": 19, "column": 140}}, {"id": 49, "type": "init_declarator", "text": "defaultMultiple = \"multiple\"", "parent": 23, "children": [50, 51, 52], "start_point": {"row": 19, "column": 142}, "end_point": {"row": 19, "column": 170}}, {"id": 50, "type": "identifier", "text": "defaultMultiple", "parent": 49, "children": [], "start_point": {"row": 19, "column": 142}, "end_point": {"row": 19, "column": 157}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 19, "column": 158}, "end_point": {"row": 19, "column": 159}}, {"id": 52, "type": "string_literal", "text": "\"multiple\"", "parent": 49, "children": [], "start_point": {"row": 19, "column": 160}, "end_point": {"row": 19, "column": 170}}, {"id": 53, "type": "ERROR", "text": "QWidget", "parent": 23, "children": [54], "start_point": {"row": 19, "column": 172}, "end_point": {"row": 19, "column": 179}}, {"id": 54, "type": "identifier", "text": "QWidget", "parent": 53, "children": [], "start_point": {"row": 19, "column": 172}, "end_point": {"row": 19, "column": 179}}, {"id": 55, "type": "init_declarator", "text": "*parent = nullptr", "parent": 23, "children": [56, 59, 60], "start_point": {"row": 19, "column": 180}, "end_point": {"row": 19, "column": 197}}, {"id": 56, "type": "pointer_declarator", "text": "*parent", "parent": 55, "children": [57, 58], "start_point": {"row": 19, "column": 180}, "end_point": {"row": 19, "column": 187}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 19, "column": 180}, "end_point": {"row": 19, "column": 181}}, {"id": 58, "type": "identifier", "text": "parent", "parent": 56, "children": [], "start_point": {"row": 19, "column": 181}, "end_point": {"row": 19, "column": 187}}, {"id": 59, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 19, "column": 188}, "end_point": {"row": 19, "column": 189}}, {"id": 60, "type": "null", "text": "nullptr", "parent": 55, "children": [61], "start_point": {"row": 19, "column": 190}, "end_point": {"row": 19, "column": 197}}, {"id": 61, "type": "nullptr", "text": "nullptr", "parent": 60, "children": [], "start_point": {"row": 19, "column": 190}, "end_point": {"row": 19, "column": 197}}, {"id": 62, "type": "unary_expression", "text": "~TokenSettingsWidget()", "parent": 19, "children": [63, 64], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 24}}, {"id": 63, "type": "~", "text": "~", "parent": 62, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 3}}, {"id": 64, "type": "call_expression", "text": "TokenSettingsWidget()", "parent": 62, "children": [65, 66], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 24}}, {"id": 65, "type": "identifier", "text": "TokenSettingsWidget", "parent": 64, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 22}}, {"id": 66, "type": "argument_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 24}}, {"id": 67, "type": "ERROR", "text": "override", "parent": 19, "children": [68], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 33}}, {"id": 68, "type": "identifier", "text": "override", "parent": 67, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 33}}, {"id": 69, "type": "ERROR", "text": "public slots:", "parent": 19, "children": [70], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 14}}, {"id": 70, "type": "identifier", "text": "slots", "parent": 69, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 13}}, {"id": 71, "type": "declaration", "text": "void save();", "parent": 19, "children": [72, 73], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 14}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 73, "type": "function_declarator", "text": "save()", "parent": 71, "children": [74, 75], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 13}}, {"id": 74, "type": "identifier", "text": "save", "parent": 73, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 11}}, {"id": 75, "type": "parameter_list", "text": "()", "parent": 73, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 13}}, {"id": 76, "type": "labeled_statement", "text": "private:\n\t\tUi::TokenSettingsWidget *ui;", "parent": 19, "children": [77], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 26, "column": 30}}, {"id": 77, "type": "labeled_statement", "text": "Ui::TokenSettingsWidget *ui;", "parent": 76, "children": [78, 79], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 30}}, {"id": 78, "type": "statement_identifier", "text": "Ui", "parent": 77, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 4}}, {"id": 79, "type": "declaration", "text": "TokenSettingsWidget *ui;", "parent": 77, "children": [80, 81], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 30}}, {"id": 80, "type": "type_identifier", "text": "TokenSettingsWidget", "parent": 79, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 25}}, {"id": 81, "type": "pointer_declarator", "text": "*ui", "parent": 79, "children": [82, 83], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 29}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 27}}, {"id": 83, "type": "identifier", "text": "ui", "parent": 81, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 29}}, {"id": 84, "type": "declaration", "text": "QSettings *m_settings;", "parent": 19, "children": [85, 86], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 24}}, {"id": 85, "type": "type_identifier", "text": "QSettings", "parent": 84, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 11}}, {"id": 86, "type": "pointer_declarator", "text": "*m_settings", "parent": 84, "children": [87, 88], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 23}}, {"id": 87, "type": "*", "text": "*", "parent": 86, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 88, "type": "identifier", "text": "m_settings", "parent": 86, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 23}}, {"id": 89, "type": "declaration", "text": "QString m_name;", "parent": 19, "children": [90, 91], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 17}}, {"id": 90, "type": "type_identifier", "text": "QString", "parent": 89, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 9}}, {"id": 91, "type": "identifier", "text": "m_name", "parent": 89, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 16}}, {"id": 92, "type": "declaration", "text": "bool m_enableShorter;", "parent": 19, "children": [93, 94], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 23}}, {"id": 93, "type": "primitive_type", "text": "bool", "parent": 92, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 94, "type": "identifier", "text": "m_enableShorter", "parent": 92, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 22}}, {"id": 95, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 19, 28, 73], "variables": [15, 17, 23, 31, 36, 39, 42, 71, 79, 84, 89, 92], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [62, 64], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 18, 20, 22, 24, 26, 29, 32, 35, 37, 38, 41, 43, 44, 48, 50, 54, 58, 65, 68, 70, 74, 78, 80, 83, 85, 88, 90, 91, 94, 95], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 46, 52], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "TokenSettingsWidget;", "text_snippet": "namespace Ui {\n\tclass TokenSettingsWidget;\n}"}, {"node_id": 19, "universal_type": "function", "name": "TokenSettingsWidget", "text_snippet": "class TokenSettingsWidget : public QWidget\n{\n\tQ_OBJECT\n\n\tpublic:\n\t\texplicit TokenSettingsWidget(QSet"}, {"node_id": 28, "universal_type": "function", "name": "enableShorter,", "text_snippet": "TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmp"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "save()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QString>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <QWidget>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef TOKEN_SETTINGS_WIDGET_H\n#define TOKEN_SETTINGS_WIDGET_H\n\n#include <QString>\n#include <QWidget>\n\n\nnamespace Ui {\n\tclass TokenSettingsWidget;\n}\n\n\nclass QSettings;\n\nclass TokenSettingsWidget : public QWidget\n{\n\tQ_OBJECT\n\n\tpublic:\n\t\texplicit TokenSettingsWidget(QSettings *settings, QString name, bool enableShorter, const QString &defaultEmpty = \"unknown\", const QString &defaultMultiple = \"multiple\", QWidget *parent = nullptr);\n\t\t~TokenSettingsWidget() override;\n\n\tpublic slots:\n\t\tvoid save();\n\n\tprivate:\n\t\tUi::TokenSettingsWidget *ui;\n\t\tQSettings *m_settings;\n\t\tQString m_name;\n\t\tbool m_enableShorter;\n};\n\n#endif // TOKEN_SETTINGS_WIDGET_H\n"}
80,845
c
// -*-c++-*- /*! \file free_message_parser.h \brief player's freeform say message parser Header File */ /* *Copyright: Copyright (C) <NAME> This code is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *EndCopyright: */ ///////////////////////////////////////////////////////////////////// #ifndef RCSC_COMMON_FREE_MESSAGE_PARSER_H #define RCSC_COMMON_FREE_MESSAGE_PARSER_H #include <rcsc/common/say_message_parser.h> #include <rcsc/common/audio_memory.h> #include <string> #include <iostream> #include <cstring> namespace rcsc { /*-------------------------------------------------------------------*/ /*! \class FreeMessageParser \brief player's freeform say message parser */ template < std::size_t LEN > class FreeMessageParser : public SayMessageParser { private: //! pointer to the audio memory boost::shared_ptr< AudioMemory > M_memory; public: /*! \brief construct with audio memory \param memory pointer to the memory */ explicit FreeMessageParser( boost::shared_ptr< AudioMemory > memory ) : M_memory( memory ) { } /*! \brief get the header character. \return header character. */ char header() const { return static_cast< char >( '0' + LEN ); } /*! \brief virtual method which analyzes audio messages. \param unum sender's uniform number \param msg raw audio message \param current current game time \retval bytes read if success \retval 0 message ID is not match. other parser should be tried. \retval -1 failed to parse */ int parse( const int unum, const double & /* dir */, const char * msg, const GameTime & current ) { if ( *msg != header() ) return 0; ++msg; if ( std::strlen( msg ) < LEN ) { std::cerr << __FILE__ << ':' << __LINE__ << " FreeMessageParser: Illegal message length. message=" << msg << " must be length " << LEN << std::endl; return -1; } M_memory->setFreeMessage( unum, std::string( msg, 0, LEN ), current ); return 1 + LEN; } }; } #endif
32.12
90
(translation_unit) "// -*-c++-*-\n\n/*!\n \file free_message_parser.h\n \brief player's freeform say message parser Header File\n*/\n\n/*\n *Copyright:\n\n Copyright (C) <NAME>\n\n This code is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 3 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n *EndCopyright:\n */\n\n/////////////////////////////////////////////////////////////////////\n\n#ifndef RCSC_COMMON_FREE_MESSAGE_PARSER_H\n#define RCSC_COMMON_FREE_MESSAGE_PARSER_H\n\n#include <rcsc/common/say_message_parser.h>\n#include <rcsc/common/audio_memory.h>\n\n#include <string>\n#include <iostream>\n#include <cstring>\n\nnamespace rcsc {\n\n/*-------------------------------------------------------------------*/\n/*!\n \class FreeMessageParser\n \brief player's freeform say message parser\n*/\ntemplate < std::size_t LEN >\nclass FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \brief get the header character.\n \return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \brief virtual method which analyzes audio messages.\n \param unum sender's uniform number\n \param msg raw audio message\n \param current current game time\n \retval bytes read if success\n \retval 0 message ID is not match. other parser should be tried.\n \retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n};\n\n}\n\n#endif\n" (comment) "// -*-c++-*-" (comment) "/*!\n \file free_message_parser.h\n \brief player's freeform say message parser Header File\n*/" (comment) "/*\n *Copyright:\n\n Copyright (C) <NAME>\n\n This code is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 3 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n *EndCopyright:\n */" (comment) "/////////////////////////////////////////////////////////////////////" (preproc_ifdef) "#ifndef RCSC_COMMON_FREE_MESSAGE_PARSER_H\n#define RCSC_COMMON_FREE_MESSAGE_PARSER_H\n\n#include <rcsc/common/say_message_parser.h>\n#include <rcsc/common/audio_memory.h>\n\n#include <string>\n#include <iostream>\n#include <cstring>\n\nnamespace rcsc {\n\n/*-------------------------------------------------------------------*/\n/*!\n \class FreeMessageParser\n \brief player's freeform say message parser\n*/\ntemplate < std::size_t LEN >\nclass FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \brief get the header character.\n \return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \brief virtual method which analyzes audio messages.\n \param unum sender's uniform number\n \param msg raw audio message\n \param current current game time\n \retval bytes read if success\n \retval 0 message ID is not match. other parser should be tried.\n \retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n};\n\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "RCSC_COMMON_FREE_MESSAGE_PARSER_H" (preproc_def) "#define RCSC_COMMON_FREE_MESSAGE_PARSER_H\n" (#define) "#define" (identifier) "RCSC_COMMON_FREE_MESSAGE_PARSER_H" (preproc_include) "#include <rcsc/common/say_message_parser.h>\n" (#include) "#include" (system_lib_string) "<rcsc/common/say_message_parser.h>" (preproc_include) "#include <rcsc/common/audio_memory.h>\n" (#include) "#include" (system_lib_string) "<rcsc/common/audio_memory.h>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include <cstring>\n" (#include) "#include" (system_lib_string) "<cstring>" (function_definition) "namespace rcsc {\n\n/*-------------------------------------------------------------------*/\n/*!\n \class FreeMessageParser\n \brief player's freeform say message parser\n*/\ntemplate < std::size_t LEN >\nclass FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \brief get the header character.\n \return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \brief virtual method which analyzes audio messages.\n \param unum sender's uniform number\n \param msg raw audio message\n \param current current game time\n \retval bytes read if success\n \retval 0 message ID is not match. other parser should be tried.\n \retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n};\n\n}" (type_identifier) "namespace" (identifier) "rcsc" (compound_statement) "{\n\n/*-------------------------------------------------------------------*/\n/*!\n \class FreeMessageParser\n \brief player's freeform say message parser\n*/\ntemplate < std::size_t LEN >\nclass FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \brief get the header character.\n \return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \brief virtual method which analyzes audio messages.\n \param unum sender's uniform number\n \param msg raw audio message\n \param current current game time\n \retval bytes read if success\n \retval 0 message ID is not match. other parser should be tried.\n \retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n};\n\n}" ({) "{" (comment) "/*-------------------------------------------------------------------*/" (comment) "/*!\n \class FreeMessageParser\n \brief player's freeform say message parser\n*/" (ERROR) "template < std::size_t" (binary_expression) "template < std" (identifier) "template" (<) "<" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (expression_statement) "LEN >\nclass" (binary_expression) "LEN >\nclass" (identifier) "LEN" (>) ">" (identifier) "class" (;) "" (labeled_statement) "FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \brief get the header character.\n \return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \brief virtual method which analyzes audio messages.\n \param unum sender's uniform number\n \param msg raw audio message\n \param current current game time\n \retval bytes read if success\n \retval 0 message ID is not match. other parser should be tried.\n \retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n}" (statement_identifier) "FreeMessageParser" (:) ":" (ERROR) "public SayMessageParser" (type_identifier) "public" (identifier) "SayMessageParser" (compound_statement) "{\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \brief get the header character.\n \return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \brief virtual method which analyzes audio messages.\n \param unum sender's uniform number\n \param msg raw audio message\n \param current current game time\n \retval bytes read if success\n \retval 0 message ID is not match. other parser should be tried.\n \retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n}" ({) "{" (labeled_statement) "private:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;" (statement_identifier) "private" (:) ":" (comment) "//! pointer to the audio memory" (labeled_statement) "boost::shared_ptr< AudioMemory > M_memory;" (statement_identifier) "boost" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "shared_ptr< AudioMemory > M_memory;" (binary_expression) "shared_ptr< AudioMemory > M_memory" (binary_expression) "shared_ptr< AudioMemory" (identifier) "shared_ptr" (<) "<" (identifier) "AudioMemory" (>) ">" (identifier) "M_memory" (;) ";" (labeled_statement) "public:\n\n /*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }" (statement_identifier) "public" (:) ":" (comment) "/*!\n \brief construct with audio memory\n \param memory pointer to the memory\n */" (ERROR) "explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )" (type_identifier) "explicit" (function_declarator) "FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )" (identifier) "FreeMessageParser" (parameter_list) "( boost::shared_ptr< AudioMemory > memory )" (() "(" (parameter_declaration) "boost::shared_ptr< AudioMemory > memory" (type_identifier) "boost" (ERROR) "::shared_ptr< AudioMemory >" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "AudioMemory" (>) ">" (identifier) "memory" ()) ")" (ERROR) ":" (:) ":" (call_expression) "M_memory( memory )" (identifier) "M_memory" (argument_list) "( memory )" (() "(" (identifier) "memory" ()) ")" (compound_statement) "{ }" ({) "{" (}) "}" (comment) "/*!\n \brief get the header character.\n \return header character.\n */" (ERROR) "char header() const" (primitive_type) "char" (function_declarator) "header()" (identifier) "header" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return static_cast< char >( '0' + LEN );\n }" ({) "{" (return_statement) "return static_cast< char >( '0' + LEN );" (return) "return" (binary_expression) "static_cast< char >( '0' + LEN )" (binary_expression) "static_cast< char" (identifier) "static_cast" (<) "<" (identifier) "char" (>) ">" (parenthesized_expression) "( '0' + LEN )" (() "(" (binary_expression) "'0' + LEN" (char_literal) "'0'" (') "'" (character) "0" (') "'" (+) "+" (identifier) "LEN" ()) ")" (;) ";" (}) "}" (comment) "/*!\n \brief virtual method which analyzes audio messages.\n \param unum sender's uniform number\n \param msg raw audio message\n \param current current game time\n \retval bytes read if success\n \retval 0 message ID is not match. other parser should be tried.\n \retval -1 failed to parse\n */" (function_definition) "int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }" (primitive_type) "int" (function_declarator) "parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )" (identifier) "parse" (parameter_list) "( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )" (() "(" (parameter_declaration) "const int unum" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "unum" (,) "," (parameter_declaration) "const double" (type_qualifier) "const" (const) "const" (primitive_type) "double" (ERROR) "&" (&) "&" (comment) "/* dir */" (,) "," (parameter_declaration) "const char * msg" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" (,) "," (parameter_declaration) "const GameTime & current" (type_qualifier) "const" (const) "const" (type_identifier) "GameTime" (ERROR) "&" (&) "&" (identifier) "current" ()) ")" (compound_statement) "{\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }" ({) "{" (if_statement) "if ( *msg != header() ) return 0;" (if) "if" (parenthesized_expression) "( *msg != header() )" (() "(" (binary_expression) "*msg != header()" (pointer_expression) "*msg" (*) "*" (identifier) "msg" (!=) "!=" (call_expression) "header()" (identifier) "header" (argument_list) "()" (() "(" ()) ")" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (expression_statement) "++msg;" (update_expression) "++msg" (++) "++" (identifier) "msg" (;) ";" (if_statement) "if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }" (if) "if" (parenthesized_expression) "( std::strlen( msg ) < LEN )" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "strlen( msg ) < LEN" (call_expression) "strlen( msg )" (identifier) "strlen" (argument_list) "( msg )" (() "(" (identifier) "msg" ()) ")" (<) "<" (identifier) "LEN" ()) ")" (compound_statement) "{\n std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;\n return -1;\n }" ({) "{" (labeled_statement) "std::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std::endl;" (statement_identifier) "std" (ERROR) "::cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std:" (:) ":" (:) ":" (binary_expression) "cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN\n << std" (binary_expression) "cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length " << LEN" (binary_expression) "cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg << " must be length "" (binary_expression) "cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="\n << msg" (binary_expression) "cerr << __FILE__ << ':' << __LINE__\n << " FreeMessageParser: Illegal message length. message="" (binary_expression) "cerr << __FILE__ << ':' << __LINE__" (binary_expression) "cerr << __FILE__ << ':'" (binary_expression) "cerr << __FILE__" (identifier) "cerr" (<<) "<<" (identifier) "__FILE__" (<<) "<<" (char_literal) "':'" (') "'" (character) ":" (') "'" (<<) "<<" (identifier) "__LINE__" (<<) "<<" (string_literal) "" FreeMessageParser: Illegal message length. message="" (") """ (string_content) " FreeMessageParser: Illegal message length. message=" (") """ (<<) "<<" (identifier) "msg" (<<) "<<" (string_literal) "" must be length "" (") """ (string_content) " must be length " (") """ (<<) "<<" (identifier) "LEN" (<<) "<<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "endl;" (identifier) "endl" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (expression_statement) "M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );" (call_expression) "M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current )" (field_expression) "M_memory->setFreeMessage" (identifier) "M_memory" (->) "->" (field_identifier) "setFreeMessage" (argument_list) "( unum,\n std::string( msg, 0, LEN ),\n current )" (() "(" (identifier) "unum" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (call_expression) "string( msg, 0, LEN )" (identifier) "string" (argument_list) "( msg, 0, LEN )" (() "(" (identifier) "msg" (,) "," (number_literal) "0" (,) "," (identifier) "LEN" ()) ")" (,) "," (identifier) "current" ()) ")" (;) ";" (return_statement) "return 1 + LEN;" (return) "return" (binary_expression) "1 + LEN" (number_literal) "1" (+) "+" (identifier) "LEN" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif"
310
12
{"language": "c", "success": true, "metadata": {"lines": 90, "avg_line_length": 32.12, "nodes": 183, "errors": 0, "source_hash": "39dcddfe328eb22aa374f9a1805bfcacfad092e3b5dcaae9b0d00625a995acb6", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef RCSC_COMMON_FREE_MESSAGE_PARSER_H\n#define RCSC_COMMON_FREE_MESSAGE_PARSER_H\n\n#include <rcsc/common/say_message_parser.h>\n#include <rcsc/common/audio_memory.h>\n\n#include <string>\n#include <iostream>\n#include <cstring>\n\nnamespace rcsc {\n\n/*-------------------------------------------------------------------*/\n/*!\n \\class FreeMessageParser\n \\brief player's freeform say message parser\n*/\ntemplate < std::size_t LEN >\nclass FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \\brief construct with audio memory\n \\param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \\brief get the header character.\n \\return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \\brief virtual method which analyzes audio messages.\n \\param unum sender's uniform number\n \\param msg raw audio message\n \\param current current game time\n \\retval bytes read if success\n \\retval 0 message ID is not match. other parser should be tried.\n \\retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n};\n\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 182], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 110, "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": "RCSC_COMMON_FREE_MESSAGE_PARSER_H", "parent": 0, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 41}}, {"id": 3, "type": "preproc_def", "text": "#define RCSC_COMMON_FREE_MESSAGE_PARSER_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": "RCSC_COMMON_FREE_MESSAGE_PARSER_H", "parent": 3, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 41}}, {"id": 6, "type": "preproc_include", "text": "#include <rcsc/common/say_message_parser.h>\n", "parent": 0, "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": "<rcsc/common/say_message_parser.h>", "parent": 6, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 43}}, {"id": 9, "type": "preproc_include", "text": "#include <rcsc/common/audio_memory.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<rcsc/common/audio_memory.h>", "parent": 9, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 37}}, {"id": 12, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<string>", "parent": 12, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<iostream>", "parent": 15, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include <cstring>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<cstring>", "parent": 18, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 18}}, {"id": 21, "type": "function_definition", "text": "namespace rcsc {\n\n/*-------------------------------------------------------------------*/\n/*!\n \\class FreeMessageParser\n \\brief player's freeform say message parser\n*/\ntemplate < std::size_t LEN >\nclass FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \\brief construct with audio memory\n \\param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \\brief get the header character.\n \\return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \\brief virtual method which analyzes audio messages.\n \\param unum sender's uniform number\n \\param msg raw audio message\n \\param current current game time\n \\retval bytes read if success\n \\retval 0 message ID is not match. other parser should be tried.\n \\retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n};\n\n}", "parent": 0, "children": [22, 23], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 9}}, {"id": 23, "type": "identifier", "text": "rcsc", "parent": 21, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 14}}, {"id": 24, "type": "ERROR", "text": "template < std::size_t", "parent": 21, "children": [25, 29], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 22}}, {"id": 25, "type": "binary_expression", "text": "template < std", "parent": 24, "children": [26, 27, 28], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 14}}, {"id": 26, "type": "identifier", "text": "template", "parent": 25, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 27, "type": "<", "text": "<", "parent": 25, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 10}}, {"id": 28, "type": "identifier", "text": "std", "parent": 25, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 14}}, {"id": 29, "type": "primitive_type", "text": "size_t", "parent": 24, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 22}}, {"id": 30, "type": "binary_expression", "text": "LEN >\nclass", "parent": 21, "children": [31, 32], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 49, "column": 5}}, {"id": 31, "type": "identifier", "text": "LEN", "parent": 30, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 26}}, {"id": 32, "type": ">", "text": ">", "parent": 30, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 28}}, {"id": 33, "type": "labeled_statement", "text": "FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \\brief construct with audio memory\n \\param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \\brief get the header character.\n \\return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \\brief virtual method which analyzes audio messages.\n \\param unum sender's uniform number\n \\param msg raw audio message\n \\param current current game time\n \\retval bytes read if success\n \\retval 0 message ID is not match. other parser should be tried.\n \\retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n}", "parent": 21, "children": [34, 35], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 106, "column": 1}}, {"id": 34, "type": "statement_identifier", "text": "FreeMessageParser", "parent": 33, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 23}}, {"id": 35, "type": "ERROR", "text": "public SayMessageParser", "parent": 33, "children": [36], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 29}}, {"id": 36, "type": "identifier", "text": "SayMessageParser", "parent": 35, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 29}}, {"id": 37, "type": "labeled_statement", "text": "private:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;", "parent": 33, "children": [38], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 53, "column": 46}}, {"id": 38, "type": "labeled_statement", "text": "boost::shared_ptr< AudioMemory > M_memory;", "parent": 37, "children": [39], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 46}}, {"id": 39, "type": "statement_identifier", "text": "boost", "parent": 38, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 9}}, {"id": 40, "type": "binary_expression", "text": "shared_ptr< AudioMemory > M_memory", "parent": 38, "children": [41, 45, 46], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 45}}, {"id": 41, "type": "binary_expression", "text": "shared_ptr< AudioMemory", "parent": 40, "children": [42, 43, 44], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 34}}, {"id": 42, "type": "identifier", "text": "shared_ptr", "parent": 41, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 21}}, {"id": 43, "type": "<", "text": "<", "parent": 41, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 22}}, {"id": 44, "type": "identifier", "text": "AudioMemory", "parent": 41, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 34}}, {"id": 45, "type": ">", "text": ">", "parent": 40, "children": [], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 36}}, {"id": 46, "type": "identifier", "text": "M_memory", "parent": 40, "children": [], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 45}}, {"id": 47, "type": "labeled_statement", "text": "public:\n\n /*!\n \\brief construct with audio memory\n \\param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }", "parent": 33, "children": [48], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 64, "column": 9}}, {"id": 48, "type": "ERROR", "text": "explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )", "parent": 47, "children": [49, 50], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 63, "column": 28}}, {"id": 49, "type": "type_identifier", "text": "explicit", "parent": 48, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 12}}, {"id": 50, "type": "function_declarator", "text": "FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )", "parent": 48, "children": [51, 52, 61], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 63, "column": 28}}, {"id": 51, "type": "identifier", "text": "FreeMessageParser", "parent": 50, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 21}}, {"id": 52, "type": "parameter_list", "text": "( boost::shared_ptr< AudioMemory > memory )", "parent": 50, "children": [53], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 64}}, {"id": 53, "type": "parameter_declaration", "text": "boost::shared_ptr< AudioMemory > memory", "parent": 52, "children": [54, 55, 60], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 62}}, {"id": 54, "type": "type_identifier", "text": "boost", "parent": 53, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 28}}, {"id": 55, "type": "ERROR", "text": "::shared_ptr< AudioMemory >", "parent": 53, "children": [56, 57, 58, 59], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 55}}, {"id": 56, "type": "identifier", "text": "shared_ptr", "parent": 55, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 40}}, {"id": 57, "type": "<", "text": "<", "parent": 55, "children": [], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 41}}, {"id": 58, "type": "identifier", "text": "AudioMemory", "parent": 55, "children": [], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 53}}, {"id": 59, "type": ">", "text": ">", "parent": 55, "children": [], "start_point": {"row": 62, "column": 54}, "end_point": {"row": 62, "column": 55}}, {"id": 60, "type": "identifier", "text": "memory", "parent": 53, "children": [], "start_point": {"row": 62, "column": 56}, "end_point": {"row": 62, "column": 62}}, {"id": 61, "type": "call_expression", "text": "M_memory( memory )", "parent": 50, "children": [62, 63], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 28}}, {"id": 62, "type": "identifier", "text": "M_memory", "parent": 61, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 18}}, {"id": 63, "type": "argument_list", "text": "( memory )", "parent": 61, "children": [64], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 28}}, {"id": 64, "type": "identifier", "text": "memory", "parent": 63, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 26}}, {"id": 65, "type": "ERROR", "text": "char header() const", "parent": 33, "children": [66, 67], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 23}}, {"id": 66, "type": "primitive_type", "text": "char", "parent": 65, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 8}}, {"id": 67, "type": "function_declarator", "text": "header()", "parent": 65, "children": [68, 69], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 17}}, {"id": 68, "type": "identifier", "text": "header", "parent": 67, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 15}}, {"id": 69, "type": "parameter_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 17}}, {"id": 70, "type": "return_statement", "text": "return static_cast< char >( '0' + LEN );", "parent": 33, "children": [71], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 50}}, {"id": 71, "type": "binary_expression", "text": "static_cast< char >( '0' + LEN )", "parent": 70, "children": [72, 76, 77], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 49}}, {"id": 72, "type": "binary_expression", "text": "static_cast< char", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 34}}, {"id": 73, "type": "identifier", "text": "static_cast", "parent": 72, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 28}}, {"id": 74, "type": "<", "text": "<", "parent": 72, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 29}}, {"id": 75, "type": "identifier", "text": "char", "parent": 72, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 34}}, {"id": 76, "type": ">", "text": ">", "parent": 71, "children": [], "start_point": {"row": 72, "column": 35}, "end_point": {"row": 72, "column": 36}}, {"id": 77, "type": "parenthesized_expression", "text": "( '0' + LEN )", "parent": 71, "children": [78], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 49}}, {"id": 78, "type": "binary_expression", "text": "'0' + LEN", "parent": 77, "children": [79, 83, 84], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 47}}, {"id": 79, "type": "char_literal", "text": "'0'", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 41}}, {"id": 80, "type": "'", "text": "'", "parent": 79, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 39}}, {"id": 81, "type": "character", "text": "0", "parent": 79, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 40}}, {"id": 82, "type": "'", "text": "'", "parent": 79, "children": [], "start_point": {"row": 72, "column": 40}, "end_point": {"row": 72, "column": 41}}, {"id": 83, "type": "+", "text": "+", "parent": 78, "children": [], "start_point": {"row": 72, "column": 42}, "end_point": {"row": 72, "column": 43}}, {"id": 84, "type": "identifier", "text": "LEN", "parent": 78, "children": [], "start_point": {"row": 72, "column": 44}, "end_point": {"row": 72, "column": 47}}, {"id": 85, "type": "function_definition", "text": "int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }", "parent": 33, "children": [86, 87], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 104, "column": 7}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 85, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 7}}, {"id": 87, "type": "function_declarator", "text": "parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )", "parent": 85, "children": [88, 89], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 87, "column": 41}}, {"id": 88, "type": "identifier", "text": "parse", "parent": 87, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 13}}, {"id": 89, "type": "parameter_list", "text": "( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )", "parent": 87, "children": [90, 93, 95, 100], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 87, "column": 41}}, {"id": 90, "type": "parameter_declaration", "text": "const int unum", "parent": 89, "children": [91, 92], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 29}}, {"id": 91, "type": "primitive_type", "text": "int", "parent": 90, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 24}}, {"id": 92, "type": "identifier", "text": "unum", "parent": 90, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 29}}, {"id": 93, "type": "parameter_declaration", "text": "const double", "parent": 89, "children": [94], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 27}}, {"id": 94, "type": "primitive_type", "text": "double", "parent": 93, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 27}}, {"id": 95, "type": "parameter_declaration", "text": "const char * msg", "parent": 89, "children": [96, 97], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 31}}, {"id": 96, "type": "primitive_type", "text": "char", "parent": 95, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 25}}, {"id": 97, "type": "pointer_declarator", "text": "* msg", "parent": 95, "children": [98, 99], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 31}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 27}}, {"id": 99, "type": "identifier", "text": "msg", "parent": 97, "children": [], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 31}}, {"id": 100, "type": "parameter_declaration", "text": "const GameTime & current", "parent": 89, "children": [101, 102], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 39}}, {"id": 101, "type": "type_identifier", "text": "GameTime", "parent": 100, "children": [], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 29}}, {"id": 102, "type": "identifier", "text": "current", "parent": 100, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 39}}, {"id": 103, "type": "if_statement", "text": "if ( *msg != header() ) return 0;", "parent": 85, "children": [104, 113], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 43}}, {"id": 104, "type": "parenthesized_expression", "text": "( *msg != header() )", "parent": 103, "children": [105], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 33}}, {"id": 105, "type": "binary_expression", "text": "*msg != header()", "parent": 104, "children": [106, 109, 110], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 31}}, {"id": 106, "type": "pointer_expression", "text": "*msg", "parent": 105, "children": [107, 108], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 19}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 16}}, {"id": 108, "type": "identifier", "text": "msg", "parent": 106, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 19}}, {"id": 109, "type": "!=", "text": "!=", "parent": 105, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 22}}, {"id": 110, "type": "call_expression", "text": "header()", "parent": 105, "children": [111, 112], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 31}}, {"id": 111, "type": "identifier", "text": "header", "parent": 110, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 29}}, {"id": 112, "type": "argument_list", "text": "()", "parent": 110, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 31}}, {"id": 113, "type": "return_statement", "text": "return 0;", "parent": 103, "children": [114], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 43}}, {"id": 114, "type": "number_literal", "text": "0", "parent": 113, "children": [], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 42}}, {"id": 115, "type": "update_expression", "text": "++msg", "parent": 85, "children": [116, 117], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 15}}, {"id": 116, "type": "++", "text": "++", "parent": 115, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 12}}, {"id": 117, "type": "identifier", "text": "msg", "parent": 115, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 15}}, {"id": 118, "type": "if_statement", "text": "if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std::endl;\n return -1;\n }", "parent": 85, "children": [119], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 98, "column": 11}}, {"id": 119, "type": "parenthesized_expression", "text": "( std::strlen( msg ) < LEN )", "parent": 118, "children": [120, 122], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 41}}, {"id": 120, "type": "ERROR", "text": "std::", "parent": 119, "children": [121], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 20}}, {"id": 121, "type": "identifier", "text": "std", "parent": 120, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 18}}, {"id": 122, "type": "binary_expression", "text": "strlen( msg ) < LEN", "parent": 119, "children": [123, 127, 128], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 39}}, {"id": 123, "type": "call_expression", "text": "strlen( msg )", "parent": 122, "children": [124, 125], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 33}}, {"id": 124, "type": "identifier", "text": "strlen", "parent": 123, "children": [], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 26}}, {"id": 125, "type": "argument_list", "text": "( msg )", "parent": 123, "children": [126], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 33}}, {"id": 126, "type": "identifier", "text": "msg", "parent": 125, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 31}}, {"id": 127, "type": "<", "text": "<", "parent": 122, "children": [], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 35}}, {"id": 128, "type": "identifier", "text": "LEN", "parent": 122, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 39}}, {"id": 129, "type": "labeled_statement", "text": "std::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std::endl;", "parent": 118, "children": [130, 131], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 96, "column": 37}}, {"id": 130, "type": "statement_identifier", "text": "std", "parent": 129, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 17}}, {"id": 131, "type": "ERROR", "text": "::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std:", "parent": 129, "children": [132], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 96, "column": 31}}, {"id": 132, "type": "binary_expression", "text": "cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std", "parent": 131, "children": [133, 157, 158], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 96, "column": 30}}, {"id": 133, "type": "binary_expression", "text": "cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN", "parent": 132, "children": [134, 155, 156], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 95, "column": 59}}, {"id": 134, "type": "binary_expression", "text": "cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \"", "parent": 133, "children": [135, 153, 154], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 95, "column": 52}}, {"id": 135, "type": "binary_expression", "text": "cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg", "parent": 134, "children": [136, 151, 152], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 95, "column": 30}}, {"id": 136, "type": "binary_expression", "text": "cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"", "parent": 135, "children": [137, 149, 150], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 94, "column": 81}}, {"id": 137, "type": "binary_expression", "text": "cerr << __FILE__ << ':' << __LINE__", "parent": 136, "children": [138, 147, 148], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 54}}, {"id": 138, "type": "binary_expression", "text": "cerr << __FILE__ << ':'", "parent": 137, "children": [139, 143, 144], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 42}}, {"id": 139, "type": "binary_expression", "text": "cerr << __FILE__", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 35}}, {"id": 140, "type": "identifier", "text": "cerr", "parent": 139, "children": [], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 23}}, {"id": 141, "type": "<<", "text": "<<", "parent": 139, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 26}}, {"id": 142, "type": "identifier", "text": "__FILE__", "parent": 139, "children": [], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 35}}, {"id": 143, "type": "<<", "text": "<<", "parent": 138, "children": [], "start_point": {"row": 93, "column": 36}, "end_point": {"row": 93, "column": 38}}, {"id": 144, "type": "char_literal", "text": "':'", "parent": 138, "children": [145, 146], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 42}}, {"id": 145, "type": "'", "text": "'", "parent": 144, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 40}}, {"id": 146, "type": "'", "text": "'", "parent": 144, "children": [], "start_point": {"row": 93, "column": 41}, "end_point": {"row": 93, "column": 42}}, {"id": 147, "type": "<<", "text": "<<", "parent": 137, "children": [], "start_point": {"row": 93, "column": 43}, "end_point": {"row": 93, "column": 45}}, {"id": 148, "type": "identifier", "text": "__LINE__", "parent": 137, "children": [], "start_point": {"row": 93, "column": 46}, "end_point": {"row": 93, "column": 54}}, {"id": 149, "type": "<<", "text": "<<", "parent": 136, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 26}}, {"id": 150, "type": "string_literal", "text": "\" FreeMessageParser: Illegal message length. message=\"", "parent": 136, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 81}}, {"id": 151, "type": "<<", "text": "<<", "parent": 135, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 26}}, {"id": 152, "type": "identifier", "text": "msg", "parent": 135, "children": [], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 30}}, {"id": 153, "type": "<<", "text": "<<", "parent": 134, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 33}}, {"id": 154, "type": "string_literal", "text": "\" must be length \"", "parent": 134, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 52}}, {"id": 155, "type": "<<", "text": "<<", "parent": 133, "children": [], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 55}}, {"id": 156, "type": "identifier", "text": "LEN", "parent": 133, "children": [], "start_point": {"row": 95, "column": 56}, "end_point": {"row": 95, "column": 59}}, {"id": 157, "type": "<<", "text": "<<", "parent": 132, "children": [], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 26}}, {"id": 158, "type": "identifier", "text": "std", "parent": 132, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 30}}, {"id": 159, "type": "identifier", "text": "endl", "parent": 129, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 36}}, {"id": 160, "type": "return_statement", "text": "return -1;", "parent": 118, "children": [161], "start_point": {"row": 97, "column": 14}, "end_point": {"row": 97, "column": 24}}, {"id": 161, "type": "number_literal", "text": "-1", "parent": 160, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 23}}, {"id": 162, "type": "call_expression", "text": "M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current )", "parent": 85, "children": [163, 166], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 102, "column": 45}}, {"id": 163, "type": "field_expression", "text": "M_memory->setFreeMessage", "parent": 162, "children": [164, 165], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 34}}, {"id": 164, "type": "identifier", "text": "M_memory", "parent": 163, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 18}}, {"id": 165, "type": "field_identifier", "text": "setFreeMessage", "parent": 163, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 34}}, {"id": 166, "type": "argument_list", "text": "( unum,\n std::string( msg, 0, LEN ),\n current )", "parent": 162, "children": [167, 168, 170, 176], "start_point": {"row": 100, "column": 34}, "end_point": {"row": 102, "column": 45}}, {"id": 167, "type": "identifier", "text": "unum", "parent": 166, "children": [], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 40}}, {"id": 168, "type": "ERROR", "text": "std::", "parent": 166, "children": [169], "start_point": {"row": 101, "column": 36}, "end_point": {"row": 101, "column": 41}}, {"id": 169, "type": "identifier", "text": "std", "parent": 168, "children": [], "start_point": {"row": 101, "column": 36}, "end_point": {"row": 101, "column": 39}}, {"id": 170, "type": "call_expression", "text": "string( msg, 0, LEN )", "parent": 166, "children": [171, 172], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 62}}, {"id": 171, "type": "identifier", "text": "string", "parent": 170, "children": [], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 47}}, {"id": 172, "type": "argument_list", "text": "( msg, 0, LEN )", "parent": 170, "children": [173, 174, 175], "start_point": {"row": 101, "column": 47}, "end_point": {"row": 101, "column": 62}}, {"id": 173, "type": "identifier", "text": "msg", "parent": 172, "children": [], "start_point": {"row": 101, "column": 49}, "end_point": {"row": 101, "column": 52}}, {"id": 174, "type": "number_literal", "text": "0", "parent": 172, "children": [], "start_point": {"row": 101, "column": 54}, "end_point": {"row": 101, "column": 55}}, {"id": 175, "type": "identifier", "text": "LEN", "parent": 172, "children": [], "start_point": {"row": 101, "column": 57}, "end_point": {"row": 101, "column": 60}}, {"id": 176, "type": "identifier", "text": "current", "parent": 166, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 43}}, {"id": 177, "type": "return_statement", "text": "return 1 + LEN;", "parent": 85, "children": [178], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 25}}, {"id": 178, "type": "binary_expression", "text": "1 + LEN", "parent": 177, "children": [179, 180, 181], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 24}}, {"id": 179, "type": "number_literal", "text": "1", "parent": 178, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 180, "type": "+", "text": "+", "parent": 178, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 20}}, {"id": 181, "type": "identifier", "text": "LEN", "parent": 178, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 24}}, {"id": 182, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 50, 67, 85, 87], "variables": [53, 90, 93, 95, 100], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [25, 30, 40, 41, 61, 71, 72, 77, 78, 104, 105, 106, 110, 115, 119, 122, 123, 132, 133, 134, 135, 136, 137, 138, 139, 162, 163, 170, 178], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 22, 23, 26, 28, 31, 34, 36, 39, 42, 44, 46, 49, 51, 54, 56, 58, 60, 62, 64, 68, 73, 75, 84, 88, 92, 99, 101, 102, 103, 108, 111, 117, 118, 121, 124, 126, 128, 130, 140, 142, 148, 152, 156, 158, 159, 164, 165, 167, 169, 171, 173, 175, 176, 181, 182], "returns": [70, 113, 160, 177], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 79, 114, 144, 150, 154, 161, 174, 179], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "FreeMessageParser", "text_snippet": "namespace rcsc {\n\n/*-------------------------------------------------------------------*/\n/*!\n \\cla"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "header()"}, {"node_id": 85, "universal_type": "function", "name": "parse", "text_snippet": "int parse( const int unum,\n const double & /* dir */,\n const char * msg,"}, {"node_id": 87, "universal_type": "function", "name": "unum,", "text_snippet": "parse( const int unum,\n const double & /* dir */,\n const char * msg,\n "}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <rcsc/common/say_message_parser.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <rcsc/common/audio_memory.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <iostream>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <cstring>\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "// -*-c++-*-\n\n/*!\n \\file free_message_parser.h\n \\brief player's freeform say message parser Header File\n*/\n\n/*\n *Copyright:\n\n Copyright (C) <NAME>\n\n This code is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 3 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n\n *EndCopyright:\n */\n\n/////////////////////////////////////////////////////////////////////\n\n#ifndef RCSC_COMMON_FREE_MESSAGE_PARSER_H\n#define RCSC_COMMON_FREE_MESSAGE_PARSER_H\n\n#include <rcsc/common/say_message_parser.h>\n#include <rcsc/common/audio_memory.h>\n\n#include <string>\n#include <iostream>\n#include <cstring>\n\nnamespace rcsc {\n\n/*-------------------------------------------------------------------*/\n/*!\n \\class FreeMessageParser\n \\brief player's freeform say message parser\n*/\ntemplate < std::size_t LEN >\nclass FreeMessageParser\n : public SayMessageParser {\nprivate:\n //! pointer to the audio memory\n boost::shared_ptr< AudioMemory > M_memory;\n\npublic:\n\n /*!\n \\brief construct with audio memory\n \\param memory pointer to the memory\n */\n explicit\n FreeMessageParser( boost::shared_ptr< AudioMemory > memory )\n : M_memory( memory )\n { }\n\n /*!\n \\brief get the header character.\n \\return header character.\n */\n char header() const\n {\n return static_cast< char >( '0' + LEN );\n }\n\n /*!\n \\brief virtual method which analyzes audio messages.\n \\param unum sender's uniform number\n \\param msg raw audio message\n \\param current current game time\n \\retval bytes read if success\n \\retval 0 message ID is not match. other parser should be tried.\n \\retval -1 failed to parse\n */\n int parse( const int unum,\n const double & /* dir */,\n const char * msg,\n const GameTime & current )\n {\n if ( *msg != header() ) return 0;\n ++msg;\n if ( std::strlen( msg ) < LEN )\n {\n std::cerr << __FILE__ << ':' << __LINE__\n << \" FreeMessageParser: Illegal message length. message=\"\n << msg << \" must be length \" << LEN\n << std::endl;\n return -1;\n }\n\n M_memory->setFreeMessage( unum,\n std::string( msg, 0, LEN ),\n current );\n return 1 + LEN;\n }\n\n};\n\n}\n\n#endif\n"}
80,846
c
#define FOREACH 256 #define PATHNAME 257 #define STRING 258 #define INDENT 259 #define UNINDENT 260 #define NL 261 #define ERROR_TOKEN 262 #define WARNING_TOKEN 263 #define EXIST 264 #define OWNER 265 #define GROUP 266 #define CHMOD_PERMISSION 267 #define NUMBER 268 #define FILE_TOKEN 269 #define DIRECTORY 270 #define PIPE 271 #define CHARACTER_SPECIAL 272 #define BLOCK_SPECIAL 273 typedef int YYSTYPE; #ifdef YYTNAMES extern struct yytname { char *tn_name; int tn_val; } yytnames[]; #endif extern YYSTYPE yylval;
18.22
27
(translation_unit) "#define FOREACH 256\n#define PATHNAME 257\n#define STRING 258\n#define INDENT 259\n#define UNINDENT 260\n#define NL 261\n#define ERROR_TOKEN 262\n#define WARNING_TOKEN 263\n#define EXIST 264\n#define OWNER 265\n#define GROUP 266\n#define CHMOD_PERMISSION 267\n#define NUMBER 268\n#define FILE_TOKEN 269\n#define DIRECTORY 270\n#define PIPE 271\n#define CHARACTER_SPECIAL 272\n#define BLOCK_SPECIAL 273\ntypedef int YYSTYPE;\n#ifdef YYTNAMES\nextern struct yytname\n{\n char *tn_name;\n int tn_val;\n} yytnames[];\n#endif\nextern YYSTYPE yylval;\n" (preproc_def) "#define FOREACH 256\n" (#define) "#define" (identifier) "FOREACH" (preproc_arg) "256" (preproc_def) "#define PATHNAME 257\n" (#define) "#define" (identifier) "PATHNAME" (preproc_arg) "257" (preproc_def) "#define STRING 258\n" (#define) "#define" (identifier) "STRING" (preproc_arg) "258" (preproc_def) "#define INDENT 259\n" (#define) "#define" (identifier) "INDENT" (preproc_arg) "259" (preproc_def) "#define UNINDENT 260\n" (#define) "#define" (identifier) "UNINDENT" (preproc_arg) "260" (preproc_def) "#define NL 261\n" (#define) "#define" (identifier) "NL" (preproc_arg) "261" (preproc_def) "#define ERROR_TOKEN 262\n" (#define) "#define" (identifier) "ERROR_TOKEN" (preproc_arg) "262" (preproc_def) "#define WARNING_TOKEN 263\n" (#define) "#define" (identifier) "WARNING_TOKEN" (preproc_arg) "263" (preproc_def) "#define EXIST 264\n" (#define) "#define" (identifier) "EXIST" (preproc_arg) "264" (preproc_def) "#define OWNER 265\n" (#define) "#define" (identifier) "OWNER" (preproc_arg) "265" (preproc_def) "#define GROUP 266\n" (#define) "#define" (identifier) "GROUP" (preproc_arg) "266" (preproc_def) "#define CHMOD_PERMISSION 267\n" (#define) "#define" (identifier) "CHMOD_PERMISSION" (preproc_arg) "267" (preproc_def) "#define NUMBER 268\n" (#define) "#define" (identifier) "NUMBER" (preproc_arg) "268" (preproc_def) "#define FILE_TOKEN 269\n" (#define) "#define" (identifier) "FILE_TOKEN" (preproc_arg) "269" (preproc_def) "#define DIRECTORY 270\n" (#define) "#define" (identifier) "DIRECTORY" (preproc_arg) "270" (preproc_def) "#define PIPE 271\n" (#define) "#define" (identifier) "PIPE" (preproc_arg) "271" (preproc_def) "#define CHARACTER_SPECIAL 272\n" (#define) "#define" (identifier) "CHARACTER_SPECIAL" (preproc_arg) "272" (preproc_def) "#define BLOCK_SPECIAL 273\n" (#define) "#define" (identifier) "BLOCK_SPECIAL" (preproc_arg) "273" (type_definition) "typedef int YYSTYPE;" (typedef) "typedef" (primitive_type) "int" (type_identifier) "YYSTYPE" (;) ";" (preproc_ifdef) "#ifdef YYTNAMES\nextern struct yytname\n{\n char *tn_name;\n int tn_val;\n} yytnames[];\n#endif" (#ifdef) "#ifdef" (identifier) "YYTNAMES" (declaration) "extern struct yytname\n{\n char *tn_name;\n int tn_val;\n} yytnames[];" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct yytname\n{\n char *tn_name;\n int tn_val;\n}" (struct) "struct" (type_identifier) "yytname" (field_declaration_list) "{\n char *tn_name;\n int tn_val;\n}" ({) "{" (field_declaration) "char *tn_name;" (primitive_type) "char" (pointer_declarator) "*tn_name" (*) "*" (field_identifier) "tn_name" (;) ";" (field_declaration) "int tn_val;" (primitive_type) "int" (field_identifier) "tn_val" (;) ";" (}) "}" (array_declarator) "yytnames[]" (identifier) "yytnames" ([) "[" (]) "]" (;) ";" (#endif) "#endif" (declaration) "extern YYSTYPE yylval;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "YYSTYPE" (identifier) "yylval" (;) ";"
112
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 18.22, "nodes": 101, "errors": 0, "source_hash": "89da9fb97a520ab858d6e25284d0b7ec13683b260b426292a70f01ee159dee28", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define FOREACH 256\n", "parent": null, "children": [1, 2, 3], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "FOREACH", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_arg", "text": "256", "parent": 0, "children": [], "start_point": {"row": 0, "column": 16}, "end_point": {"row": 0, "column": 19}}, {"id": 4, "type": "preproc_def", "text": "#define PATHNAME 257\n", "parent": null, "children": [5, 6, 7], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 5, "type": "#define", "text": "#define", "parent": 4, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 6, "type": "identifier", "text": "PATHNAME", "parent": 4, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 16}}, {"id": 7, "type": "preproc_arg", "text": "257", "parent": 4, "children": [], "start_point": {"row": 1, "column": 17}, "end_point": {"row": 1, "column": 20}}, {"id": 8, "type": "preproc_def", "text": "#define STRING 258\n", "parent": null, "children": [9, 10, 11], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 9, "type": "#define", "text": "#define", "parent": 8, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 10, "type": "identifier", "text": "STRING", "parent": 8, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 11, "type": "preproc_arg", "text": "258", "parent": 8, "children": [], "start_point": {"row": 2, "column": 15}, "end_point": {"row": 2, "column": 18}}, {"id": 12, "type": "preproc_def", "text": "#define INDENT 259\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 14, "type": "identifier", "text": "INDENT", "parent": 12, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 15, "type": "preproc_arg", "text": "259", "parent": 12, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 18}}, {"id": 16, "type": "preproc_def", "text": "#define UNINDENT 260\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 18, "type": "identifier", "text": "UNINDENT", "parent": 16, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 16}}, {"id": 19, "type": "preproc_arg", "text": "260", "parent": 16, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 20}}, {"id": 20, "type": "preproc_def", "text": "#define NL 261\n", "parent": null, "children": [21, 22, 23], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 22, "type": "identifier", "text": "NL", "parent": 20, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 10}}, {"id": 23, "type": "preproc_arg", "text": "261", "parent": 20, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 14}}, {"id": 24, "type": "preproc_def", "text": "#define ERROR_TOKEN 262\n", "parent": null, "children": [25, 26, 27], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 26, "type": "identifier", "text": "ERROR_TOKEN", "parent": 24, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 19}}, {"id": 27, "type": "preproc_arg", "text": "262", "parent": 24, "children": [], "start_point": {"row": 6, "column": 20}, "end_point": {"row": 6, "column": 23}}, {"id": 28, "type": "preproc_def", "text": "#define WARNING_TOKEN 263\n", "parent": null, "children": [29, 30, 31], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 30, "type": "identifier", "text": "WARNING_TOKEN", "parent": 28, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 21}}, {"id": 31, "type": "preproc_arg", "text": "263", "parent": 28, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 25}}, {"id": 32, "type": "preproc_def", "text": "#define EXIST 264\n", "parent": null, "children": [33, 34, 35], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 34, "type": "identifier", "text": "EXIST", "parent": 32, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 35, "type": "preproc_arg", "text": "264", "parent": 32, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 17}}, {"id": 36, "type": "preproc_def", "text": "#define OWNER 265\n", "parent": null, "children": [37, 38, 39], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 38, "type": "identifier", "text": "OWNER", "parent": 36, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 13}}, {"id": 39, "type": "preproc_arg", "text": "265", "parent": 36, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 17}}, {"id": 40, "type": "preproc_def", "text": "#define GROUP 266\n", "parent": null, "children": [41, 42, 43], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 42, "type": "identifier", "text": "GROUP", "parent": 40, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 13}}, {"id": 43, "type": "preproc_arg", "text": "266", "parent": 40, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 17}}, {"id": 44, "type": "preproc_def", "text": "#define CHMOD_PERMISSION 267\n", "parent": null, "children": [45, 46, 47], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 46, "type": "identifier", "text": "CHMOD_PERMISSION", "parent": 44, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 24}}, {"id": 47, "type": "preproc_arg", "text": "267", "parent": 44, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 28}}, {"id": 48, "type": "preproc_def", "text": "#define NUMBER 268\n", "parent": null, "children": [49, 50, 51], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 50, "type": "identifier", "text": "NUMBER", "parent": 48, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 14}}, {"id": 51, "type": "preproc_arg", "text": "268", "parent": 48, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 18}}, {"id": 52, "type": "preproc_def", "text": "#define FILE_TOKEN 269\n", "parent": null, "children": [53, 54, 55], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 54, "type": "identifier", "text": "FILE_TOKEN", "parent": 52, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 18}}, {"id": 55, "type": "preproc_arg", "text": "269", "parent": 52, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 22}}, {"id": 56, "type": "preproc_def", "text": "#define DIRECTORY 270\n", "parent": null, "children": [57, 58, 59], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 58, "type": "identifier", "text": "DIRECTORY", "parent": 56, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 17}}, {"id": 59, "type": "preproc_arg", "text": "270", "parent": 56, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 21}}, {"id": 60, "type": "preproc_def", "text": "#define PIPE 271\n", "parent": null, "children": [61, 62, 63], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 62, "type": "identifier", "text": "PIPE", "parent": 60, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 12}}, {"id": 63, "type": "preproc_arg", "text": "271", "parent": 60, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 16}}, {"id": 64, "type": "preproc_def", "text": "#define CHARACTER_SPECIAL 272\n", "parent": null, "children": [65, 66, 67], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 66, "type": "identifier", "text": "CHARACTER_SPECIAL", "parent": 64, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 25}}, {"id": 67, "type": "preproc_arg", "text": "272", "parent": 64, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 29}}, {"id": 68, "type": "preproc_def", "text": "#define BLOCK_SPECIAL 273\n", "parent": null, "children": [69, 70, 71], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 69, "type": "#define", "text": "#define", "parent": 68, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 70, "type": "identifier", "text": "BLOCK_SPECIAL", "parent": 68, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 21}}, {"id": 71, "type": "preproc_arg", "text": "273", "parent": 68, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 25}}, {"id": 72, "type": "type_definition", "text": "typedef\tint\tYYSTYPE;", "parent": null, "children": [73, 74, 75], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 20}}, {"id": 73, "type": "typedef", "text": "typedef", "parent": 72, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 74, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 11}}, {"id": 75, "type": "type_identifier", "text": "YYSTYPE", "parent": 72, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 19}}, {"id": 76, "type": "preproc_ifdef", "text": "#ifdef YYTNAMES\nextern struct yytname\n{\n\tchar\t*tn_name;\n\tint\ttn_val;\n} yytnames[];\n#endif", "parent": null, "children": [77, 78, 79, 95], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 77, "type": "#ifdef", "text": "#ifdef", "parent": 76, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 78, "type": "identifier", "text": "YYTNAMES", "parent": 76, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 15}}, {"id": 79, "type": "declaration", "text": "extern struct yytname\n{\n\tchar\t*tn_name;\n\tint\ttn_val;\n} yytnames[];", "parent": 76, "children": [80, 82, 93], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 24, "column": 13}}, {"id": 80, "type": "storage_class_specifier", "text": "extern", "parent": 79, "children": [81], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 81, "type": "extern", "text": "extern", "parent": 80, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 82, "type": "struct_specifier", "text": "struct yytname\n{\n\tchar\t*tn_name;\n\tint\ttn_val;\n}", "parent": 79, "children": [83, 84], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 24, "column": 1}}, {"id": 83, "type": "struct", "text": "struct", "parent": 82, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 13}}, {"id": 84, "type": "type_identifier", "text": "yytname", "parent": 82, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 21}}, {"id": 85, "type": "field_declaration", "text": "char\t*tn_name;", "parent": 82, "children": [86, 87], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 15}}, {"id": 86, "type": "primitive_type", "text": "char", "parent": 85, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 87, "type": "pointer_declarator", "text": "*tn_name", "parent": 85, "children": [88, 89], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 14}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 89, "type": "field_identifier", "text": "tn_name", "parent": 87, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 14}}, {"id": 90, "type": "field_declaration", "text": "int\ttn_val;", "parent": 82, "children": [91, 92], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 12}}, {"id": 91, "type": "primitive_type", "text": "int", "parent": 90, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 4}}, {"id": 92, "type": "field_identifier", "text": "tn_val", "parent": 90, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 11}}, {"id": 93, "type": "array_declarator", "text": "yytnames[]", "parent": 79, "children": [94], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 12}}, {"id": 94, "type": "identifier", "text": "yytnames", "parent": 93, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 10}}, {"id": 95, "type": "#endif", "text": "#endif", "parent": 76, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 96, "type": "declaration", "text": "extern\tYYSTYPE\tyylval;", "parent": null, "children": [97, 99, 100], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 22}}, {"id": 97, "type": "storage_class_specifier", "text": "extern", "parent": 96, "children": [98], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 98, "type": "extern", "text": "extern", "parent": 97, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 99, "type": "type_identifier", "text": "YYSTYPE", "parent": 96, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 14}}, {"id": 100, "type": "identifier", "text": "yylval", "parent": 96, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [72, 79, 85, 90, 96], "classes": [80, 82, 83, 97], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 75, 76, 77, 78, 84, 89, 92, 94, 95, 99, 100], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 80, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 82, "universal_type": "class", "name": "yytname", "text_snippet": "struct yytname\n{\n\tchar\t*tn_name;\n\tint\ttn_val;\n}"}, {"node_id": 83, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 97, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "#define FOREACH 256\n#define PATHNAME 257\n#define STRING 258\n#define INDENT 259\n#define UNINDENT 260\n#define NL 261\n#define ERROR_TOKEN 262\n#define WARNING_TOKEN 263\n#define EXIST 264\n#define OWNER 265\n#define GROUP 266\n#define CHMOD_PERMISSION 267\n#define NUMBER 268\n#define FILE_TOKEN 269\n#define DIRECTORY 270\n#define PIPE 271\n#define CHARACTER_SPECIAL 272\n#define BLOCK_SPECIAL 273\ntypedef\tint\tYYSTYPE;\n#ifdef YYTNAMES\nextern struct yytname\n{\n\tchar\t*tn_name;\n\tint\ttn_val;\n} yytnames[];\n#endif\nextern\tYYSTYPE\tyylval;\n"}
80,847
c
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-RRC-Definitions" * found in "NR-RRC-Definitions.asn" * `asn1c -fcompound-names -no-gen-example -pdu=all` */ #ifndef _PDCCH_Config_H_ #define _PDCCH_Config_H_ #include "asn_application.h" /* Including external dependencies */ #include "NativeEnumerated.h" #include "asn_SEQUENCE_OF.h" #include "constr_SEQUENCE_OF.h" #include "ControlResourceSetId.h" #include "SearchSpaceId.h" #include "NULL.h" #include "DownlinkPreemption.h" #include "constr_CHOICE.h" #include "PUSCH-TPC-CommandConfig.h" #include "PUCCH-TPC-CommandConfig.h" #include "SRS-TPC-CommandConfig.h" #include "ControlResourceSetId-r16.h" #include "UplinkCancellation-r16.h" #include "constr_SEQUENCE.h" #ifdef __cplusplus extern "C" { #endif /* Dependencies */ typedef enum PDCCH_Config__downlinkPreemption_PR { PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */ PDCCH_Config__downlinkPreemption_PR_release, PDCCH_Config__downlinkPreemption_PR_setup } PDCCH_Config__downlinkPreemption_PR; typedef enum PDCCH_Config__tpc_PUSCH_PR { PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */ PDCCH_Config__tpc_PUSCH_PR_release, PDCCH_Config__tpc_PUSCH_PR_setup } PDCCH_Config__tpc_PUSCH_PR; typedef enum PDCCH_Config__tpc_PUCCH_PR { PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */ PDCCH_Config__tpc_PUCCH_PR_release, PDCCH_Config__tpc_PUCCH_PR_setup } PDCCH_Config__tpc_PUCCH_PR; typedef enum PDCCH_Config__tpc_SRS_PR { PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */ PDCCH_Config__tpc_SRS_PR_release, PDCCH_Config__tpc_SRS_PR_setup } PDCCH_Config__tpc_SRS_PR; typedef enum PDCCH_Config__uplinkCancellation_r16_PR { PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */ PDCCH_Config__uplinkCancellation_r16_PR_release, PDCCH_Config__uplinkCancellation_r16_PR_setup } PDCCH_Config__uplinkCancellation_r16_PR; typedef enum PDCCH_Config__monitoringCapabilityConfig_r16 { PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0, PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1 } e_PDCCH_Config__monitoringCapabilityConfig_r16; /* Forward declarations */ struct SearchSpaceSwitchConfig_r16; struct ControlResourceSet; struct SearchSpace; struct SearchSpaceExt_r16; /* PDCCH-Config */ typedef struct PDCCH_Config { struct PDCCH_Config__controlResourceSetToAddModList { A_SEQUENCE_OF(struct ControlResourceSet) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *controlResourceSetToAddModList; struct PDCCH_Config__controlResourceSetToReleaseList { A_SEQUENCE_OF(ControlResourceSetId_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *controlResourceSetToReleaseList; struct PDCCH_Config__searchSpacesToAddModList { A_SEQUENCE_OF(struct SearchSpace) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *searchSpacesToAddModList; struct PDCCH_Config__searchSpacesToReleaseList { A_SEQUENCE_OF(SearchSpaceId_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *searchSpacesToReleaseList; struct PDCCH_Config__downlinkPreemption { PDCCH_Config__downlinkPreemption_PR present; union PDCCH_Config__downlinkPreemption_u { NULL_t release; DownlinkPreemption_t setup; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *downlinkPreemption; struct PDCCH_Config__tpc_PUSCH { PDCCH_Config__tpc_PUSCH_PR present; union PDCCH_Config__tpc_PUSCH_u { NULL_t release; PUSCH_TPC_CommandConfig_t setup; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *tpc_PUSCH; struct PDCCH_Config__tpc_PUCCH { PDCCH_Config__tpc_PUCCH_PR present; union PDCCH_Config__tpc_PUCCH_u { NULL_t release; PUCCH_TPC_CommandConfig_t setup; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *tpc_PUCCH; struct PDCCH_Config__tpc_SRS { PDCCH_Config__tpc_SRS_PR present; union PDCCH_Config__tpc_SRS_u { NULL_t release; SRS_TPC_CommandConfig_t setup; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *tpc_SRS; /* * This type is extensible, * possible extensions are below. */ struct PDCCH_Config__controlResourceSetToAddModList2_r16 { A_SEQUENCE_OF(struct ControlResourceSet) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *controlResourceSetToAddModList2_r16; struct PDCCH_Config__controlResourceSetToReleaseList_r16 { A_SEQUENCE_OF(ControlResourceSetId_r16_t) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *controlResourceSetToReleaseList_r16; struct PDCCH_Config__searchSpacesToAddModListExt_r16 { A_SEQUENCE_OF(struct SearchSpaceExt_r16) list; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *searchSpacesToAddModListExt_r16; struct PDCCH_Config__uplinkCancellation_r16 { PDCCH_Config__uplinkCancellation_r16_PR present; union PDCCH_Config__uplinkCancellation_r16_u { NULL_t release; UplinkCancellation_r16_t setup; } choice; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } *uplinkCancellation_r16; long *monitoringCapabilityConfig_r16 /* OPTIONAL */; struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; } PDCCH_Config_t; /* Implementation */ /* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32; // (Use -fall-defs-global to expose) */ extern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config; extern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1; extern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14]; #ifdef __cplusplus } #endif /* Referred external types */ #include "SearchSpaceSwitchConfig-r16.h" #include "ControlResourceSet.h" #include "SearchSpace.h" #include "SearchSpaceExt-r16.h" #endif /* _PDCCH_Config_H_ */ #include "asn_internal.h"
33.44
182
(translation_unit) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NR-RRC-Definitions"\n * found in "NR-RRC-Definitions.asn"\n * `asn1c -fcompound-names -no-gen-example -pdu=all`\n */\n\n#ifndef _PDCCH_Config_H_\n#define _PDCCH_Config_H_\n\n\n#include "asn_application.h"\n\n/* Including external dependencies */\n#include "NativeEnumerated.h"\n#include "asn_SEQUENCE_OF.h"\n#include "constr_SEQUENCE_OF.h"\n#include "ControlResourceSetId.h"\n#include "SearchSpaceId.h"\n#include "NULL.h"\n#include "DownlinkPreemption.h"\n#include "constr_CHOICE.h"\n#include "PUSCH-TPC-CommandConfig.h"\n#include "PUCCH-TPC-CommandConfig.h"\n#include "SRS-TPC-CommandConfig.h"\n#include "ControlResourceSetId-r16.h"\n#include "UplinkCancellation-r16.h"\n#include "constr_SEQUENCE.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32; // (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}\n#endif\n\n/* Referred external types */\n#include "SearchSpaceSwitchConfig-r16.h"\n#include "ControlResourceSet.h"\n#include "SearchSpace.h"\n#include "SearchSpaceExt-r16.h"\n\n#endif /* _PDCCH_Config_H_ */\n#include "asn_internal.h"\n" (comment) "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module "NR-RRC-Definitions"\n * found in "NR-RRC-Definitions.asn"\n * `asn1c -fcompound-names -no-gen-example -pdu=all`\n */" (preproc_ifdef) "#ifndef _PDCCH_Config_H_\n#define _PDCCH_Config_H_\n\n\n#include "asn_application.h"\n\n/* Including external dependencies */\n#include "NativeEnumerated.h"\n#include "asn_SEQUENCE_OF.h"\n#include "constr_SEQUENCE_OF.h"\n#include "ControlResourceSetId.h"\n#include "SearchSpaceId.h"\n#include "NULL.h"\n#include "DownlinkPreemption.h"\n#include "constr_CHOICE.h"\n#include "PUSCH-TPC-CommandConfig.h"\n#include "PUCCH-TPC-CommandConfig.h"\n#include "SRS-TPC-CommandConfig.h"\n#include "ControlResourceSetId-r16.h"\n#include "UplinkCancellation-r16.h"\n#include "constr_SEQUENCE.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32; // (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}\n#endif\n\n/* Referred external types */\n#include "SearchSpaceSwitchConfig-r16.h"\n#include "ControlResourceSet.h"\n#include "SearchSpace.h"\n#include "SearchSpaceExt-r16.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "_PDCCH_Config_H_" (preproc_def) "#define _PDCCH_Config_H_\n" (#define) "#define" (identifier) "_PDCCH_Config_H_" (preproc_include) "#include "asn_application.h"\n" (#include) "#include" (string_literal) ""asn_application.h"" (") """ (string_content) "asn_application.h" (") """ (comment) "/* Including external dependencies */" (preproc_include) "#include "NativeEnumerated.h"\n" (#include) "#include" (string_literal) ""NativeEnumerated.h"" (") """ (string_content) "NativeEnumerated.h" (") """ (preproc_include) "#include "asn_SEQUENCE_OF.h"\n" (#include) "#include" (string_literal) ""asn_SEQUENCE_OF.h"" (") """ (string_content) "asn_SEQUENCE_OF.h" (") """ (preproc_include) "#include "constr_SEQUENCE_OF.h"\n" (#include) "#include" (string_literal) ""constr_SEQUENCE_OF.h"" (") """ (string_content) "constr_SEQUENCE_OF.h" (") """ (preproc_include) "#include "ControlResourceSetId.h"\n" (#include) "#include" (string_literal) ""ControlResourceSetId.h"" (") """ (string_content) "ControlResourceSetId.h" (") """ (preproc_include) "#include "SearchSpaceId.h"\n" (#include) "#include" (string_literal) ""SearchSpaceId.h"" (") """ (string_content) "SearchSpaceId.h" (") """ (preproc_include) "#include "NULL.h"\n" (#include) "#include" (string_literal) ""NULL.h"" (") """ (string_content) "NULL.h" (") """ (preproc_include) "#include "DownlinkPreemption.h"\n" (#include) "#include" (string_literal) ""DownlinkPreemption.h"" (") """ (string_content) "DownlinkPreemption.h" (") """ (preproc_include) "#include "constr_CHOICE.h"\n" (#include) "#include" (string_literal) ""constr_CHOICE.h"" (") """ (string_content) "constr_CHOICE.h" (") """ (preproc_include) "#include "PUSCH-TPC-CommandConfig.h"\n" (#include) "#include" (string_literal) ""PUSCH-TPC-CommandConfig.h"" (") """ (string_content) "PUSCH-TPC-CommandConfig.h" (") """ (preproc_include) "#include "PUCCH-TPC-CommandConfig.h"\n" (#include) "#include" (string_literal) ""PUCCH-TPC-CommandConfig.h"" (") """ (string_content) "PUCCH-TPC-CommandConfig.h" (") """ (preproc_include) "#include "SRS-TPC-CommandConfig.h"\n" (#include) "#include" (string_literal) ""SRS-TPC-CommandConfig.h"" (") """ (string_content) "SRS-TPC-CommandConfig.h" (") """ (preproc_include) "#include "ControlResourceSetId-r16.h"\n" (#include) "#include" (string_literal) ""ControlResourceSetId-r16.h"" (") """ (string_content) "ControlResourceSetId-r16.h" (") """ (preproc_include) "#include "UplinkCancellation-r16.h"\n" (#include) "#include" (string_literal) ""UplinkCancellation-r16.h"" (") """ (string_content) "UplinkCancellation-r16.h" (") """ (preproc_include) "#include "constr_SEQUENCE.h"\n" (#include) "#include" (string_literal) ""constr_SEQUENCE.h"" (") """ (string_content) "constr_SEQUENCE.h" (") """ (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32; // (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32; // (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32; // (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (comment) "/* Dependencies */" (type_definition) "typedef enum PDCCH_Config__downlinkPreemption_PR {\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;" (typedef) "typedef" (enum_specifier) "enum PDCCH_Config__downlinkPreemption_PR {\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n}" (enum) "enum" (type_identifier) "PDCCH_Config__downlinkPreemption_PR" (enumerator_list) "{\n PDCCH_Config__downlinkPreemption_PR_NOTHING, /* No components present */\n PDCCH_Config__downlinkPreemption_PR_release,\n PDCCH_Config__downlinkPreemption_PR_setup\n}" ({) "{" (enumerator) "PDCCH_Config__downlinkPreemption_PR_NOTHING" (identifier) "PDCCH_Config__downlinkPreemption_PR_NOTHING" (,) "," (comment) "/* No components present */" (enumerator) "PDCCH_Config__downlinkPreemption_PR_release" (identifier) "PDCCH_Config__downlinkPreemption_PR_release" (,) "," (enumerator) "PDCCH_Config__downlinkPreemption_PR_setup" (identifier) "PDCCH_Config__downlinkPreemption_PR_setup" (}) "}" (type_identifier) "PDCCH_Config__downlinkPreemption_PR" (;) ";" (type_definition) "typedef enum PDCCH_Config__tpc_PUSCH_PR {\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;" (typedef) "typedef" (enum_specifier) "enum PDCCH_Config__tpc_PUSCH_PR {\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n}" (enum) "enum" (type_identifier) "PDCCH_Config__tpc_PUSCH_PR" (enumerator_list) "{\n PDCCH_Config__tpc_PUSCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUSCH_PR_release,\n PDCCH_Config__tpc_PUSCH_PR_setup\n}" ({) "{" (enumerator) "PDCCH_Config__tpc_PUSCH_PR_NOTHING" (identifier) "PDCCH_Config__tpc_PUSCH_PR_NOTHING" (,) "," (comment) "/* No components present */" (enumerator) "PDCCH_Config__tpc_PUSCH_PR_release" (identifier) "PDCCH_Config__tpc_PUSCH_PR_release" (,) "," (enumerator) "PDCCH_Config__tpc_PUSCH_PR_setup" (identifier) "PDCCH_Config__tpc_PUSCH_PR_setup" (}) "}" (type_identifier) "PDCCH_Config__tpc_PUSCH_PR" (;) ";" (type_definition) "typedef enum PDCCH_Config__tpc_PUCCH_PR {\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;" (typedef) "typedef" (enum_specifier) "enum PDCCH_Config__tpc_PUCCH_PR {\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n}" (enum) "enum" (type_identifier) "PDCCH_Config__tpc_PUCCH_PR" (enumerator_list) "{\n PDCCH_Config__tpc_PUCCH_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_PUCCH_PR_release,\n PDCCH_Config__tpc_PUCCH_PR_setup\n}" ({) "{" (enumerator) "PDCCH_Config__tpc_PUCCH_PR_NOTHING" (identifier) "PDCCH_Config__tpc_PUCCH_PR_NOTHING" (,) "," (comment) "/* No components present */" (enumerator) "PDCCH_Config__tpc_PUCCH_PR_release" (identifier) "PDCCH_Config__tpc_PUCCH_PR_release" (,) "," (enumerator) "PDCCH_Config__tpc_PUCCH_PR_setup" (identifier) "PDCCH_Config__tpc_PUCCH_PR_setup" (}) "}" (type_identifier) "PDCCH_Config__tpc_PUCCH_PR" (;) ";" (type_definition) "typedef enum PDCCH_Config__tpc_SRS_PR {\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;" (typedef) "typedef" (enum_specifier) "enum PDCCH_Config__tpc_SRS_PR {\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n}" (enum) "enum" (type_identifier) "PDCCH_Config__tpc_SRS_PR" (enumerator_list) "{\n PDCCH_Config__tpc_SRS_PR_NOTHING, /* No components present */\n PDCCH_Config__tpc_SRS_PR_release,\n PDCCH_Config__tpc_SRS_PR_setup\n}" ({) "{" (enumerator) "PDCCH_Config__tpc_SRS_PR_NOTHING" (identifier) "PDCCH_Config__tpc_SRS_PR_NOTHING" (,) "," (comment) "/* No components present */" (enumerator) "PDCCH_Config__tpc_SRS_PR_release" (identifier) "PDCCH_Config__tpc_SRS_PR_release" (,) "," (enumerator) "PDCCH_Config__tpc_SRS_PR_setup" (identifier) "PDCCH_Config__tpc_SRS_PR_setup" (}) "}" (type_identifier) "PDCCH_Config__tpc_SRS_PR" (;) ";" (type_definition) "typedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;" (typedef) "typedef" (enum_specifier) "enum PDCCH_Config__uplinkCancellation_r16_PR {\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n}" (enum) "enum" (type_identifier) "PDCCH_Config__uplinkCancellation_r16_PR" (enumerator_list) "{\n PDCCH_Config__uplinkCancellation_r16_PR_NOTHING, /* No components present */\n PDCCH_Config__uplinkCancellation_r16_PR_release,\n PDCCH_Config__uplinkCancellation_r16_PR_setup\n}" ({) "{" (enumerator) "PDCCH_Config__uplinkCancellation_r16_PR_NOTHING" (identifier) "PDCCH_Config__uplinkCancellation_r16_PR_NOTHING" (,) "," (comment) "/* No components present */" (enumerator) "PDCCH_Config__uplinkCancellation_r16_PR_release" (identifier) "PDCCH_Config__uplinkCancellation_r16_PR_release" (,) "," (enumerator) "PDCCH_Config__uplinkCancellation_r16_PR_setup" (identifier) "PDCCH_Config__uplinkCancellation_r16_PR_setup" (}) "}" (type_identifier) "PDCCH_Config__uplinkCancellation_r16_PR" (;) ";" (type_definition) "typedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;" (typedef) "typedef" (enum_specifier) "enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n}" (enum) "enum" (type_identifier) "PDCCH_Config__monitoringCapabilityConfig_r16" (enumerator_list) "{\n PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0,\n PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1\n}" ({) "{" (enumerator) "PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability = 0" (identifier) "PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability" (=) "=" (number_literal) "0" (,) "," (enumerator) "PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability = 1" (identifier) "PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability" (=) "=" (number_literal) "1" (}) "}" (type_identifier) "e_PDCCH_Config__monitoringCapabilityConfig_r16" (;) ";" (comment) "/* Forward declarations */" (struct_specifier) "struct SearchSpaceSwitchConfig_r16" (struct) "struct" (type_identifier) "SearchSpaceSwitchConfig_r16" (;) ";" (struct_specifier) "struct ControlResourceSet" (struct) "struct" (type_identifier) "ControlResourceSet" (;) ";" (struct_specifier) "struct SearchSpace" (struct) "struct" (type_identifier) "SearchSpace" (;) ";" (struct_specifier) "struct SearchSpaceExt_r16" (struct) "struct" (type_identifier) "SearchSpaceExt_r16" (;) ";" (comment) "/* PDCCH-Config */" (type_definition) "typedef struct PDCCH_Config {\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;" (typedef) "typedef" (struct_specifier) "struct PDCCH_Config {\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n}" (struct) "struct" (type_identifier) "PDCCH_Config" (field_declaration_list) "{\n struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;\n struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;\n struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;\n struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;\n struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;\n struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;\n struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;\n struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;\n /*\n * This type is extensible,\n * possible extensions are below.\n */\n struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;\n struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;\n struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;\n struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;\n long *monitoringCapabilityConfig_r16 /* OPTIONAL */;\n struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n}" ({) "{" (field_declaration) "struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList;" (struct_specifier) "struct PDCCH_Config__controlResourceSetToAddModList {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__controlResourceSetToAddModList" (field_declaration_list) "{\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "A_SEQUENCE_OF(struct ControlResourceSet) list;" (macro_type_specifier) "A_SEQUENCE_OF(struct ControlResourceSet)" (identifier) "A_SEQUENCE_OF" (() "(" (type_descriptor) "struct ControlResourceSet" (struct_specifier) "struct ControlResourceSet" (struct) "struct" (type_identifier) "ControlResourceSet" ()) ")" (field_identifier) "list" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*controlResourceSetToAddModList" (*) "*" (field_identifier) "controlResourceSetToAddModList" (;) ";" (field_declaration) "struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList;" (struct_specifier) "struct PDCCH_Config__controlResourceSetToReleaseList {\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__controlResourceSetToReleaseList" (field_declaration_list) "{\n A_SEQUENCE_OF(ControlResourceSetId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "A_SEQUENCE_OF(ControlResourceSetId_t) list;" (macro_type_specifier) "A_SEQUENCE_OF(ControlResourceSetId_t)" (identifier) "A_SEQUENCE_OF" (() "(" (type_descriptor) "ControlResourceSetId_t" (type_identifier) "ControlResourceSetId_t" ()) ")" (field_identifier) "list" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*controlResourceSetToReleaseList" (*) "*" (field_identifier) "controlResourceSetToReleaseList" (;) ";" (field_declaration) "struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModList;" (struct_specifier) "struct PDCCH_Config__searchSpacesToAddModList {\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__searchSpacesToAddModList" (field_declaration_list) "{\n A_SEQUENCE_OF(struct SearchSpace) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "A_SEQUENCE_OF(struct SearchSpace) list;" (macro_type_specifier) "A_SEQUENCE_OF(struct SearchSpace)" (identifier) "A_SEQUENCE_OF" (() "(" (type_descriptor) "struct SearchSpace" (struct_specifier) "struct SearchSpace" (struct) "struct" (type_identifier) "SearchSpace" ()) ")" (field_identifier) "list" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*searchSpacesToAddModList" (*) "*" (field_identifier) "searchSpacesToAddModList" (;) ";" (field_declaration) "struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToReleaseList;" (struct_specifier) "struct PDCCH_Config__searchSpacesToReleaseList {\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__searchSpacesToReleaseList" (field_declaration_list) "{\n A_SEQUENCE_OF(SearchSpaceId_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "A_SEQUENCE_OF(SearchSpaceId_t) list;" (macro_type_specifier) "A_SEQUENCE_OF(SearchSpaceId_t)" (identifier) "A_SEQUENCE_OF" (() "(" (type_descriptor) "SearchSpaceId_t" (type_identifier) "SearchSpaceId_t" ()) ")" (field_identifier) "list" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*searchSpacesToReleaseList" (*) "*" (field_identifier) "searchSpacesToReleaseList" (;) ";" (field_declaration) "struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *downlinkPreemption;" (struct_specifier) "struct PDCCH_Config__downlinkPreemption {\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__downlinkPreemption" (field_declaration_list) "{\n PDCCH_Config__downlinkPreemption_PR present;\n union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "PDCCH_Config__downlinkPreemption_PR present;" (type_identifier) "PDCCH_Config__downlinkPreemption_PR" (field_identifier) "present" (;) ";" (field_declaration) "union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n } choice;" (union_specifier) "union PDCCH_Config__downlinkPreemption_u {\n NULL_t release;\n DownlinkPreemption_t setup;\n }" (union) "union" (type_identifier) "PDCCH_Config__downlinkPreemption_u" (field_declaration_list) "{\n NULL_t release;\n DownlinkPreemption_t setup;\n }" ({) "{" (field_declaration) "NULL_t release;" (type_identifier) "NULL_t" (field_identifier) "release" (;) ";" (field_declaration) "DownlinkPreemption_t setup;" (type_identifier) "DownlinkPreemption_t" (field_identifier) "setup" (;) ";" (}) "}" (field_identifier) "choice" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*downlinkPreemption" (*) "*" (field_identifier) "downlinkPreemption" (;) ";" (field_declaration) "struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUSCH;" (struct_specifier) "struct PDCCH_Config__tpc_PUSCH {\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__tpc_PUSCH" (field_declaration_list) "{\n PDCCH_Config__tpc_PUSCH_PR present;\n union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "PDCCH_Config__tpc_PUSCH_PR present;" (type_identifier) "PDCCH_Config__tpc_PUSCH_PR" (field_identifier) "present" (;) ";" (field_declaration) "union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n } choice;" (union_specifier) "union PDCCH_Config__tpc_PUSCH_u {\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n }" (union) "union" (type_identifier) "PDCCH_Config__tpc_PUSCH_u" (field_declaration_list) "{\n NULL_t release;\n PUSCH_TPC_CommandConfig_t setup;\n }" ({) "{" (field_declaration) "NULL_t release;" (type_identifier) "NULL_t" (field_identifier) "release" (;) ";" (field_declaration) "PUSCH_TPC_CommandConfig_t setup;" (type_identifier) "PUSCH_TPC_CommandConfig_t" (field_identifier) "setup" (;) ";" (}) "}" (field_identifier) "choice" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*tpc_PUSCH" (*) "*" (field_identifier) "tpc_PUSCH" (;) ";" (field_declaration) "struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_PUCCH;" (struct_specifier) "struct PDCCH_Config__tpc_PUCCH {\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__tpc_PUCCH" (field_declaration_list) "{\n PDCCH_Config__tpc_PUCCH_PR present;\n union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "PDCCH_Config__tpc_PUCCH_PR present;" (type_identifier) "PDCCH_Config__tpc_PUCCH_PR" (field_identifier) "present" (;) ";" (field_declaration) "union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n } choice;" (union_specifier) "union PDCCH_Config__tpc_PUCCH_u {\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n }" (union) "union" (type_identifier) "PDCCH_Config__tpc_PUCCH_u" (field_declaration_list) "{\n NULL_t release;\n PUCCH_TPC_CommandConfig_t setup;\n }" ({) "{" (field_declaration) "NULL_t release;" (type_identifier) "NULL_t" (field_identifier) "release" (;) ";" (field_declaration) "PUCCH_TPC_CommandConfig_t setup;" (type_identifier) "PUCCH_TPC_CommandConfig_t" (field_identifier) "setup" (;) ";" (}) "}" (field_identifier) "choice" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*tpc_PUCCH" (*) "*" (field_identifier) "tpc_PUCCH" (;) ";" (field_declaration) "struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *tpc_SRS;" (struct_specifier) "struct PDCCH_Config__tpc_SRS {\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__tpc_SRS" (field_declaration_list) "{\n PDCCH_Config__tpc_SRS_PR present;\n union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "PDCCH_Config__tpc_SRS_PR present;" (type_identifier) "PDCCH_Config__tpc_SRS_PR" (field_identifier) "present" (;) ";" (field_declaration) "union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n } choice;" (union_specifier) "union PDCCH_Config__tpc_SRS_u {\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n }" (union) "union" (type_identifier) "PDCCH_Config__tpc_SRS_u" (field_declaration_list) "{\n NULL_t release;\n SRS_TPC_CommandConfig_t setup;\n }" ({) "{" (field_declaration) "NULL_t release;" (type_identifier) "NULL_t" (field_identifier) "release" (;) ";" (field_declaration) "SRS_TPC_CommandConfig_t setup;" (type_identifier) "SRS_TPC_CommandConfig_t" (field_identifier) "setup" (;) ";" (}) "}" (field_identifier) "choice" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*tpc_SRS" (*) "*" (field_identifier) "tpc_SRS" (;) ";" (comment) "/*\n * This type is extensible,\n * possible extensions are below.\n */" (field_declaration) "struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToAddModList2_r16;" (struct_specifier) "struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__controlResourceSetToAddModList2_r16" (field_declaration_list) "{\n A_SEQUENCE_OF(struct ControlResourceSet) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "A_SEQUENCE_OF(struct ControlResourceSet) list;" (macro_type_specifier) "A_SEQUENCE_OF(struct ControlResourceSet)" (identifier) "A_SEQUENCE_OF" (() "(" (type_descriptor) "struct ControlResourceSet" (struct_specifier) "struct ControlResourceSet" (struct) "struct" (type_identifier) "ControlResourceSet" ()) ")" (field_identifier) "list" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*controlResourceSetToAddModList2_r16" (*) "*" (field_identifier) "controlResourceSetToAddModList2_r16" (;) ";" (field_declaration) "struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *controlResourceSetToReleaseList_r16;" (struct_specifier) "struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__controlResourceSetToReleaseList_r16" (field_declaration_list) "{\n A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;" (macro_type_specifier) "A_SEQUENCE_OF(ControlResourceSetId_r16_t)" (identifier) "A_SEQUENCE_OF" (() "(" (type_descriptor) "ControlResourceSetId_r16_t" (type_identifier) "ControlResourceSetId_r16_t" ()) ")" (field_identifier) "list" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*controlResourceSetToReleaseList_r16" (*) "*" (field_identifier) "controlResourceSetToReleaseList_r16" (;) ";" (field_declaration) "struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *searchSpacesToAddModListExt_r16;" (struct_specifier) "struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__searchSpacesToAddModListExt_r16" (field_declaration_list) "{\n A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;" (macro_type_specifier) "A_SEQUENCE_OF(struct SearchSpaceExt_r16)" (identifier) "A_SEQUENCE_OF" (() "(" (type_descriptor) "struct SearchSpaceExt_r16" (struct_specifier) "struct SearchSpaceExt_r16" (struct) "struct" (type_identifier) "SearchSpaceExt_r16" ()) ")" (field_identifier) "list" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*searchSpacesToAddModListExt_r16" (*) "*" (field_identifier) "searchSpacesToAddModListExt_r16" (;) ";" (field_declaration) "struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n } *uplinkCancellation_r16;" (struct_specifier) "struct PDCCH_Config__uplinkCancellation_r16 {\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" (struct) "struct" (type_identifier) "PDCCH_Config__uplinkCancellation_r16" (field_declaration_list) "{\n PDCCH_Config__uplinkCancellation_r16_PR present;\n union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;\n \n /* Context for parsing across buffer boundaries */\n asn_struct_ctx_t _asn_ctx;\n }" ({) "{" (field_declaration) "PDCCH_Config__uplinkCancellation_r16_PR present;" (type_identifier) "PDCCH_Config__uplinkCancellation_r16_PR" (field_identifier) "present" (;) ";" (field_declaration) "union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n } choice;" (union_specifier) "union PDCCH_Config__uplinkCancellation_r16_u {\n NULL_t release;\n UplinkCancellation_r16_t setup;\n }" (union) "union" (type_identifier) "PDCCH_Config__uplinkCancellation_r16_u" (field_declaration_list) "{\n NULL_t release;\n UplinkCancellation_r16_t setup;\n }" ({) "{" (field_declaration) "NULL_t release;" (type_identifier) "NULL_t" (field_identifier) "release" (;) ";" (field_declaration) "UplinkCancellation_r16_t setup;" (type_identifier) "UplinkCancellation_r16_t" (field_identifier) "setup" (;) ";" (}) "}" (field_identifier) "choice" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (pointer_declarator) "*uplinkCancellation_r16" (*) "*" (field_identifier) "uplinkCancellation_r16" (;) ";" (field_declaration) "long *monitoringCapabilityConfig_r16 /* OPTIONAL */;" (sized_type_specifier) "long" (long) "long" (pointer_declarator) "*monitoringCapabilityConfig_r16" (*) "*" (field_identifier) "monitoringCapabilityConfig_r16" (comment) "/* OPTIONAL */" (;) ";" (field_declaration) "struct SearchSpaceSwitchConfig_r16 *searchSpaceSwitchConfig_r16 /* OPTIONAL */;" (struct_specifier) "struct SearchSpaceSwitchConfig_r16" (struct) "struct" (type_identifier) "SearchSpaceSwitchConfig_r16" (pointer_declarator) "*searchSpaceSwitchConfig_r16" (*) "*" (field_identifier) "searchSpaceSwitchConfig_r16" (comment) "/* OPTIONAL */" (;) ";" (comment) "/* Context for parsing across buffer boundaries */" (field_declaration) "asn_struct_ctx_t _asn_ctx;" (type_identifier) "asn_struct_ctx_t" (field_identifier) "_asn_ctx" (;) ";" (}) "}" (type_identifier) "PDCCH_Config_t" (;) ";" (comment) "/* Implementation */" (comment) "/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32; // (Use -fall-defs-global to expose) */" (declaration) "extern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "asn_TYPE_descriptor_t" (identifier) "asn_DEF_PDCCH_Config" (;) ";" (declaration) "extern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "asn_SEQUENCE_specifics_t" (identifier) "asn_SPC_PDCCH_Config_specs_1" (;) ";" (declaration) "extern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "asn_TYPE_member_t" (array_declarator) "asn_MBR_PDCCH_Config_1[14]" (identifier) "asn_MBR_PDCCH_Config_1" ([) "[" (number_literal) "14" (]) "]" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (comment) "/* Referred external types */" (preproc_include) "#include "SearchSpaceSwitchConfig-r16.h"\n" (#include) "#include" (string_literal) ""SearchSpaceSwitchConfig-r16.h"" (") """ (string_content) "SearchSpaceSwitchConfig-r16.h" (") """ (preproc_include) "#include "ControlResourceSet.h"\n" (#include) "#include" (string_literal) ""ControlResourceSet.h"" (") """ (string_content) "ControlResourceSet.h" (") """ (preproc_include) "#include "SearchSpace.h"\n" (#include) "#include" (string_literal) ""SearchSpace.h"" (") """ (string_content) "SearchSpace.h" (") """ (preproc_include) "#include "SearchSpaceExt-r16.h"\n" (#include) "#include" (string_literal) ""SearchSpaceExt-r16.h"" (") """ (string_content) "SearchSpaceExt-r16.h" (") """ (#endif) "#endif" (comment) "/* _PDCCH_Config_H_ */" (preproc_include) "#include "asn_internal.h"\n" (#include) "#include" (string_literal) ""asn_internal.h"" (") """ (string_content) "asn_internal.h" (") """
709
0
{"language": "c", "success": true, "metadata": {"lines": 182, "avg_line_length": 33.44, "nodes": 451, "errors": 0, "source_hash": "d0ba81cb046f6fe3a99fa83214fc60f04fdf20d8e9c8c770daaeb7aec531f05d", "categorized_nodes": 398}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef\t_PDCCH_Config_H_\n#define\t_PDCCH_Config_H_\n\n\n#include \"asn_application.h\"\n\n/* Including external dependencies */\n#include \"NativeEnumerated.h\"\n#include \"asn_SEQUENCE_OF.h\"\n#include \"constr_SEQUENCE_OF.h\"\n#include \"ControlResourceSetId.h\"\n#include \"SearchSpaceId.h\"\n#include \"NULL.h\"\n#include \"DownlinkPreemption.h\"\n#include \"constr_CHOICE.h\"\n#include \"PUSCH-TPC-CommandConfig.h\"\n#include \"PUCCH-TPC-CommandConfig.h\"\n#include \"SRS-TPC-CommandConfig.h\"\n#include \"ControlResourceSetId-r16.h\"\n#include \"UplinkCancellation-r16.h\"\n#include \"constr_SEQUENCE.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n\tPDCCH_Config__downlinkPreemption_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__downlinkPreemption_PR_release,\n\tPDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n\tPDCCH_Config__tpc_PUSCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUSCH_PR_release,\n\tPDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n\tPDCCH_Config__tpc_PUCCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUCCH_PR_release,\n\tPDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n\tPDCCH_Config__tpc_SRS_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_SRS_PR_release,\n\tPDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n\tPDCCH_Config__uplinkCancellation_r16_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__uplinkCancellation_r16_PR_release,\n\tPDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0,\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n\tstruct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList;\n\tstruct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModList;\n\tstruct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToReleaseList;\n\tstruct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *downlinkPreemption;\n\tstruct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUSCH;\n\tstruct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUCCH;\n\tstruct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_SRS;\n\t/*\n\t * This type is extensible,\n\t * possible extensions are below.\n\t */\n\tstruct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList2_r16;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList_r16;\n\tstruct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModListExt_r16;\n\tstruct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *uplinkCancellation_r16;\n\tlong\t*monitoringCapabilityConfig_r16\t/* OPTIONAL */;\n\tstruct SearchSpaceSwitchConfig_r16\t*searchSpaceSwitchConfig_r16\t/* OPTIONAL */;\n\t\n\t/* Context for parsing across buffer boundaries */\n\tasn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32;\t// (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}\n#endif\n\n/* Referred external types */\n#include \"SearchSpaceSwitchConfig-r16.h\"\n#include \"ControlResourceSet.h\"\n#include \"SearchSpace.h\"\n#include \"SearchSpaceExt-r16.h\"\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 435, 438, 441, 444, 447], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 191, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "identifier", "text": "_PDCCH_Config_H_", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define\t_PDCCH_Config_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "_PDCCH_Config_H_", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"asn_application.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": "\"asn_application.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"NativeEnumerated.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"NativeEnumerated.h\"", "parent": 9, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 29}}, {"id": 12, "type": "preproc_include", "text": "#include \"asn_SEQUENCE_OF.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"asn_SEQUENCE_OF.h\"", "parent": 12, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 28}}, {"id": 15, "type": "preproc_include", "text": "#include \"constr_SEQUENCE_OF.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": "string_literal", "text": "\"constr_SEQUENCE_OF.h\"", "parent": 15, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 31}}, {"id": 18, "type": "preproc_include", "text": "#include \"ControlResourceSetId.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"ControlResourceSetId.h\"", "parent": 18, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 33}}, {"id": 21, "type": "preproc_include", "text": "#include \"SearchSpaceId.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"SearchSpaceId.h\"", "parent": 21, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 26}}, {"id": 24, "type": "preproc_include", "text": "#include \"NULL.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"NULL.h\"", "parent": 24, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 27, "type": "preproc_include", "text": "#include \"DownlinkPreemption.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"DownlinkPreemption.h\"", "parent": 27, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 31}}, {"id": 30, "type": "preproc_include", "text": "#include \"constr_CHOICE.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"constr_CHOICE.h\"", "parent": 30, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 26}}, {"id": 33, "type": "preproc_include", "text": "#include \"PUSCH-TPC-CommandConfig.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"PUSCH-TPC-CommandConfig.h\"", "parent": 33, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 36}}, {"id": 36, "type": "preproc_include", "text": "#include \"PUCCH-TPC-CommandConfig.h\"\n", "parent": 0, "children": [37, 38], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"PUCCH-TPC-CommandConfig.h\"", "parent": 36, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 36}}, {"id": 39, "type": "preproc_include", "text": "#include \"SRS-TPC-CommandConfig.h\"\n", "parent": 0, "children": [40, 41], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"SRS-TPC-CommandConfig.h\"", "parent": 39, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 34}}, {"id": 42, "type": "preproc_include", "text": "#include \"ControlResourceSetId-r16.h\"\n", "parent": 0, "children": [43, 44], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 44, "type": "string_literal", "text": "\"ControlResourceSetId-r16.h\"", "parent": 42, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 37}}, {"id": 45, "type": "preproc_include", "text": "#include \"UplinkCancellation-r16.h\"\n", "parent": 0, "children": [46, 47], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 46, "type": "#include", "text": "#include", "parent": 45, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 47, "type": "string_literal", "text": "\"UplinkCancellation-r16.h\"", "parent": 45, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 35}}, {"id": 48, "type": "preproc_include", "text": "#include \"constr_SEQUENCE.h\"\n", "parent": 0, "children": [49, 50], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 49, "type": "#include", "text": "#include", "parent": 48, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 50, "type": "string_literal", "text": "\"constr_SEQUENCE.h\"", "parent": 48, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 28}}, {"id": 51, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n\tPDCCH_Config__downlinkPreemption_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__downlinkPreemption_PR_release,\n\tPDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n\tPDCCH_Config__tpc_PUSCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUSCH_PR_release,\n\tPDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n\tPDCCH_Config__tpc_PUCCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUCCH_PR_release,\n\tPDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n\tPDCCH_Config__tpc_SRS_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_SRS_PR_release,\n\tPDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n\tPDCCH_Config__uplinkCancellation_r16_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__uplinkCancellation_r16_PR_release,\n\tPDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0,\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n\tstruct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList;\n\tstruct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModList;\n\tstruct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToReleaseList;\n\tstruct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *downlinkPreemption;\n\tstruct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUSCH;\n\tstruct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUCCH;\n\tstruct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_SRS;\n\t/*\n\t * This type is extensible,\n\t * possible extensions are below.\n\t */\n\tstruct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList2_r16;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList_r16;\n\tstruct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModListExt_r16;\n\tstruct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *uplinkCancellation_r16;\n\tlong\t*monitoringCapabilityConfig_r16\t/* OPTIONAL */;\n\tstruct SearchSpaceSwitchConfig_r16\t*searchSpaceSwitchConfig_r16\t/* OPTIONAL */;\n\t\n\t/* Context for parsing across buffer boundaries */\n\tasn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32;\t// (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [52, 53, 54, 434], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 183, "column": 6}}, {"id": 52, "type": "#ifdef", "text": "#ifdef", "parent": 51, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 53, "type": "identifier", "text": "__cplusplus", "parent": 51, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 18}}, {"id": 54, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n\tPDCCH_Config__downlinkPreemption_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__downlinkPreemption_PR_release,\n\tPDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n\tPDCCH_Config__tpc_PUSCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUSCH_PR_release,\n\tPDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n\tPDCCH_Config__tpc_PUCCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUCCH_PR_release,\n\tPDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n\tPDCCH_Config__tpc_SRS_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_SRS_PR_release,\n\tPDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n\tPDCCH_Config__uplinkCancellation_r16_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__uplinkCancellation_r16_PR_release,\n\tPDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0,\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n\tstruct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList;\n\tstruct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModList;\n\tstruct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToReleaseList;\n\tstruct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *downlinkPreemption;\n\tstruct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUSCH;\n\tstruct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUCCH;\n\tstruct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_SRS;\n\t/*\n\t * This type is extensible,\n\t * possible extensions are below.\n\t */\n\tstruct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList2_r16;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList_r16;\n\tstruct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModListExt_r16;\n\tstruct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *uplinkCancellation_r16;\n\tlong\t*monitoringCapabilityConfig_r16\t/* OPTIONAL */;\n\tstruct SearchSpaceSwitchConfig_r16\t*searchSpaceSwitchConfig_r16\t/* OPTIONAL */;\n\t\n\t/* Context for parsing across buffer boundaries */\n\tasn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32;\t// (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}", "parent": 51, "children": [55, 56], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 182, "column": 1}}, {"id": 55, "type": "extern", "text": "extern", "parent": 54, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 56, "type": "string_literal", "text": "\"C\"", "parent": 54, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 10}}, {"id": 57, "type": "preproc_call", "text": "#endif\n", "parent": 54, "children": [58], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 58, "type": "preproc_directive", "text": "#endif", "parent": 57, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 59, "type": "type_definition", "text": "typedef enum PDCCH_Config__downlinkPreemption_PR {\n\tPDCCH_Config__downlinkPreemption_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__downlinkPreemption_PR_release,\n\tPDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;", "parent": 54, "children": [60, 61, 71], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 38, "column": 38}}, {"id": 60, "type": "typedef", "text": "typedef", "parent": 59, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 61, "type": "enum_specifier", "text": "enum PDCCH_Config__downlinkPreemption_PR {\n\tPDCCH_Config__downlinkPreemption_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__downlinkPreemption_PR_release,\n\tPDCCH_Config__downlinkPreemption_PR_setup\n}", "parent": 59, "children": [62, 63, 64], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 38, "column": 1}}, {"id": 62, "type": "enum", "text": "enum", "parent": 61, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 12}}, {"id": 63, "type": "type_identifier", "text": "PDCCH_Config__downlinkPreemption_PR", "parent": 61, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 48}}, {"id": 64, "type": "enumerator_list", "text": "{\n\tPDCCH_Config__downlinkPreemption_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__downlinkPreemption_PR_release,\n\tPDCCH_Config__downlinkPreemption_PR_setup\n}", "parent": 61, "children": [65, 67, 69], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 38, "column": 1}}, {"id": 65, "type": "enumerator", "text": "PDCCH_Config__downlinkPreemption_PR_NOTHING", "parent": 64, "children": [66], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 44}}, {"id": 66, "type": "identifier", "text": "PDCCH_Config__downlinkPreemption_PR_NOTHING", "parent": 65, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 44}}, {"id": 67, "type": "enumerator", "text": "PDCCH_Config__downlinkPreemption_PR_release", "parent": 64, "children": [68], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 44}}, {"id": 68, "type": "identifier", "text": "PDCCH_Config__downlinkPreemption_PR_release", "parent": 67, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 44}}, {"id": 69, "type": "enumerator", "text": "PDCCH_Config__downlinkPreemption_PR_setup", "parent": 64, "children": [70], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 42}}, {"id": 70, "type": "identifier", "text": "PDCCH_Config__downlinkPreemption_PR_setup", "parent": 69, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 42}}, {"id": 71, "type": "type_identifier", "text": "PDCCH_Config__downlinkPreemption_PR", "parent": 59, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 37}}, {"id": 72, "type": "type_definition", "text": "typedef enum PDCCH_Config__tpc_PUSCH_PR {\n\tPDCCH_Config__tpc_PUSCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUSCH_PR_release,\n\tPDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;", "parent": 54, "children": [73, 74, 84], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 43, "column": 29}}, {"id": 73, "type": "typedef", "text": "typedef", "parent": 72, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 74, "type": "enum_specifier", "text": "enum PDCCH_Config__tpc_PUSCH_PR {\n\tPDCCH_Config__tpc_PUSCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUSCH_PR_release,\n\tPDCCH_Config__tpc_PUSCH_PR_setup\n}", "parent": 72, "children": [75, 76, 77], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 43, "column": 1}}, {"id": 75, "type": "enum", "text": "enum", "parent": 74, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 12}}, {"id": 76, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUSCH_PR", "parent": 74, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 39}}, {"id": 77, "type": "enumerator_list", "text": "{\n\tPDCCH_Config__tpc_PUSCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUSCH_PR_release,\n\tPDCCH_Config__tpc_PUSCH_PR_setup\n}", "parent": 74, "children": [78, 80, 82], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 43, "column": 1}}, {"id": 78, "type": "enumerator", "text": "PDCCH_Config__tpc_PUSCH_PR_NOTHING", "parent": 77, "children": [79], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 35}}, {"id": 79, "type": "identifier", "text": "PDCCH_Config__tpc_PUSCH_PR_NOTHING", "parent": 78, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 35}}, {"id": 80, "type": "enumerator", "text": "PDCCH_Config__tpc_PUSCH_PR_release", "parent": 77, "children": [81], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 35}}, {"id": 81, "type": "identifier", "text": "PDCCH_Config__tpc_PUSCH_PR_release", "parent": 80, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 35}}, {"id": 82, "type": "enumerator", "text": "PDCCH_Config__tpc_PUSCH_PR_setup", "parent": 77, "children": [83], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 33}}, {"id": 83, "type": "identifier", "text": "PDCCH_Config__tpc_PUSCH_PR_setup", "parent": 82, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 33}}, {"id": 84, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUSCH_PR", "parent": 72, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 28}}, {"id": 85, "type": "type_definition", "text": "typedef enum PDCCH_Config__tpc_PUCCH_PR {\n\tPDCCH_Config__tpc_PUCCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUCCH_PR_release,\n\tPDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;", "parent": 54, "children": [86, 87, 97], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 48, "column": 29}}, {"id": 86, "type": "typedef", "text": "typedef", "parent": 85, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 87, "type": "enum_specifier", "text": "enum PDCCH_Config__tpc_PUCCH_PR {\n\tPDCCH_Config__tpc_PUCCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUCCH_PR_release,\n\tPDCCH_Config__tpc_PUCCH_PR_setup\n}", "parent": 85, "children": [88, 89, 90], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 48, "column": 1}}, {"id": 88, "type": "enum", "text": "enum", "parent": 87, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 12}}, {"id": 89, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUCCH_PR", "parent": 87, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 39}}, {"id": 90, "type": "enumerator_list", "text": "{\n\tPDCCH_Config__tpc_PUCCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUCCH_PR_release,\n\tPDCCH_Config__tpc_PUCCH_PR_setup\n}", "parent": 87, "children": [91, 93, 95], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 48, "column": 1}}, {"id": 91, "type": "enumerator", "text": "PDCCH_Config__tpc_PUCCH_PR_NOTHING", "parent": 90, "children": [92], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 35}}, {"id": 92, "type": "identifier", "text": "PDCCH_Config__tpc_PUCCH_PR_NOTHING", "parent": 91, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 35}}, {"id": 93, "type": "enumerator", "text": "PDCCH_Config__tpc_PUCCH_PR_release", "parent": 90, "children": [94], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 35}}, {"id": 94, "type": "identifier", "text": "PDCCH_Config__tpc_PUCCH_PR_release", "parent": 93, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 35}}, {"id": 95, "type": "enumerator", "text": "PDCCH_Config__tpc_PUCCH_PR_setup", "parent": 90, "children": [96], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 33}}, {"id": 96, "type": "identifier", "text": "PDCCH_Config__tpc_PUCCH_PR_setup", "parent": 95, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 33}}, {"id": 97, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUCCH_PR", "parent": 85, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 28}}, {"id": 98, "type": "type_definition", "text": "typedef enum PDCCH_Config__tpc_SRS_PR {\n\tPDCCH_Config__tpc_SRS_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_SRS_PR_release,\n\tPDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;", "parent": 54, "children": [99, 100, 110], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 53, "column": 27}}, {"id": 99, "type": "typedef", "text": "typedef", "parent": 98, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 100, "type": "enum_specifier", "text": "enum PDCCH_Config__tpc_SRS_PR {\n\tPDCCH_Config__tpc_SRS_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_SRS_PR_release,\n\tPDCCH_Config__tpc_SRS_PR_setup\n}", "parent": 98, "children": [101, 102, 103], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 53, "column": 1}}, {"id": 101, "type": "enum", "text": "enum", "parent": 100, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 12}}, {"id": 102, "type": "type_identifier", "text": "PDCCH_Config__tpc_SRS_PR", "parent": 100, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 37}}, {"id": 103, "type": "enumerator_list", "text": "{\n\tPDCCH_Config__tpc_SRS_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_SRS_PR_release,\n\tPDCCH_Config__tpc_SRS_PR_setup\n}", "parent": 100, "children": [104, 106, 108], "start_point": {"row": 49, "column": 38}, "end_point": {"row": 53, "column": 1}}, {"id": 104, "type": "enumerator", "text": "PDCCH_Config__tpc_SRS_PR_NOTHING", "parent": 103, "children": [105], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 33}}, {"id": 105, "type": "identifier", "text": "PDCCH_Config__tpc_SRS_PR_NOTHING", "parent": 104, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 33}}, {"id": 106, "type": "enumerator", "text": "PDCCH_Config__tpc_SRS_PR_release", "parent": 103, "children": [107], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 33}}, {"id": 107, "type": "identifier", "text": "PDCCH_Config__tpc_SRS_PR_release", "parent": 106, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 33}}, {"id": 108, "type": "enumerator", "text": "PDCCH_Config__tpc_SRS_PR_setup", "parent": 103, "children": [109], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 31}}, {"id": 109, "type": "identifier", "text": "PDCCH_Config__tpc_SRS_PR_setup", "parent": 108, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 31}}, {"id": 110, "type": "type_identifier", "text": "PDCCH_Config__tpc_SRS_PR", "parent": 98, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 26}}, {"id": 111, "type": "type_definition", "text": "typedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n\tPDCCH_Config__uplinkCancellation_r16_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__uplinkCancellation_r16_PR_release,\n\tPDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;", "parent": 54, "children": [112, 113, 123], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 58, "column": 42}}, {"id": 112, "type": "typedef", "text": "typedef", "parent": 111, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 7}}, {"id": 113, "type": "enum_specifier", "text": "enum PDCCH_Config__uplinkCancellation_r16_PR {\n\tPDCCH_Config__uplinkCancellation_r16_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__uplinkCancellation_r16_PR_release,\n\tPDCCH_Config__uplinkCancellation_r16_PR_setup\n}", "parent": 111, "children": [114, 115, 116], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 58, "column": 1}}, {"id": 114, "type": "enum", "text": "enum", "parent": 113, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 12}}, {"id": 115, "type": "type_identifier", "text": "PDCCH_Config__uplinkCancellation_r16_PR", "parent": 113, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 52}}, {"id": 116, "type": "enumerator_list", "text": "{\n\tPDCCH_Config__uplinkCancellation_r16_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__uplinkCancellation_r16_PR_release,\n\tPDCCH_Config__uplinkCancellation_r16_PR_setup\n}", "parent": 113, "children": [117, 119, 121], "start_point": {"row": 54, "column": 53}, "end_point": {"row": 58, "column": 1}}, {"id": 117, "type": "enumerator", "text": "PDCCH_Config__uplinkCancellation_r16_PR_NOTHING", "parent": 116, "children": [118], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 48}}, {"id": 118, "type": "identifier", "text": "PDCCH_Config__uplinkCancellation_r16_PR_NOTHING", "parent": 117, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 48}}, {"id": 119, "type": "enumerator", "text": "PDCCH_Config__uplinkCancellation_r16_PR_release", "parent": 116, "children": [120], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 48}}, {"id": 120, "type": "identifier", "text": "PDCCH_Config__uplinkCancellation_r16_PR_release", "parent": 119, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 48}}, {"id": 121, "type": "enumerator", "text": "PDCCH_Config__uplinkCancellation_r16_PR_setup", "parent": 116, "children": [122], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 46}}, {"id": 122, "type": "identifier", "text": "PDCCH_Config__uplinkCancellation_r16_PR_setup", "parent": 121, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 46}}, {"id": 123, "type": "type_identifier", "text": "PDCCH_Config__uplinkCancellation_r16_PR", "parent": 111, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 41}}, {"id": 124, "type": "type_definition", "text": "typedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0,\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;", "parent": 54, "children": [125, 126, 138], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 62, "column": 49}}, {"id": 125, "type": "typedef", "text": "typedef", "parent": 124, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 126, "type": "enum_specifier", "text": "enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0,\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1\n}", "parent": 124, "children": [127, 128, 129], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 62, "column": 1}}, {"id": 127, "type": "enum", "text": "enum", "parent": 126, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 12}}, {"id": 128, "type": "type_identifier", "text": "PDCCH_Config__monitoringCapabilityConfig_r16", "parent": 126, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 57}}, {"id": 129, "type": "enumerator_list", "text": "{\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0,\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1\n}", "parent": 126, "children": [130, 134], "start_point": {"row": 59, "column": 58}, "end_point": {"row": 62, "column": 1}}, {"id": 130, "type": "enumerator", "text": "PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0", "parent": 129, "children": [131, 132, 133], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 73}}, {"id": 131, "type": "identifier", "text": "PDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability", "parent": 130, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 69}}, {"id": 132, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 60, "column": 70}, "end_point": {"row": 60, "column": 71}}, {"id": 133, "type": "number_literal", "text": "0", "parent": 130, "children": [], "start_point": {"row": 60, "column": 72}, "end_point": {"row": 60, "column": 73}}, {"id": 134, "type": "enumerator", "text": "PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1", "parent": 129, "children": [135, 136, 137], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 73}}, {"id": 135, "type": "identifier", "text": "PDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability", "parent": 134, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 69}}, {"id": 136, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 61, "column": 70}, "end_point": {"row": 61, "column": 71}}, {"id": 137, "type": "number_literal", "text": "1", "parent": 134, "children": [], "start_point": {"row": 61, "column": 72}, "end_point": {"row": 61, "column": 73}}, {"id": 138, "type": "type_identifier", "text": "e_PDCCH_Config__monitoringCapabilityConfig_r16", "parent": 124, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 48}}, {"id": 139, "type": "struct_specifier", "text": "struct SearchSpaceSwitchConfig_r16", "parent": 54, "children": [140, 141], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 34}}, {"id": 140, "type": "struct", "text": "struct", "parent": 139, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 6}}, {"id": 141, "type": "type_identifier", "text": "SearchSpaceSwitchConfig_r16", "parent": 139, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 34}}, {"id": 142, "type": "struct_specifier", "text": "struct ControlResourceSet", "parent": 54, "children": [143, 144], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 25}}, {"id": 143, "type": "struct", "text": "struct", "parent": 142, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 144, "type": "type_identifier", "text": "ControlResourceSet", "parent": 142, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 25}}, {"id": 145, "type": "struct_specifier", "text": "struct SearchSpace", "parent": 54, "children": [146, 147], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 18}}, {"id": 146, "type": "struct", "text": "struct", "parent": 145, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 147, "type": "type_identifier", "text": "SearchSpace", "parent": 145, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 18}}, {"id": 148, "type": "struct_specifier", "text": "struct SearchSpaceExt_r16", "parent": 54, "children": [149, 150], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 25}}, {"id": 149, "type": "struct", "text": "struct", "parent": 148, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 150, "type": "type_identifier", "text": "SearchSpaceExt_r16", "parent": 148, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 25}}, {"id": 151, "type": "type_definition", "text": "typedef struct PDCCH_Config {\n\tstruct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList;\n\tstruct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModList;\n\tstruct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToReleaseList;\n\tstruct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *downlinkPreemption;\n\tstruct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUSCH;\n\tstruct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUCCH;\n\tstruct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_SRS;\n\t/*\n\t * This type is extensible,\n\t * possible extensions are below.\n\t */\n\tstruct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList2_r16;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList_r16;\n\tstruct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModListExt_r16;\n\tstruct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *uplinkCancellation_r16;\n\tlong\t*monitoringCapabilityConfig_r16\t/* OPTIONAL */;\n\tstruct SearchSpaceSwitchConfig_r16\t*searchSpaceSwitchConfig_r16\t/* OPTIONAL */;\n\t\n\t/* Context for parsing across buffer boundaries */\n\tasn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;", "parent": 54, "children": [152, 153, 412], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 173, "column": 17}}, {"id": 152, "type": "typedef", "text": "typedef", "parent": 151, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 153, "type": "struct_specifier", "text": "struct PDCCH_Config {\n\tstruct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList;\n\tstruct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModList;\n\tstruct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToReleaseList;\n\tstruct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *downlinkPreemption;\n\tstruct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUSCH;\n\tstruct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUCCH;\n\tstruct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_SRS;\n\t/*\n\t * This type is extensible,\n\t * possible extensions are below.\n\t */\n\tstruct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList2_r16;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList_r16;\n\tstruct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModListExt_r16;\n\tstruct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *uplinkCancellation_r16;\n\tlong\t*monitoringCapabilityConfig_r16\t/* OPTIONAL */;\n\tstruct SearchSpaceSwitchConfig_r16\t*searchSpaceSwitchConfig_r16\t/* OPTIONAL */;\n\t\n\t/* Context for parsing across buffer boundaries */\n\tasn_struct_ctx_t _asn_ctx;\n}", "parent": 151, "children": [154, 155], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 173, "column": 1}}, {"id": 154, "type": "struct", "text": "struct", "parent": 153, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 155, "type": "type_identifier", "text": "PDCCH_Config", "parent": 153, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 27}}, {"id": 156, "type": "field_declaration", "text": "struct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList;", "parent": 153, "children": [157, 171], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 77, "column": 35}}, {"id": 157, "type": "struct_specifier", "text": "struct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 156, "children": [158, 159], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 77, "column": 2}}, {"id": 158, "type": "struct", "text": "struct", "parent": 157, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 7}}, {"id": 159, "type": "type_identifier", "text": "PDCCH_Config__controlResourceSetToAddModList", "parent": 157, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 52}}, {"id": 160, "type": "field_declaration", "text": "A_SEQUENCE_OF(struct ControlResourceSet) list;", "parent": 157, "children": [161, 167], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 48}}, {"id": 161, "type": "macro_type_specifier", "text": "A_SEQUENCE_OF(struct ControlResourceSet)", "parent": 160, "children": [162, 163], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 42}}, {"id": 162, "type": "identifier", "text": "A_SEQUENCE_OF", "parent": 161, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 15}}, {"id": 163, "type": "type_descriptor", "text": "struct ControlResourceSet", "parent": 161, "children": [164], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 41}}, {"id": 164, "type": "struct_specifier", "text": "struct ControlResourceSet", "parent": 163, "children": [165, 166], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 41}}, {"id": 165, "type": "struct", "text": "struct", "parent": 164, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 22}}, {"id": 166, "type": "type_identifier", "text": "ControlResourceSet", "parent": 164, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 41}}, {"id": 167, "type": "field_identifier", "text": "list", "parent": 160, "children": [], "start_point": {"row": 73, "column": 43}, "end_point": {"row": 73, "column": 47}}, {"id": 168, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 157, "children": [169, 170], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 28}}, {"id": 169, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 168, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 18}}, {"id": 170, "type": "field_identifier", "text": "_asn_ctx", "parent": 168, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 27}}, {"id": 171, "type": "pointer_declarator", "text": "*controlResourceSetToAddModList", "parent": 156, "children": [172, 173], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 34}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 4}}, {"id": 173, "type": "field_identifier", "text": "controlResourceSetToAddModList", "parent": 171, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 34}}, {"id": 174, "type": "field_declaration", "text": "struct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList;", "parent": 153, "children": [175, 187], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 83, "column": 36}}, {"id": 175, "type": "struct_specifier", "text": "struct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 174, "children": [176, 177], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 83, "column": 2}}, {"id": 176, "type": "struct", "text": "struct", "parent": 175, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 7}}, {"id": 177, "type": "type_identifier", "text": "PDCCH_Config__controlResourceSetToReleaseList", "parent": 175, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 53}}, {"id": 178, "type": "field_declaration", "text": "A_SEQUENCE_OF(ControlResourceSetId_t) list;", "parent": 175, "children": [179, 183], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 45}}, {"id": 179, "type": "macro_type_specifier", "text": "A_SEQUENCE_OF(ControlResourceSetId_t)", "parent": 178, "children": [180, 181], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 39}}, {"id": 180, "type": "identifier", "text": "A_SEQUENCE_OF", "parent": 179, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 15}}, {"id": 181, "type": "type_descriptor", "text": "ControlResourceSetId_t", "parent": 179, "children": [182], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 38}}, {"id": 182, "type": "type_identifier", "text": "ControlResourceSetId_t", "parent": 181, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 38}}, {"id": 183, "type": "field_identifier", "text": "list", "parent": 178, "children": [], "start_point": {"row": 79, "column": 40}, "end_point": {"row": 79, "column": 44}}, {"id": 184, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 175, "children": [185, 186], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 28}}, {"id": 185, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 184, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 18}}, {"id": 186, "type": "field_identifier", "text": "_asn_ctx", "parent": 184, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 27}}, {"id": 187, "type": "pointer_declarator", "text": "*controlResourceSetToReleaseList", "parent": 174, "children": [188, 189], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 35}}, {"id": 188, "type": "*", "text": "*", "parent": 187, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 4}}, {"id": 189, "type": "field_identifier", "text": "controlResourceSetToReleaseList", "parent": 187, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 35}}, {"id": 190, "type": "field_declaration", "text": "struct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModList;", "parent": 153, "children": [191, 205], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 89, "column": 29}}, {"id": 191, "type": "struct_specifier", "text": "struct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 190, "children": [192, 193], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 89, "column": 2}}, {"id": 192, "type": "struct", "text": "struct", "parent": 191, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 7}}, {"id": 193, "type": "type_identifier", "text": "PDCCH_Config__searchSpacesToAddModList", "parent": 191, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 46}}, {"id": 194, "type": "field_declaration", "text": "A_SEQUENCE_OF(struct SearchSpace) list;", "parent": 191, "children": [195, 201], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 41}}, {"id": 195, "type": "macro_type_specifier", "text": "A_SEQUENCE_OF(struct SearchSpace)", "parent": 194, "children": [196, 197], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 35}}, {"id": 196, "type": "identifier", "text": "A_SEQUENCE_OF", "parent": 195, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 15}}, {"id": 197, "type": "type_descriptor", "text": "struct SearchSpace", "parent": 195, "children": [198], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 34}}, {"id": 198, "type": "struct_specifier", "text": "struct SearchSpace", "parent": 197, "children": [199, 200], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 34}}, {"id": 199, "type": "struct", "text": "struct", "parent": 198, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 22}}, {"id": 200, "type": "type_identifier", "text": "SearchSpace", "parent": 198, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 34}}, {"id": 201, "type": "field_identifier", "text": "list", "parent": 194, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 40}}, {"id": 202, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 191, "children": [203, 204], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 28}}, {"id": 203, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 202, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 18}}, {"id": 204, "type": "field_identifier", "text": "_asn_ctx", "parent": 202, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 27}}, {"id": 205, "type": "pointer_declarator", "text": "*searchSpacesToAddModList", "parent": 190, "children": [206, 207], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 28}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 4}}, {"id": 207, "type": "field_identifier", "text": "searchSpacesToAddModList", "parent": 205, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 28}}, {"id": 208, "type": "field_declaration", "text": "struct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToReleaseList;", "parent": 153, "children": [209, 221], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 95, "column": 30}}, {"id": 209, "type": "struct_specifier", "text": "struct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 208, "children": [210, 211], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 95, "column": 2}}, {"id": 210, "type": "struct", "text": "struct", "parent": 209, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 7}}, {"id": 211, "type": "type_identifier", "text": "PDCCH_Config__searchSpacesToReleaseList", "parent": 209, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 47}}, {"id": 212, "type": "field_declaration", "text": "A_SEQUENCE_OF(SearchSpaceId_t) list;", "parent": 209, "children": [213, 217], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 38}}, {"id": 213, "type": "macro_type_specifier", "text": "A_SEQUENCE_OF(SearchSpaceId_t)", "parent": 212, "children": [214, 215], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 32}}, {"id": 214, "type": "identifier", "text": "A_SEQUENCE_OF", "parent": 213, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 15}}, {"id": 215, "type": "type_descriptor", "text": "SearchSpaceId_t", "parent": 213, "children": [216], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 31}}, {"id": 216, "type": "type_identifier", "text": "SearchSpaceId_t", "parent": 215, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 31}}, {"id": 217, "type": "field_identifier", "text": "list", "parent": 212, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 37}}, {"id": 218, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 209, "children": [219, 220], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 28}}, {"id": 219, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 218, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 18}}, {"id": 220, "type": "field_identifier", "text": "_asn_ctx", "parent": 218, "children": [], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 27}}, {"id": 221, "type": "pointer_declarator", "text": "*searchSpacesToReleaseList", "parent": 208, "children": [222, 223], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 29}}, {"id": 222, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 4}}, {"id": 223, "type": "field_identifier", "text": "searchSpacesToReleaseList", "parent": 221, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 29}}, {"id": 224, "type": "field_declaration", "text": "struct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *downlinkPreemption;", "parent": 153, "children": [225, 245], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 105, "column": 23}}, {"id": 225, "type": "struct_specifier", "text": "struct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 224, "children": [226, 227], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 105, "column": 2}}, {"id": 226, "type": "struct", "text": "struct", "parent": 225, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 7}}, {"id": 227, "type": "type_identifier", "text": "PDCCH_Config__downlinkPreemption", "parent": 225, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 40}}, {"id": 228, "type": "field_declaration", "text": "PDCCH_Config__downlinkPreemption_PR present;", "parent": 225, "children": [229, 230], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 46}}, {"id": 229, "type": "type_identifier", "text": "PDCCH_Config__downlinkPreemption_PR", "parent": 228, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 37}}, {"id": 230, "type": "field_identifier", "text": "present", "parent": 228, "children": [], "start_point": {"row": 97, "column": 38}, "end_point": {"row": 97, "column": 45}}, {"id": 231, "type": "field_declaration", "text": "union PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;", "parent": 225, "children": [232, 241], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 101, "column": 11}}, {"id": 232, "type": "union_specifier", "text": "union PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t}", "parent": 231, "children": [233, 234], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 101, "column": 3}}, {"id": 233, "type": "union", "text": "union", "parent": 232, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 7}}, {"id": 234, "type": "type_identifier", "text": "PDCCH_Config__downlinkPreemption_u", "parent": 232, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 42}}, {"id": 235, "type": "field_declaration", "text": "NULL_t\t release;", "parent": 232, "children": [236, 237], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 19}}, {"id": 236, "type": "type_identifier", "text": "NULL_t", "parent": 235, "children": [], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 9}}, {"id": 237, "type": "field_identifier", "text": "release", "parent": 235, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 18}}, {"id": 238, "type": "field_declaration", "text": "DownlinkPreemption_t\t setup;", "parent": 232, "children": [239, 240], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 31}}, {"id": 239, "type": "type_identifier", "text": "DownlinkPreemption_t", "parent": 238, "children": [], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 23}}, {"id": 240, "type": "field_identifier", "text": "setup", "parent": 238, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 30}}, {"id": 241, "type": "field_identifier", "text": "choice", "parent": 231, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 10}}, {"id": 242, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 225, "children": [243, 244], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 28}}, {"id": 243, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 242, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 18}}, {"id": 244, "type": "field_identifier", "text": "_asn_ctx", "parent": 242, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 27}}, {"id": 245, "type": "pointer_declarator", "text": "*downlinkPreemption", "parent": 224, "children": [246, 247], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 22}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 4}}, {"id": 247, "type": "field_identifier", "text": "downlinkPreemption", "parent": 245, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 22}}, {"id": 248, "type": "field_declaration", "text": "struct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUSCH;", "parent": 153, "children": [249, 269], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 115, "column": 14}}, {"id": 249, "type": "struct_specifier", "text": "struct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 248, "children": [250, 251], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 115, "column": 2}}, {"id": 250, "type": "struct", "text": "struct", "parent": 249, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 7}}, {"id": 251, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUSCH", "parent": 249, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 31}}, {"id": 252, "type": "field_declaration", "text": "PDCCH_Config__tpc_PUSCH_PR present;", "parent": 249, "children": [253, 254], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 37}}, {"id": 253, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUSCH_PR", "parent": 252, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 28}}, {"id": 254, "type": "field_identifier", "text": "present", "parent": 252, "children": [], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 36}}, {"id": 255, "type": "field_declaration", "text": "union PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;", "parent": 249, "children": [256, 265], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 111, "column": 11}}, {"id": 256, "type": "union_specifier", "text": "union PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t}", "parent": 255, "children": [257, 258], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 111, "column": 3}}, {"id": 257, "type": "union", "text": "union", "parent": 256, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 7}}, {"id": 258, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUSCH_u", "parent": 256, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 33}}, {"id": 259, "type": "field_declaration", "text": "NULL_t\t release;", "parent": 256, "children": [260, 261], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 19}}, {"id": 260, "type": "type_identifier", "text": "NULL_t", "parent": 259, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 9}}, {"id": 261, "type": "field_identifier", "text": "release", "parent": 259, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 18}}, {"id": 262, "type": "field_declaration", "text": "PUSCH_TPC_CommandConfig_t\t setup;", "parent": 256, "children": [263, 264], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 36}}, {"id": 263, "type": "type_identifier", "text": "PUSCH_TPC_CommandConfig_t", "parent": 262, "children": [], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 28}}, {"id": 264, "type": "field_identifier", "text": "setup", "parent": 262, "children": [], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 35}}, {"id": 265, "type": "field_identifier", "text": "choice", "parent": 255, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 10}}, {"id": 266, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 249, "children": [267, 268], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 28}}, {"id": 267, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 266, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 18}}, {"id": 268, "type": "field_identifier", "text": "_asn_ctx", "parent": 266, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 27}}, {"id": 269, "type": "pointer_declarator", "text": "*tpc_PUSCH", "parent": 248, "children": [270, 271], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 13}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 4}}, {"id": 271, "type": "field_identifier", "text": "tpc_PUSCH", "parent": 269, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 13}}, {"id": 272, "type": "field_declaration", "text": "struct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUCCH;", "parent": 153, "children": [273, 293], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 125, "column": 14}}, {"id": 273, "type": "struct_specifier", "text": "struct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 272, "children": [274, 275], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 125, "column": 2}}, {"id": 274, "type": "struct", "text": "struct", "parent": 273, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 7}}, {"id": 275, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUCCH", "parent": 273, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 31}}, {"id": 276, "type": "field_declaration", "text": "PDCCH_Config__tpc_PUCCH_PR present;", "parent": 273, "children": [277, 278], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 37}}, {"id": 277, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUCCH_PR", "parent": 276, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 28}}, {"id": 278, "type": "field_identifier", "text": "present", "parent": 276, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 36}}, {"id": 279, "type": "field_declaration", "text": "union PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;", "parent": 273, "children": [280, 289], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 121, "column": 11}}, {"id": 280, "type": "union_specifier", "text": "union PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t}", "parent": 279, "children": [281, 282], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 121, "column": 3}}, {"id": 281, "type": "union", "text": "union", "parent": 280, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 7}}, {"id": 282, "type": "type_identifier", "text": "PDCCH_Config__tpc_PUCCH_u", "parent": 280, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 33}}, {"id": 283, "type": "field_declaration", "text": "NULL_t\t release;", "parent": 280, "children": [284, 285], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 19}}, {"id": 284, "type": "type_identifier", "text": "NULL_t", "parent": 283, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 9}}, {"id": 285, "type": "field_identifier", "text": "release", "parent": 283, "children": [], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 18}}, {"id": 286, "type": "field_declaration", "text": "PUCCH_TPC_CommandConfig_t\t setup;", "parent": 280, "children": [287, 288], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 36}}, {"id": 287, "type": "type_identifier", "text": "PUCCH_TPC_CommandConfig_t", "parent": 286, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 28}}, {"id": 288, "type": "field_identifier", "text": "setup", "parent": 286, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 35}}, {"id": 289, "type": "field_identifier", "text": "choice", "parent": 279, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 10}}, {"id": 290, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 273, "children": [291, 292], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 28}}, {"id": 291, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 290, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 18}}, {"id": 292, "type": "field_identifier", "text": "_asn_ctx", "parent": 290, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 27}}, {"id": 293, "type": "pointer_declarator", "text": "*tpc_PUCCH", "parent": 272, "children": [294, 295], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 13}}, {"id": 294, "type": "*", "text": "*", "parent": 293, "children": [], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 4}}, {"id": 295, "type": "field_identifier", "text": "tpc_PUCCH", "parent": 293, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 13}}, {"id": 296, "type": "field_declaration", "text": "struct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_SRS;", "parent": 153, "children": [297, 317], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 135, "column": 12}}, {"id": 297, "type": "struct_specifier", "text": "struct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 296, "children": [298, 299], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 135, "column": 2}}, {"id": 298, "type": "struct", "text": "struct", "parent": 297, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 7}}, {"id": 299, "type": "type_identifier", "text": "PDCCH_Config__tpc_SRS", "parent": 297, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 29}}, {"id": 300, "type": "field_declaration", "text": "PDCCH_Config__tpc_SRS_PR present;", "parent": 297, "children": [301, 302], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 35}}, {"id": 301, "type": "type_identifier", "text": "PDCCH_Config__tpc_SRS_PR", "parent": 300, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 26}}, {"id": 302, "type": "field_identifier", "text": "present", "parent": 300, "children": [], "start_point": {"row": 127, "column": 27}, "end_point": {"row": 127, "column": 34}}, {"id": 303, "type": "field_declaration", "text": "union PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;", "parent": 297, "children": [304, 313], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 131, "column": 11}}, {"id": 304, "type": "union_specifier", "text": "union PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t}", "parent": 303, "children": [305, 306], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 131, "column": 3}}, {"id": 305, "type": "union", "text": "union", "parent": 304, "children": [], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 7}}, {"id": 306, "type": "type_identifier", "text": "PDCCH_Config__tpc_SRS_u", "parent": 304, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 31}}, {"id": 307, "type": "field_declaration", "text": "NULL_t\t release;", "parent": 304, "children": [308, 309], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 19}}, {"id": 308, "type": "type_identifier", "text": "NULL_t", "parent": 307, "children": [], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 9}}, {"id": 309, "type": "field_identifier", "text": "release", "parent": 307, "children": [], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 18}}, {"id": 310, "type": "field_declaration", "text": "SRS_TPC_CommandConfig_t\t setup;", "parent": 304, "children": [311, 312], "start_point": {"row": 130, "column": 3}, "end_point": {"row": 130, "column": 34}}, {"id": 311, "type": "type_identifier", "text": "SRS_TPC_CommandConfig_t", "parent": 310, "children": [], "start_point": {"row": 130, "column": 3}, "end_point": {"row": 130, "column": 26}}, {"id": 312, "type": "field_identifier", "text": "setup", "parent": 310, "children": [], "start_point": {"row": 130, "column": 28}, "end_point": {"row": 130, "column": 33}}, {"id": 313, "type": "field_identifier", "text": "choice", "parent": 303, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 10}}, {"id": 314, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 297, "children": [315, 316], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 28}}, {"id": 315, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 314, "children": [], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 18}}, {"id": 316, "type": "field_identifier", "text": "_asn_ctx", "parent": 314, "children": [], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 134, "column": 27}}, {"id": 317, "type": "pointer_declarator", "text": "*tpc_SRS", "parent": 296, "children": [318, 319], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 11}}, {"id": 318, "type": "*", "text": "*", "parent": 317, "children": [], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 4}}, {"id": 319, "type": "field_identifier", "text": "tpc_SRS", "parent": 317, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 11}}, {"id": 320, "type": "field_declaration", "text": "struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList2_r16;", "parent": 153, "children": [321, 335], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 145, "column": 40}}, {"id": 321, "type": "struct_specifier", "text": "struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 320, "children": [322, 323], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 145, "column": 2}}, {"id": 322, "type": "struct", "text": "struct", "parent": 321, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 7}}, {"id": 323, "type": "type_identifier", "text": "PDCCH_Config__controlResourceSetToAddModList2_r16", "parent": 321, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 57}}, {"id": 324, "type": "field_declaration", "text": "A_SEQUENCE_OF(struct ControlResourceSet) list;", "parent": 321, "children": [325, 331], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 48}}, {"id": 325, "type": "macro_type_specifier", "text": "A_SEQUENCE_OF(struct ControlResourceSet)", "parent": 324, "children": [326, 327], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 42}}, {"id": 326, "type": "identifier", "text": "A_SEQUENCE_OF", "parent": 325, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 15}}, {"id": 327, "type": "type_descriptor", "text": "struct ControlResourceSet", "parent": 325, "children": [328], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 41}}, {"id": 328, "type": "struct_specifier", "text": "struct ControlResourceSet", "parent": 327, "children": [329, 330], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 41}}, {"id": 329, "type": "struct", "text": "struct", "parent": 328, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 22}}, {"id": 330, "type": "type_identifier", "text": "ControlResourceSet", "parent": 328, "children": [], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 41}}, {"id": 331, "type": "field_identifier", "text": "list", "parent": 324, "children": [], "start_point": {"row": 141, "column": 43}, "end_point": {"row": 141, "column": 47}}, {"id": 332, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 321, "children": [333, 334], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 28}}, {"id": 333, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 332, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 18}}, {"id": 334, "type": "field_identifier", "text": "_asn_ctx", "parent": 332, "children": [], "start_point": {"row": 144, "column": 19}, "end_point": {"row": 144, "column": 27}}, {"id": 335, "type": "pointer_declarator", "text": "*controlResourceSetToAddModList2_r16", "parent": 320, "children": [336, 337], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 145, "column": 39}}, {"id": 336, "type": "*", "text": "*", "parent": 335, "children": [], "start_point": {"row": 145, "column": 3}, "end_point": {"row": 145, "column": 4}}, {"id": 337, "type": "field_identifier", "text": "controlResourceSetToAddModList2_r16", "parent": 335, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 39}}, {"id": 338, "type": "field_declaration", "text": "struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList_r16;", "parent": 153, "children": [339, 351], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 151, "column": 40}}, {"id": 339, "type": "struct_specifier", "text": "struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 338, "children": [340, 341], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 151, "column": 2}}, {"id": 340, "type": "struct", "text": "struct", "parent": 339, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 7}}, {"id": 341, "type": "type_identifier", "text": "PDCCH_Config__controlResourceSetToReleaseList_r16", "parent": 339, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 57}}, {"id": 342, "type": "field_declaration", "text": "A_SEQUENCE_OF(ControlResourceSetId_r16_t) list;", "parent": 339, "children": [343, 347], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 49}}, {"id": 343, "type": "macro_type_specifier", "text": "A_SEQUENCE_OF(ControlResourceSetId_r16_t)", "parent": 342, "children": [344, 345], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 43}}, {"id": 344, "type": "identifier", "text": "A_SEQUENCE_OF", "parent": 343, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 15}}, {"id": 345, "type": "type_descriptor", "text": "ControlResourceSetId_r16_t", "parent": 343, "children": [346], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 42}}, {"id": 346, "type": "type_identifier", "text": "ControlResourceSetId_r16_t", "parent": 345, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 42}}, {"id": 347, "type": "field_identifier", "text": "list", "parent": 342, "children": [], "start_point": {"row": 147, "column": 44}, "end_point": {"row": 147, "column": 48}}, {"id": 348, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 339, "children": [349, 350], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 28}}, {"id": 349, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 348, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 18}}, {"id": 350, "type": "field_identifier", "text": "_asn_ctx", "parent": 348, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 27}}, {"id": 351, "type": "pointer_declarator", "text": "*controlResourceSetToReleaseList_r16", "parent": 338, "children": [352, 353], "start_point": {"row": 151, "column": 3}, "end_point": {"row": 151, "column": 39}}, {"id": 352, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 151, "column": 3}, "end_point": {"row": 151, "column": 4}}, {"id": 353, "type": "field_identifier", "text": "controlResourceSetToReleaseList_r16", "parent": 351, "children": [], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 39}}, {"id": 354, "type": "field_declaration", "text": "struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModListExt_r16;", "parent": 153, "children": [355, 369], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 157, "column": 36}}, {"id": 355, "type": "struct_specifier", "text": "struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 354, "children": [356, 357], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 157, "column": 2}}, {"id": 356, "type": "struct", "text": "struct", "parent": 355, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 7}}, {"id": 357, "type": "type_identifier", "text": "PDCCH_Config__searchSpacesToAddModListExt_r16", "parent": 355, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 53}}, {"id": 358, "type": "field_declaration", "text": "A_SEQUENCE_OF(struct SearchSpaceExt_r16) list;", "parent": 355, "children": [359, 365], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 48}}, {"id": 359, "type": "macro_type_specifier", "text": "A_SEQUENCE_OF(struct SearchSpaceExt_r16)", "parent": 358, "children": [360, 361], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 42}}, {"id": 360, "type": "identifier", "text": "A_SEQUENCE_OF", "parent": 359, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 15}}, {"id": 361, "type": "type_descriptor", "text": "struct SearchSpaceExt_r16", "parent": 359, "children": [362], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 41}}, {"id": 362, "type": "struct_specifier", "text": "struct SearchSpaceExt_r16", "parent": 361, "children": [363, 364], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 41}}, {"id": 363, "type": "struct", "text": "struct", "parent": 362, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 22}}, {"id": 364, "type": "type_identifier", "text": "SearchSpaceExt_r16", "parent": 362, "children": [], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 41}}, {"id": 365, "type": "field_identifier", "text": "list", "parent": 358, "children": [], "start_point": {"row": 153, "column": 43}, "end_point": {"row": 153, "column": 47}}, {"id": 366, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 355, "children": [367, 368], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 28}}, {"id": 367, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 366, "children": [], "start_point": {"row": 156, "column": 2}, "end_point": {"row": 156, "column": 18}}, {"id": 368, "type": "field_identifier", "text": "_asn_ctx", "parent": 366, "children": [], "start_point": {"row": 156, "column": 19}, "end_point": {"row": 156, "column": 27}}, {"id": 369, "type": "pointer_declarator", "text": "*searchSpacesToAddModListExt_r16", "parent": 354, "children": [370, 371], "start_point": {"row": 157, "column": 3}, "end_point": {"row": 157, "column": 35}}, {"id": 370, "type": "*", "text": "*", "parent": 369, "children": [], "start_point": {"row": 157, "column": 3}, "end_point": {"row": 157, "column": 4}}, {"id": 371, "type": "field_identifier", "text": "searchSpacesToAddModListExt_r16", "parent": 369, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 35}}, {"id": 372, "type": "field_declaration", "text": "struct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *uplinkCancellation_r16;", "parent": 153, "children": [373, 393], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 167, "column": 27}}, {"id": 373, "type": "struct_specifier", "text": "struct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t}", "parent": 372, "children": [374, 375], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 167, "column": 2}}, {"id": 374, "type": "struct", "text": "struct", "parent": 373, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 7}}, {"id": 375, "type": "type_identifier", "text": "PDCCH_Config__uplinkCancellation_r16", "parent": 373, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 44}}, {"id": 376, "type": "field_declaration", "text": "PDCCH_Config__uplinkCancellation_r16_PR present;", "parent": 373, "children": [377, 378], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 50}}, {"id": 377, "type": "type_identifier", "text": "PDCCH_Config__uplinkCancellation_r16_PR", "parent": 376, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 41}}, {"id": 378, "type": "field_identifier", "text": "present", "parent": 376, "children": [], "start_point": {"row": 159, "column": 42}, "end_point": {"row": 159, "column": 49}}, {"id": 379, "type": "field_declaration", "text": "union PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;", "parent": 373, "children": [380, 389], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 163, "column": 11}}, {"id": 380, "type": "union_specifier", "text": "union PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t}", "parent": 379, "children": [381, 382], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 163, "column": 3}}, {"id": 381, "type": "union", "text": "union", "parent": 380, "children": [], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 7}}, {"id": 382, "type": "type_identifier", "text": "PDCCH_Config__uplinkCancellation_r16_u", "parent": 380, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 46}}, {"id": 383, "type": "field_declaration", "text": "NULL_t\t release;", "parent": 380, "children": [384, 385], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 161, "column": 19}}, {"id": 384, "type": "type_identifier", "text": "NULL_t", "parent": 383, "children": [], "start_point": {"row": 161, "column": 3}, "end_point": {"row": 161, "column": 9}}, {"id": 385, "type": "field_identifier", "text": "release", "parent": 383, "children": [], "start_point": {"row": 161, "column": 11}, "end_point": {"row": 161, "column": 18}}, {"id": 386, "type": "field_declaration", "text": "UplinkCancellation_r16_t\t setup;", "parent": 380, "children": [387, 388], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 162, "column": 35}}, {"id": 387, "type": "type_identifier", "text": "UplinkCancellation_r16_t", "parent": 386, "children": [], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 162, "column": 27}}, {"id": 388, "type": "field_identifier", "text": "setup", "parent": 386, "children": [], "start_point": {"row": 162, "column": 29}, "end_point": {"row": 162, "column": 34}}, {"id": 389, "type": "field_identifier", "text": "choice", "parent": 379, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 10}}, {"id": 390, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 373, "children": [391, 392], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 28}}, {"id": 391, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 390, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 18}}, {"id": 392, "type": "field_identifier", "text": "_asn_ctx", "parent": 390, "children": [], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 27}}, {"id": 393, "type": "pointer_declarator", "text": "*uplinkCancellation_r16", "parent": 372, "children": [394, 395], "start_point": {"row": 167, "column": 3}, "end_point": {"row": 167, "column": 26}}, {"id": 394, "type": "*", "text": "*", "parent": 393, "children": [], "start_point": {"row": 167, "column": 3}, "end_point": {"row": 167, "column": 4}}, {"id": 395, "type": "field_identifier", "text": "uplinkCancellation_r16", "parent": 393, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 26}}, {"id": 396, "type": "field_declaration", "text": "long\t*monitoringCapabilityConfig_r16\t/* OPTIONAL */;", "parent": 153, "children": [397, 399], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 53}}, {"id": 397, "type": "sized_type_specifier", "text": "long", "parent": 396, "children": [398], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 5}}, {"id": 398, "type": "long", "text": "long", "parent": 397, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 5}}, {"id": 399, "type": "pointer_declarator", "text": "*monitoringCapabilityConfig_r16", "parent": 396, "children": [400, 401], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 37}}, {"id": 400, "type": "*", "text": "*", "parent": 399, "children": [], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 7}}, {"id": 401, "type": "field_identifier", "text": "monitoringCapabilityConfig_r16", "parent": 399, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 37}}, {"id": 402, "type": "field_declaration", "text": "struct SearchSpaceSwitchConfig_r16\t*searchSpaceSwitchConfig_r16\t/* OPTIONAL */;", "parent": 153, "children": [403, 406], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 80}}, {"id": 403, "type": "struct_specifier", "text": "struct SearchSpaceSwitchConfig_r16", "parent": 402, "children": [404, 405], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 35}}, {"id": 404, "type": "struct", "text": "struct", "parent": 403, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 7}}, {"id": 405, "type": "type_identifier", "text": "SearchSpaceSwitchConfig_r16", "parent": 403, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 35}}, {"id": 406, "type": "pointer_declarator", "text": "*searchSpaceSwitchConfig_r16", "parent": 402, "children": [407, 408], "start_point": {"row": 169, "column": 36}, "end_point": {"row": 169, "column": 64}}, {"id": 407, "type": "*", "text": "*", "parent": 406, "children": [], "start_point": {"row": 169, "column": 36}, "end_point": {"row": 169, "column": 37}}, {"id": 408, "type": "field_identifier", "text": "searchSpaceSwitchConfig_r16", "parent": 406, "children": [], "start_point": {"row": 169, "column": 37}, "end_point": {"row": 169, "column": 64}}, {"id": 409, "type": "field_declaration", "text": "asn_struct_ctx_t _asn_ctx;", "parent": 153, "children": [410, 411], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 27}}, {"id": 410, "type": "type_identifier", "text": "asn_struct_ctx_t", "parent": 409, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 17}}, {"id": 411, "type": "field_identifier", "text": "_asn_ctx", "parent": 409, "children": [], "start_point": {"row": 172, "column": 18}, "end_point": {"row": 172, "column": 26}}, {"id": 412, "type": "type_identifier", "text": "PDCCH_Config_t", "parent": 151, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 16}}, {"id": 413, "type": "declaration", "text": "extern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;", "parent": 54, "children": [414, 416, 417], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 50}}, {"id": 414, "type": "storage_class_specifier", "text": "extern", "parent": 413, "children": [415], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 6}}, {"id": 415, "type": "extern", "text": "extern", "parent": 414, "children": [], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 6}}, {"id": 416, "type": "type_identifier", "text": "asn_TYPE_descriptor_t", "parent": 413, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 28}}, {"id": 417, "type": "identifier", "text": "asn_DEF_PDCCH_Config", "parent": 413, "children": [], "start_point": {"row": 177, "column": 29}, "end_point": {"row": 177, "column": 49}}, {"id": 418, "type": "declaration", "text": "extern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;", "parent": 54, "children": [419, 421, 422], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 61}}, {"id": 419, "type": "storage_class_specifier", "text": "extern", "parent": 418, "children": [420], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 6}}, {"id": 420, "type": "extern", "text": "extern", "parent": 419, "children": [], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 6}}, {"id": 421, "type": "type_identifier", "text": "asn_SEQUENCE_specifics_t", "parent": 418, "children": [], "start_point": {"row": 178, "column": 7}, "end_point": {"row": 178, "column": 31}}, {"id": 422, "type": "identifier", "text": "asn_SPC_PDCCH_Config_specs_1", "parent": 418, "children": [], "start_point": {"row": 178, "column": 32}, "end_point": {"row": 178, "column": 60}}, {"id": 423, "type": "declaration", "text": "extern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];", "parent": 54, "children": [424, 426, 427], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 52}}, {"id": 424, "type": "storage_class_specifier", "text": "extern", "parent": 423, "children": [425], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 6}}, {"id": 425, "type": "extern", "text": "extern", "parent": 424, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 6}}, {"id": 426, "type": "type_identifier", "text": "asn_TYPE_member_t", "parent": 423, "children": [], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 24}}, {"id": 427, "type": "array_declarator", "text": "asn_MBR_PDCCH_Config_1[14]", "parent": 423, "children": [428, 429], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 51}}, {"id": 428, "type": "identifier", "text": "asn_MBR_PDCCH_Config_1", "parent": 427, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 47}}, {"id": 429, "type": "number_literal", "text": "14", "parent": 427, "children": [], "start_point": {"row": 179, "column": 48}, "end_point": {"row": 179, "column": 50}}, {"id": 430, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 54, "children": [431, 432, 433], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 18}}, {"id": 431, "type": "#ifdef", "text": "#ifdef", "parent": 430, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 6}}, {"id": 432, "type": "identifier", "text": "__cplusplus", "parent": 430, "children": [], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 18}}, {"id": 433, "type": "#endif", "text": "", "parent": 430, "children": [], "start_point": {"row": 181, "column": 18}, "end_point": {"row": 181, "column": 18}}, {"id": 434, "type": "#endif", "text": "#endif", "parent": 51, "children": [], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 183, "column": 6}}, {"id": 435, "type": "preproc_include", "text": "#include \"SearchSpaceSwitchConfig-r16.h\"\n", "parent": 0, "children": [436, 437], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 187, "column": 0}}, {"id": 436, "type": "#include", "text": "#include", "parent": 435, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 8}}, {"id": 437, "type": "string_literal", "text": "\"SearchSpaceSwitchConfig-r16.h\"", "parent": 435, "children": [], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 40}}, {"id": 438, "type": "preproc_include", "text": "#include \"ControlResourceSet.h\"\n", "parent": 0, "children": [439, 440], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 188, "column": 0}}, {"id": 439, "type": "#include", "text": "#include", "parent": 438, "children": [], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 8}}, {"id": 440, "type": "string_literal", "text": "\"ControlResourceSet.h\"", "parent": 438, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 31}}, {"id": 441, "type": "preproc_include", "text": "#include \"SearchSpace.h\"\n", "parent": 0, "children": [442, 443], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 189, "column": 0}}, {"id": 442, "type": "#include", "text": "#include", "parent": 441, "children": [], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 8}}, {"id": 443, "type": "string_literal", "text": "\"SearchSpace.h\"", "parent": 441, "children": [], "start_point": {"row": 188, "column": 9}, "end_point": {"row": 188, "column": 24}}, {"id": 444, "type": "preproc_include", "text": "#include \"SearchSpaceExt-r16.h\"\n", "parent": 0, "children": [445, 446], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 190, "column": 0}}, {"id": 445, "type": "#include", "text": "#include", "parent": 444, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 8}}, {"id": 446, "type": "string_literal", "text": "\"SearchSpaceExt-r16.h\"", "parent": 444, "children": [], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 31}}, {"id": 447, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 6}}, {"id": 448, "type": "preproc_include", "text": "#include \"asn_internal.h\"\n", "parent": null, "children": [449, 450], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 193, "column": 0}}, {"id": 449, "type": "#include", "text": "#include", "parent": 448, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 8}}, {"id": 450, "type": "string_literal", "text": "\"asn_internal.h\"", "parent": 448, "children": [], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 25}}]}, "node_categories": {"declarations": {"functions": [], "variables": [59, 72, 85, 98, 111, 124, 151, 156, 160, 168, 174, 178, 184, 190, 194, 202, 208, 212, 218, 224, 228, 231, 235, 238, 242, 248, 252, 255, 259, 262, 266, 272, 276, 279, 283, 286, 290, 296, 300, 303, 307, 310, 314, 320, 324, 332, 338, 342, 348, 354, 358, 366, 372, 376, 379, 383, 386, 390, 396, 402, 409, 413, 418, 423], "classes": [139, 140, 142, 143, 145, 146, 148, 149, 153, 154, 157, 158, 164, 165, 175, 176, 191, 192, 198, 199, 209, 210, 225, 226, 232, 233, 249, 250, 256, 257, 273, 274, 280, 281, 297, 298, 304, 305, 321, 322, 328, 329, 339, 340, 355, 356, 362, 363, 373, 374, 380, 381, 403, 404, 414, 419, 424], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37, 39, 40, 42, 43, 45, 46, 48, 49, 435, 436, 438, 439, 441, 442, 444, 445, 448, 449], "modules": [], "enums": [61, 62, 64, 65, 67, 69, 74, 75, 77, 78, 80, 82, 87, 88, 90, 91, 93, 95, 100, 101, 103, 104, 106, 108, 113, 114, 116, 117, 119, 121, 126, 127, 129, 130, 134]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 51, 52, 53, 54, 63, 66, 68, 70, 71, 76, 79, 81, 83, 84, 89, 92, 94, 96, 97, 102, 105, 107, 109, 110, 115, 118, 120, 122, 123, 128, 131, 135, 138, 141, 144, 147, 150, 155, 159, 161, 162, 166, 167, 169, 170, 173, 177, 179, 180, 182, 183, 185, 186, 189, 193, 195, 196, 200, 201, 203, 204, 207, 211, 213, 214, 216, 217, 219, 220, 223, 227, 229, 230, 234, 236, 237, 239, 240, 241, 243, 244, 247, 251, 253, 254, 258, 260, 261, 263, 264, 265, 267, 268, 271, 275, 277, 278, 282, 284, 285, 287, 288, 289, 291, 292, 295, 299, 301, 302, 306, 308, 309, 311, 312, 313, 315, 316, 319, 323, 325, 326, 330, 331, 333, 334, 337, 341, 343, 344, 346, 347, 349, 350, 353, 357, 359, 360, 364, 365, 367, 368, 371, 375, 377, 378, 382, 384, 385, 387, 388, 389, 391, 392, 395, 397, 401, 405, 408, 410, 411, 412, 416, 417, 421, 422, 426, 428, 430, 431, 432, 433, 434, 447], "returns": [], "exceptions": []}, "expressions": {"calls": [57], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 56, 133, 137, 429, 437, 440, 443, 446, 450], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 139, "universal_type": "class", "name": "SearchSpaceSwitchConfig_r16", "text_snippet": "struct SearchSpaceSwitchConfig_r16"}, {"node_id": 140, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 142, "universal_type": "class", "name": "ControlResourceSet", "text_snippet": "struct ControlResourceSet"}, {"node_id": 143, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 145, "universal_type": "class", "name": "SearchSpace", "text_snippet": "struct SearchSpace"}, {"node_id": 146, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 148, "universal_type": "class", "name": "SearchSpaceExt_r16", "text_snippet": "struct SearchSpaceExt_r16"}, {"node_id": 149, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 153, "universal_type": "class", "name": "PDCCH_Config", "text_snippet": "struct PDCCH_Config {\n\tstruct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct "}, {"node_id": 154, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 157, "universal_type": "class", "name": "PDCCH_Config__controlResourceSetToAddModList", "text_snippet": "struct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) lis"}, {"node_id": 158, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 164, "universal_type": "class", "name": "ControlResourceSet", "text_snippet": "struct ControlResourceSet"}, {"node_id": 165, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 175, "universal_type": "class", "name": "PDCCH_Config__controlResourceSetToReleaseList", "text_snippet": "struct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;"}, {"node_id": 176, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 191, "universal_type": "class", "name": "PDCCH_Config__searchSpacesToAddModList", "text_snippet": "struct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Co"}, {"node_id": 192, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 198, "universal_type": "class", "name": "SearchSpace", "text_snippet": "struct SearchSpace"}, {"node_id": 199, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 209, "universal_type": "class", "name": "PDCCH_Config__searchSpacesToReleaseList", "text_snippet": "struct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Cont"}, {"node_id": 210, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 225, "universal_type": "class", "name": "PDCCH_Config__downlinkPreemption", "text_snippet": "struct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDC"}, {"node_id": 226, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 232, "universal_type": "class", "name": "PDCCH_Config__downlinkPreemption_u", "text_snippet": "union PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t}"}, {"node_id": 233, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 249, "universal_type": "class", "name": "PDCCH_Config__tpc_PUSCH", "text_snippet": "struct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUS"}, {"node_id": 250, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 256, "universal_type": "class", "name": "PDCCH_Config__tpc_PUSCH_u", "text_snippet": "union PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t}"}, {"node_id": 257, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 273, "universal_type": "class", "name": "PDCCH_Config__tpc_PUCCH", "text_snippet": "struct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUC"}, {"node_id": 274, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 280, "universal_type": "class", "name": "PDCCH_Config__tpc_PUCCH_u", "text_snippet": "union PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t}"}, {"node_id": 281, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 297, "universal_type": "class", "name": "PDCCH_Config__tpc_SRS", "text_snippet": "struct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {"}, {"node_id": 298, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 304, "universal_type": "class", "name": "PDCCH_Config__tpc_SRS_u", "text_snippet": "union PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t}"}, {"node_id": 305, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 321, "universal_type": "class", "name": "PDCCH_Config__controlResourceSetToAddModList2_r16", "text_snippet": "struct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet"}, {"node_id": 322, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 328, "universal_type": "class", "name": "ControlResourceSet", "text_snippet": "struct ControlResourceSet"}, {"node_id": 329, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 339, "universal_type": "class", "name": "PDCCH_Config__controlResourceSetToReleaseList_r16", "text_snippet": "struct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_"}, {"node_id": 340, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 355, "universal_type": "class", "name": "PDCCH_Config__searchSpacesToAddModListExt_r16", "text_snippet": "struct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) li"}, {"node_id": 356, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 362, "universal_type": "class", "name": "SearchSpaceExt_r16", "text_snippet": "struct SearchSpaceExt_r16"}, {"node_id": 363, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 373, "universal_type": "class", "name": "PDCCH_Config__uplinkCancellation_r16", "text_snippet": "struct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tu"}, {"node_id": 374, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 380, "universal_type": "class", "name": "PDCCH_Config__uplinkCancellation_r16_u", "text_snippet": "union PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setu"}, {"node_id": 381, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 403, "universal_type": "class", "name": "SearchSpaceSwitchConfig_r16", "text_snippet": "struct SearchSpaceSwitchConfig_r16"}, {"node_id": 404, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 414, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 419, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 424, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include \"asn_application.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"NativeEnumerated.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"asn_SEQUENCE_OF.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"constr_SEQUENCE_OF.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"ControlResourceSetId.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"SearchSpaceId.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"NULL.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"DownlinkPreemption.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"constr_CHOICE.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"PUSCH-TPC-CommandConfig.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"PUCCH-TPC-CommandConfig.h\"\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"SRS-TPC-CommandConfig.h\"\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include \"ControlResourceSetId-r16.h\"\n"}, {"node_id": 43, "text": "#include"}, {"node_id": 45, "text": "#include \"UplinkCancellation-r16.h\"\n"}, {"node_id": 46, "text": "#include"}, {"node_id": 48, "text": "#include \"constr_SEQUENCE.h\"\n"}, {"node_id": 49, "text": "#include"}, {"node_id": 435, "text": "#include \"SearchSpaceSwitchConfig-r16.h\"\n"}, {"node_id": 436, "text": "#include"}, {"node_id": 438, "text": "#include \"ControlResourceSet.h\"\n"}, {"node_id": 439, "text": "#include"}, {"node_id": 441, "text": "#include \"SearchSpace.h\"\n"}, {"node_id": 442, "text": "#include"}, {"node_id": 444, "text": "#include \"SearchSpaceExt-r16.h\"\n"}, {"node_id": 445, "text": "#include"}, {"node_id": 448, "text": "#include \"asn_internal.h\"\n"}, {"node_id": 449, "text": "#include"}]}, "original_source_code": "/*\n * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)\n * From ASN.1 module \"NR-RRC-Definitions\"\n * \tfound in \"NR-RRC-Definitions.asn\"\n * \t`asn1c -fcompound-names -no-gen-example -pdu=all`\n */\n\n#ifndef\t_PDCCH_Config_H_\n#define\t_PDCCH_Config_H_\n\n\n#include \"asn_application.h\"\n\n/* Including external dependencies */\n#include \"NativeEnumerated.h\"\n#include \"asn_SEQUENCE_OF.h\"\n#include \"constr_SEQUENCE_OF.h\"\n#include \"ControlResourceSetId.h\"\n#include \"SearchSpaceId.h\"\n#include \"NULL.h\"\n#include \"DownlinkPreemption.h\"\n#include \"constr_CHOICE.h\"\n#include \"PUSCH-TPC-CommandConfig.h\"\n#include \"PUCCH-TPC-CommandConfig.h\"\n#include \"SRS-TPC-CommandConfig.h\"\n#include \"ControlResourceSetId-r16.h\"\n#include \"UplinkCancellation-r16.h\"\n#include \"constr_SEQUENCE.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Dependencies */\ntypedef enum PDCCH_Config__downlinkPreemption_PR {\n\tPDCCH_Config__downlinkPreemption_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__downlinkPreemption_PR_release,\n\tPDCCH_Config__downlinkPreemption_PR_setup\n} PDCCH_Config__downlinkPreemption_PR;\ntypedef enum PDCCH_Config__tpc_PUSCH_PR {\n\tPDCCH_Config__tpc_PUSCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUSCH_PR_release,\n\tPDCCH_Config__tpc_PUSCH_PR_setup\n} PDCCH_Config__tpc_PUSCH_PR;\ntypedef enum PDCCH_Config__tpc_PUCCH_PR {\n\tPDCCH_Config__tpc_PUCCH_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_PUCCH_PR_release,\n\tPDCCH_Config__tpc_PUCCH_PR_setup\n} PDCCH_Config__tpc_PUCCH_PR;\ntypedef enum PDCCH_Config__tpc_SRS_PR {\n\tPDCCH_Config__tpc_SRS_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__tpc_SRS_PR_release,\n\tPDCCH_Config__tpc_SRS_PR_setup\n} PDCCH_Config__tpc_SRS_PR;\ntypedef enum PDCCH_Config__uplinkCancellation_r16_PR {\n\tPDCCH_Config__uplinkCancellation_r16_PR_NOTHING,\t/* No components present */\n\tPDCCH_Config__uplinkCancellation_r16_PR_release,\n\tPDCCH_Config__uplinkCancellation_r16_PR_setup\n} PDCCH_Config__uplinkCancellation_r16_PR;\ntypedef enum PDCCH_Config__monitoringCapabilityConfig_r16 {\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r15monitoringcapability\t= 0,\n\tPDCCH_Config__monitoringCapabilityConfig_r16_r16monitoringcapability\t= 1\n} e_PDCCH_Config__monitoringCapabilityConfig_r16;\n\n/* Forward declarations */\nstruct SearchSpaceSwitchConfig_r16;\nstruct ControlResourceSet;\nstruct SearchSpace;\nstruct SearchSpaceExt_r16;\n\n/* PDCCH-Config */\ntypedef struct PDCCH_Config {\n\tstruct PDCCH_Config__controlResourceSetToAddModList {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList;\n\tstruct PDCCH_Config__searchSpacesToAddModList {\n\t\tA_SEQUENCE_OF(struct SearchSpace) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModList;\n\tstruct PDCCH_Config__searchSpacesToReleaseList {\n\t\tA_SEQUENCE_OF(SearchSpaceId_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToReleaseList;\n\tstruct PDCCH_Config__downlinkPreemption {\n\t\tPDCCH_Config__downlinkPreemption_PR present;\n\t\tunion PDCCH_Config__downlinkPreemption_u {\n\t\t\tNULL_t\t release;\n\t\t\tDownlinkPreemption_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *downlinkPreemption;\n\tstruct PDCCH_Config__tpc_PUSCH {\n\t\tPDCCH_Config__tpc_PUSCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUSCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUSCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUSCH;\n\tstruct PDCCH_Config__tpc_PUCCH {\n\t\tPDCCH_Config__tpc_PUCCH_PR present;\n\t\tunion PDCCH_Config__tpc_PUCCH_u {\n\t\t\tNULL_t\t release;\n\t\t\tPUCCH_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_PUCCH;\n\tstruct PDCCH_Config__tpc_SRS {\n\t\tPDCCH_Config__tpc_SRS_PR present;\n\t\tunion PDCCH_Config__tpc_SRS_u {\n\t\t\tNULL_t\t release;\n\t\t\tSRS_TPC_CommandConfig_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *tpc_SRS;\n\t/*\n\t * This type is extensible,\n\t * possible extensions are below.\n\t */\n\tstruct PDCCH_Config__controlResourceSetToAddModList2_r16 {\n\t\tA_SEQUENCE_OF(struct ControlResourceSet) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToAddModList2_r16;\n\tstruct PDCCH_Config__controlResourceSetToReleaseList_r16 {\n\t\tA_SEQUENCE_OF(ControlResourceSetId_r16_t) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *controlResourceSetToReleaseList_r16;\n\tstruct PDCCH_Config__searchSpacesToAddModListExt_r16 {\n\t\tA_SEQUENCE_OF(struct SearchSpaceExt_r16) list;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *searchSpacesToAddModListExt_r16;\n\tstruct PDCCH_Config__uplinkCancellation_r16 {\n\t\tPDCCH_Config__uplinkCancellation_r16_PR present;\n\t\tunion PDCCH_Config__uplinkCancellation_r16_u {\n\t\t\tNULL_t\t release;\n\t\t\tUplinkCancellation_r16_t\t setup;\n\t\t} choice;\n\t\t\n\t\t/* Context for parsing across buffer boundaries */\n\t\tasn_struct_ctx_t _asn_ctx;\n\t} *uplinkCancellation_r16;\n\tlong\t*monitoringCapabilityConfig_r16\t/* OPTIONAL */;\n\tstruct SearchSpaceSwitchConfig_r16\t*searchSpaceSwitchConfig_r16\t/* OPTIONAL */;\n\t\n\t/* Context for parsing across buffer boundaries */\n\tasn_struct_ctx_t _asn_ctx;\n} PDCCH_Config_t;\n\n/* Implementation */\n/* extern asn_TYPE_descriptor_t asn_DEF_monitoringCapabilityConfig_r16_32;\t// (Use -fall-defs-global to expose) */\nextern asn_TYPE_descriptor_t asn_DEF_PDCCH_Config;\nextern asn_SEQUENCE_specifics_t asn_SPC_PDCCH_Config_specs_1;\nextern asn_TYPE_member_t asn_MBR_PDCCH_Config_1[14];\n\n#ifdef __cplusplus\n}\n#endif\n\n/* Referred external types */\n#include \"SearchSpaceSwitchConfig-r16.h\"\n#include \"ControlResourceSet.h\"\n#include \"SearchSpace.h\"\n#include \"SearchSpaceExt-r16.h\"\n\n#endif\t/* _PDCCH_Config_H_ */\n#include \"asn_internal.h\"\n"}
80,848
c
/** * Copyright (C) 2016-2020 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located 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 PROFILE_TRACE_DOT_H #define PROFILE_TRACE_DOT_H #include "xocl/core/device.h" #include "xocl/core/event.h" namespace xdp { namespace opencl_trace { void load() ; } // end namespace opencl_trace namespace device_offload { void load() ; } // end namespace device_offload } // end namespace xdp namespace xocl { namespace profile { // Trace support for task that go through the command queues template <typename F, typename ...Args> inline void set_event_action(xocl::event* e, F&& f, Args&&... args) { if (xrt_core::config::get_timeline_trace() || xrt_core::config::get_opencl_trace()) e->set_profile_action(f(std::forward<Args>(args)...)) ; } // Class for logging all OpenCL APIs class OpenCLAPILogger { private: uint64_t m_funcid ; const char* m_name = nullptr ; uint64_t m_address = 0 ; public: OpenCLAPILogger(const char* function) ; OpenCLAPILogger(const char* function, uint64_t address) ; ~OpenCLAPILogger() ; } ; // Functions used by the host trace plugin void log_dependency(uint64_t id, uint64_t dependency) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_read(cl_mem buffer) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_write(cl_mem buffer) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_map(cl_mem buffer, cl_map_flags flags) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_ndrange_migrate(cl_event event, cl_kernel kernel) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_ndrange(cl_event event, cl_kernel kernel) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_unmap(cl_mem buffer) ; std::function<void (xocl::event*, cl_int, const std::string&)> action_copy(cl_mem src_buffer, cl_mem dst_buffer) ; // Functions used by the device trace plugin void flush_device(xrt_xocl::device* handle) ; void update_device(xrt_xocl::device* handle) ; } // end namespace profile } // end namespace xocl #define PROFILE_LOG_FUNCTION_CALL \ xocl::profile::OpenCLAPILogger profileObject(__func__); #define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \ xocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q)); #endif
39.18
77
(translation_unit) "/**\n * Copyright (C) 2016-2020 Xilinx, Inc\n *\n * Licensed under the Apache License, Version 2.0 (the "License"). You may\n * not use this file except in compliance with the License. A copy of the\n * License is located at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n */\n\n#ifndef PROFILE_TRACE_DOT_H\n#define PROFILE_TRACE_DOT_H\n\n#include "xocl/core/device.h"\n#include "xocl/core/event.h"\n\nnamespace xdp {\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace device_offload {\n void load() ;\n} // end namespace device_offload\n\n} // end namespace xdp\n\nnamespace xocl {\n namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n } // end namespace profile\n\n} // end namespace xocl\n\n#define PROFILE_LOG_FUNCTION_CALL \\nxocl::profile::OpenCLAPILogger profileObject(__func__);\n#define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \\nxocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));\n\n#endif\n" (comment) "/**\n * Copyright (C) 2016-2020 Xilinx, Inc\n *\n * Licensed under the Apache License, Version 2.0 (the "License"). You may\n * not use this file except in compliance with the License. A copy of the\n * License is located at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n */" (preproc_ifdef) "#ifndef PROFILE_TRACE_DOT_H\n#define PROFILE_TRACE_DOT_H\n\n#include "xocl/core/device.h"\n#include "xocl/core/event.h"\n\nnamespace xdp {\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace device_offload {\n void load() ;\n} // end namespace device_offload\n\n} // end namespace xdp\n\nnamespace xocl {\n namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n } // end namespace profile\n\n} // end namespace xocl\n\n#define PROFILE_LOG_FUNCTION_CALL \\nxocl::profile::OpenCLAPILogger profileObject(__func__);\n#define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \\nxocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));\n\n#endif" (#ifndef) "#ifndef" (identifier) "PROFILE_TRACE_DOT_H" (preproc_def) "#define PROFILE_TRACE_DOT_H\n" (#define) "#define" (identifier) "PROFILE_TRACE_DOT_H" (preproc_include) "#include "xocl/core/device.h"\n" (#include) "#include" (string_literal) ""xocl/core/device.h"" (") """ (string_content) "xocl/core/device.h" (") """ (preproc_include) "#include "xocl/core/event.h"\n" (#include) "#include" (string_literal) ""xocl/core/event.h"" (") """ (string_content) "xocl/core/event.h" (") """ (function_definition) "namespace xdp {\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace device_offload {\n void load() ;\n} // end namespace device_offload\n\n}" (type_identifier) "namespace" (identifier) "xdp" (compound_statement) "{\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace device_offload {\n void load() ;\n} // end namespace device_offload\n\n}" ({) "{" (function_definition) "namespace opencl_trace {\n void load() ;\n}" (type_identifier) "namespace" (identifier) "opencl_trace" (compound_statement) "{\n void load() ;\n}" ({) "{" (declaration) "void load() ;" (primitive_type) "void" (function_declarator) "load()" (identifier) "load" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// end namespace opencl_trace" (function_definition) "namespace device_offload {\n void load() ;\n}" (type_identifier) "namespace" (identifier) "device_offload" (compound_statement) "{\n void load() ;\n}" ({) "{" (declaration) "void load() ;" (primitive_type) "void" (function_declarator) "load()" (identifier) "load" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// end namespace device_offload" (}) "}" (comment) "// end namespace xdp" (function_definition) "namespace xocl {\n namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n } // end namespace profile\n\n}" (type_identifier) "namespace" (identifier) "xocl" (compound_statement) "{\n namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n } // end namespace profile\n\n}" ({) "{" (function_definition) "namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n }" (type_identifier) "namespace" (identifier) "profile" (compound_statement) "{\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n }" ({) "{" (comment) "// Trace support for task that go through the command queues" (expression_statement) "template <typename F, typename ...Args>\n inline" (comma_expression) "template <typename F, typename ...Args>\n inline" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "F" (identifier) "F" (,) "," (binary_expression) "typename ...Args>\n inline" (identifier) "typename" (ERROR) "...Args" (...) "..." (identifier) "Args" (>) ">" (identifier) "inline" (;) "" (function_definition) "void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }" (primitive_type) "void" (function_declarator) "set_event_action(xocl::event* e, F&& f, Args&&... args)" (identifier) "set_event_action" (parameter_list) "(xocl::event* e, F&& f, Args&&... args)" (() "(" (parameter_declaration) "xocl::event* e" (type_identifier) "xocl" (ERROR) "::event" (:) ":" (:) ":" (identifier) "event" (pointer_declarator) "* e" (*) "*" (identifier) "e" (,) "," (parameter_declaration) "F&& f" (type_identifier) "F" (ERROR) "&&" (&&) "&&" (identifier) "f" (,) "," (parameter_declaration) "Args&&... args" (type_identifier) "Args" (ERROR) "&&..." (&&) "&&" (...) "..." (identifier) "args" ()) ")" (compound_statement) "{\n if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;\n }" ({) "{" (if_statement) "if (xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())\n e->set_profile_action(f(std::forward<Args>(args)...)) ;" (if) "if" (parenthesized_expression) "(xrt_core::config::get_timeline_trace() ||\n xrt_core::config::get_opencl_trace())" (() "(" (ERROR) "xrt_core::config::get_timeline_trace() ||\n xrt_core::config::" (identifier) "xrt_core" (:) ":" (:) ":" (identifier) "config" (:) ":" (:) ":" (binary_expression) "get_timeline_trace() ||\n xrt_core" (call_expression) "get_timeline_trace()" (identifier) "get_timeline_trace" (argument_list) "()" (() "(" ()) ")" (||) "||" (identifier) "xrt_core" (:) ":" (:) ":" (identifier) "config" (:) ":" (:) ":" (call_expression) "get_opencl_trace()" (identifier) "get_opencl_trace" (argument_list) "()" (() "(" ()) ")" ()) ")" (expression_statement) "e->set_profile_action(f(std::forward<Args>(args)...)) ;" (call_expression) "e->set_profile_action(f(std::forward<Args>(args)...))" (field_expression) "e->set_profile_action" (identifier) "e" (->) "->" (field_identifier) "set_profile_action" (argument_list) "(f(std::forward<Args>(args)...))" (() "(" (call_expression) "f(std::forward<Args>(args)...)" (identifier) "f" (argument_list) "(std::forward<Args>(args)...)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "forward<Args>(args)" (binary_expression) "forward<Args" (identifier) "forward" (<) "<" (identifier) "Args" (>) ">" (parenthesized_expression) "(args)" (() "(" (identifier) "args" ()) ")" (ERROR) "..." (...) "..." ()) ")" ()) ")" (;) ";" (}) "}" (comment) "// Class for logging all OpenCL APIs" (function_definition) "class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n }" (type_identifier) "class" (identifier) "OpenCLAPILogger" (compound_statement) "{\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n }" ({) "{" (labeled_statement) "private:\n uint64_t m_funcid ;" (statement_identifier) "private" (:) ":" (declaration) "uint64_t m_funcid ;" (primitive_type) "uint64_t" (identifier) "m_funcid" (;) ";" (declaration) "const char* m_name = nullptr ;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* m_name = nullptr" (pointer_declarator) "* m_name" (*) "*" (identifier) "m_name" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "uint64_t m_address = 0 ;" (primitive_type) "uint64_t" (init_declarator) "m_address = 0" (identifier) "m_address" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;" (statement_identifier) "public" (:) ":" (declaration) "OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;" (macro_type_specifier) "OpenCLAPILogger(const char* function)" (identifier) "OpenCLAPILogger" (() "(" (type_descriptor) "const char*" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "function" (identifier) "function" ()) ")" (ERROR) ";" (;) ";" (function_declarator) "OpenCLAPILogger(const char* function, uint64_t address)" (identifier) "OpenCLAPILogger" (parameter_list) "(const char* function, uint64_t address)" (() "(" (parameter_declaration) "const char* function" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* function" (*) "*" (identifier) "function" (,) "," (parameter_declaration) "uint64_t address" (primitive_type) "uint64_t" (identifier) "address" ()) ")" (;) ";" (expression_statement) "~OpenCLAPILogger() ;" (unary_expression) "~OpenCLAPILogger()" (~) "~" (call_expression) "OpenCLAPILogger()" (identifier) "OpenCLAPILogger" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// Functions used by the host trace plugin" (declaration) "void log_dependency(uint64_t id, uint64_t dependency) ;" (primitive_type) "void" (function_declarator) "log_dependency(uint64_t id, uint64_t dependency)" (identifier) "log_dependency" (parameter_list) "(uint64_t id, uint64_t dependency)" (() "(" (parameter_declaration) "uint64_t id" (primitive_type) "uint64_t" (identifier) "id" (,) "," (parameter_declaration) "uint64_t dependency" (primitive_type) "uint64_t" (identifier) "dependency" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_read(cl_mem buffer)" (identifier) "action_read" (argument_list) "(cl_mem buffer)" (() "(" (identifier) "cl_mem" (ERROR) "buffer" (identifier) "buffer" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_write(cl_mem buffer)" (identifier) "action_write" (argument_list) "(cl_mem buffer)" (() "(" (identifier) "cl_mem" (ERROR) "buffer" (identifier) "buffer" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_map(cl_mem buffer, cl_map_flags flags)" (identifier) "action_map" (argument_list) "(cl_mem buffer, cl_map_flags flags)" (() "(" (identifier) "cl_mem" (ERROR) "buffer" (identifier) "buffer" (,) "," (identifier) "cl_map_flags" (ERROR) "flags" (identifier) "flags" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_migrate(cl_mem mem0, cl_mem_migration_flags flags)" (identifier) "action_migrate" (argument_list) "(cl_mem mem0, cl_mem_migration_flags flags)" (() "(" (identifier) "cl_mem" (ERROR) "mem0" (identifier) "mem0" (,) "," (identifier) "cl_mem_migration_flags" (ERROR) "flags" (identifier) "flags" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_ndrange_migrate(cl_event event, cl_kernel kernel)" (identifier) "action_ndrange_migrate" (argument_list) "(cl_event event, cl_kernel kernel)" (() "(" (identifier) "cl_event" (ERROR) "event" (identifier) "event" (,) "," (identifier) "cl_kernel" (ERROR) "kernel" (identifier) "kernel" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_ndrange(cl_event event, cl_kernel kernel)" (identifier) "action_ndrange" (argument_list) "(cl_event event, cl_kernel kernel)" (() "(" (identifier) "cl_event" (ERROR) "event" (identifier) "event" (,) "," (identifier) "cl_kernel" (ERROR) "kernel" (identifier) "kernel" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_unmap(cl_mem buffer)" (identifier) "action_unmap" (argument_list) "(cl_mem buffer)" (() "(" (identifier) "cl_mem" (ERROR) "buffer" (identifier) "buffer" ()) ")" (;) ";" (labeled_statement) "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer)" (binary_expression) "function<void (xocl::event*, cl_int, const std::string&)" (identifier) "function" (<) "<" (call_expression) "void (xocl::event*, cl_int, const std::string&)" (identifier) "void" (argument_list) "(xocl::event*, cl_int, const std::string&)" (() "(" (ERROR) "xocl::" (identifier) "xocl" (:) ":" (:) ":" (binary_expression) "event*, cl_int" (identifier) "event" (*) "*" (ERROR) "," (,) "," (identifier) "cl_int" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" ()) ")" (>) ">" (call_expression) "action_copy(cl_mem src_buffer, cl_mem dst_buffer)" (identifier) "action_copy" (argument_list) "(cl_mem src_buffer, cl_mem dst_buffer)" (() "(" (ERROR) "cl_mem" (identifier) "cl_mem" (identifier) "src_buffer" (,) "," (ERROR) "cl_mem" (identifier) "cl_mem" (identifier) "dst_buffer" ()) ")" (;) ";" (comment) "// Functions used by the device trace plugin" (declaration) "void flush_device(xrt_xocl::device* handle) ;" (primitive_type) "void" (function_declarator) "flush_device(xrt_xocl::device* handle)" (identifier) "flush_device" (parameter_list) "(xrt_xocl::device* handle)" (() "(" (parameter_declaration) "xrt_xocl::device* handle" (type_identifier) "xrt_xocl" (ERROR) "::device" (:) ":" (:) ":" (identifier) "device" (pointer_declarator) "* handle" (*) "*" (identifier) "handle" ()) ")" (;) ";" (declaration) "void update_device(xrt_xocl::device* handle) ;" (primitive_type) "void" (function_declarator) "update_device(xrt_xocl::device* handle)" (identifier) "update_device" (parameter_list) "(xrt_xocl::device* handle)" (() "(" (parameter_declaration) "xrt_xocl::device* handle" (type_identifier) "xrt_xocl" (ERROR) "::device" (:) ":" (:) ":" (identifier) "device" (pointer_declarator) "* handle" (*) "*" (identifier) "handle" ()) ")" (;) ";" (}) "}" (comment) "// end namespace profile" (}) "}" (comment) "// end namespace xocl" (preproc_def) "#define PROFILE_LOG_FUNCTION_CALL \\nxocl::profile::OpenCLAPILogger profileObject(__func__);\n" (#define) "#define" (identifier) "PROFILE_LOG_FUNCTION_CALL" (preproc_arg) "xocl::profile::OpenCLAPILogger profileObject(__func__);" (preproc_function_def) "#define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \\nxocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));\n" (#define) "#define" (identifier) "PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE" (preproc_params) "(Q)" (() "(" (identifier) "Q" ()) ")" (preproc_arg) "xocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));" (#endif) "#endif"
689
57
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 39.18, "nodes": 402, "errors": 0, "source_hash": "83280a809fc37ab29600a93aab86b4b055c1fa1b207fc222dc056e6e35472589", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PROFILE_TRACE_DOT_H\n#define PROFILE_TRACE_DOT_H\n\n#include \"xocl/core/device.h\"\n#include \"xocl/core/event.h\"\n\nnamespace xdp {\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace device_offload {\n void load() ;\n} // end namespace device_offload\n\n} // end namespace xdp\n\nnamespace xocl {\n namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::get_opencl_trace())\n\te->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n } // end namespace profile\n\n} // end namespace xocl\n\n#define PROFILE_LOG_FUNCTION_CALL \\\nxocl::profile::OpenCLAPILogger profileObject(__func__);\n#define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \\\nxocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 31, 391, 395, 401], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 92, "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": "PROFILE_TRACE_DOT_H", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define PROFILE_TRACE_DOT_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": "PROFILE_TRACE_DOT_H", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"xocl/core/device.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": "\"xocl/core/device.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 29}}, {"id": 9, "type": "preproc_include", "text": "#include \"xocl/core/event.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": "\"xocl/core/event.h\"", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 28}}, {"id": 12, "type": "function_definition", "text": "namespace xdp {\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace device_offload {\n void load() ;\n} // end namespace device_offload\n\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 32, "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": "xdp", "parent": 12, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 13}}, {"id": 15, "type": "function_definition", "text": "namespace opencl_trace {\n void load() ;\n}", "parent": 12, "children": [16, 17], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 9}}, {"id": 17, "type": "identifier", "text": "opencl_trace", "parent": 15, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 22}}, {"id": 18, "type": "declaration", "text": "void load() ;", "parent": 15, "children": [19, 20], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 15}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 6}}, {"id": 20, "type": "function_declarator", "text": "load()", "parent": 18, "children": [21, 22], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 13}}, {"id": 21, "type": "identifier", "text": "load", "parent": 20, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 11}}, {"id": 22, "type": "parameter_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 13}}, {"id": 23, "type": "function_definition", "text": "namespace device_offload {\n void load() ;\n}", "parent": 12, "children": [24, 25], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 24, "type": "type_identifier", "text": "namespace", "parent": 23, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 9}}, {"id": 25, "type": "identifier", "text": "device_offload", "parent": 23, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 24}}, {"id": 26, "type": "declaration", "text": "void load() ;", "parent": 23, "children": [27, 28], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 15}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 28, "type": "function_declarator", "text": "load()", "parent": 26, "children": [29, 30], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 13}}, {"id": 29, "type": "identifier", "text": "load", "parent": 28, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 11}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 13}}, {"id": 31, "type": "function_definition", "text": "namespace xocl {\n namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::get_opencl_trace())\n\te->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n } // end namespace profile\n\n}", "parent": 0, "children": [32, 33], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 32, "type": "type_identifier", "text": "namespace", "parent": 31, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 9}}, {"id": 33, "type": "identifier", "text": "xocl", "parent": 31, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 14}}, {"id": 34, "type": "function_definition", "text": "namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::get_opencl_trace())\n\te->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n }", "parent": 31, "children": [35, 36], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 83, "column": 3}}, {"id": 35, "type": "type_identifier", "text": "namespace", "parent": 34, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 11}}, {"id": 36, "type": "identifier", "text": "profile", "parent": 34, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 19}}, {"id": 37, "type": "comma_expression", "text": "template <typename F, typename ...Args>\n inline", "parent": 34, "children": [38, 42, 44], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 38, "type": "binary_expression", "text": "template <typename", "parent": 37, "children": [39, 40, 41], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 22}}, {"id": 39, "type": "identifier", "text": "template", "parent": 38, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 12}}, {"id": 40, "type": "<", "text": "<", "parent": 38, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 14}}, {"id": 41, "type": "identifier", "text": "typename", "parent": 38, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 22}}, {"id": 42, "type": "ERROR", "text": "F", "parent": 37, "children": [43], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 43, "type": "identifier", "text": "F", "parent": 42, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 44, "type": "binary_expression", "text": "typename ...Args>\n inline", "parent": 37, "children": [45, 46, 48, 49], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 39, "column": 10}}, {"id": 45, "type": "identifier", "text": "typename", "parent": 44, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 34}}, {"id": 46, "type": "ERROR", "text": "...Args", "parent": 44, "children": [47], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 42}}, {"id": 47, "type": "identifier", "text": "Args", "parent": 46, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 42}}, {"id": 48, "type": ">", "text": ">", "parent": 44, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 43}}, {"id": 49, "type": "identifier", "text": "inline", "parent": 44, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 50, "type": "function_definition", "text": "void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::get_opencl_trace())\n\te->set_profile_action(f(std::forward<Args>(args)...)) ;\n }", "parent": 34, "children": [51, 52], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 45, "column": 5}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 15}}, {"id": 52, "type": "function_declarator", "text": "set_event_action(xocl::event* e, F&& f, Args&&... args)", "parent": 50, "children": [53, 54], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 59}}, {"id": 53, "type": "identifier", "text": "set_event_action", "parent": 52, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 20}}, {"id": 54, "type": "parameter_list", "text": "(xocl::event* e, F&& f, Args&&... args)", "parent": 52, "children": [55, 62, 67], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 59}}, {"id": 55, "type": "parameter_declaration", "text": "xocl::event* e", "parent": 54, "children": [56, 57, 59], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 35}}, {"id": 56, "type": "type_identifier", "text": "xocl", "parent": 55, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 25}}, {"id": 57, "type": "ERROR", "text": "::event", "parent": 55, "children": [58], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 32}}, {"id": 58, "type": "identifier", "text": "event", "parent": 57, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 32}}, {"id": 59, "type": "pointer_declarator", "text": "* e", "parent": 55, "children": [60, 61], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 35}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 33}}, {"id": 61, "type": "identifier", "text": "e", "parent": 59, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 35}}, {"id": 62, "type": "parameter_declaration", "text": "F&& f", "parent": 54, "children": [63, 64, 66], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 42}}, {"id": 63, "type": "type_identifier", "text": "F", "parent": 62, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 38}}, {"id": 64, "type": "ERROR", "text": "&&", "parent": 62, "children": [65], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 40}}, {"id": 65, "type": "&&", "text": "&&", "parent": 64, "children": [], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 40}}, {"id": 66, "type": "identifier", "text": "f", "parent": 62, "children": [], "start_point": {"row": 40, "column": 41}, "end_point": {"row": 40, "column": 42}}, {"id": 67, "type": "parameter_declaration", "text": "Args&&... args", "parent": 54, "children": [68, 69, 71], "start_point": {"row": 40, "column": 44}, "end_point": {"row": 40, "column": 58}}, {"id": 68, "type": "type_identifier", "text": "Args", "parent": 67, "children": [], "start_point": {"row": 40, "column": 44}, "end_point": {"row": 40, "column": 48}}, {"id": 69, "type": "ERROR", "text": "&&...", "parent": 67, "children": [70], "start_point": {"row": 40, "column": 48}, "end_point": {"row": 40, "column": 53}}, {"id": 70, "type": "&&", "text": "&&", "parent": 69, "children": [], "start_point": {"row": 40, "column": 48}, "end_point": {"row": 40, "column": 50}}, {"id": 71, "type": "identifier", "text": "args", "parent": 67, "children": [], "start_point": {"row": 40, "column": 54}, "end_point": {"row": 40, "column": 58}}, {"id": 72, "type": "if_statement", "text": "if (xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::get_opencl_trace())\n\te->set_profile_action(f(std::forward<Args>(args)...)) ;", "parent": 50, "children": [73], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 44, "column": 56}}, {"id": 73, "type": "parenthesized_expression", "text": "(xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::get_opencl_trace())", "parent": 72, "children": [74, 84], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 43, "column": 40}}, {"id": 74, "type": "ERROR", "text": "xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::", "parent": 73, "children": [75, 76, 77, 83], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 43, "column": 21}}, {"id": 75, "type": "identifier", "text": "xrt_core", "parent": 74, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 18}}, {"id": 76, "type": "identifier", "text": "config", "parent": 74, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 26}}, {"id": 77, "type": "binary_expression", "text": "get_timeline_trace() ||\n\t xrt_core", "parent": 74, "children": [78, 81, 82], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 43, "column": 11}}, {"id": 78, "type": "call_expression", "text": "get_timeline_trace()", "parent": 77, "children": [79, 80], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 48}}, {"id": 79, "type": "identifier", "text": "get_timeline_trace", "parent": 78, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 46}}, {"id": 80, "type": "argument_list", "text": "()", "parent": 78, "children": [], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 48}}, {"id": 81, "type": "||", "text": "||", "parent": 77, "children": [], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 51}}, {"id": 82, "type": "identifier", "text": "xrt_core", "parent": 77, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 11}}, {"id": 83, "type": "identifier", "text": "config", "parent": 74, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 19}}, {"id": 84, "type": "call_expression", "text": "get_opencl_trace()", "parent": 73, "children": [85, 86], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 39}}, {"id": 85, "type": "identifier", "text": "get_opencl_trace", "parent": 84, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 37}}, {"id": 86, "type": "argument_list", "text": "()", "parent": 84, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 39}}, {"id": 87, "type": "call_expression", "text": "e->set_profile_action(f(std::forward<Args>(args)...))", "parent": 72, "children": [88, 91], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 54}}, {"id": 88, "type": "field_expression", "text": "e->set_profile_action", "parent": 87, "children": [89, 90], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 22}}, {"id": 89, "type": "identifier", "text": "e", "parent": 88, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 2}}, {"id": 90, "type": "field_identifier", "text": "set_profile_action", "parent": 88, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 22}}, {"id": 91, "type": "argument_list", "text": "(f(std::forward<Args>(args)...))", "parent": 87, "children": [92], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 54}}, {"id": 92, "type": "call_expression", "text": "f(std::forward<Args>(args)...)", "parent": 91, "children": [93, 94], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 53}}, {"id": 93, "type": "identifier", "text": "f", "parent": 92, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 24}}, {"id": 94, "type": "argument_list", "text": "(std::forward<Args>(args)...)", "parent": 92, "children": [95, 97], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 53}}, {"id": 95, "type": "ERROR", "text": "std::", "parent": 94, "children": [96], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 30}}, {"id": 96, "type": "identifier", "text": "std", "parent": 95, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 28}}, {"id": 97, "type": "binary_expression", "text": "forward<Args>(args)", "parent": 94, "children": [98, 102, 103], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 49}}, {"id": 98, "type": "binary_expression", "text": "forward<Args", "parent": 97, "children": [99, 100, 101], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 42}}, {"id": 99, "type": "identifier", "text": "forward", "parent": 98, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 37}}, {"id": 100, "type": "<", "text": "<", "parent": 98, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 38}}, {"id": 101, "type": "identifier", "text": "Args", "parent": 98, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 42}}, {"id": 102, "type": ">", "text": ">", "parent": 97, "children": [], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 43}}, {"id": 103, "type": "parenthesized_expression", "text": "(args)", "parent": 97, "children": [104], "start_point": {"row": 44, "column": 43}, "end_point": {"row": 44, "column": 49}}, {"id": 104, "type": "identifier", "text": "args", "parent": 103, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 48}}, {"id": 105, "type": "function_definition", "text": "class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n }", "parent": 34, "children": [106], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 58, "column": 5}}, {"id": 106, "type": "identifier", "text": "OpenCLAPILogger", "parent": 105, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 25}}, {"id": 107, "type": "labeled_statement", "text": "private:\n uint64_t m_funcid ;", "parent": 105, "children": [108], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 51, "column": 25}}, {"id": 108, "type": "declaration", "text": "uint64_t m_funcid ;", "parent": 107, "children": [109, 110], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 25}}, {"id": 109, "type": "primitive_type", "text": "uint64_t", "parent": 108, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 14}}, {"id": 110, "type": "identifier", "text": "m_funcid", "parent": 108, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 23}}, {"id": 111, "type": "declaration", "text": "const char* m_name = nullptr ;", "parent": 105, "children": [112, 113], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 36}}, {"id": 112, "type": "primitive_type", "text": "char", "parent": 111, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 16}}, {"id": 113, "type": "init_declarator", "text": "* m_name = nullptr", "parent": 111, "children": [114, 117, 118], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 34}}, {"id": 114, "type": "pointer_declarator", "text": "* m_name", "parent": 113, "children": [115, 116], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 24}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 17}}, {"id": 116, "type": "identifier", "text": "m_name", "parent": 114, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 24}}, {"id": 117, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 26}}, {"id": 118, "type": "null", "text": "nullptr", "parent": 113, "children": [119], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 34}}, {"id": 119, "type": "nullptr", "text": "nullptr", "parent": 118, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 34}}, {"id": 120, "type": "declaration", "text": "uint64_t m_address = 0 ;", "parent": 105, "children": [121, 122], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 30}}, {"id": 121, "type": "primitive_type", "text": "uint64_t", "parent": 120, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 14}}, {"id": 122, "type": "init_declarator", "text": "m_address = 0", "parent": 120, "children": [123, 124, 125], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 28}}, {"id": 123, "type": "identifier", "text": "m_address", "parent": 122, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 24}}, {"id": 124, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 26}}, {"id": 125, "type": "number_literal", "text": "0", "parent": 122, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 28}}, {"id": 126, "type": "labeled_statement", "text": "public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;", "parent": 105, "children": [127], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 56, "column": 63}}, {"id": 127, "type": "declaration", "text": "OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;", "parent": 126, "children": [128, 134], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 56, "column": 63}}, {"id": 128, "type": "macro_type_specifier", "text": "OpenCLAPILogger(const char* function)", "parent": 127, "children": [129, 130], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 43}}, {"id": 129, "type": "identifier", "text": "OpenCLAPILogger", "parent": 128, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 21}}, {"id": 130, "type": "type_descriptor", "text": "const char*", "parent": 128, "children": [131, 132], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 33}}, {"id": 131, "type": "primitive_type", "text": "char", "parent": 130, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 32}}, {"id": 132, "type": "abstract_pointer_declarator", "text": "*", "parent": 130, "children": [133], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 33}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 33}}, {"id": 134, "type": "function_declarator", "text": "OpenCLAPILogger(const char* function, uint64_t address)", "parent": 127, "children": [135, 136], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 61}}, {"id": 135, "type": "identifier", "text": "OpenCLAPILogger", "parent": 134, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 21}}, {"id": 136, "type": "parameter_list", "text": "(const char* function, uint64_t address)", "parent": 134, "children": [137, 141], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 61}}, {"id": 137, "type": "parameter_declaration", "text": "const char* function", "parent": 136, "children": [138, 139], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 42}}, {"id": 138, "type": "primitive_type", "text": "char", "parent": 137, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 32}}, {"id": 139, "type": "pointer_declarator", "text": "* function", "parent": 137, "children": [140], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 42}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 33}}, {"id": 141, "type": "parameter_declaration", "text": "uint64_t address", "parent": 136, "children": [142, 143], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 60}}, {"id": 142, "type": "primitive_type", "text": "uint64_t", "parent": 141, "children": [], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 52}}, {"id": 143, "type": "identifier", "text": "address", "parent": 141, "children": [], "start_point": {"row": 56, "column": 53}, "end_point": {"row": 56, "column": 60}}, {"id": 144, "type": "unary_expression", "text": "~OpenCLAPILogger()", "parent": 105, "children": [145, 146], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 24}}, {"id": 145, "type": "~", "text": "~", "parent": 144, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 7}}, {"id": 146, "type": "call_expression", "text": "OpenCLAPILogger()", "parent": 144, "children": [147, 148], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 24}}, {"id": 147, "type": "identifier", "text": "OpenCLAPILogger", "parent": 146, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 22}}, {"id": 148, "type": "argument_list", "text": "()", "parent": 146, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 24}}, {"id": 149, "type": "declaration", "text": "void log_dependency(uint64_t id, uint64_t dependency) ;", "parent": 34, "children": [150, 151], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 59}}, {"id": 150, "type": "primitive_type", "text": "void", "parent": 149, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 8}}, {"id": 151, "type": "function_declarator", "text": "log_dependency(uint64_t id, uint64_t dependency)", "parent": 149, "children": [152, 153], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 57}}, {"id": 152, "type": "identifier", "text": "log_dependency", "parent": 151, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 23}}, {"id": 153, "type": "parameter_list", "text": "(uint64_t id, uint64_t dependency)", "parent": 151, "children": [154, 157], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 57}}, {"id": 154, "type": "parameter_declaration", "text": "uint64_t id", "parent": 153, "children": [155, 156], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 35}}, {"id": 155, "type": "primitive_type", "text": "uint64_t", "parent": 154, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 32}}, {"id": 156, "type": "identifier", "text": "id", "parent": 154, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 35}}, {"id": 157, "type": "parameter_declaration", "text": "uint64_t dependency", "parent": 153, "children": [158, 159], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 56}}, {"id": 158, "type": "primitive_type", "text": "uint64_t", "parent": 157, "children": [], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 45}}, {"id": 159, "type": "identifier", "text": "dependency", "parent": 157, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 56}}, {"id": 160, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;", "parent": 34, "children": [161], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 63, "column": 34}}, {"id": 161, "type": "statement_identifier", "text": "std", "parent": 160, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 7}}, {"id": 162, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer)", "parent": 160, "children": [163, 177, 178], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 63, "column": 32}}, {"id": 163, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 162, "children": [164, 165], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 65}}, {"id": 164, "type": "<", "text": "<", "parent": 163, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 165, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 163, "children": [166, 167], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 65}}, {"id": 166, "type": "identifier", "text": "void", "parent": 165, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 22}}, {"id": 167, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 165, "children": [168, 170, 174], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 65}}, {"id": 168, "type": "ERROR", "text": "xocl::", "parent": 167, "children": [169], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 30}}, {"id": 169, "type": "identifier", "text": "xocl", "parent": 168, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 28}}, {"id": 170, "type": "binary_expression", "text": "event*, cl_int", "parent": 167, "children": [171, 172, 173], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 44}}, {"id": 171, "type": "identifier", "text": "event", "parent": 170, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 35}}, {"id": 172, "type": "*", "text": "*", "parent": 170, "children": [], "start_point": {"row": 62, "column": 35}, "end_point": {"row": 62, "column": 36}}, {"id": 173, "type": "identifier", "text": "cl_int", "parent": 170, "children": [], "start_point": {"row": 62, "column": 38}, "end_point": {"row": 62, "column": 44}}, {"id": 174, "type": "ERROR", "text": "std::string&", "parent": 167, "children": [175, 176], "start_point": {"row": 62, "column": 52}, "end_point": {"row": 62, "column": 64}}, {"id": 175, "type": "identifier", "text": "std", "parent": 174, "children": [], "start_point": {"row": 62, "column": 52}, "end_point": {"row": 62, "column": 55}}, {"id": 176, "type": "identifier", "text": "string", "parent": 174, "children": [], "start_point": {"row": 62, "column": 57}, "end_point": {"row": 62, "column": 63}}, {"id": 177, "type": ">", "text": ">", "parent": 162, "children": [], "start_point": {"row": 62, "column": 65}, "end_point": {"row": 62, "column": 66}}, {"id": 178, "type": "call_expression", "text": "action_read(cl_mem buffer)", "parent": 162, "children": [179, 180], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 32}}, {"id": 179, "type": "identifier", "text": "action_read", "parent": 178, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 17}}, {"id": 180, "type": "argument_list", "text": "(cl_mem buffer)", "parent": 178, "children": [181, 182], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 32}}, {"id": 181, "type": "identifier", "text": "cl_mem", "parent": 180, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 24}}, {"id": 182, "type": "ERROR", "text": "buffer", "parent": 180, "children": [183], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 31}}, {"id": 183, "type": "identifier", "text": "buffer", "parent": 182, "children": [], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 31}}, {"id": 184, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;", "parent": 34, "children": [185], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 65, "column": 35}}, {"id": 185, "type": "statement_identifier", "text": "std", "parent": 184, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 7}}, {"id": 186, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer)", "parent": 184, "children": [187, 201, 202], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 65, "column": 33}}, {"id": 187, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 186, "children": [188, 189], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 65}}, {"id": 188, "type": "<", "text": "<", "parent": 187, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 18}}, {"id": 189, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 187, "children": [190, 191], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 65}}, {"id": 190, "type": "identifier", "text": "void", "parent": 189, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 22}}, {"id": 191, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 189, "children": [192, 194, 198], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 65}}, {"id": 192, "type": "ERROR", "text": "xocl::", "parent": 191, "children": [193], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 30}}, {"id": 193, "type": "identifier", "text": "xocl", "parent": 192, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 28}}, {"id": 194, "type": "binary_expression", "text": "event*, cl_int", "parent": 191, "children": [195, 196, 197], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 44}}, {"id": 195, "type": "identifier", "text": "event", "parent": 194, "children": [], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 35}}, {"id": 196, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 36}}, {"id": 197, "type": "identifier", "text": "cl_int", "parent": 194, "children": [], "start_point": {"row": 64, "column": 38}, "end_point": {"row": 64, "column": 44}}, {"id": 198, "type": "ERROR", "text": "std::string&", "parent": 191, "children": [199, 200], "start_point": {"row": 64, "column": 52}, "end_point": {"row": 64, "column": 64}}, {"id": 199, "type": "identifier", "text": "std", "parent": 198, "children": [], "start_point": {"row": 64, "column": 52}, "end_point": {"row": 64, "column": 55}}, {"id": 200, "type": "identifier", "text": "string", "parent": 198, "children": [], "start_point": {"row": 64, "column": 57}, "end_point": {"row": 64, "column": 63}}, {"id": 201, "type": ">", "text": ">", "parent": 186, "children": [], "start_point": {"row": 64, "column": 65}, "end_point": {"row": 64, "column": 66}}, {"id": 202, "type": "call_expression", "text": "action_write(cl_mem buffer)", "parent": 186, "children": [203, 204], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 33}}, {"id": 203, "type": "identifier", "text": "action_write", "parent": 202, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 18}}, {"id": 204, "type": "argument_list", "text": "(cl_mem buffer)", "parent": 202, "children": [205, 206], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 33}}, {"id": 205, "type": "identifier", "text": "cl_mem", "parent": 204, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 25}}, {"id": 206, "type": "ERROR", "text": "buffer", "parent": 204, "children": [207], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 32}}, {"id": 207, "type": "identifier", "text": "buffer", "parent": 206, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 32}}, {"id": 208, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;", "parent": 34, "children": [209], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 67, "column": 53}}, {"id": 209, "type": "statement_identifier", "text": "std", "parent": 208, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 7}}, {"id": 210, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags)", "parent": 208, "children": [211, 225, 226], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 67, "column": 51}}, {"id": 211, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 210, "children": [212, 213], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 65}}, {"id": 212, "type": "<", "text": "<", "parent": 211, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 18}}, {"id": 213, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 211, "children": [214, 215], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 65}}, {"id": 214, "type": "identifier", "text": "void", "parent": 213, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 22}}, {"id": 215, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 213, "children": [216, 218, 222], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 65}}, {"id": 216, "type": "ERROR", "text": "xocl::", "parent": 215, "children": [217], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 30}}, {"id": 217, "type": "identifier", "text": "xocl", "parent": 216, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 28}}, {"id": 218, "type": "binary_expression", "text": "event*, cl_int", "parent": 215, "children": [219, 220, 221], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 44}}, {"id": 219, "type": "identifier", "text": "event", "parent": 218, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 35}}, {"id": 220, "type": "*", "text": "*", "parent": 218, "children": [], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 36}}, {"id": 221, "type": "identifier", "text": "cl_int", "parent": 218, "children": [], "start_point": {"row": 66, "column": 38}, "end_point": {"row": 66, "column": 44}}, {"id": 222, "type": "ERROR", "text": "std::string&", "parent": 215, "children": [223, 224], "start_point": {"row": 66, "column": 52}, "end_point": {"row": 66, "column": 64}}, {"id": 223, "type": "identifier", "text": "std", "parent": 222, "children": [], "start_point": {"row": 66, "column": 52}, "end_point": {"row": 66, "column": 55}}, {"id": 224, "type": "identifier", "text": "string", "parent": 222, "children": [], "start_point": {"row": 66, "column": 57}, "end_point": {"row": 66, "column": 63}}, {"id": 225, "type": ">", "text": ">", "parent": 210, "children": [], "start_point": {"row": 66, "column": 65}, "end_point": {"row": 66, "column": 66}}, {"id": 226, "type": "call_expression", "text": "action_map(cl_mem buffer, cl_map_flags flags)", "parent": 210, "children": [227, 228], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 51}}, {"id": 227, "type": "identifier", "text": "action_map", "parent": 226, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 16}}, {"id": 228, "type": "argument_list", "text": "(cl_mem buffer, cl_map_flags flags)", "parent": 226, "children": [229, 230, 232, 233], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 51}}, {"id": 229, "type": "identifier", "text": "cl_mem", "parent": 228, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 23}}, {"id": 230, "type": "ERROR", "text": "buffer", "parent": 228, "children": [231], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 30}}, {"id": 231, "type": "identifier", "text": "buffer", "parent": 230, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 30}}, {"id": 232, "type": "identifier", "text": "cl_map_flags", "parent": 228, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 44}}, {"id": 233, "type": "ERROR", "text": "flags", "parent": 228, "children": [234], "start_point": {"row": 67, "column": 45}, "end_point": {"row": 67, "column": 50}}, {"id": 234, "type": "identifier", "text": "flags", "parent": 233, "children": [], "start_point": {"row": 67, "column": 45}, "end_point": {"row": 67, "column": 50}}, {"id": 235, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;", "parent": 34, "children": [236], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 69, "column": 65}}, {"id": 236, "type": "statement_identifier", "text": "std", "parent": 235, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 7}}, {"id": 237, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags)", "parent": 235, "children": [238, 252, 253], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 69, "column": 63}}, {"id": 238, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 237, "children": [239, 240], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 65}}, {"id": 239, "type": "<", "text": "<", "parent": 238, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 18}}, {"id": 240, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 238, "children": [241, 242], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 65}}, {"id": 241, "type": "identifier", "text": "void", "parent": 240, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 22}}, {"id": 242, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 240, "children": [243, 245, 249], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 65}}, {"id": 243, "type": "ERROR", "text": "xocl::", "parent": 242, "children": [244], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 30}}, {"id": 244, "type": "identifier", "text": "xocl", "parent": 243, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 28}}, {"id": 245, "type": "binary_expression", "text": "event*, cl_int", "parent": 242, "children": [246, 247, 248], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 44}}, {"id": 246, "type": "identifier", "text": "event", "parent": 245, "children": [], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 35}}, {"id": 247, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 36}}, {"id": 248, "type": "identifier", "text": "cl_int", "parent": 245, "children": [], "start_point": {"row": 68, "column": 38}, "end_point": {"row": 68, "column": 44}}, {"id": 249, "type": "ERROR", "text": "std::string&", "parent": 242, "children": [250, 251], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 64}}, {"id": 250, "type": "identifier", "text": "std", "parent": 249, "children": [], "start_point": {"row": 68, "column": 52}, "end_point": {"row": 68, "column": 55}}, {"id": 251, "type": "identifier", "text": "string", "parent": 249, "children": [], "start_point": {"row": 68, "column": 57}, "end_point": {"row": 68, "column": 63}}, {"id": 252, "type": ">", "text": ">", "parent": 237, "children": [], "start_point": {"row": 68, "column": 65}, "end_point": {"row": 68, "column": 66}}, {"id": 253, "type": "call_expression", "text": "action_migrate(cl_mem mem0, cl_mem_migration_flags flags)", "parent": 237, "children": [254, 255], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 63}}, {"id": 254, "type": "identifier", "text": "action_migrate", "parent": 253, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 20}}, {"id": 255, "type": "argument_list", "text": "(cl_mem mem0, cl_mem_migration_flags flags)", "parent": 253, "children": [256, 257, 259, 260], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 63}}, {"id": 256, "type": "identifier", "text": "cl_mem", "parent": 255, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 27}}, {"id": 257, "type": "ERROR", "text": "mem0", "parent": 255, "children": [258], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 32}}, {"id": 258, "type": "identifier", "text": "mem0", "parent": 257, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 32}}, {"id": 259, "type": "identifier", "text": "cl_mem_migration_flags", "parent": 255, "children": [], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 56}}, {"id": 260, "type": "ERROR", "text": "flags", "parent": 255, "children": [261], "start_point": {"row": 69, "column": 57}, "end_point": {"row": 69, "column": 62}}, {"id": 261, "type": "identifier", "text": "flags", "parent": 260, "children": [], "start_point": {"row": 69, "column": 57}, "end_point": {"row": 69, "column": 62}}, {"id": 262, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;", "parent": 34, "children": [263], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 71, "column": 64}}, {"id": 263, "type": "statement_identifier", "text": "std", "parent": 262, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 7}}, {"id": 264, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel)", "parent": 262, "children": [265, 279, 280], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 71, "column": 62}}, {"id": 265, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 264, "children": [266, 267], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 65}}, {"id": 266, "type": "<", "text": "<", "parent": 265, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 18}}, {"id": 267, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 265, "children": [268, 269], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 65}}, {"id": 268, "type": "identifier", "text": "void", "parent": 267, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 22}}, {"id": 269, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 267, "children": [270, 272, 276], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 65}}, {"id": 270, "type": "ERROR", "text": "xocl::", "parent": 269, "children": [271], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 30}}, {"id": 271, "type": "identifier", "text": "xocl", "parent": 270, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 28}}, {"id": 272, "type": "binary_expression", "text": "event*, cl_int", "parent": 269, "children": [273, 274, 275], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 44}}, {"id": 273, "type": "identifier", "text": "event", "parent": 272, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 35}}, {"id": 274, "type": "*", "text": "*", "parent": 272, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 36}}, {"id": 275, "type": "identifier", "text": "cl_int", "parent": 272, "children": [], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 44}}, {"id": 276, "type": "ERROR", "text": "std::string&", "parent": 269, "children": [277, 278], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 64}}, {"id": 277, "type": "identifier", "text": "std", "parent": 276, "children": [], "start_point": {"row": 70, "column": 52}, "end_point": {"row": 70, "column": 55}}, {"id": 278, "type": "identifier", "text": "string", "parent": 276, "children": [], "start_point": {"row": 70, "column": 57}, "end_point": {"row": 70, "column": 63}}, {"id": 279, "type": ">", "text": ">", "parent": 264, "children": [], "start_point": {"row": 70, "column": 65}, "end_point": {"row": 70, "column": 66}}, {"id": 280, "type": "call_expression", "text": "action_ndrange_migrate(cl_event event, cl_kernel kernel)", "parent": 264, "children": [281, 282], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 62}}, {"id": 281, "type": "identifier", "text": "action_ndrange_migrate", "parent": 280, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 28}}, {"id": 282, "type": "argument_list", "text": "(cl_event event, cl_kernel kernel)", "parent": 280, "children": [283, 284, 286, 287], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 62}}, {"id": 283, "type": "identifier", "text": "cl_event", "parent": 282, "children": [], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 37}}, {"id": 284, "type": "ERROR", "text": "event", "parent": 282, "children": [285], "start_point": {"row": 71, "column": 38}, "end_point": {"row": 71, "column": 43}}, {"id": 285, "type": "identifier", "text": "event", "parent": 284, "children": [], "start_point": {"row": 71, "column": 38}, "end_point": {"row": 71, "column": 43}}, {"id": 286, "type": "identifier", "text": "cl_kernel", "parent": 282, "children": [], "start_point": {"row": 71, "column": 45}, "end_point": {"row": 71, "column": 54}}, {"id": 287, "type": "ERROR", "text": "kernel", "parent": 282, "children": [288], "start_point": {"row": 71, "column": 55}, "end_point": {"row": 71, "column": 61}}, {"id": 288, "type": "identifier", "text": "kernel", "parent": 287, "children": [], "start_point": {"row": 71, "column": 55}, "end_point": {"row": 71, "column": 61}}, {"id": 289, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;", "parent": 34, "children": [290], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 73, "column": 56}}, {"id": 290, "type": "statement_identifier", "text": "std", "parent": 289, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 7}}, {"id": 291, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel)", "parent": 289, "children": [292, 306, 307], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 73, "column": 54}}, {"id": 292, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 291, "children": [293, 294], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 65}}, {"id": 293, "type": "<", "text": "<", "parent": 292, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 18}}, {"id": 294, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 292, "children": [295, 296], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 65}}, {"id": 295, "type": "identifier", "text": "void", "parent": 294, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 22}}, {"id": 296, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 294, "children": [297, 299, 303], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 65}}, {"id": 297, "type": "ERROR", "text": "xocl::", "parent": 296, "children": [298], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 30}}, {"id": 298, "type": "identifier", "text": "xocl", "parent": 297, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 28}}, {"id": 299, "type": "binary_expression", "text": "event*, cl_int", "parent": 296, "children": [300, 301, 302], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 44}}, {"id": 300, "type": "identifier", "text": "event", "parent": 299, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 35}}, {"id": 301, "type": "*", "text": "*", "parent": 299, "children": [], "start_point": {"row": 72, "column": 35}, "end_point": {"row": 72, "column": 36}}, {"id": 302, "type": "identifier", "text": "cl_int", "parent": 299, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 44}}, {"id": 303, "type": "ERROR", "text": "std::string&", "parent": 296, "children": [304, 305], "start_point": {"row": 72, "column": 52}, "end_point": {"row": 72, "column": 64}}, {"id": 304, "type": "identifier", "text": "std", "parent": 303, "children": [], "start_point": {"row": 72, "column": 52}, "end_point": {"row": 72, "column": 55}}, {"id": 305, "type": "identifier", "text": "string", "parent": 303, "children": [], "start_point": {"row": 72, "column": 57}, "end_point": {"row": 72, "column": 63}}, {"id": 306, "type": ">", "text": ">", "parent": 291, "children": [], "start_point": {"row": 72, "column": 65}, "end_point": {"row": 72, "column": 66}}, {"id": 307, "type": "call_expression", "text": "action_ndrange(cl_event event, cl_kernel kernel)", "parent": 291, "children": [308, 309], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 54}}, {"id": 308, "type": "identifier", "text": "action_ndrange", "parent": 307, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 20}}, {"id": 309, "type": "argument_list", "text": "(cl_event event, cl_kernel kernel)", "parent": 307, "children": [310, 311, 313, 314], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 54}}, {"id": 310, "type": "identifier", "text": "cl_event", "parent": 309, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 29}}, {"id": 311, "type": "ERROR", "text": "event", "parent": 309, "children": [312], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 35}}, {"id": 312, "type": "identifier", "text": "event", "parent": 311, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 35}}, {"id": 313, "type": "identifier", "text": "cl_kernel", "parent": 309, "children": [], "start_point": {"row": 73, "column": 37}, "end_point": {"row": 73, "column": 46}}, {"id": 314, "type": "ERROR", "text": "kernel", "parent": 309, "children": [315], "start_point": {"row": 73, "column": 47}, "end_point": {"row": 73, "column": 53}}, {"id": 315, "type": "identifier", "text": "kernel", "parent": 314, "children": [], "start_point": {"row": 73, "column": 47}, "end_point": {"row": 73, "column": 53}}, {"id": 316, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;", "parent": 34, "children": [317], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 75, "column": 35}}, {"id": 317, "type": "statement_identifier", "text": "std", "parent": 316, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 7}}, {"id": 318, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer)", "parent": 316, "children": [319, 333, 334], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 75, "column": 33}}, {"id": 319, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 318, "children": [320, 321], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 65}}, {"id": 320, "type": "<", "text": "<", "parent": 319, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 18}}, {"id": 321, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 319, "children": [322, 323], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 65}}, {"id": 322, "type": "identifier", "text": "void", "parent": 321, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 22}}, {"id": 323, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 321, "children": [324, 326, 330], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 65}}, {"id": 324, "type": "ERROR", "text": "xocl::", "parent": 323, "children": [325], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 30}}, {"id": 325, "type": "identifier", "text": "xocl", "parent": 324, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 28}}, {"id": 326, "type": "binary_expression", "text": "event*, cl_int", "parent": 323, "children": [327, 328, 329], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 44}}, {"id": 327, "type": "identifier", "text": "event", "parent": 326, "children": [], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 35}}, {"id": 328, "type": "*", "text": "*", "parent": 326, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 36}}, {"id": 329, "type": "identifier", "text": "cl_int", "parent": 326, "children": [], "start_point": {"row": 74, "column": 38}, "end_point": {"row": 74, "column": 44}}, {"id": 330, "type": "ERROR", "text": "std::string&", "parent": 323, "children": [331, 332], "start_point": {"row": 74, "column": 52}, "end_point": {"row": 74, "column": 64}}, {"id": 331, "type": "identifier", "text": "std", "parent": 330, "children": [], "start_point": {"row": 74, "column": 52}, "end_point": {"row": 74, "column": 55}}, {"id": 332, "type": "identifier", "text": "string", "parent": 330, "children": [], "start_point": {"row": 74, "column": 57}, "end_point": {"row": 74, "column": 63}}, {"id": 333, "type": ">", "text": ">", "parent": 318, "children": [], "start_point": {"row": 74, "column": 65}, "end_point": {"row": 74, "column": 66}}, {"id": 334, "type": "call_expression", "text": "action_unmap(cl_mem buffer)", "parent": 318, "children": [335, 336], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 33}}, {"id": 335, "type": "identifier", "text": "action_unmap", "parent": 334, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 18}}, {"id": 336, "type": "argument_list", "text": "(cl_mem buffer)", "parent": 334, "children": [337, 338], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 33}}, {"id": 337, "type": "identifier", "text": "cl_mem", "parent": 336, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 25}}, {"id": 338, "type": "ERROR", "text": "buffer", "parent": 336, "children": [339], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 32}}, {"id": 339, "type": "identifier", "text": "buffer", "parent": 338, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 32}}, {"id": 340, "type": "labeled_statement", "text": "std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;", "parent": 34, "children": [341], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 77, "column": 57}}, {"id": 341, "type": "statement_identifier", "text": "std", "parent": 340, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 7}}, {"id": 342, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer)", "parent": 340, "children": [343, 357, 358], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 77, "column": 55}}, {"id": 343, "type": "binary_expression", "text": "function<void (xocl::event*, cl_int, const std::string&)", "parent": 342, "children": [344, 345], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 65}}, {"id": 344, "type": "<", "text": "<", "parent": 343, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 18}}, {"id": 345, "type": "call_expression", "text": "void (xocl::event*, cl_int, const std::string&)", "parent": 343, "children": [346, 347], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 65}}, {"id": 346, "type": "identifier", "text": "void", "parent": 345, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 22}}, {"id": 347, "type": "argument_list", "text": "(xocl::event*, cl_int, const std::string&)", "parent": 345, "children": [348, 350, 354], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 65}}, {"id": 348, "type": "ERROR", "text": "xocl::", "parent": 347, "children": [349], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 30}}, {"id": 349, "type": "identifier", "text": "xocl", "parent": 348, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 28}}, {"id": 350, "type": "binary_expression", "text": "event*, cl_int", "parent": 347, "children": [351, 352, 353], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 44}}, {"id": 351, "type": "identifier", "text": "event", "parent": 350, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 35}}, {"id": 352, "type": "*", "text": "*", "parent": 350, "children": [], "start_point": {"row": 76, "column": 35}, "end_point": {"row": 76, "column": 36}}, {"id": 353, "type": "identifier", "text": "cl_int", "parent": 350, "children": [], "start_point": {"row": 76, "column": 38}, "end_point": {"row": 76, "column": 44}}, {"id": 354, "type": "ERROR", "text": "std::string&", "parent": 347, "children": [355, 356], "start_point": {"row": 76, "column": 52}, "end_point": {"row": 76, "column": 64}}, {"id": 355, "type": "identifier", "text": "std", "parent": 354, "children": [], "start_point": {"row": 76, "column": 52}, "end_point": {"row": 76, "column": 55}}, {"id": 356, "type": "identifier", "text": "string", "parent": 354, "children": [], "start_point": {"row": 76, "column": 57}, "end_point": {"row": 76, "column": 63}}, {"id": 357, "type": ">", "text": ">", "parent": 342, "children": [], "start_point": {"row": 76, "column": 65}, "end_point": {"row": 76, "column": 66}}, {"id": 358, "type": "call_expression", "text": "action_copy(cl_mem src_buffer, cl_mem dst_buffer)", "parent": 342, "children": [359, 360], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 55}}, {"id": 359, "type": "identifier", "text": "action_copy", "parent": 358, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 17}}, {"id": 360, "type": "argument_list", "text": "(cl_mem src_buffer, cl_mem dst_buffer)", "parent": 358, "children": [361, 363, 364, 366], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 55}}, {"id": 361, "type": "ERROR", "text": "cl_mem", "parent": 360, "children": [362], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 24}}, {"id": 362, "type": "identifier", "text": "cl_mem", "parent": 361, "children": [], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 24}}, {"id": 363, "type": "identifier", "text": "src_buffer", "parent": 360, "children": [], "start_point": {"row": 77, "column": 25}, "end_point": {"row": 77, "column": 35}}, {"id": 364, "type": "ERROR", "text": "cl_mem", "parent": 360, "children": [365], "start_point": {"row": 77, "column": 37}, "end_point": {"row": 77, "column": 43}}, {"id": 365, "type": "identifier", "text": "cl_mem", "parent": 364, "children": [], "start_point": {"row": 77, "column": 37}, "end_point": {"row": 77, "column": 43}}, {"id": 366, "type": "identifier", "text": "dst_buffer", "parent": 360, "children": [], "start_point": {"row": 77, "column": 44}, "end_point": {"row": 77, "column": 54}}, {"id": 367, "type": "declaration", "text": "void flush_device(xrt_xocl::device* handle) ;", "parent": 34, "children": [368, 369], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 49}}, {"id": 368, "type": "primitive_type", "text": "void", "parent": 367, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 369, "type": "function_declarator", "text": "flush_device(xrt_xocl::device* handle)", "parent": 367, "children": [370, 371], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 47}}, {"id": 370, "type": "identifier", "text": "flush_device", "parent": 369, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 21}}, {"id": 371, "type": "parameter_list", "text": "(xrt_xocl::device* handle)", "parent": 369, "children": [372], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 47}}, {"id": 372, "type": "parameter_declaration", "text": "xrt_xocl::device* handle", "parent": 371, "children": [373, 374, 376], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 46}}, {"id": 373, "type": "type_identifier", "text": "xrt_xocl", "parent": 372, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 30}}, {"id": 374, "type": "ERROR", "text": "::device", "parent": 372, "children": [375], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 38}}, {"id": 375, "type": "identifier", "text": "device", "parent": 374, "children": [], "start_point": {"row": 80, "column": 32}, "end_point": {"row": 80, "column": 38}}, {"id": 376, "type": "pointer_declarator", "text": "* handle", "parent": 372, "children": [377, 378], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 46}}, {"id": 377, "type": "*", "text": "*", "parent": 376, "children": [], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 39}}, {"id": 378, "type": "identifier", "text": "handle", "parent": 376, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 46}}, {"id": 379, "type": "declaration", "text": "void update_device(xrt_xocl::device* handle) ;", "parent": 34, "children": [380, 381], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 50}}, {"id": 380, "type": "primitive_type", "text": "void", "parent": 379, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 381, "type": "function_declarator", "text": "update_device(xrt_xocl::device* handle)", "parent": 379, "children": [382, 383], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 48}}, {"id": 382, "type": "identifier", "text": "update_device", "parent": 381, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 22}}, {"id": 383, "type": "parameter_list", "text": "(xrt_xocl::device* handle)", "parent": 381, "children": [384], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 48}}, {"id": 384, "type": "parameter_declaration", "text": "xrt_xocl::device* handle", "parent": 383, "children": [385, 386, 388], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 47}}, {"id": 385, "type": "type_identifier", "text": "xrt_xocl", "parent": 384, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 31}}, {"id": 386, "type": "ERROR", "text": "::device", "parent": 384, "children": [387], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 39}}, {"id": 387, "type": "identifier", "text": "device", "parent": 386, "children": [], "start_point": {"row": 81, "column": 33}, "end_point": {"row": 81, "column": 39}}, {"id": 388, "type": "pointer_declarator", "text": "* handle", "parent": 384, "children": [389, 390], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 47}}, {"id": 389, "type": "*", "text": "*", "parent": 388, "children": [], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 40}}, {"id": 390, "type": "identifier", "text": "handle", "parent": 388, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 47}}, {"id": 391, "type": "preproc_def", "text": "#define PROFILE_LOG_FUNCTION_CALL \\\nxocl::profile::OpenCLAPILogger profileObject(__func__);\n", "parent": 0, "children": [392, 393, 394], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 89, "column": 0}}, {"id": 392, "type": "#define", "text": "#define", "parent": 391, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 7}}, {"id": 393, "type": "identifier", "text": "PROFILE_LOG_FUNCTION_CALL", "parent": 391, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 33}}, {"id": 394, "type": "preproc_arg", "text": "xocl::profile::OpenCLAPILogger profileObject(__func__);", "parent": 391, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 55}}, {"id": 395, "type": "preproc_function_def", "text": "#define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \\\nxocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));\n", "parent": 0, "children": [396, 397, 398, 400], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 91, "column": 0}}, {"id": 396, "type": "#define", "text": "#define", "parent": 395, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 7}}, {"id": 397, "type": "identifier", "text": "PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE", "parent": 395, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 44}}, {"id": 398, "type": "preproc_params", "text": "(Q)", "parent": 395, "children": [399], "start_point": {"row": 89, "column": 44}, "end_point": {"row": 89, "column": 47}}, {"id": 399, "type": "identifier", "text": "Q", "parent": 398, "children": [], "start_point": {"row": 89, "column": 45}, "end_point": {"row": 89, "column": 46}}, {"id": 400, "type": "preproc_arg", "text": "xocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));", "parent": 395, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 70}}, {"id": 401, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 15, 20, 23, 28, 31, 34, 50, 52, 105, 134, 151, 369, 381, 395], "variables": [18, 26, 55, 62, 67, 108, 111, 120, 127, 137, 141, 149, 154, 157, 367, 372, 379, 384], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [37, 38, 44, 73, 77, 78, 84, 87, 88, 92, 97, 98, 103, 144, 146, 162, 163, 165, 170, 178, 186, 187, 189, 194, 202, 210, 211, 213, 218, 226, 237, 238, 240, 245, 253, 264, 265, 267, 272, 280, 291, 292, 294, 299, 307, 318, 319, 321, 326, 334, 342, 343, 345, 350, 358], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 17, 21, 24, 25, 29, 32, 33, 35, 36, 39, 41, 43, 45, 47, 49, 53, 56, 58, 61, 63, 66, 68, 71, 72, 75, 76, 79, 82, 83, 85, 89, 90, 93, 96, 99, 101, 104, 106, 110, 116, 123, 128, 129, 135, 143, 147, 152, 156, 159, 161, 166, 169, 171, 173, 175, 176, 179, 181, 183, 185, 190, 193, 195, 197, 199, 200, 203, 205, 207, 209, 214, 217, 219, 221, 223, 224, 227, 229, 231, 232, 234, 236, 241, 244, 246, 248, 250, 251, 254, 256, 258, 259, 261, 263, 268, 271, 273, 275, 277, 278, 281, 283, 285, 286, 288, 290, 295, 298, 300, 302, 304, 305, 308, 310, 312, 313, 315, 317, 322, 325, 327, 329, 331, 332, 335, 337, 339, 341, 346, 349, 351, 353, 355, 356, 359, 362, 363, 365, 366, 370, 373, 375, 378, 382, 385, 387, 390, 393, 397, 399, 401], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 125], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "load", "text_snippet": "namespace xdp {\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace"}, {"node_id": 15, "universal_type": "function", "name": "load", "text_snippet": "namespace opencl_trace {\n void load() ;\n}"}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "load()"}, {"node_id": 23, "universal_type": "function", "name": "load", "text_snippet": "namespace device_offload {\n void load() ;\n}"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "load()"}, {"node_id": 31, "universal_type": "function", "name": "set_event_action", "text_snippet": "namespace xocl {\n namespace profile {\n\n // Trace support for task that go through the command qu"}, {"node_id": 34, "universal_type": "function", "name": "set_event_action", "text_snippet": "namespace profile {\n\n // Trace support for task that go through the command queues\n template <"}, {"node_id": 50, "universal_type": "function", "name": "set_event_action", "text_snippet": "void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::g"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "set_event_action(xocl::event* e, F&& f, Args&&... args)"}, {"node_id": 105, "universal_type": "function", "name": "OpenCLAPILogger", "text_snippet": "class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullp"}, {"node_id": 134, "universal_type": "function", "name": "unknown", "text_snippet": "OpenCLAPILogger(const char* function, uint64_t address)"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "log_dependency(uint64_t id, uint64_t dependency)"}, {"node_id": 369, "universal_type": "function", "name": "unknown", "text_snippet": "flush_device(xrt_xocl::device* handle)"}, {"node_id": 381, "universal_type": "function", "name": "unknown", "text_snippet": "update_device(xrt_xocl::device* handle)"}, {"node_id": 395, "universal_type": "function", "name": "unknown", "text_snippet": "#define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \\\nxocl::profile::OpenCLAPILogger profileObject(__fun"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"xocl/core/device.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"xocl/core/event.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/**\n * Copyright (C) 2016-2020 Xilinx, Inc\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"). You may\n * not use this file except in compliance with the License. A copy of the\n * License is located at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n */\n\n#ifndef PROFILE_TRACE_DOT_H\n#define PROFILE_TRACE_DOT_H\n\n#include \"xocl/core/device.h\"\n#include \"xocl/core/event.h\"\n\nnamespace xdp {\n\nnamespace opencl_trace {\n void load() ;\n} // end namespace opencl_trace\n\nnamespace device_offload {\n void load() ;\n} // end namespace device_offload\n\n} // end namespace xdp\n\nnamespace xocl {\n namespace profile {\n\n // Trace support for task that go through the command queues\n template <typename F, typename ...Args>\n inline void\n set_event_action(xocl::event* e, F&& f, Args&&... args)\n {\n if (xrt_core::config::get_timeline_trace() ||\n\t xrt_core::config::get_opencl_trace())\n\te->set_profile_action(f(std::forward<Args>(args)...)) ;\n }\n\n // Class for logging all OpenCL APIs\n class OpenCLAPILogger \n {\n private:\n uint64_t m_funcid ;\n const char* m_name = nullptr ;\n uint64_t m_address = 0 ;\n public:\n OpenCLAPILogger(const char* function) ;\n OpenCLAPILogger(const char* function, uint64_t address) ;\n ~OpenCLAPILogger() ;\n } ;\n\n // Functions used by the host trace plugin\n void log_dependency(uint64_t id, uint64_t dependency) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_read(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_write(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_map(cl_mem buffer, cl_map_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_migrate(cl_mem mem0, cl_mem_migration_flags flags) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange_migrate(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_ndrange(cl_event event, cl_kernel kernel) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_unmap(cl_mem buffer) ;\n std::function<void (xocl::event*, cl_int, const std::string&)>\n action_copy(cl_mem src_buffer, cl_mem dst_buffer) ;\n\n // Functions used by the device trace plugin\n void flush_device(xrt_xocl::device* handle) ;\n void update_device(xrt_xocl::device* handle) ;\n\n } // end namespace profile\n\n} // end namespace xocl\n\n#define PROFILE_LOG_FUNCTION_CALL \\\nxocl::profile::OpenCLAPILogger profileObject(__func__);\n#define PROFILE_LOG_FUNCTION_CALL_WITH_QUEUE(Q) \\\nxocl::profile::OpenCLAPILogger profileObject(__func__, (uint64_t)(Q));\n\n#endif\n"}
80,849
c
// Copyright (c) 2012 The Chromium OS 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 DEBUGD_SRC_LOG_TOOL_H_ #define DEBUGD_SRC_LOG_TOOL_H_ #include <map> #include <string> #include <base/macros.h> #include <dbus-c++/dbus.h> #include "debugd/src/anonymizer_tool.h" namespace debugd { class LogTool { public: LogTool() = default; ~LogTool() = default; using LogMap = std::map<std::string, std::string>; std::string GetLog(const std::string& name, DBus::Error* error); LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error); LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error); void GetBigFeedbackLogs(DBus::Connection* connection, const DBus::FileDescriptor& fd, DBus::Error* error); LogMap GetUserLogFiles(DBus::Error* error); private: friend class LogToolTest; void AnonymizeLogMap(LogMap* log_map); void CreateConnectivityReport(DBus::Connection* connection); AnonymizerTool anonymizer_; DISALLOW_COPY_AND_ASSIGN(LogTool); }; } // namespace debugd #endif // DEBUGD_SRC_LOG_TOOL_H_
36.28
32
(translation_unit) "// Copyright (c) 2012 The Chromium OS 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 DEBUGD_SRC_LOG_TOOL_H_\n#define DEBUGD_SRC_LOG_TOOL_H_\n\n#include <map>\n#include <string>\n\n#include <base/macros.h>\n#include <dbus-c++/dbus.h>\n\n#include "debugd/src/anonymizer_tool.h"\n\nnamespace debugd {\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n};\n\n} // namespace debugd\n\n#endif // DEBUGD_SRC_LOG_TOOL_H_\n" (comment) "// Copyright (c) 2012 The Chromium OS Authors. All rights reserved." (comment) "// Use of this source code is governed by a BSD-style license that can be" (comment) "// found in the LICENSE file." (preproc_ifdef) "#ifndef DEBUGD_SRC_LOG_TOOL_H_\n#define DEBUGD_SRC_LOG_TOOL_H_\n\n#include <map>\n#include <string>\n\n#include <base/macros.h>\n#include <dbus-c++/dbus.h>\n\n#include "debugd/src/anonymizer_tool.h"\n\nnamespace debugd {\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n};\n\n} // namespace debugd\n\n#endif" (#ifndef) "#ifndef" (identifier) "DEBUGD_SRC_LOG_TOOL_H_" (preproc_def) "#define DEBUGD_SRC_LOG_TOOL_H_\n" (#define) "#define" (identifier) "DEBUGD_SRC_LOG_TOOL_H_" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <base/macros.h>\n" (#include) "#include" (system_lib_string) "<base/macros.h>" (preproc_include) "#include <dbus-c++/dbus.h>\n" (#include) "#include" (system_lib_string) "<dbus-c++/dbus.h>" (preproc_include) "#include "debugd/src/anonymizer_tool.h"\n" (#include) "#include" (string_literal) ""debugd/src/anonymizer_tool.h"" (") """ (string_content) "debugd/src/anonymizer_tool.h" (") """ (function_definition) "namespace debugd {\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n};\n\n}" (type_identifier) "namespace" (identifier) "debugd" (compound_statement) "{\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n};\n\n}" ({) "{" (function_definition) "class LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n}" (type_identifier) "class" (identifier) "LogTool" (compound_statement) "{\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n}" ({) "{" (labeled_statement) "public:\n LogTool() = default;" (statement_identifier) "public" (:) ":" (expression_statement) "LogTool() = default;" (assignment_expression) "LogTool() = default" (call_expression) "LogTool()" (identifier) "LogTool" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (expression_statement) "~LogTool() = default;" (unary_expression) "~LogTool() = default" (~) "~" (assignment_expression) "LogTool() = default" (call_expression) "LogTool()" (identifier) "LogTool" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (declaration) "using LogMap = std::map<std::string, std::string>;" (type_identifier) "using" (init_declarator) "LogMap = std::map<std::string" (identifier) "LogMap" (=) "=" (ERROR) "std::map<std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "map<std" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (ERROR) ">" (>) ">" (;) ";" (labeled_statement) "std::string GetLog(const std::string& name, DBus::Error* error);" (statement_identifier) "std" (ERROR) "::string GetLog(const std::string& name, DBus:" (:) ":" (:) ":" (type_identifier) "string" (identifier) "GetLog" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (comma_expression) "string& name, DBus" (binary_expression) "string& name" (identifier) "string" (&) "&" (identifier) "name" (,) "," (identifier) "DBus" (:) ":" (:) ":" (declaration) "Error* error);" (type_identifier) "Error" (pointer_declarator) "* error" (*) "*" (identifier) "error" (ERROR) ")" ()) ")" (;) ";" (declaration) "LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);" (type_identifier) "LogMap" (function_declarator) "GetAllLogs(DBus::Connection* connection, DBus::Error* error)" (identifier) "GetAllLogs" (parameter_list) "(DBus::Connection* connection, DBus::Error* error)" (() "(" (parameter_declaration) "DBus::Connection* connection" (type_identifier) "DBus" (ERROR) "::Connection" (:) ":" (:) ":" (identifier) "Connection" (pointer_declarator) "* connection" (*) "*" (identifier) "connection" (,) "," (parameter_declaration) "DBus::Error* error" (type_identifier) "DBus" (ERROR) "::Error" (:) ":" (:) ":" (identifier) "Error" (pointer_declarator) "* error" (*) "*" (identifier) "error" ()) ")" (;) ";" (declaration) "LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);" (type_identifier) "LogMap" (function_declarator) "GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error)" (identifier) "GetFeedbackLogs" (parameter_list) "(DBus::Connection* connection, DBus::Error* error)" (() "(" (parameter_declaration) "DBus::Connection* connection" (type_identifier) "DBus" (ERROR) "::Connection" (:) ":" (:) ":" (identifier) "Connection" (pointer_declarator) "* connection" (*) "*" (identifier) "connection" (,) "," (parameter_declaration) "DBus::Error* error" (type_identifier) "DBus" (ERROR) "::Error" (:) ":" (:) ":" (identifier) "Error" (pointer_declarator) "* error" (*) "*" (identifier) "error" ()) ")" (;) ";" (declaration) "void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);" (primitive_type) "void" (function_declarator) "GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error)" (identifier) "GetBigFeedbackLogs" (parameter_list) "(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error)" (() "(" (parameter_declaration) "DBus::Connection* connection" (type_identifier) "DBus" (ERROR) "::Connection" (:) ":" (:) ":" (identifier) "Connection" (pointer_declarator) "* connection" (*) "*" (identifier) "connection" (,) "," (parameter_declaration) "const DBus::FileDescriptor& fd" (type_qualifier) "const" (const) "const" (type_identifier) "DBus" (ERROR) "::FileDescriptor&" (:) ":" (:) ":" (identifier) "FileDescriptor" (&) "&" (identifier) "fd" (,) "," (parameter_declaration) "DBus::Error* error" (type_identifier) "DBus" (ERROR) "::Error" (:) ":" (:) ":" (identifier) "Error" (pointer_declarator) "* error" (*) "*" (identifier) "error" ()) ")" (;) ";" (declaration) "LogMap GetUserLogFiles(DBus::Error* error);" (type_identifier) "LogMap" (function_declarator) "GetUserLogFiles(DBus::Error* error)" (identifier) "GetUserLogFiles" (parameter_list) "(DBus::Error* error)" (() "(" (parameter_declaration) "DBus::Error* error" (type_identifier) "DBus" (ERROR) "::Error" (:) ":" (:) ":" (identifier) "Error" (pointer_declarator) "* error" (*) "*" (identifier) "error" ()) ")" (;) ";" (labeled_statement) "private:\n friend class LogToolTest;" (statement_identifier) "private" (:) ":" (declaration) "friend class LogToolTest;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "LogToolTest" (;) ";" (declaration) "void AnonymizeLogMap(LogMap* log_map);" (primitive_type) "void" (function_declarator) "AnonymizeLogMap(LogMap* log_map)" (identifier) "AnonymizeLogMap" (parameter_list) "(LogMap* log_map)" (() "(" (parameter_declaration) "LogMap* log_map" (type_identifier) "LogMap" (pointer_declarator) "* log_map" (*) "*" (identifier) "log_map" ()) ")" (;) ";" (declaration) "void CreateConnectivityReport(DBus::Connection* connection);" (primitive_type) "void" (function_declarator) "CreateConnectivityReport(DBus::Connection* connection)" (identifier) "CreateConnectivityReport" (parameter_list) "(DBus::Connection* connection)" (() "(" (parameter_declaration) "DBus::Connection* connection" (type_identifier) "DBus" (ERROR) "::Connection" (:) ":" (:) ":" (identifier) "Connection" (pointer_declarator) "* connection" (*) "*" (identifier) "connection" ()) ")" (;) ";" (declaration) "AnonymizerTool anonymizer_;" (type_identifier) "AnonymizerTool" (identifier) "anonymizer_" (;) ";" (expression_statement) "DISALLOW_COPY_AND_ASSIGN(LogTool);" (call_expression) "DISALLOW_COPY_AND_ASSIGN(LogTool)" (identifier) "DISALLOW_COPY_AND_ASSIGN" (argument_list) "(LogTool)" (() "(" (identifier) "LogTool" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace debugd" (#endif) "#endif" (comment) "// DEBUGD_SRC_LOG_TOOL_H_"
285
15
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 36.28, "nodes": 182, "errors": 0, "source_hash": "c04932b2f326a425880323c8d8b249ceff58c69a2d6eed497be59b81e35d253a", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DEBUGD_SRC_LOG_TOOL_H_\n#define DEBUGD_SRC_LOG_TOOL_H_\n\n#include <map>\n#include <string>\n\n#include <base/macros.h>\n#include <dbus-c++/dbus.h>\n\n#include \"debugd/src/anonymizer_tool.h\"\n\nnamespace debugd {\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n};\n\n} // namespace debugd\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 181], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "DEBUGD_SRC_LOG_TOOL_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 30}}, {"id": 3, "type": "preproc_def", "text": "#define DEBUGD_SRC_LOG_TOOL_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": "DEBUGD_SRC_LOG_TOOL_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include <map>\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": "<map>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 14}}, {"id": 9, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<string>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <base/macros.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<base/macros.h>", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 24}}, {"id": 15, "type": "preproc_include", "text": "#include <dbus-c++/dbus.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<dbus-c++/dbus.h>", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 26}}, {"id": 18, "type": "preproc_include", "text": "#include \"debugd/src/anonymizer_tool.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"debugd/src/anonymizer_tool.h\"", "parent": 18, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 39}}, {"id": 21, "type": "function_definition", "text": "namespace debugd {\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n};\n\n}", "parent": 0, "children": [22, 23], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 23, "type": "identifier", "text": "debugd", "parent": 21, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 16}}, {"id": 24, "type": "function_definition", "text": "class LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n}", "parent": 21, "children": [25], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 25, "type": "identifier", "text": "LogTool", "parent": 24, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 13}}, {"id": 26, "type": "labeled_statement", "text": "public:\n LogTool() = default;", "parent": 24, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 19, "column": 22}}, {"id": 27, "type": "assignment_expression", "text": "LogTool() = default", "parent": 26, "children": [28, 31, 32], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 21}}, {"id": 28, "type": "call_expression", "text": "LogTool()", "parent": 27, "children": [29, 30], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 11}}, {"id": 29, "type": "identifier", "text": "LogTool", "parent": 28, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 9}}, {"id": 30, "type": "argument_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 11}}, {"id": 31, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 13}}, {"id": 32, "type": "identifier", "text": "default", "parent": 27, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 21}}, {"id": 33, "type": "unary_expression", "text": "~LogTool() = default", "parent": 24, "children": [34, 35], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 22}}, {"id": 34, "type": "~", "text": "~", "parent": 33, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 3}}, {"id": 35, "type": "assignment_expression", "text": "LogTool() = default", "parent": 33, "children": [36, 39, 40], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 22}}, {"id": 36, "type": "call_expression", "text": "LogTool()", "parent": 35, "children": [37, 38], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 12}}, {"id": 37, "type": "identifier", "text": "LogTool", "parent": 36, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 10}}, {"id": 38, "type": "argument_list", "text": "()", "parent": 36, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 12}}, {"id": 39, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 40, "type": "identifier", "text": "default", "parent": 35, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 22}}, {"id": 41, "type": "declaration", "text": "using LogMap = std::map<std::string, std::string>;", "parent": 24, "children": [42, 43, 53, 55, 56], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 52}}, {"id": 42, "type": "type_identifier", "text": "using", "parent": 41, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 7}}, {"id": 43, "type": "init_declarator", "text": "LogMap = std::map<std::string", "parent": 41, "children": [44, 45, 46, 52], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 37}}, {"id": 44, "type": "identifier", "text": "LogMap", "parent": 43, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 14}}, {"id": 45, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 16}}, {"id": 46, "type": "ERROR", "text": "std::map<std::", "parent": 43, "children": [47, 48], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 31}}, {"id": 47, "type": "identifier", "text": "std", "parent": 46, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 20}}, {"id": 48, "type": "binary_expression", "text": "map<std", "parent": 46, "children": [49, 50, 51], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 29}}, {"id": 49, "type": "identifier", "text": "map", "parent": 48, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 25}}, {"id": 50, "type": "<", "text": "<", "parent": 48, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 26}}, {"id": 51, "type": "identifier", "text": "std", "parent": 48, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 29}}, {"id": 52, "type": "identifier", "text": "string", "parent": 43, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 37}}, {"id": 53, "type": "ERROR", "text": "std::", "parent": 41, "children": [54], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 44}}, {"id": 54, "type": "identifier", "text": "std", "parent": 53, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 42}}, {"id": 55, "type": "identifier", "text": "string", "parent": 41, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 50}}, {"id": 56, "type": "ERROR", "text": ">", "parent": 41, "children": [57], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 51}}, {"id": 57, "type": ">", "text": ">", "parent": 56, "children": [], "start_point": {"row": 22, "column": 50}, "end_point": {"row": 22, "column": 51}}, {"id": 58, "type": "labeled_statement", "text": "std::string GetLog(const std::string& name, DBus::Error* error);", "parent": 24, "children": [59, 60, 69], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 66}}, {"id": 59, "type": "statement_identifier", "text": "std", "parent": 58, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 5}}, {"id": 60, "type": "ERROR", "text": "::string GetLog(const std::string& name, DBus:", "parent": 58, "children": [61, 62, 63, 64], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 51}}, {"id": 61, "type": "type_identifier", "text": "string", "parent": 60, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 62, "type": "identifier", "text": "GetLog", "parent": 60, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 20}}, {"id": 63, "type": "type_identifier", "text": "std", "parent": 60, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 30}}, {"id": 64, "type": "comma_expression", "text": "string& name, DBus", "parent": 60, "children": [65, 68], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 50}}, {"id": 65, "type": "binary_expression", "text": "string& name", "parent": 64, "children": [66, 67], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 44}}, {"id": 66, "type": "identifier", "text": "string", "parent": 65, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 38}}, {"id": 67, "type": "identifier", "text": "name", "parent": 65, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 44}}, {"id": 68, "type": "identifier", "text": "DBus", "parent": 64, "children": [], "start_point": {"row": 24, "column": 46}, "end_point": {"row": 24, "column": 50}}, {"id": 69, "type": "declaration", "text": "Error* error);", "parent": 58, "children": [70, 71], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 66}}, {"id": 70, "type": "type_identifier", "text": "Error", "parent": 69, "children": [], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 57}}, {"id": 71, "type": "pointer_declarator", "text": "* error", "parent": 69, "children": [72, 73], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 64}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 58}}, {"id": 73, "type": "identifier", "text": "error", "parent": 71, "children": [], "start_point": {"row": 24, "column": 59}, "end_point": {"row": 24, "column": 64}}, {"id": 74, "type": "declaration", "text": "LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);", "parent": 24, "children": [75, 76], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 70}}, {"id": 75, "type": "type_identifier", "text": "LogMap", "parent": 74, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 8}}, {"id": 76, "type": "function_declarator", "text": "GetAllLogs(DBus::Connection* connection, DBus::Error* error)", "parent": 74, "children": [77, 78], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 69}}, {"id": 77, "type": "identifier", "text": "GetAllLogs", "parent": 76, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 78, "type": "parameter_list", "text": "(DBus::Connection* connection, DBus::Error* error)", "parent": 76, "children": [79, 86], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 69}}, {"id": 79, "type": "parameter_declaration", "text": "DBus::Connection* connection", "parent": 78, "children": [80, 81, 83], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 48}}, {"id": 80, "type": "type_identifier", "text": "DBus", "parent": 79, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 24}}, {"id": 81, "type": "ERROR", "text": "::Connection", "parent": 79, "children": [82], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 36}}, {"id": 82, "type": "identifier", "text": "Connection", "parent": 81, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 36}}, {"id": 83, "type": "pointer_declarator", "text": "* connection", "parent": 79, "children": [84, 85], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 48}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 37}}, {"id": 85, "type": "identifier", "text": "connection", "parent": 83, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 48}}, {"id": 86, "type": "parameter_declaration", "text": "DBus::Error* error", "parent": 78, "children": [87, 88, 90], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 68}}, {"id": 87, "type": "type_identifier", "text": "DBus", "parent": 86, "children": [], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 54}}, {"id": 88, "type": "ERROR", "text": "::Error", "parent": 86, "children": [89], "start_point": {"row": 25, "column": 54}, "end_point": {"row": 25, "column": 61}}, {"id": 89, "type": "identifier", "text": "Error", "parent": 88, "children": [], "start_point": {"row": 25, "column": 56}, "end_point": {"row": 25, "column": 61}}, {"id": 90, "type": "pointer_declarator", "text": "* error", "parent": 86, "children": [91, 92], "start_point": {"row": 25, "column": 61}, "end_point": {"row": 25, "column": 68}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 25, "column": 61}, "end_point": {"row": 25, "column": 62}}, {"id": 92, "type": "identifier", "text": "error", "parent": 90, "children": [], "start_point": {"row": 25, "column": 63}, "end_point": {"row": 25, "column": 68}}, {"id": 93, "type": "declaration", "text": "LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);", "parent": 24, "children": [94, 95], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 75}}, {"id": 94, "type": "type_identifier", "text": "LogMap", "parent": 93, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 8}}, {"id": 95, "type": "function_declarator", "text": "GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error)", "parent": 93, "children": [96, 97], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 74}}, {"id": 96, "type": "identifier", "text": "GetFeedbackLogs", "parent": 95, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 24}}, {"id": 97, "type": "parameter_list", "text": "(DBus::Connection* connection, DBus::Error* error)", "parent": 95, "children": [98, 105], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 74}}, {"id": 98, "type": "parameter_declaration", "text": "DBus::Connection* connection", "parent": 97, "children": [99, 100, 102], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 53}}, {"id": 99, "type": "type_identifier", "text": "DBus", "parent": 98, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 29}}, {"id": 100, "type": "ERROR", "text": "::Connection", "parent": 98, "children": [101], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 41}}, {"id": 101, "type": "identifier", "text": "Connection", "parent": 100, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 41}}, {"id": 102, "type": "pointer_declarator", "text": "* connection", "parent": 98, "children": [103, 104], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 53}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 42}}, {"id": 104, "type": "identifier", "text": "connection", "parent": 102, "children": [], "start_point": {"row": 26, "column": 43}, "end_point": {"row": 26, "column": 53}}, {"id": 105, "type": "parameter_declaration", "text": "DBus::Error* error", "parent": 97, "children": [106, 107, 109], "start_point": {"row": 26, "column": 55}, "end_point": {"row": 26, "column": 73}}, {"id": 106, "type": "type_identifier", "text": "DBus", "parent": 105, "children": [], "start_point": {"row": 26, "column": 55}, "end_point": {"row": 26, "column": 59}}, {"id": 107, "type": "ERROR", "text": "::Error", "parent": 105, "children": [108], "start_point": {"row": 26, "column": 59}, "end_point": {"row": 26, "column": 66}}, {"id": 108, "type": "identifier", "text": "Error", "parent": 107, "children": [], "start_point": {"row": 26, "column": 61}, "end_point": {"row": 26, "column": 66}}, {"id": 109, "type": "pointer_declarator", "text": "* error", "parent": 105, "children": [110, 111], "start_point": {"row": 26, "column": 66}, "end_point": {"row": 26, "column": 73}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 26, "column": 66}, "end_point": {"row": 26, "column": 67}}, {"id": 111, "type": "identifier", "text": "error", "parent": 109, "children": [], "start_point": {"row": 26, "column": 68}, "end_point": {"row": 26, "column": 73}}, {"id": 112, "type": "declaration", "text": "void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);", "parent": 24, "children": [113, 114], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 29, "column": 46}}, {"id": 113, "type": "primitive_type", "text": "void", "parent": 112, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 6}}, {"id": 114, "type": "function_declarator", "text": "GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error)", "parent": 112, "children": [115, 116], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 29, "column": 45}}, {"id": 115, "type": "identifier", "text": "GetBigFeedbackLogs", "parent": 114, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 25}}, {"id": 116, "type": "parameter_list", "text": "(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error)", "parent": 114, "children": [117, 124, 129], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 29, "column": 45}}, {"id": 117, "type": "parameter_declaration", "text": "DBus::Connection* connection", "parent": 116, "children": [118, 119, 121], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 54}}, {"id": 118, "type": "type_identifier", "text": "DBus", "parent": 117, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 30}}, {"id": 119, "type": "ERROR", "text": "::Connection", "parent": 117, "children": [120], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 42}}, {"id": 120, "type": "identifier", "text": "Connection", "parent": 119, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 42}}, {"id": 121, "type": "pointer_declarator", "text": "* connection", "parent": 117, "children": [122, 123], "start_point": {"row": 27, "column": 42}, "end_point": {"row": 27, "column": 54}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 27, "column": 42}, "end_point": {"row": 27, "column": 43}}, {"id": 123, "type": "identifier", "text": "connection", "parent": 121, "children": [], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 54}}, {"id": 124, "type": "parameter_declaration", "text": "const DBus::FileDescriptor& fd", "parent": 116, "children": [125, 126, 128], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 56}}, {"id": 125, "type": "type_identifier", "text": "DBus", "parent": 124, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 36}}, {"id": 126, "type": "ERROR", "text": "::FileDescriptor&", "parent": 124, "children": [127], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 53}}, {"id": 127, "type": "identifier", "text": "FileDescriptor", "parent": 126, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 52}}, {"id": 128, "type": "identifier", "text": "fd", "parent": 124, "children": [], "start_point": {"row": 28, "column": 54}, "end_point": {"row": 28, "column": 56}}, {"id": 129, "type": "parameter_declaration", "text": "DBus::Error* error", "parent": 116, "children": [130, 131, 133], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 44}}, {"id": 130, "type": "type_identifier", "text": "DBus", "parent": 129, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 30}}, {"id": 131, "type": "ERROR", "text": "::Error", "parent": 129, "children": [132], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 37}}, {"id": 132, "type": "identifier", "text": "Error", "parent": 131, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 37}}, {"id": 133, "type": "pointer_declarator", "text": "* error", "parent": 129, "children": [134, 135], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 44}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 38}}, {"id": 135, "type": "identifier", "text": "error", "parent": 133, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 44}}, {"id": 136, "type": "declaration", "text": "LogMap GetUserLogFiles(DBus::Error* error);", "parent": 24, "children": [137, 138], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 45}}, {"id": 137, "type": "type_identifier", "text": "LogMap", "parent": 136, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 8}}, {"id": 138, "type": "function_declarator", "text": "GetUserLogFiles(DBus::Error* error)", "parent": 136, "children": [139, 140], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 44}}, {"id": 139, "type": "identifier", "text": "GetUserLogFiles", "parent": 138, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 24}}, {"id": 140, "type": "parameter_list", "text": "(DBus::Error* error)", "parent": 138, "children": [141], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 44}}, {"id": 141, "type": "parameter_declaration", "text": "DBus::Error* error", "parent": 140, "children": [142, 143, 145], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 43}}, {"id": 142, "type": "type_identifier", "text": "DBus", "parent": 141, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 29}}, {"id": 143, "type": "ERROR", "text": "::Error", "parent": 141, "children": [144], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 36}}, {"id": 144, "type": "identifier", "text": "Error", "parent": 143, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 36}}, {"id": 145, "type": "pointer_declarator", "text": "* error", "parent": 141, "children": [146, 147], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 43}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 37}}, {"id": 147, "type": "identifier", "text": "error", "parent": 145, "children": [], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 43}}, {"id": 148, "type": "labeled_statement", "text": "private:\n friend class LogToolTest;", "parent": 24, "children": [149], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 33, "column": 27}}, {"id": 149, "type": "declaration", "text": "friend class LogToolTest;", "parent": 148, "children": [150, 151], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 27}}, {"id": 150, "type": "type_identifier", "text": "friend", "parent": 149, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 151, "type": "identifier", "text": "LogToolTest", "parent": 149, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 26}}, {"id": 152, "type": "declaration", "text": "void AnonymizeLogMap(LogMap* log_map);", "parent": 24, "children": [153, 154], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 40}}, {"id": 153, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 6}}, {"id": 154, "type": "function_declarator", "text": "AnonymizeLogMap(LogMap* log_map)", "parent": 152, "children": [155, 156], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 39}}, {"id": 155, "type": "identifier", "text": "AnonymizeLogMap", "parent": 154, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 22}}, {"id": 156, "type": "parameter_list", "text": "(LogMap* log_map)", "parent": 154, "children": [157], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 39}}, {"id": 157, "type": "parameter_declaration", "text": "LogMap* log_map", "parent": 156, "children": [158, 159], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 38}}, {"id": 158, "type": "type_identifier", "text": "LogMap", "parent": 157, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 29}}, {"id": 159, "type": "pointer_declarator", "text": "* log_map", "parent": 157, "children": [160, 161], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 38}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 30}}, {"id": 161, "type": "identifier", "text": "log_map", "parent": 159, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 38}}, {"id": 162, "type": "declaration", "text": "void CreateConnectivityReport(DBus::Connection* connection);", "parent": 24, "children": [163, 164], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 62}}, {"id": 163, "type": "primitive_type", "text": "void", "parent": 162, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 164, "type": "function_declarator", "text": "CreateConnectivityReport(DBus::Connection* connection)", "parent": 162, "children": [165, 166], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 61}}, {"id": 165, "type": "identifier", "text": "CreateConnectivityReport", "parent": 164, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 31}}, {"id": 166, "type": "parameter_list", "text": "(DBus::Connection* connection)", "parent": 164, "children": [167], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 61}}, {"id": 167, "type": "parameter_declaration", "text": "DBus::Connection* connection", "parent": 166, "children": [168, 169, 171], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 60}}, {"id": 168, "type": "type_identifier", "text": "DBus", "parent": 167, "children": [], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 36}}, {"id": 169, "type": "ERROR", "text": "::Connection", "parent": 167, "children": [170], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 48}}, {"id": 170, "type": "identifier", "text": "Connection", "parent": 169, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 48}}, {"id": 171, "type": "pointer_declarator", "text": "* connection", "parent": 167, "children": [172, 173], "start_point": {"row": 36, "column": 48}, "end_point": {"row": 36, "column": 60}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 36, "column": 48}, "end_point": {"row": 36, "column": 49}}, {"id": 173, "type": "identifier", "text": "connection", "parent": 171, "children": [], "start_point": {"row": 36, "column": 50}, "end_point": {"row": 36, "column": 60}}, {"id": 174, "type": "declaration", "text": "AnonymizerTool anonymizer_;", "parent": 24, "children": [175, 176], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 29}}, {"id": 175, "type": "type_identifier", "text": "AnonymizerTool", "parent": 174, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 16}}, {"id": 176, "type": "identifier", "text": "anonymizer_", "parent": 174, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 28}}, {"id": 177, "type": "call_expression", "text": "DISALLOW_COPY_AND_ASSIGN(LogTool)", "parent": 24, "children": [178, 179], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 35}}, {"id": 178, "type": "identifier", "text": "DISALLOW_COPY_AND_ASSIGN", "parent": 177, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 26}}, {"id": 179, "type": "argument_list", "text": "(LogTool)", "parent": 177, "children": [180], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 35}}, {"id": 180, "type": "identifier", "text": "LogTool", "parent": 179, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 34}}, {"id": 181, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 24, 76, 95, 114, 138, 154, 164], "variables": [41, 69, 74, 79, 86, 93, 98, 105, 112, 117, 124, 129, 136, 141, 149, 152, 157, 162, 167, 174], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [28, 33, 36, 48, 64, 65, 177], "assignments": [27, 35], "loops": [], "conditionals": [0, 1, 2, 5, 22, 23, 25, 29, 32, 37, 40, 42, 44, 47, 49, 51, 52, 54, 55, 59, 61, 62, 63, 66, 67, 68, 70, 73, 75, 77, 80, 82, 85, 87, 89, 92, 94, 96, 99, 101, 104, 106, 108, 111, 115, 118, 120, 123, 125, 127, 128, 130, 132, 135, 137, 139, 142, 144, 147, 150, 151, 155, 158, 161, 165, 168, 170, 173, 175, 176, 178, 180, 181], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "LogTool", "text_snippet": "namespace debugd {\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using"}, {"node_id": 24, "universal_type": "function", "name": "LogTool", "text_snippet": "class LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<s"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "GetAllLogs(DBus::Connection* connection, DBus::Error* error)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error)"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescripto"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "GetUserLogFiles(DBus::Error* error)"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "AnonymizeLogMap(LogMap* log_map)"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "CreateConnectivityReport(DBus::Connection* connection)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <map>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <string>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <base/macros.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <dbus-c++/dbus.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"debugd/src/anonymizer_tool.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "// Copyright (c) 2012 The Chromium OS 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 DEBUGD_SRC_LOG_TOOL_H_\n#define DEBUGD_SRC_LOG_TOOL_H_\n\n#include <map>\n#include <string>\n\n#include <base/macros.h>\n#include <dbus-c++/dbus.h>\n\n#include \"debugd/src/anonymizer_tool.h\"\n\nnamespace debugd {\n\nclass LogTool {\n public:\n LogTool() = default;\n ~LogTool() = default;\n\n using LogMap = std::map<std::string, std::string>;\n\n std::string GetLog(const std::string& name, DBus::Error* error);\n LogMap GetAllLogs(DBus::Connection* connection, DBus::Error* error);\n LogMap GetFeedbackLogs(DBus::Connection* connection, DBus::Error* error);\n void GetBigFeedbackLogs(DBus::Connection* connection,\n const DBus::FileDescriptor& fd,\n DBus::Error* error);\n LogMap GetUserLogFiles(DBus::Error* error);\n\n private:\n friend class LogToolTest;\n\n void AnonymizeLogMap(LogMap* log_map);\n void CreateConnectivityReport(DBus::Connection* connection);\n\n AnonymizerTool anonymizer_;\n\n DISALLOW_COPY_AND_ASSIGN(LogTool);\n};\n\n} // namespace debugd\n\n#endif // DEBUGD_SRC_LOG_TOOL_H_\n"}
80,850
c
// // Created by pengfei.zhou on 2019/11/29. // #import <Foundation/Foundation.h> #import "DoricNativePlugin.h" @interface DoricAnimatePlugin : DoricNativePlugin @end
22.86
7
(translation_unit) "//\n// Created by pengfei.zhou on 2019/11/29.\n//\n\n#import <Foundation/Foundation.h>\n\n#import "DoricNativePlugin.h"\n\n@interface DoricAnimatePlugin : DoricNativePlugin\n@end" (comment) "//" (comment) "// Created by pengfei.zhou on 2019/11/29." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import "DoricNativePlugin.h"\n" (preproc_directive) "#import" (preproc_arg) ""DoricNativePlugin.h"" (ERROR) "@interface DoricAnimatePlugin : DoricNativePlugin\n@end" (ERROR) "@" (type_identifier) "interface" (identifier) "DoricAnimatePlugin" (:) ":" (identifier) "DoricNativePlugin" (ERROR) "@" (identifier) "end"
18
3
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 22.86, "nodes": 12, "errors": 0, "source_hash": "06da6566b3d30b846e6a1c553b92353ca3dd0382b973bfcf4df28075207c9a59", "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": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "#import \"DoricNativePlugin.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "\"DoricNativePlugin.h\"", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 29}}, {"id": 6, "type": "ERROR", "text": "@interface DoricAnimatePlugin : DoricNativePlugin\n@end", "parent": null, "children": [7, 8, 9, 10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 7, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 8, "type": "type_identifier", "text": "interface", "parent": 6, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 10}}, {"id": 9, "type": "identifier", "text": "DoricAnimatePlugin", "parent": 6, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 29}}, {"id": 10, "type": "identifier", "text": "DoricNativePlugin", "parent": 6, "children": [], "start_point": {"row": 8, "column": 32}, "end_point": {"row": 8, "column": 49}}, {"id": 11, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "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// Created by pengfei.zhou on 2019/11/29.\n//\n\n#import <Foundation/Foundation.h>\n\n#import \"DoricNativePlugin.h\"\n\n@interface DoricAnimatePlugin : DoricNativePlugin\n@end"}
80,851
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "fmt.h" #include "matrix.h" #include "utils.h" #define RAND_M 5 #define MAX_MSG_LEN 256 #define ROW1 10 #define COL1 10 #define ROW2 10 #define COL2 12 int main() { srand(time(NULL)); matrix* m1 = gen_matrix(ROW1, COL1); if (m1 == NULL) return EXIT_FAILURE; fill_with_rand(m1, (ROW1 * COL1), RAND_M); matrix* m2 = gen_matrix(ROW2, COL2); if (m2 == NULL) { free_matrix(m1); return EXIT_FAILURE; } fill_with_rand(m2, ROW2 * COL2, RAND_M); printf("Matrice1\n"); print_mx(m1); printf("\n"); printf("Matrice2\n"); print_mx(m2); char msg[MAX_MSG_LEN] = {0}; start_clock(); matrix* prod = matrix_p(m1, m2); end_clock(msg); if (prod != NULL) { printf("\n\n"); printf("Matrice1 * Matrice2\n"); print_mx(prod); free_matrix(prod); prod = NULL; } printf("%s\n", msg); free_matrix(m1); m1 = NULL; free_matrix(m2); m2 = NULL; return EXIT_SUCCESS; }
20.26
47
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n#include "fmt.h"\n#include "matrix.h"\n#include "utils.h"\n\n#define RAND_M 5\n#define MAX_MSG_LEN 256\n#define ROW1 10\n#define COL1 10\n\n#define ROW2 10\n#define COL2 12\n\nint main() {\n srand(time(NULL));\n\n matrix* m1 = gen_matrix(ROW1, COL1);\n if (m1 == NULL) return EXIT_FAILURE;\n fill_with_rand(m1, (ROW1 * COL1), RAND_M);\n\n matrix* m2 = gen_matrix(ROW2, COL2);\n if (m2 == NULL) {\n free_matrix(m1);\n return EXIT_FAILURE;\n }\n fill_with_rand(m2, ROW2 * COL2, RAND_M);\n\n printf("Matrice1\n");\n print_mx(m1);\n printf("\n");\n\n printf("Matrice2\n");\n print_mx(m2);\n char msg[MAX_MSG_LEN] = {0};\n\n start_clock();\n\n matrix* prod = matrix_p(m1, m2);\n\n end_clock(msg);\n\n if (prod != NULL) {\n printf("\n\n");\n printf("Matrice1 * Matrice2\n");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }\n printf("%s\n", msg);\n\n free_matrix(m1);\n m1 = NULL;\n free_matrix(m2);\n m2 = NULL;\n\n return EXIT_SUCCESS;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <time.h>\n" (#include) "#include" (system_lib_string) "<time.h>" (preproc_include) "#include "fmt.h"\n" (#include) "#include" (string_literal) ""fmt.h"" (") """ (string_content) "fmt.h" (") """ (preproc_include) "#include "matrix.h"\n" (#include) "#include" (string_literal) ""matrix.h"" (") """ (string_content) "matrix.h" (") """ (preproc_include) "#include "utils.h"\n" (#include) "#include" (string_literal) ""utils.h"" (") """ (string_content) "utils.h" (") """ (preproc_def) "#define RAND_M 5\n" (#define) "#define" (identifier) "RAND_M" (preproc_arg) "5" (preproc_def) "#define MAX_MSG_LEN 256\n" (#define) "#define" (identifier) "MAX_MSG_LEN" (preproc_arg) "256" (preproc_def) "#define ROW1 10\n" (#define) "#define" (identifier) "ROW1" (preproc_arg) "10" (preproc_def) "#define COL1 10\n" (#define) "#define" (identifier) "COL1" (preproc_arg) "10" (preproc_def) "#define ROW2 10\n" (#define) "#define" (identifier) "ROW2" (preproc_arg) "10" (preproc_def) "#define COL2 12\n" (#define) "#define" (identifier) "COL2" (preproc_arg) "12" (function_definition) "int main() {\n srand(time(NULL));\n\n matrix* m1 = gen_matrix(ROW1, COL1);\n if (m1 == NULL) return EXIT_FAILURE;\n fill_with_rand(m1, (ROW1 * COL1), RAND_M);\n\n matrix* m2 = gen_matrix(ROW2, COL2);\n if (m2 == NULL) {\n free_matrix(m1);\n return EXIT_FAILURE;\n }\n fill_with_rand(m2, ROW2 * COL2, RAND_M);\n\n printf("Matrice1\n");\n print_mx(m1);\n printf("\n");\n\n printf("Matrice2\n");\n print_mx(m2);\n char msg[MAX_MSG_LEN] = {0};\n\n start_clock();\n\n matrix* prod = matrix_p(m1, m2);\n\n end_clock(msg);\n\n if (prod != NULL) {\n printf("\n\n");\n printf("Matrice1 * Matrice2\n");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }\n printf("%s\n", msg);\n\n free_matrix(m1);\n m1 = NULL;\n free_matrix(m2);\n m2 = NULL;\n\n return EXIT_SUCCESS;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n srand(time(NULL));\n\n matrix* m1 = gen_matrix(ROW1, COL1);\n if (m1 == NULL) return EXIT_FAILURE;\n fill_with_rand(m1, (ROW1 * COL1), RAND_M);\n\n matrix* m2 = gen_matrix(ROW2, COL2);\n if (m2 == NULL) {\n free_matrix(m1);\n return EXIT_FAILURE;\n }\n fill_with_rand(m2, ROW2 * COL2, RAND_M);\n\n printf("Matrice1\n");\n print_mx(m1);\n printf("\n");\n\n printf("Matrice2\n");\n print_mx(m2);\n char msg[MAX_MSG_LEN] = {0};\n\n start_clock();\n\n matrix* prod = matrix_p(m1, m2);\n\n end_clock(msg);\n\n if (prod != NULL) {\n printf("\n\n");\n printf("Matrice1 * Matrice2\n");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }\n printf("%s\n", msg);\n\n free_matrix(m1);\n m1 = NULL;\n free_matrix(m2);\n m2 = NULL;\n\n return EXIT_SUCCESS;\n}" ({) "{" (expression_statement) "srand(time(NULL));" (call_expression) "srand(time(NULL))" (identifier) "srand" (argument_list) "(time(NULL))" (() "(" (call_expression) "time(NULL)" (identifier) "time" (argument_list) "(NULL)" (() "(" (null) "NULL" (NULL) "NULL" ()) ")" ()) ")" (;) ";" (declaration) "matrix* m1 = gen_matrix(ROW1, COL1);" (type_identifier) "matrix" (init_declarator) "* m1 = gen_matrix(ROW1, COL1)" (pointer_declarator) "* m1" (*) "*" (identifier) "m1" (=) "=" (call_expression) "gen_matrix(ROW1, COL1)" (identifier) "gen_matrix" (argument_list) "(ROW1, COL1)" (() "(" (identifier) "ROW1" (,) "," (identifier) "COL1" ()) ")" (;) ";" (if_statement) "if (m1 == NULL) return EXIT_FAILURE;" (if) "if" (parenthesized_expression) "(m1 == NULL)" (() "(" (binary_expression) "m1 == NULL" (identifier) "m1" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return EXIT_FAILURE;" (return) "return" (identifier) "EXIT_FAILURE" (;) ";" (expression_statement) "fill_with_rand(m1, (ROW1 * COL1), RAND_M);" (call_expression) "fill_with_rand(m1, (ROW1 * COL1), RAND_M)" (identifier) "fill_with_rand" (argument_list) "(m1, (ROW1 * COL1), RAND_M)" (() "(" (identifier) "m1" (,) "," (parenthesized_expression) "(ROW1 * COL1)" (() "(" (binary_expression) "ROW1 * COL1" (identifier) "ROW1" (*) "*" (identifier) "COL1" ()) ")" (,) "," (identifier) "RAND_M" ()) ")" (;) ";" (declaration) "matrix* m2 = gen_matrix(ROW2, COL2);" (type_identifier) "matrix" (init_declarator) "* m2 = gen_matrix(ROW2, COL2)" (pointer_declarator) "* m2" (*) "*" (identifier) "m2" (=) "=" (call_expression) "gen_matrix(ROW2, COL2)" (identifier) "gen_matrix" (argument_list) "(ROW2, COL2)" (() "(" (identifier) "ROW2" (,) "," (identifier) "COL2" ()) ")" (;) ";" (if_statement) "if (m2 == NULL) {\n free_matrix(m1);\n return EXIT_FAILURE;\n }" (if) "if" (parenthesized_expression) "(m2 == NULL)" (() "(" (binary_expression) "m2 == NULL" (identifier) "m2" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n free_matrix(m1);\n return EXIT_FAILURE;\n }" ({) "{" (expression_statement) "free_matrix(m1);" (call_expression) "free_matrix(m1)" (identifier) "free_matrix" (argument_list) "(m1)" (() "(" (identifier) "m1" ()) ")" (;) ";" (return_statement) "return EXIT_FAILURE;" (return) "return" (identifier) "EXIT_FAILURE" (;) ";" (}) "}" (expression_statement) "fill_with_rand(m2, ROW2 * COL2, RAND_M);" (call_expression) "fill_with_rand(m2, ROW2 * COL2, RAND_M)" (identifier) "fill_with_rand" (argument_list) "(m2, ROW2 * COL2, RAND_M)" (() "(" (identifier) "m2" (,) "," (binary_expression) "ROW2 * COL2" (identifier) "ROW2" (*) "*" (identifier) "COL2" (,) "," (identifier) "RAND_M" ()) ")" (;) ";" (expression_statement) "printf("Matrice1\n");" (call_expression) "printf("Matrice1\n")" (identifier) "printf" (argument_list) "("Matrice1\n")" (() "(" (string_literal) ""Matrice1\n"" (") """ (string_content) "Matrice1" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "print_mx(m1);" (call_expression) "print_mx(m1)" (identifier) "print_mx" (argument_list) "(m1)" (() "(" (identifier) "m1" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("Matrice2\n");" (call_expression) "printf("Matrice2\n")" (identifier) "printf" (argument_list) "("Matrice2\n")" (() "(" (string_literal) ""Matrice2\n"" (") """ (string_content) "Matrice2" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "print_mx(m2);" (call_expression) "print_mx(m2)" (identifier) "print_mx" (argument_list) "(m2)" (() "(" (identifier) "m2" ()) ")" (;) ";" (declaration) "char msg[MAX_MSG_LEN] = {0};" (primitive_type) "char" (init_declarator) "msg[MAX_MSG_LEN] = {0}" (array_declarator) "msg[MAX_MSG_LEN]" (identifier) "msg" ([) "[" (identifier) "MAX_MSG_LEN" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (expression_statement) "start_clock();" (call_expression) "start_clock()" (identifier) "start_clock" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "matrix* prod = matrix_p(m1, m2);" (type_identifier) "matrix" (init_declarator) "* prod = matrix_p(m1, m2)" (pointer_declarator) "* prod" (*) "*" (identifier) "prod" (=) "=" (call_expression) "matrix_p(m1, m2)" (identifier) "matrix_p" (argument_list) "(m1, m2)" (() "(" (identifier) "m1" (,) "," (identifier) "m2" ()) ")" (;) ";" (expression_statement) "end_clock(msg);" (call_expression) "end_clock(msg)" (identifier) "end_clock" (argument_list) "(msg)" (() "(" (identifier) "msg" ()) ")" (;) ";" (if_statement) "if (prod != NULL) {\n printf("\n\n");\n printf("Matrice1 * Matrice2\n");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }" (if) "if" (parenthesized_expression) "(prod != NULL)" (() "(" (binary_expression) "prod != NULL" (identifier) "prod" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("\n\n");\n printf("Matrice1 * Matrice2\n");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }" ({) "{" (expression_statement) "printf("\n\n");" (call_expression) "printf("\n\n")" (identifier) "printf" (argument_list) "("\n\n")" (() "(" (string_literal) ""\n\n"" (") """ (escape_sequence) "\n" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("Matrice1 * Matrice2\n");" (call_expression) "printf("Matrice1 * Matrice2\n")" (identifier) "printf" (argument_list) "("Matrice1 * Matrice2\n")" (() "(" (string_literal) ""Matrice1 * Matrice2\n"" (") """ (string_content) "Matrice1 * Matrice2" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "print_mx(prod);" (call_expression) "print_mx(prod)" (identifier) "print_mx" (argument_list) "(prod)" (() "(" (identifier) "prod" ()) ")" (;) ";" (expression_statement) "free_matrix(prod);" (call_expression) "free_matrix(prod)" (identifier) "free_matrix" (argument_list) "(prod)" (() "(" (identifier) "prod" ()) ")" (;) ";" (expression_statement) "prod = NULL;" (assignment_expression) "prod = NULL" (identifier) "prod" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "printf("%s\n", msg);" (call_expression) "printf("%s\n", msg)" (identifier) "printf" (argument_list) "("%s\n", msg)" (() "(" (string_literal) ""%s\n"" (") """ (string_content) "%s" (escape_sequence) "\n" (") """ (,) "," (identifier) "msg" ()) ")" (;) ";" (expression_statement) "free_matrix(m1);" (call_expression) "free_matrix(m1)" (identifier) "free_matrix" (argument_list) "(m1)" (() "(" (identifier) "m1" ()) ")" (;) ";" (expression_statement) "m1 = NULL;" (assignment_expression) "m1 = NULL" (identifier) "m1" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "free_matrix(m2);" (call_expression) "free_matrix(m2)" (identifier) "free_matrix" (argument_list) "(m2)" (() "(" (identifier) "m2" ()) ")" (;) ";" (expression_statement) "m2 = NULL;" (assignment_expression) "m2 = NULL" (identifier) "m2" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (return_statement) "return EXIT_SUCCESS;" (return) "return" (identifier) "EXIT_SUCCESS" (;) ";" (}) "}"
387
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 20.26, "nodes": 231, "errors": 0, "source_hash": "47efa1049bcb6fb6e4048fd5b6ee156c2f1f67b5913df98003b27a558ba1531a", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <time.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<time.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include \"fmt.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": "\"fmt.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 16}}, {"id": 15, "type": "preproc_include", "text": "#include \"matrix.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": "\"matrix.h\"", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include \"utils.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"utils.h\"", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 21, "type": "preproc_def", "text": "#define RAND_M 5\n", "parent": null, "children": [22, 23, 24], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 23, "type": "identifier", "text": "RAND_M", "parent": 21, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 24, "type": "preproc_arg", "text": "5", "parent": 21, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 16}}, {"id": 25, "type": "preproc_def", "text": "#define MAX_MSG_LEN 256\n", "parent": null, "children": [26, 27, 28], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 27, "type": "identifier", "text": "MAX_MSG_LEN", "parent": 25, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 19}}, {"id": 28, "type": "preproc_arg", "text": "256", "parent": 25, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 23}}, {"id": 29, "type": "preproc_def", "text": "#define ROW1 10\n", "parent": null, "children": [30, 31, 32], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 31, "type": "identifier", "text": "ROW1", "parent": 29, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 32, "type": "preproc_arg", "text": "10", "parent": 29, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 15}}, {"id": 33, "type": "preproc_def", "text": "#define COL1 10\n", "parent": null, "children": [34, 35, 36], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 35, "type": "identifier", "text": "COL1", "parent": 33, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 12}}, {"id": 36, "type": "preproc_arg", "text": "10", "parent": 33, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 15}}, {"id": 37, "type": "preproc_def", "text": "#define ROW2 10\n", "parent": null, "children": [38, 39, 40], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 39, "type": "identifier", "text": "ROW2", "parent": 37, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 40, "type": "preproc_arg", "text": "10", "parent": 37, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 15}}, {"id": 41, "type": "preproc_def", "text": "#define COL2 12\n", "parent": null, "children": [42, 43, 44], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 43, "type": "identifier", "text": "COL2", "parent": 41, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 12}}, {"id": 44, "type": "preproc_arg", "text": "12", "parent": 41, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 15}}, {"id": 45, "type": "function_definition", "text": "int main() {\n srand(time(NULL));\n\n matrix* m1 = gen_matrix(ROW1, COL1);\n if (m1 == NULL) return EXIT_FAILURE;\n fill_with_rand(m1, (ROW1 * COL1), RAND_M);\n\n matrix* m2 = gen_matrix(ROW2, COL2);\n if (m2 == NULL) {\n free_matrix(m1);\n return EXIT_FAILURE;\n }\n fill_with_rand(m2, ROW2 * COL2, RAND_M);\n\n printf(\"Matrice1\\n\");\n print_mx(m1);\n printf(\"\\n\");\n\n printf(\"Matrice2\\n\");\n print_mx(m2);\n char msg[MAX_MSG_LEN] = {0};\n\n start_clock();\n\n matrix* prod = matrix_p(m1, m2);\n\n end_clock(msg);\n\n if (prod != NULL) {\n printf(\"\\n\\n\");\n printf(\"Matrice1 * Matrice2\\n\");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }\n printf(\"%s\\n\", msg);\n\n free_matrix(m1);\n m1 = NULL;\n free_matrix(m2);\n m2 = NULL;\n\n return EXIT_SUCCESS;\n}", "parent": null, "children": [46, 47], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 3}}, {"id": 47, "type": "function_declarator", "text": "main()", "parent": 45, "children": [48, 49], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 10}}, {"id": 48, "type": "identifier", "text": "main", "parent": 47, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 8}}, {"id": 49, "type": "parameter_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 10}}, {"id": 50, "type": "call_expression", "text": "srand(time(NULL))", "parent": 45, "children": [51, 52], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 19}}, {"id": 51, "type": "identifier", "text": "srand", "parent": 50, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 7}}, {"id": 52, "type": "argument_list", "text": "(time(NULL))", "parent": 50, "children": [53], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 19}}, {"id": 53, "type": "call_expression", "text": "time(NULL)", "parent": 52, "children": [54, 55], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 18}}, {"id": 54, "type": "identifier", "text": "time", "parent": 53, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 55, "type": "argument_list", "text": "(NULL)", "parent": 53, "children": [56], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 18}}, {"id": 56, "type": "null", "text": "NULL", "parent": 55, "children": [57], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 17}}, {"id": 57, "type": "NULL", "text": "NULL", "parent": 56, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 17}}, {"id": 58, "type": "declaration", "text": "matrix* m1 = gen_matrix(ROW1, COL1);", "parent": 45, "children": [59, 60], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 38}}, {"id": 59, "type": "type_identifier", "text": "matrix", "parent": 58, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 8}}, {"id": 60, "type": "init_declarator", "text": "* m1 = gen_matrix(ROW1, COL1)", "parent": 58, "children": [61, 64, 65], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 37}}, {"id": 61, "type": "pointer_declarator", "text": "* m1", "parent": 60, "children": [62, 63], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 63, "type": "identifier", "text": "m1", "parent": 61, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 12}}, {"id": 64, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 65, "type": "call_expression", "text": "gen_matrix(ROW1, COL1)", "parent": 60, "children": [66, 67], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 37}}, {"id": 66, "type": "identifier", "text": "gen_matrix", "parent": 65, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 25}}, {"id": 67, "type": "argument_list", "text": "(ROW1, COL1)", "parent": 65, "children": [68, 69], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 37}}, {"id": 68, "type": "identifier", "text": "ROW1", "parent": 67, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 30}}, {"id": 69, "type": "identifier", "text": "COL1", "parent": 67, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 36}}, {"id": 70, "type": "if_statement", "text": "if (m1 == NULL) return EXIT_FAILURE;", "parent": 45, "children": [71, 77], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 38}}, {"id": 71, "type": "parenthesized_expression", "text": "(m1 == NULL)", "parent": 70, "children": [72], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 17}}, {"id": 72, "type": "binary_expression", "text": "m1 == NULL", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 16}}, {"id": 73, "type": "identifier", "text": "m1", "parent": 72, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 8}}, {"id": 74, "type": "==", "text": "==", "parent": 72, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 11}}, {"id": 75, "type": "null", "text": "NULL", "parent": 72, "children": [76], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 76, "type": "NULL", "text": "NULL", "parent": 75, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 77, "type": "return_statement", "text": "return EXIT_FAILURE;", "parent": 70, "children": [78], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 38}}, {"id": 78, "type": "identifier", "text": "EXIT_FAILURE", "parent": 77, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 37}}, {"id": 79, "type": "call_expression", "text": "fill_with_rand(m1, (ROW1 * COL1), RAND_M)", "parent": 45, "children": [80, 81], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 43}}, {"id": 80, "type": "identifier", "text": "fill_with_rand", "parent": 79, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 16}}, {"id": 81, "type": "argument_list", "text": "(m1, (ROW1 * COL1), RAND_M)", "parent": 79, "children": [82, 83, 88], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 43}}, {"id": 82, "type": "identifier", "text": "m1", "parent": 81, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 19}}, {"id": 83, "type": "parenthesized_expression", "text": "(ROW1 * COL1)", "parent": 81, "children": [84], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 34}}, {"id": 84, "type": "binary_expression", "text": "ROW1 * COL1", "parent": 83, "children": [85, 86, 87], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 33}}, {"id": 85, "type": "identifier", "text": "ROW1", "parent": 84, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 26}}, {"id": 86, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 28}}, {"id": 87, "type": "identifier", "text": "COL1", "parent": 84, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 33}}, {"id": 88, "type": "identifier", "text": "RAND_M", "parent": 81, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 42}}, {"id": 89, "type": "declaration", "text": "matrix* m2 = gen_matrix(ROW2, COL2);", "parent": 45, "children": [90, 91], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 38}}, {"id": 90, "type": "type_identifier", "text": "matrix", "parent": 89, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 8}}, {"id": 91, "type": "init_declarator", "text": "* m2 = gen_matrix(ROW2, COL2)", "parent": 89, "children": [92, 95, 96], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 37}}, {"id": 92, "type": "pointer_declarator", "text": "* m2", "parent": 91, "children": [93, 94], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 94, "type": "identifier", "text": "m2", "parent": 92, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 12}}, {"id": 95, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 96, "type": "call_expression", "text": "gen_matrix(ROW2, COL2)", "parent": 91, "children": [97, 98], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 37}}, {"id": 97, "type": "identifier", "text": "gen_matrix", "parent": 96, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 25}}, {"id": 98, "type": "argument_list", "text": "(ROW2, COL2)", "parent": 96, "children": [99, 100], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 37}}, {"id": 99, "type": "identifier", "text": "ROW2", "parent": 98, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 30}}, {"id": 100, "type": "identifier", "text": "COL2", "parent": 98, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 36}}, {"id": 101, "type": "if_statement", "text": "if (m2 == NULL) {\n free_matrix(m1);\n return EXIT_FAILURE;\n }", "parent": 45, "children": [102], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 28, "column": 3}}, {"id": 102, "type": "parenthesized_expression", "text": "(m2 == NULL)", "parent": 101, "children": [103], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 17}}, {"id": 103, "type": "binary_expression", "text": "m2 == NULL", "parent": 102, "children": [104, 105, 106], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 16}}, {"id": 104, "type": "identifier", "text": "m2", "parent": 103, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 8}}, {"id": 105, "type": "==", "text": "==", "parent": 103, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 11}}, {"id": 106, "type": "null", "text": "NULL", "parent": 103, "children": [107], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 107, "type": "NULL", "text": "NULL", "parent": 106, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 108, "type": "call_expression", "text": "free_matrix(m1)", "parent": 101, "children": [109, 110], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 19}}, {"id": 109, "type": "identifier", "text": "free_matrix", "parent": 108, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 15}}, {"id": 110, "type": "argument_list", "text": "(m1)", "parent": 108, "children": [111], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 19}}, {"id": 111, "type": "identifier", "text": "m1", "parent": 110, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 18}}, {"id": 112, "type": "return_statement", "text": "return EXIT_FAILURE;", "parent": 101, "children": [113], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 24}}, {"id": 113, "type": "identifier", "text": "EXIT_FAILURE", "parent": 112, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 23}}, {"id": 114, "type": "call_expression", "text": "fill_with_rand(m2, ROW2 * COL2, RAND_M)", "parent": 45, "children": [115, 116], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 41}}, {"id": 115, "type": "identifier", "text": "fill_with_rand", "parent": 114, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 16}}, {"id": 116, "type": "argument_list", "text": "(m2, ROW2 * COL2, RAND_M)", "parent": 114, "children": [117, 118, 122], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 41}}, {"id": 117, "type": "identifier", "text": "m2", "parent": 116, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 19}}, {"id": 118, "type": "binary_expression", "text": "ROW2 * COL2", "parent": 116, "children": [119, 120, 121], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 32}}, {"id": 119, "type": "identifier", "text": "ROW2", "parent": 118, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 25}}, {"id": 120, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 27}}, {"id": 121, "type": "identifier", "text": "COL2", "parent": 118, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 32}}, {"id": 122, "type": "identifier", "text": "RAND_M", "parent": 116, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 40}}, {"id": 123, "type": "call_expression", "text": "printf(\"Matrice1\\n\")", "parent": 45, "children": [124, 125], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 22}}, {"id": 124, "type": "identifier", "text": "printf", "parent": 123, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 8}}, {"id": 125, "type": "argument_list", "text": "(\"Matrice1\\n\")", "parent": 123, "children": [126], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 22}}, {"id": 126, "type": "string_literal", "text": "\"Matrice1\\n\"", "parent": 125, "children": [127], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 21}}, {"id": 127, "type": "escape_sequence", "text": "\\n", "parent": 126, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 20}}, {"id": 128, "type": "call_expression", "text": "print_mx(m1)", "parent": 45, "children": [129, 130], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 14}}, {"id": 129, "type": "identifier", "text": "print_mx", "parent": 128, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 10}}, {"id": 130, "type": "argument_list", "text": "(m1)", "parent": 128, "children": [131], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 14}}, {"id": 131, "type": "identifier", "text": "m1", "parent": 130, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 13}}, {"id": 132, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 45, "children": [133, 134], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 14}}, {"id": 133, "type": "identifier", "text": "printf", "parent": 132, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 134, "type": "argument_list", "text": "(\"\\n\")", "parent": 132, "children": [135], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 14}}, {"id": 135, "type": "string_literal", "text": "\"\\n\"", "parent": 134, "children": [136], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 13}}, {"id": 136, "type": "escape_sequence", "text": "\\n", "parent": 135, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 12}}, {"id": 137, "type": "call_expression", "text": "printf(\"Matrice2\\n\")", "parent": 45, "children": [138, 139], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 22}}, {"id": 138, "type": "identifier", "text": "printf", "parent": 137, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 139, "type": "argument_list", "text": "(\"Matrice2\\n\")", "parent": 137, "children": [140], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 22}}, {"id": 140, "type": "string_literal", "text": "\"Matrice2\\n\"", "parent": 139, "children": [141], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 21}}, {"id": 141, "type": "escape_sequence", "text": "\\n", "parent": 140, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 20}}, {"id": 142, "type": "call_expression", "text": "print_mx(m2)", "parent": 45, "children": [143, 144], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 14}}, {"id": 143, "type": "identifier", "text": "print_mx", "parent": 142, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 10}}, {"id": 144, "type": "argument_list", "text": "(m2)", "parent": 142, "children": [145], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 14}}, {"id": 145, "type": "identifier", "text": "m2", "parent": 144, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 13}}, {"id": 146, "type": "declaration", "text": "char msg[MAX_MSG_LEN] = {0};", "parent": 45, "children": [147, 148], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 30}}, {"id": 147, "type": "primitive_type", "text": "char", "parent": 146, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 6}}, {"id": 148, "type": "init_declarator", "text": "msg[MAX_MSG_LEN] = {0}", "parent": 146, "children": [149, 152, 153], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 29}}, {"id": 149, "type": "array_declarator", "text": "msg[MAX_MSG_LEN]", "parent": 148, "children": [150, 151], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 23}}, {"id": 150, "type": "identifier", "text": "msg", "parent": 149, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 10}}, {"id": 151, "type": "identifier", "text": "MAX_MSG_LEN", "parent": 149, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 22}}, {"id": 152, "type": "=", "text": "=", "parent": 148, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 25}}, {"id": 153, "type": "initializer_list", "text": "{0}", "parent": 148, "children": [154], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 29}}, {"id": 154, "type": "number_literal", "text": "0", "parent": 153, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 28}}, {"id": 155, "type": "call_expression", "text": "start_clock()", "parent": 45, "children": [156, 157], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 15}}, {"id": 156, "type": "identifier", "text": "start_clock", "parent": 155, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 13}}, {"id": 157, "type": "argument_list", "text": "()", "parent": 155, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 15}}, {"id": 158, "type": "declaration", "text": "matrix* prod = matrix_p(m1, m2);", "parent": 45, "children": [159, 160], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 34}}, {"id": 159, "type": "type_identifier", "text": "matrix", "parent": 158, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 8}}, {"id": 160, "type": "init_declarator", "text": "* prod = matrix_p(m1, m2)", "parent": 158, "children": [161, 164, 165], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 33}}, {"id": 161, "type": "pointer_declarator", "text": "* prod", "parent": 160, "children": [162, 163], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 14}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 163, "type": "identifier", "text": "prod", "parent": 161, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 14}}, {"id": 164, "type": "=", "text": "=", "parent": 160, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 16}}, {"id": 165, "type": "call_expression", "text": "matrix_p(m1, m2)", "parent": 160, "children": [166, 167], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 33}}, {"id": 166, "type": "identifier", "text": "matrix_p", "parent": 165, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 25}}, {"id": 167, "type": "argument_list", "text": "(m1, m2)", "parent": 165, "children": [168, 169], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 33}}, {"id": 168, "type": "identifier", "text": "m1", "parent": 167, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 28}}, {"id": 169, "type": "identifier", "text": "m2", "parent": 167, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 32}}, {"id": 170, "type": "call_expression", "text": "end_clock(msg)", "parent": 45, "children": [171, 172], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 16}}, {"id": 171, "type": "identifier", "text": "end_clock", "parent": 170, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 11}}, {"id": 172, "type": "argument_list", "text": "(msg)", "parent": 170, "children": [173], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 16}}, {"id": 173, "type": "identifier", "text": "msg", "parent": 172, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 15}}, {"id": 174, "type": "if_statement", "text": "if (prod != NULL) {\n printf(\"\\n\\n\");\n printf(\"Matrice1 * Matrice2\\n\");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }", "parent": 45, "children": [175], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 52, "column": 3}}, {"id": 175, "type": "parenthesized_expression", "text": "(prod != NULL)", "parent": 174, "children": [176], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 19}}, {"id": 176, "type": "binary_expression", "text": "prod != NULL", "parent": 175, "children": [177, 178, 179], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 18}}, {"id": 177, "type": "identifier", "text": "prod", "parent": 176, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 10}}, {"id": 178, "type": "!=", "text": "!=", "parent": 176, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 13}}, {"id": 179, "type": "null", "text": "NULL", "parent": 176, "children": [180], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 18}}, {"id": 180, "type": "NULL", "text": "NULL", "parent": 179, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 18}}, {"id": 181, "type": "call_expression", "text": "printf(\"\\n\\n\")", "parent": 174, "children": [182, 183], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 18}}, {"id": 182, "type": "identifier", "text": "printf", "parent": 181, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 10}}, {"id": 183, "type": "argument_list", "text": "(\"\\n\\n\")", "parent": 181, "children": [184], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 18}}, {"id": 184, "type": "string_literal", "text": "\"\\n\\n\"", "parent": 183, "children": [185, 186], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 17}}, {"id": 185, "type": "escape_sequence", "text": "\\n", "parent": 184, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 14}}, {"id": 186, "type": "escape_sequence", "text": "\\n", "parent": 184, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 16}}, {"id": 187, "type": "call_expression", "text": "printf(\"Matrice1 * Matrice2\\n\")", "parent": 174, "children": [188, 189], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 35}}, {"id": 188, "type": "identifier", "text": "printf", "parent": 187, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 10}}, {"id": 189, "type": "argument_list", "text": "(\"Matrice1 * Matrice2\\n\")", "parent": 187, "children": [190], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 35}}, {"id": 190, "type": "string_literal", "text": "\"Matrice1 * Matrice2\\n\"", "parent": 189, "children": [191], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 34}}, {"id": 191, "type": "escape_sequence", "text": "\\n", "parent": 190, "children": [], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 33}}, {"id": 192, "type": "call_expression", "text": "print_mx(prod)", "parent": 174, "children": [193, 194], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 18}}, {"id": 193, "type": "identifier", "text": "print_mx", "parent": 192, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 12}}, {"id": 194, "type": "argument_list", "text": "(prod)", "parent": 192, "children": [195], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 195, "type": "identifier", "text": "prod", "parent": 194, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 196, "type": "call_expression", "text": "free_matrix(prod)", "parent": 174, "children": [197, 198], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 21}}, {"id": 197, "type": "identifier", "text": "free_matrix", "parent": 196, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 15}}, {"id": 198, "type": "argument_list", "text": "(prod)", "parent": 196, "children": [199], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 21}}, {"id": 199, "type": "identifier", "text": "prod", "parent": 198, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 20}}, {"id": 200, "type": "assignment_expression", "text": "prod = NULL", "parent": 174, "children": [201, 202, 203], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 15}}, {"id": 201, "type": "identifier", "text": "prod", "parent": 200, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 202, "type": "=", "text": "=", "parent": 200, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 203, "type": "null", "text": "NULL", "parent": 200, "children": [204], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 15}}, {"id": 204, "type": "NULL", "text": "NULL", "parent": 203, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 15}}, {"id": 205, "type": "call_expression", "text": "printf(\"%s\\n\", msg)", "parent": 45, "children": [206, 207], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 21}}, {"id": 206, "type": "identifier", "text": "printf", "parent": 205, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 8}}, {"id": 207, "type": "argument_list", "text": "(\"%s\\n\", msg)", "parent": 205, "children": [208, 210], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 21}}, {"id": 208, "type": "string_literal", "text": "\"%s\\n\"", "parent": 207, "children": [209], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 15}}, {"id": 209, "type": "escape_sequence", "text": "\\n", "parent": 208, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 14}}, {"id": 210, "type": "identifier", "text": "msg", "parent": 207, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 20}}, {"id": 211, "type": "call_expression", "text": "free_matrix(m1)", "parent": 45, "children": [212, 213], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 17}}, {"id": 212, "type": "identifier", "text": "free_matrix", "parent": 211, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 13}}, {"id": 213, "type": "argument_list", "text": "(m1)", "parent": 211, "children": [214], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 17}}, {"id": 214, "type": "identifier", "text": "m1", "parent": 213, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 16}}, {"id": 215, "type": "assignment_expression", "text": "m1 = NULL", "parent": 45, "children": [216, 217, 218], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 11}}, {"id": 216, "type": "identifier", "text": "m1", "parent": 215, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 4}}, {"id": 217, "type": "=", "text": "=", "parent": 215, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 6}}, {"id": 218, "type": "null", "text": "NULL", "parent": 215, "children": [219], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 11}}, {"id": 219, "type": "NULL", "text": "NULL", "parent": 218, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 11}}, {"id": 220, "type": "call_expression", "text": "free_matrix(m2)", "parent": 45, "children": [221, 222], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 17}}, {"id": 221, "type": "identifier", "text": "free_matrix", "parent": 220, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 13}}, {"id": 222, "type": "argument_list", "text": "(m2)", "parent": 220, "children": [223], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 17}}, {"id": 223, "type": "identifier", "text": "m2", "parent": 222, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 16}}, {"id": 224, "type": "assignment_expression", "text": "m2 = NULL", "parent": 45, "children": [225, 226, 227], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 11}}, {"id": 225, "type": "identifier", "text": "m2", "parent": 224, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 4}}, {"id": 226, "type": "=", "text": "=", "parent": 224, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 6}}, {"id": 227, "type": "null", "text": "NULL", "parent": 224, "children": [228], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 11}}, {"id": 228, "type": "NULL", "text": "NULL", "parent": 227, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 11}}, {"id": 229, "type": "return_statement", "text": "return EXIT_SUCCESS;", "parent": 45, "children": [230], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 22}}, {"id": 230, "type": "identifier", "text": "EXIT_SUCCESS", "parent": 229, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 21}}]}, "node_categories": {"declarations": {"functions": [45, 47], "variables": [58, 89, 146, 158], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [50, 53, 65, 71, 72, 79, 83, 84, 96, 102, 103, 108, 114, 118, 123, 128, 132, 137, 142, 155, 165, 170, 175, 176, 181, 187, 192, 196, 205, 211, 220], "assignments": [200, 215, 224], "loops": [], "conditionals": [23, 27, 31, 35, 39, 43, 48, 51, 54, 59, 63, 66, 68, 69, 70, 73, 78, 80, 82, 85, 87, 88, 90, 94, 97, 99, 100, 101, 104, 109, 111, 113, 115, 117, 119, 121, 122, 124, 129, 131, 133, 138, 143, 145, 150, 151, 156, 159, 163, 166, 168, 169, 171, 173, 174, 177, 182, 188, 193, 195, 197, 199, 201, 206, 210, 212, 214, 216, 221, 223, 225, 230], "returns": [77, 112, 229], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 126, 135, 140, 154, 184, 190, 208], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 45, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n srand(time(NULL));\n\n matrix* m1 = gen_matrix(ROW1, COL1);\n if (m1 == NULL) return E"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <string.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <time.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"fmt.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"matrix.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"utils.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <time.h>\n\n#include \"fmt.h\"\n#include \"matrix.h\"\n#include \"utils.h\"\n\n#define RAND_M 5\n#define MAX_MSG_LEN 256\n#define ROW1 10\n#define COL1 10\n\n#define ROW2 10\n#define COL2 12\n\nint main() {\n srand(time(NULL));\n\n matrix* m1 = gen_matrix(ROW1, COL1);\n if (m1 == NULL) return EXIT_FAILURE;\n fill_with_rand(m1, (ROW1 * COL1), RAND_M);\n\n matrix* m2 = gen_matrix(ROW2, COL2);\n if (m2 == NULL) {\n free_matrix(m1);\n return EXIT_FAILURE;\n }\n fill_with_rand(m2, ROW2 * COL2, RAND_M);\n\n printf(\"Matrice1\\n\");\n print_mx(m1);\n printf(\"\\n\");\n\n printf(\"Matrice2\\n\");\n print_mx(m2);\n char msg[MAX_MSG_LEN] = {0};\n\n start_clock();\n\n matrix* prod = matrix_p(m1, m2);\n\n end_clock(msg);\n\n if (prod != NULL) {\n printf(\"\\n\\n\");\n printf(\"Matrice1 * Matrice2\\n\");\n print_mx(prod);\n\n free_matrix(prod);\n prod = NULL;\n }\n printf(\"%s\\n\", msg);\n\n free_matrix(m1);\n m1 = NULL;\n free_matrix(m2);\n m2 = NULL;\n\n return EXIT_SUCCESS;\n}\n"}
80,852
c
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014-2020 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef LCB_IOTABLE_H #define LCB_IOTABLE_H #include <libcouchbase/couchbase.h> /** * @file * @brief Internal I/O Table routines * * @details * Include this file if you are actually manipulating the I/O system (i.e. * creating timers, starting/stoping loops, or writing to/from a socket). * * This file defines the iotable layout as well as various macros associated * with its use. The actual "Public" API (i.e. just for passing it around) can * be found in <lcbio/connect.h> */ #ifdef __cplusplus extern "C" { #endif /** Whether the underlying model is event-based */ #define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT) /** Returns an lcb_ev_procs structure for event-based I/O */ #define IOT_V0EV(iot) (iot)->u_io.v0.ev /** Returns an lcb_bsd_procs structure for event-based I/O */ #define IOT_V0IO(iot) (iot)->u_io.v0.io /** Returns an lcb_completion_procs structure for completion-based I/O */ #define IOT_V1(iot) (iot)->u_io.completion /** Error code of last I/O operation */ #define IOT_ERRNO(iot) (iot)->p->v.v0.error /** Start the loop */ #define IOT_START(iot) (iot)->loop.start((iot)->p) /** Stop the loop */ #define IOT_STOP(iot) (iot)->loop.stop((iot)->p) /** First argument to IO Table */ #define IOT_ARG(iot) (iot)->p typedef struct lcbio_TABLE { lcb_io_opt_t p; lcb_iomodel_t model; lcb_timer_procs timer; lcb_loop_procs loop; union { struct { lcb_ev_procs ev; lcb_bsd_procs io; } v0; lcb_completion_procs completion; } u_io; unsigned refcount; void (*dtor)(void *); #ifdef __cplusplus bool is_E() const { return IOT_IS_EVENT(this); } bool is_C() const { return !is_E(); } int get_errno() const { return IOT_ERRNO(this); } void run_loop() { IOT_START(this); } void stop_loop() { IOT_STOP(this); } int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen) { return IOT_V0IO(this).connect0(p, sock, saddr, addrlen); } lcb_socket_t E_socket(int domain, int type, int protocol) { return IOT_V0IO(this).socket0(p, domain, type, protocol); } lcb_socket_t E_socket(const addrinfo *ai) { return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); } void E_close(lcb_socket_t sock) { IOT_V0IO(this).close(p, sock); } void *E_event_create() { return IOT_V0EV(this).create(p); } void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb) { IOT_V0EV(this).watch(p, fd, event, mask, arg, cb); } void E_event_destroy(void *event) { IOT_V0EV(this).destroy(p, event); } void E_event_cancel(lcb_socket_t fd, void *event) { IOT_V0EV(this).cancel(p, fd, event); } int E_check_closed(lcb_socket_t s, int flags) { return IOT_V0IO(this).is_closed(p, s, flags); } int E_cntl(lcb_socket_t s, int mode, int opt, void *val) { return IOT_V0IO(this).cntl(p, s, mode, opt, val); } void C_close(lcb_sockdata_t *sd) { IOT_V1(this).close(p, sd); } int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback) { return IOT_V1(this).connect(p, sd, addr, addrlen, callback); } lcb_sockdata_t *C_socket(int domain, int type, int protocol) { return IOT_V1(this).socket(p, domain, type, protocol); } lcb_sockdata_t *C_socket(const addrinfo *ai) { return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); } int C_check_closed(lcb_sockdata_t *sock, int flags) { return IOT_V1(this).is_closed(p, sock, flags); } int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val) { return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0; } bool has_cntl() { if (is_E()) { return IOT_V0IO(this).cntl != NULL; } else { return IOT_V1(this).cntl != NULL; } } #endif } lcbio_TABLE; #ifdef __cplusplus } #endif #endif
28.88
163
(translation_unit) "/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n/*\n * Copyright 2014-2020 Couchbase, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#ifndef LCB_IOTABLE_H\n#define LCB_IOTABLE_H\n\n#include <libcouchbase/couchbase.h>\n\n/**\n * @file\n * @brief Internal I/O Table routines\n *\n * @details\n * Include this file if you are actually manipulating the I/O system (i.e.\n * creating timers, starting/stoping loops, or writing to/from a socket).\n *\n * This file defines the iotable layout as well as various macros associated\n * with its use. The actual "Public" API (i.e. just for passing it around) can\n * be found in <lcbio/connect.h>\n */\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }\n#endif\n\n} lcbio_TABLE;\n\n#ifdef __cplusplus\n}\n#endif\n#endif\n" (comment) "/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */" (comment) "/*\n * Copyright 2014-2020 Couchbase, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */" (preproc_ifdef) "#ifndef LCB_IOTABLE_H\n#define LCB_IOTABLE_H\n\n#include <libcouchbase/couchbase.h>\n\n/**\n * @file\n * @brief Internal I/O Table routines\n *\n * @details\n * Include this file if you are actually manipulating the I/O system (i.e.\n * creating timers, starting/stoping loops, or writing to/from a socket).\n *\n * This file defines the iotable layout as well as various macros associated\n * with its use. The actual "Public" API (i.e. just for passing it around) can\n * be found in <lcbio/connect.h>\n */\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }\n#endif\n\n} lcbio_TABLE;\n\n#ifdef __cplusplus\n}\n#endif\n#endif" (#ifndef) "#ifndef" (identifier) "LCB_IOTABLE_H" (preproc_def) "#define LCB_IOTABLE_H\n" (#define) "#define" (identifier) "LCB_IOTABLE_H" (preproc_include) "#include <libcouchbase/couchbase.h>\n" (#include) "#include" (system_lib_string) "<libcouchbase/couchbase.h>" (comment) "/**\n * @file\n * @brief Internal I/O Table routines\n *\n * @details\n * Include this file if you are actually manipulating the I/O system (i.e.\n * creating timers, starting/stoping loops, or writing to/from a socket).\n *\n * This file defines the iotable layout as well as various macros associated\n * with its use. The actual "Public" API (i.e. just for passing it around) can\n * be found in <lcbio/connect.h>\n */" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (comment) "/** Whether the underlying model is event-based */" (preproc_function_def) "#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n" (#define) "#define" (identifier) "IOT_IS_EVENT" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "((iot)->model == LCB_IOMODEL_EVENT)" (comment) "/** Returns an lcb_ev_procs structure for event-based I/O */" (preproc_function_def) "#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n" (#define) "#define" (identifier) "IOT_V0EV" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "(iot)->u_io.v0.ev" (comment) "/** Returns an lcb_bsd_procs structure for event-based I/O */" (preproc_function_def) "#define IOT_V0IO(iot) (iot)->u_io.v0.io\n" (#define) "#define" (identifier) "IOT_V0IO" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "(iot)->u_io.v0.io" (comment) "/** Returns an lcb_completion_procs structure for completion-based I/O */" (preproc_function_def) "#define IOT_V1(iot) (iot)->u_io.completion\n" (#define) "#define" (identifier) "IOT_V1" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "(iot)->u_io.completion" (comment) "/** Error code of last I/O operation */" (preproc_function_def) "#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n" (#define) "#define" (identifier) "IOT_ERRNO" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "(iot)->p->v.v0.error" (comment) "/** Start the loop */" (preproc_function_def) "#define IOT_START(iot) (iot)->loop.start((iot)->p)\n" (#define) "#define" (identifier) "IOT_START" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "(iot)->loop.start((iot)->p)" (comment) "/** Stop the loop */" (preproc_function_def) "#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n" (#define) "#define" (identifier) "IOT_STOP" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "(iot)->loop.stop((iot)->p)" (comment) "/** First argument to IO Table */" (preproc_function_def) "#define IOT_ARG(iot) (iot)->p\n" (#define) "#define" (identifier) "IOT_ARG" (preproc_params) "(iot)" (() "(" (identifier) "iot" ()) ")" (preproc_arg) "(iot)->p" (type_definition) "typedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else" (typedef) "typedef" (struct_specifier) "struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n }" (struct) "struct" (type_identifier) "lcbio_TABLE" (field_declaration_list) "{\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n }" ({) "{" (field_declaration) "lcb_io_opt_t p;" (type_identifier) "lcb_io_opt_t" (field_identifier) "p" (;) ";" (field_declaration) "lcb_iomodel_t model;" (type_identifier) "lcb_iomodel_t" (field_identifier) "model" (;) ";" (field_declaration) "lcb_timer_procs timer;" (type_identifier) "lcb_timer_procs" (field_identifier) "timer" (;) ";" (field_declaration) "lcb_loop_procs loop;" (type_identifier) "lcb_loop_procs" (field_identifier) "loop" (;) ";" (field_declaration) "union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;" (union_specifier) "union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n }" (union) "union" (field_declaration_list) "{\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n }" ({) "{" (field_declaration) "struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;" (struct_specifier) "struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n }" (struct) "struct" (field_declaration_list) "{\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n }" ({) "{" (field_declaration) "lcb_ev_procs ev;" (type_identifier) "lcb_ev_procs" (field_identifier) "ev" (;) ";" (field_declaration) "lcb_bsd_procs io;" (type_identifier) "lcb_bsd_procs" (field_identifier) "io" (;) ";" (}) "}" (field_identifier) "v0" (;) ";" (field_declaration) "lcb_completion_procs completion;" (type_identifier) "lcb_completion_procs" (field_identifier) "completion" (;) ";" (}) "}" (field_identifier) "u_io" (;) ";" (field_declaration) "unsigned refcount;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "refcount" (;) ";" (field_declaration) "void (*dtor)(void *);" (primitive_type) "void" (function_declarator) "(*dtor)(void *)" (parenthesized_declarator) "(*dtor)" (() "(" (pointer_declarator) "*dtor" (*) "*" (field_identifier) "dtor" ()) ")" (parameter_list) "(void *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;" (#ifdef) "#ifdef" (identifier) "__cplusplus" (field_declaration) "bool is_E() const\n {\n return IOT_IS_EVENT(this);" (primitive_type) "bool" (ERROR) "is_E() const\n {\n return" (function_declarator) "is_E()" (field_identifier) "is_E" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (function_declarator) "IOT_IS_EVENT(this)" (field_identifier) "IOT_IS_EVENT" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "bool is_C() const\n {\n return !is_E();" (primitive_type) "bool" (ERROR) "is_C() const\n {\n return !" (function_declarator) "is_C()" (field_identifier) "is_C" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (!) "!" (function_declarator) "is_E()" (field_identifier) "is_E" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "int get_errno() const\n {\n return IOT_ERRNO(this);" (primitive_type) "int" (ERROR) "get_errno() const\n {\n return" (function_declarator) "get_errno()" (field_identifier) "get_errno" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (function_declarator) "IOT_ERRNO(this)" (field_identifier) "IOT_ERRNO" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void run_loop()\n {\n IOT_START(this);" (primitive_type) "void" (ERROR) "run_loop()\n {" (function_declarator) "run_loop()" (field_identifier) "run_loop" (parameter_list) "()" (() "(" ()) ")" ({) "{" (function_declarator) "IOT_START(this)" (field_identifier) "IOT_START" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void stop_loop()\n {\n IOT_STOP(this);" (primitive_type) "void" (ERROR) "stop_loop()\n {" (function_declarator) "stop_loop()" (field_identifier) "stop_loop" (parameter_list) "()" (() "(" ()) ")" ({) "{" (function_declarator) "IOT_STOP(this)" (field_identifier) "IOT_STOP" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);" (primitive_type) "int" (ERROR) "E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this)." (function_declarator) "E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)" (field_identifier) "E_connect" (parameter_list) "(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)" (() "(" (parameter_declaration) "lcb_socket_t sock" (type_identifier) "lcb_socket_t" (identifier) "sock" (,) "," (parameter_declaration) "const sockaddr *saddr" (type_qualifier) "const" (const) "const" (type_identifier) "sockaddr" (pointer_declarator) "*saddr" (*) "*" (identifier) "saddr" (,) "," (parameter_declaration) "unsigned addrlen" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "addrlen" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V0IO(this)" (field_identifier) "IOT_V0IO" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "connect0(p, sock, saddr, addrlen)" (field_identifier) "connect0" (parameter_list) "(p, sock, saddr, addrlen)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "sock" (type_identifier) "sock" (,) "," (parameter_declaration) "saddr" (type_identifier) "saddr" (,) "," (parameter_declaration) "addrlen" (type_identifier) "addrlen" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);" (type_identifier) "lcb_socket_t" (ERROR) "E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this)." (function_declarator) "E_socket(int domain, int type, int protocol)" (field_identifier) "E_socket" (parameter_list) "(int domain, int type, int protocol)" (() "(" (parameter_declaration) "int domain" (primitive_type) "int" (identifier) "domain" (,) "," (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" (,) "," (parameter_declaration) "int protocol" (primitive_type) "int" (identifier) "protocol" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V0IO(this)" (field_identifier) "IOT_V0IO" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "socket0(p, domain, type, protocol)" (field_identifier) "socket0" (parameter_list) "(p, domain, type, protocol)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "domain" (type_identifier) "domain" (,) "," (parameter_declaration) "type" (type_identifier) "type" (,) "," (parameter_declaration) "protocol" (type_identifier) "protocol" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);" (type_identifier) "lcb_socket_t" (ERROR) "E_socket(const addrinfo *ai)\n {\n return" (function_declarator) "E_socket(const addrinfo *ai)" (field_identifier) "E_socket" (parameter_list) "(const addrinfo *ai)" (() "(" (parameter_declaration) "const addrinfo *ai" (type_qualifier) "const" (const) "const" (type_identifier) "addrinfo" (pointer_declarator) "*ai" (*) "*" (identifier) "ai" ()) ")" ({) "{" (return) "return" (function_declarator) "E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)" (field_identifier) "E_socket" (parameter_list) "(ai->ai_family, ai->ai_socktype, ai->ai_protocol)" (() "(" (parameter_declaration) "ai->ai_family" (type_identifier) "ai" (ERROR) "->" (->) "->" (identifier) "ai_family" (,) "," (parameter_declaration) "ai->ai_socktype" (type_identifier) "ai" (ERROR) "->" (->) "->" (identifier) "ai_socktype" (,) "," (parameter_declaration) "ai->ai_protocol" (type_identifier) "ai" (ERROR) "->" (->) "->" (identifier) "ai_protocol" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);" (primitive_type) "void" (ERROR) "E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this)." (function_declarator) "E_close(lcb_socket_t sock)" (field_identifier) "E_close" (parameter_list) "(lcb_socket_t sock)" (() "(" (parameter_declaration) "lcb_socket_t sock" (type_identifier) "lcb_socket_t" (identifier) "sock" ()) ")" ({) "{" (function_declarator) "IOT_V0IO(this)" (field_identifier) "IOT_V0IO" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "close(p, sock)" (field_identifier) "close" (parameter_list) "(p, sock)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "sock" (type_identifier) "sock" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void *E_event_create()\n {\n return IOT_V0EV(this).create(p);" (primitive_type) "void" (pointer_declarator) "*E_event_create()\n {\n return IOT_V0EV(this).create(p)" (*) "*" (ERROR) "E_event_create()\n {\n return IOT_V0EV(this)." (function_declarator) "E_event_create()" (field_identifier) "E_event_create" (parameter_list) "()" (() "(" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V0EV(this)" (field_identifier) "IOT_V0EV" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "create(p)" (field_identifier) "create" (parameter_list) "(p)" (() "(" (parameter_declaration) "p" (type_identifier) "p" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);" (primitive_type) "void" (ERROR) "E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this)." (function_declarator) "E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)" (field_identifier) "E_event_watch" (parameter_list) "(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)" (() "(" (parameter_declaration) "lcb_socket_t fd" (type_identifier) "lcb_socket_t" (identifier) "fd" (,) "," (parameter_declaration) "void *event" (primitive_type) "void" (pointer_declarator) "*event" (*) "*" (identifier) "event" (,) "," (parameter_declaration) "short mask" (sized_type_specifier) "short" (short) "short" (identifier) "mask" (,) "," (parameter_declaration) "void *arg" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" (,) "," (parameter_declaration) "lcb_ioE_callback cb" (type_identifier) "lcb_ioE_callback" (identifier) "cb" ()) ")" ({) "{" (function_declarator) "IOT_V0EV(this)" (field_identifier) "IOT_V0EV" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "watch(p, fd, event, mask, arg, cb)" (field_identifier) "watch" (parameter_list) "(p, fd, event, mask, arg, cb)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "fd" (type_identifier) "fd" (,) "," (parameter_declaration) "event" (type_identifier) "event" (,) "," (parameter_declaration) "mask" (type_identifier) "mask" (,) "," (parameter_declaration) "arg" (type_identifier) "arg" (,) "," (parameter_declaration) "cb" (type_identifier) "cb" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);" (primitive_type) "void" (ERROR) "E_event_destroy(void *event)\n {\n IOT_V0EV(this)." (function_declarator) "E_event_destroy(void *event)" (field_identifier) "E_event_destroy" (parameter_list) "(void *event)" (() "(" (parameter_declaration) "void *event" (primitive_type) "void" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" ({) "{" (function_declarator) "IOT_V0EV(this)" (field_identifier) "IOT_V0EV" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "destroy(p, event)" (field_identifier) "destroy" (parameter_list) "(p, event)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "event" (type_identifier) "event" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);" (primitive_type) "void" (ERROR) "E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this)." (function_declarator) "E_event_cancel(lcb_socket_t fd, void *event)" (field_identifier) "E_event_cancel" (parameter_list) "(lcb_socket_t fd, void *event)" (() "(" (parameter_declaration) "lcb_socket_t fd" (type_identifier) "lcb_socket_t" (identifier) "fd" (,) "," (parameter_declaration) "void *event" (primitive_type) "void" (pointer_declarator) "*event" (*) "*" (identifier) "event" ()) ")" ({) "{" (function_declarator) "IOT_V0EV(this)" (field_identifier) "IOT_V0EV" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "cancel(p, fd, event)" (field_identifier) "cancel" (parameter_list) "(p, fd, event)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "fd" (type_identifier) "fd" (,) "," (parameter_declaration) "event" (type_identifier) "event" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);" (primitive_type) "int" (ERROR) "E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this)." (function_declarator) "E_check_closed(lcb_socket_t s, int flags)" (field_identifier) "E_check_closed" (parameter_list) "(lcb_socket_t s, int flags)" (() "(" (parameter_declaration) "lcb_socket_t s" (type_identifier) "lcb_socket_t" (identifier) "s" (,) "," (parameter_declaration) "int flags" (primitive_type) "int" (identifier) "flags" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V0IO(this)" (field_identifier) "IOT_V0IO" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "is_closed(p, s, flags)" (field_identifier) "is_closed" (parameter_list) "(p, s, flags)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "s" (type_identifier) "s" (,) "," (parameter_declaration) "flags" (type_identifier) "flags" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);" (primitive_type) "int" (ERROR) "E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this)." (function_declarator) "E_cntl(lcb_socket_t s, int mode, int opt, void *val)" (field_identifier) "E_cntl" (parameter_list) "(lcb_socket_t s, int mode, int opt, void *val)" (() "(" (parameter_declaration) "lcb_socket_t s" (type_identifier) "lcb_socket_t" (identifier) "s" (,) "," (parameter_declaration) "int mode" (primitive_type) "int" (identifier) "mode" (,) "," (parameter_declaration) "int opt" (primitive_type) "int" (identifier) "opt" (,) "," (parameter_declaration) "void *val" (primitive_type) "void" (pointer_declarator) "*val" (*) "*" (identifier) "val" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V0IO(this)" (field_identifier) "IOT_V0IO" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "cntl(p, s, mode, opt, val)" (field_identifier) "cntl" (parameter_list) "(p, s, mode, opt, val)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "s" (type_identifier) "s" (,) "," (parameter_declaration) "mode" (type_identifier) "mode" (,) "," (parameter_declaration) "opt" (type_identifier) "opt" (,) "," (parameter_declaration) "val" (type_identifier) "val" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);" (primitive_type) "void" (ERROR) "C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this)." (function_declarator) "C_close(lcb_sockdata_t *sd)" (field_identifier) "C_close" (parameter_list) "(lcb_sockdata_t *sd)" (() "(" (parameter_declaration) "lcb_sockdata_t *sd" (type_identifier) "lcb_sockdata_t" (pointer_declarator) "*sd" (*) "*" (identifier) "sd" ()) ")" ({) "{" (function_declarator) "IOT_V1(this)" (field_identifier) "IOT_V1" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "close(p, sd)" (field_identifier) "close" (parameter_list) "(p, sd)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "sd" (type_identifier) "sd" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);" (primitive_type) "int" (ERROR) "C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this)." (function_declarator) "C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)" (field_identifier) "C_connect" (parameter_list) "(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)" (() "(" (parameter_declaration) "lcb_sockdata_t *sd" (type_identifier) "lcb_sockdata_t" (pointer_declarator) "*sd" (*) "*" (identifier) "sd" (,) "," (parameter_declaration) "const sockaddr *addr" (type_qualifier) "const" (const) "const" (type_identifier) "sockaddr" (pointer_declarator) "*addr" (*) "*" (identifier) "addr" (,) "," (parameter_declaration) "unsigned addrlen" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "addrlen" (,) "," (parameter_declaration) "lcb_io_connect_cb callback" (type_identifier) "lcb_io_connect_cb" (identifier) "callback" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V1(this)" (field_identifier) "IOT_V1" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "connect(p, sd, addr, addrlen, callback)" (field_identifier) "connect" (parameter_list) "(p, sd, addr, addrlen, callback)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "sd" (type_identifier) "sd" (,) "," (parameter_declaration) "addr" (type_identifier) "addr" (,) "," (parameter_declaration) "addrlen" (type_identifier) "addrlen" (,) "," (parameter_declaration) "callback" (type_identifier) "callback" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);" (type_identifier) "lcb_sockdata_t" (pointer_declarator) "*C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol)" (*) "*" (ERROR) "C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this)." (function_declarator) "C_socket(int domain, int type, int protocol)" (field_identifier) "C_socket" (parameter_list) "(int domain, int type, int protocol)" (() "(" (parameter_declaration) "int domain" (primitive_type) "int" (identifier) "domain" (,) "," (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" (,) "," (parameter_declaration) "int protocol" (primitive_type) "int" (identifier) "protocol" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V1(this)" (field_identifier) "IOT_V1" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "socket(p, domain, type, protocol)" (field_identifier) "socket" (parameter_list) "(p, domain, type, protocol)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "domain" (type_identifier) "domain" (,) "," (parameter_declaration) "type" (type_identifier) "type" (,) "," (parameter_declaration) "protocol" (type_identifier) "protocol" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);" (type_identifier) "lcb_sockdata_t" (pointer_declarator) "*C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)" (*) "*" (ERROR) "C_socket(const addrinfo *ai)\n {\n return" (function_declarator) "C_socket(const addrinfo *ai)" (field_identifier) "C_socket" (parameter_list) "(const addrinfo *ai)" (() "(" (parameter_declaration) "const addrinfo *ai" (type_qualifier) "const" (const) "const" (type_identifier) "addrinfo" (pointer_declarator) "*ai" (*) "*" (identifier) "ai" ()) ")" ({) "{" (return) "return" (function_declarator) "C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)" (field_identifier) "C_socket" (parameter_list) "(ai->ai_family, ai->ai_socktype, ai->ai_protocol)" (() "(" (parameter_declaration) "ai->ai_family" (type_identifier) "ai" (ERROR) "->" (->) "->" (identifier) "ai_family" (,) "," (parameter_declaration) "ai->ai_socktype" (type_identifier) "ai" (ERROR) "->" (->) "->" (identifier) "ai_socktype" (,) "," (parameter_declaration) "ai->ai_protocol" (type_identifier) "ai" (ERROR) "->" (->) "->" (identifier) "ai_protocol" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);" (primitive_type) "int" (ERROR) "C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this)." (function_declarator) "C_check_closed(lcb_sockdata_t *sock, int flags)" (field_identifier) "C_check_closed" (parameter_list) "(lcb_sockdata_t *sock, int flags)" (() "(" (parameter_declaration) "lcb_sockdata_t *sock" (type_identifier) "lcb_sockdata_t" (pointer_declarator) "*sock" (*) "*" (identifier) "sock" (,) "," (parameter_declaration) "int flags" (primitive_type) "int" (identifier) "flags" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V1(this)" (field_identifier) "IOT_V1" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "is_closed(p, sock, flags)" (field_identifier) "is_closed" (parameter_list) "(p, sock, flags)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "sock" (type_identifier) "sock" (,) "," (parameter_declaration) "flags" (type_identifier) "flags" ()) ")" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;" (primitive_type) "int" (ERROR) "C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this)." (function_declarator) "C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)" (field_identifier) "C_cntl" (parameter_list) "(lcb_sockdata_t *sd, int mode, int opt, void *val)" (() "(" (parameter_declaration) "lcb_sockdata_t *sd" (type_identifier) "lcb_sockdata_t" (pointer_declarator) "*sd" (*) "*" (identifier) "sd" (,) "," (parameter_declaration) "int mode" (primitive_type) "int" (identifier) "mode" (,) "," (parameter_declaration) "int opt" (primitive_type) "int" (identifier) "opt" (,) "," (parameter_declaration) "void *val" (primitive_type) "void" (pointer_declarator) "*val" (*) "*" (identifier) "val" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V1(this)" (field_identifier) "IOT_V1" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (function_declarator) "cntl(p, sd, mode, opt, val)" (field_identifier) "cntl" (parameter_list) "(p, sd, mode, opt, val)" (() "(" (parameter_declaration) "p" (type_identifier) "p" (,) "," (parameter_declaration) "sd" (type_identifier) "sd" (,) "," (parameter_declaration) "mode" (type_identifier) "mode" (,) "," (parameter_declaration) "opt" (type_identifier) "opt" (,) "," (parameter_declaration) "val" (type_identifier) "val" ()) ")" (ERROR) "== 0" (==) "==" (number_literal) "0" (;) ";" (ERROR) "}" (}) "}" (field_declaration) "bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;" (primitive_type) "bool" (ERROR) "has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this)." (function_declarator) "has_cntl()\n {\n if (is_E())" (function_declarator) "has_cntl()" (field_identifier) "has_cntl" (parameter_list) "()" (() "(" ()) ")" (ERROR) "{\n if" ({) "{" (if) "if" (parameter_list) "(is_E())" (() "(" (parameter_declaration) "is_E()" (type_identifier) "is_E" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" ()) ")" ({) "{" (return) "return" (function_declarator) "IOT_V0IO(this)" (field_identifier) "IOT_V0IO" (parameter_list) "(this)" (() "(" (parameter_declaration) "this" (type_identifier) "this" ()) ")" (.) "." (field_identifier) "cntl" (ERROR) "!= NULL" (!=) "!=" (NULL) "NULL" (;) ";" (#endif) "" (}) "}" (type_identifier) "else" (;) "" (compound_statement) "{\n return IOT_V1(this).cntl != NULL;\n }" ({) "{" (return_statement) "return IOT_V1(this).cntl != NULL;" (return) "return" (binary_expression) "IOT_V1(this).cntl != NULL" (field_expression) "IOT_V1(this).cntl" (call_expression) "IOT_V1(this)" (identifier) "IOT_V1" (argument_list) "(this)" (() "(" (identifier) "this" ()) ")" (.) "." (field_identifier) "cntl" (!=) "!=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (#endif) "#endif" (ERROR) "}" (}) "}" (expression_statement) "lcbio_TABLE;" (identifier) "lcbio_TABLE" (;) ";" (preproc_ifdef) "#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (ERROR) "}" (}) "}" (#endif) "#endif" (#endif) "#endif"
1,090
54
{"language": "c", "success": true, "metadata": {"lines": 163, "avg_line_length": 28.88, "nodes": 694, "errors": 0, "source_hash": "0475adf9e77b414100634af455a0ba5115218364970d4a789145cb7cf6d6332d", "categorized_nodes": 490}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef LCB_IOTABLE_H\n#define LCB_IOTABLE_H\n\n#include <libcouchbase/couchbase.h>\n\n/**\n * @file\n * @brief Internal I/O Table routines\n *\n * @details\n * Include this file if you are actually manipulating the I/O system (i.e.\n * creating timers, starting/stoping loops, or writing to/from a socket).\n *\n * This file defines the iotable layout as well as various macros associated\n * with its use. The actual \"Public\" API (i.e. just for passing it around) can\n * be found in <lcbio/connect.h>\n */\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }\n#endif\n\n} lcbio_TABLE;\n\n#ifdef __cplusplus\n}\n#endif\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 689, 693], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 197, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 2, "type": "identifier", "text": "LCB_IOTABLE_H", "parent": 0, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define LCB_IOTABLE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 5, "type": "identifier", "text": "LCB_IOTABLE_H", "parent": 3, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <libcouchbase/couchbase.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<libcouchbase/couchbase.h>", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 35}}, {"id": 9, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }\n#endif", "parent": 0, "children": [10, 11, 12, 687], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 190, "column": 6}}, {"id": 10, "type": "#ifdef", "text": "#ifdef", "parent": 9, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 11, "type": "identifier", "text": "__cplusplus", "parent": 9, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 18}}, {"id": 12, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }", "parent": 9, "children": [13, 14], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 189, "column": 5}}, {"id": 13, "type": "extern", "text": "extern", "parent": 12, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 14, "type": "string_literal", "text": "\"C\"", "parent": 12, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 10}}, {"id": 15, "type": "preproc_call", "text": "#endif\n", "parent": 12, "children": [16], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 16, "type": "preproc_directive", "text": "#endif", "parent": 15, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 17, "type": "preproc_function_def", "text": "#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n", "parent": 12, "children": [18, 19, 20, 22], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 19, "type": "identifier", "text": "IOT_IS_EVENT", "parent": 17, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 20}}, {"id": 20, "type": "preproc_params", "text": "(iot)", "parent": 17, "children": [21], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 25}}, {"id": 21, "type": "identifier", "text": "iot", "parent": 20, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 24}}, {"id": 22, "type": "preproc_arg", "text": "((iot)->model == LCB_IOMODEL_EVENT)", "parent": 17, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 61}}, {"id": 23, "type": "preproc_function_def", "text": "#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n", "parent": 12, "children": [24, 25, 26, 28], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 24, "type": "#define", "text": "#define", "parent": 23, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 25, "type": "identifier", "text": "IOT_V0EV", "parent": 23, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 26, "type": "preproc_params", "text": "(iot)", "parent": 23, "children": [27], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 21}}, {"id": 27, "type": "identifier", "text": "iot", "parent": 26, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 20}}, {"id": 28, "type": "preproc_arg", "text": "(iot)->u_io.v0.ev", "parent": 23, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 39}}, {"id": 29, "type": "preproc_function_def", "text": "#define IOT_V0IO(iot) (iot)->u_io.v0.io\n", "parent": 12, "children": [30, 31, 32, 34], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 31, "type": "identifier", "text": "IOT_V0IO", "parent": 29, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 16}}, {"id": 32, "type": "preproc_params", "text": "(iot)", "parent": 29, "children": [33], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 21}}, {"id": 33, "type": "identifier", "text": "iot", "parent": 32, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 20}}, {"id": 34, "type": "preproc_arg", "text": "(iot)->u_io.v0.io", "parent": 29, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 39}}, {"id": 35, "type": "preproc_function_def", "text": "#define IOT_V1(iot) (iot)->u_io.completion\n", "parent": 12, "children": [36, 37, 38, 40], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 36, "type": "#define", "text": "#define", "parent": 35, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 37, "type": "identifier", "text": "IOT_V1", "parent": 35, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 14}}, {"id": 38, "type": "preproc_params", "text": "(iot)", "parent": 35, "children": [39], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 19}}, {"id": 39, "type": "identifier", "text": "iot", "parent": 38, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 18}}, {"id": 40, "type": "preproc_arg", "text": "(iot)->u_io.completion", "parent": 35, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 42}}, {"id": 41, "type": "preproc_function_def", "text": "#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n", "parent": 12, "children": [42, 43, 44, 46], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 43, "type": "identifier", "text": "IOT_ERRNO", "parent": 41, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 17}}, {"id": 44, "type": "preproc_params", "text": "(iot)", "parent": 41, "children": [45], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 22}}, {"id": 45, "type": "identifier", "text": "iot", "parent": 44, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 21}}, {"id": 46, "type": "preproc_arg", "text": "(iot)->p->v.v0.error", "parent": 41, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 43}}, {"id": 47, "type": "preproc_function_def", "text": "#define IOT_START(iot) (iot)->loop.start((iot)->p)\n", "parent": 12, "children": [48, 49, 50, 52], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 48, "type": "#define", "text": "#define", "parent": 47, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 49, "type": "identifier", "text": "IOT_START", "parent": 47, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 17}}, {"id": 50, "type": "preproc_params", "text": "(iot)", "parent": 47, "children": [51], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 22}}, {"id": 51, "type": "identifier", "text": "iot", "parent": 50, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 21}}, {"id": 52, "type": "preproc_arg", "text": "(iot)->loop.start((iot)->p)", "parent": 47, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 50}}, {"id": 53, "type": "preproc_function_def", "text": "#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n", "parent": 12, "children": [54, 55, 56, 58], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 54, "type": "#define", "text": "#define", "parent": 53, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 55, "type": "identifier", "text": "IOT_STOP", "parent": 53, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 16}}, {"id": 56, "type": "preproc_params", "text": "(iot)", "parent": 53, "children": [57], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 21}}, {"id": 57, "type": "identifier", "text": "iot", "parent": 56, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 20}}, {"id": 58, "type": "preproc_arg", "text": "(iot)->loop.stop((iot)->p)", "parent": 53, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 48}}, {"id": 59, "type": "preproc_function_def", "text": "#define IOT_ARG(iot) (iot)->p\n", "parent": 12, "children": [60, 61, 62, 64], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 60, "type": "#define", "text": "#define", "parent": 59, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 61, "type": "identifier", "text": "IOT_ARG", "parent": 59, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 15}}, {"id": 62, "type": "preproc_params", "text": "(iot)", "parent": 59, "children": [63], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 20}}, {"id": 63, "type": "identifier", "text": "iot", "parent": 62, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 19}}, {"id": 64, "type": "preproc_arg", "text": "(iot)->p", "parent": 59, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 29}}, {"id": 65, "type": "type_definition", "text": "typedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else", "parent": 12, "children": [66, 67], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 186, "column": 14}}, {"id": 66, "type": "typedef", "text": "typedef", "parent": 65, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 67, "type": "struct_specifier", "text": "struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n }", "parent": 65, "children": [68, 69], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 186, "column": 9}}, {"id": 68, "type": "struct", "text": "struct", "parent": 67, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 69, "type": "type_identifier", "text": "lcbio_TABLE", "parent": 67, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 26}}, {"id": 70, "type": "field_declaration", "text": "lcb_io_opt_t p;", "parent": 67, "children": [71, 72], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 19}}, {"id": 71, "type": "type_identifier", "text": "lcb_io_opt_t", "parent": 70, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 16}}, {"id": 72, "type": "field_identifier", "text": "p", "parent": 70, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 18}}, {"id": 73, "type": "field_declaration", "text": "lcb_iomodel_t model;", "parent": 67, "children": [74, 75], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 24}}, {"id": 74, "type": "type_identifier", "text": "lcb_iomodel_t", "parent": 73, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 17}}, {"id": 75, "type": "field_identifier", "text": "model", "parent": 73, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 23}}, {"id": 76, "type": "field_declaration", "text": "lcb_timer_procs timer;", "parent": 67, "children": [77, 78], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 26}}, {"id": 77, "type": "type_identifier", "text": "lcb_timer_procs", "parent": 76, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 19}}, {"id": 78, "type": "field_identifier", "text": "timer", "parent": 76, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 25}}, {"id": 79, "type": "field_declaration", "text": "lcb_loop_procs loop;", "parent": 67, "children": [80, 81], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 24}}, {"id": 80, "type": "type_identifier", "text": "lcb_loop_procs", "parent": 79, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 18}}, {"id": 81, "type": "field_identifier", "text": "loop", "parent": 79, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 23}}, {"id": 82, "type": "field_declaration", "text": "union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;", "parent": 67, "children": [83, 98], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 75, "column": 11}}, {"id": 83, "type": "union_specifier", "text": "union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n }", "parent": 82, "children": [84], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 84, "type": "union", "text": "union", "parent": 83, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 9}}, {"id": 85, "type": "field_declaration", "text": "struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;", "parent": 83, "children": [86, 94], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 73, "column": 13}}, {"id": 86, "type": "struct_specifier", "text": "struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n }", "parent": 85, "children": [87], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 73, "column": 9}}, {"id": 87, "type": "struct", "text": "struct", "parent": 86, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 14}}, {"id": 88, "type": "field_declaration", "text": "lcb_ev_procs ev;", "parent": 86, "children": [89, 90], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 28}}, {"id": 89, "type": "type_identifier", "text": "lcb_ev_procs", "parent": 88, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 24}}, {"id": 90, "type": "field_identifier", "text": "ev", "parent": 88, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 27}}, {"id": 91, "type": "field_declaration", "text": "lcb_bsd_procs io;", "parent": 86, "children": [92, 93], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 29}}, {"id": 92, "type": "type_identifier", "text": "lcb_bsd_procs", "parent": 91, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 25}}, {"id": 93, "type": "field_identifier", "text": "io", "parent": 91, "children": [], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 28}}, {"id": 94, "type": "field_identifier", "text": "v0", "parent": 85, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 12}}, {"id": 95, "type": "field_declaration", "text": "lcb_completion_procs completion;", "parent": 83, "children": [96, 97], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 40}}, {"id": 96, "type": "type_identifier", "text": "lcb_completion_procs", "parent": 95, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 28}}, {"id": 97, "type": "field_identifier", "text": "completion", "parent": 95, "children": [], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 39}}, {"id": 98, "type": "field_identifier", "text": "u_io", "parent": 82, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 10}}, {"id": 99, "type": "field_declaration", "text": "unsigned refcount;", "parent": 67, "children": [100, 102], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 22}}, {"id": 100, "type": "sized_type_specifier", "text": "unsigned", "parent": 99, "children": [101], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 12}}, {"id": 101, "type": "unsigned", "text": "unsigned", "parent": 100, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 12}}, {"id": 102, "type": "field_identifier", "text": "refcount", "parent": 99, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 21}}, {"id": 103, "type": "field_declaration", "text": "void (*dtor)(void *);", "parent": 67, "children": [104, 105], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 25}}, {"id": 104, "type": "primitive_type", "text": "void", "parent": 103, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 8}}, {"id": 105, "type": "function_declarator", "text": "(*dtor)(void *)", "parent": 103, "children": [106, 110], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 24}}, {"id": 106, "type": "parenthesized_declarator", "text": "(*dtor)", "parent": 105, "children": [107], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 16}}, {"id": 107, "type": "pointer_declarator", "text": "*dtor", "parent": 106, "children": [108, 109], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 15}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 109, "type": "field_identifier", "text": "dtor", "parent": 107, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 15}}, {"id": 110, "type": "parameter_list", "text": "(void *)", "parent": 105, "children": [111], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 24}}, {"id": 111, "type": "parameter_declaration", "text": "void *", "parent": 110, "children": [112, 113], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 23}}, {"id": 112, "type": "primitive_type", "text": "void", "parent": 111, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 21}}, {"id": 113, "type": "abstract_pointer_declarator", "text": "*", "parent": 111, "children": [114], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 23}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 23}}, {"id": 115, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;", "parent": 67, "children": [116, 117, 118, 129, 139, 150, 161, 172, 206, 237, 260, 281, 299, 345, 368, 396, 422, 460, 483, 524, 557, 582, 610, 653, 675], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 185, "column": 47}}, {"id": 116, "type": "#ifdef", "text": "#ifdef", "parent": 115, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 117, "type": "identifier", "text": "__cplusplus", "parent": 115, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 18}}, {"id": 118, "type": "field_declaration", "text": "bool is_E() const\n {\n return IOT_IS_EVENT(this);", "parent": 115, "children": [119, 120, 124], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 82, "column": 34}}, {"id": 119, "type": "primitive_type", "text": "bool", "parent": 118, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 120, "type": "ERROR", "text": "is_E() const\n {\n return", "parent": 118, "children": [121], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 82, "column": 14}}, {"id": 121, "type": "function_declarator", "text": "is_E()", "parent": 120, "children": [122, 123], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 15}}, {"id": 122, "type": "field_identifier", "text": "is_E", "parent": 121, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 13}}, {"id": 123, "type": "parameter_list", "text": "()", "parent": 121, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 15}}, {"id": 124, "type": "function_declarator", "text": "IOT_IS_EVENT(this)", "parent": 118, "children": [125, 126], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 33}}, {"id": 125, "type": "field_identifier", "text": "IOT_IS_EVENT", "parent": 124, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 27}}, {"id": 126, "type": "parameter_list", "text": "(this)", "parent": 124, "children": [127], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 33}}, {"id": 127, "type": "parameter_declaration", "text": "this", "parent": 126, "children": [128], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 32}}, {"id": 128, "type": "type_identifier", "text": "this", "parent": 127, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 32}}, {"id": 129, "type": "field_declaration", "text": "bool is_C() const\n {\n return !is_E();", "parent": 115, "children": [130, 131, 136], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 86, "column": 23}}, {"id": 130, "type": "primitive_type", "text": "bool", "parent": 129, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 131, "type": "ERROR", "text": "is_C() const\n {\n return !", "parent": 129, "children": [132, 135], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 86, "column": 16}}, {"id": 132, "type": "function_declarator", "text": "is_C()", "parent": 131, "children": [133, 134], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 15}}, {"id": 133, "type": "field_identifier", "text": "is_C", "parent": 132, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 13}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 15}}, {"id": 135, "type": "!", "text": "!", "parent": 131, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 16}}, {"id": 136, "type": "function_declarator", "text": "is_E()", "parent": 129, "children": [137, 138], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 22}}, {"id": 137, "type": "field_identifier", "text": "is_E", "parent": 136, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 20}}, {"id": 138, "type": "parameter_list", "text": "()", "parent": 136, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 22}}, {"id": 139, "type": "field_declaration", "text": "int get_errno() const\n {\n return IOT_ERRNO(this);", "parent": 115, "children": [140, 141, 145], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 90, "column": 31}}, {"id": 140, "type": "primitive_type", "text": "int", "parent": 139, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 7}}, {"id": 141, "type": "ERROR", "text": "get_errno() const\n {\n return", "parent": 139, "children": [142], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 90, "column": 14}}, {"id": 142, "type": "function_declarator", "text": "get_errno()", "parent": 141, "children": [143, 144], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 19}}, {"id": 143, "type": "field_identifier", "text": "get_errno", "parent": 142, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 17}}, {"id": 144, "type": "parameter_list", "text": "()", "parent": 142, "children": [], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 19}}, {"id": 145, "type": "function_declarator", "text": "IOT_ERRNO(this)", "parent": 139, "children": [146, 147], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 30}}, {"id": 146, "type": "field_identifier", "text": "IOT_ERRNO", "parent": 145, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 24}}, {"id": 147, "type": "parameter_list", "text": "(this)", "parent": 145, "children": [148], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 30}}, {"id": 148, "type": "parameter_declaration", "text": "this", "parent": 147, "children": [149], "start_point": {"row": 90, "column": 25}, "end_point": {"row": 90, "column": 29}}, {"id": 149, "type": "type_identifier", "text": "this", "parent": 148, "children": [], "start_point": {"row": 90, "column": 25}, "end_point": {"row": 90, "column": 29}}, {"id": 150, "type": "field_declaration", "text": "void run_loop()\n {\n IOT_START(this);", "parent": 115, "children": [151, 152, 156], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 95, "column": 24}}, {"id": 151, "type": "primitive_type", "text": "void", "parent": 150, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 8}}, {"id": 152, "type": "ERROR", "text": "run_loop()\n {", "parent": 150, "children": [153], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 94, "column": 5}}, {"id": 153, "type": "function_declarator", "text": "run_loop()", "parent": 152, "children": [154, 155], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 19}}, {"id": 154, "type": "field_identifier", "text": "run_loop", "parent": 153, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 17}}, {"id": 155, "type": "parameter_list", "text": "()", "parent": 153, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 19}}, {"id": 156, "type": "function_declarator", "text": "IOT_START(this)", "parent": 150, "children": [157, 158], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 23}}, {"id": 157, "type": "field_identifier", "text": "IOT_START", "parent": 156, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 17}}, {"id": 158, "type": "parameter_list", "text": "(this)", "parent": 156, "children": [159], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 23}}, {"id": 159, "type": "parameter_declaration", "text": "this", "parent": 158, "children": [160], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 22}}, {"id": 160, "type": "type_identifier", "text": "this", "parent": 159, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 22}}, {"id": 161, "type": "field_declaration", "text": "void stop_loop()\n {\n IOT_STOP(this);", "parent": 115, "children": [162, 163, 167], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 99, "column": 23}}, {"id": 162, "type": "primitive_type", "text": "void", "parent": 161, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 8}}, {"id": 163, "type": "ERROR", "text": "stop_loop()\n {", "parent": 161, "children": [164], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 98, "column": 5}}, {"id": 164, "type": "function_declarator", "text": "stop_loop()", "parent": 163, "children": [165, 166], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 20}}, {"id": 165, "type": "field_identifier", "text": "stop_loop", "parent": 164, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 18}}, {"id": 166, "type": "parameter_list", "text": "()", "parent": 164, "children": [], "start_point": {"row": 97, "column": 18}, "end_point": {"row": 97, "column": 20}}, {"id": 167, "type": "function_declarator", "text": "IOT_STOP(this)", "parent": 161, "children": [168, 169], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 22}}, {"id": 168, "type": "field_identifier", "text": "IOT_STOP", "parent": 167, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 16}}, {"id": 169, "type": "parameter_list", "text": "(this)", "parent": 167, "children": [170], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 22}}, {"id": 170, "type": "parameter_declaration", "text": "this", "parent": 169, "children": [171], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 21}}, {"id": 171, "type": "type_identifier", "text": "this", "parent": 170, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 21}}, {"id": 172, "type": "field_declaration", "text": "int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);", "parent": 115, "children": [173, 174, 195], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 104, "column": 64}}, {"id": 173, "type": "primitive_type", "text": "int", "parent": 172, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 7}}, {"id": 174, "type": "ERROR", "text": "E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).", "parent": 172, "children": [175, 190], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 104, "column": 30}}, {"id": 175, "type": "function_declarator", "text": "E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)", "parent": 174, "children": [176, 177], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 77}}, {"id": 176, "type": "field_identifier", "text": "E_connect", "parent": 175, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 17}}, {"id": 177, "type": "parameter_list", "text": "(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)", "parent": 175, "children": [178, 181, 186], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 77}}, {"id": 178, "type": "parameter_declaration", "text": "lcb_socket_t sock", "parent": 177, "children": [179, 180], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 35}}, {"id": 179, "type": "type_identifier", "text": "lcb_socket_t", "parent": 178, "children": [], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 30}}, {"id": 180, "type": "identifier", "text": "sock", "parent": 178, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 35}}, {"id": 181, "type": "parameter_declaration", "text": "const sockaddr *saddr", "parent": 177, "children": [182, 183], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 58}}, {"id": 182, "type": "type_identifier", "text": "sockaddr", "parent": 181, "children": [], "start_point": {"row": 102, "column": 43}, "end_point": {"row": 102, "column": 51}}, {"id": 183, "type": "pointer_declarator", "text": "*saddr", "parent": 181, "children": [184, 185], "start_point": {"row": 102, "column": 52}, "end_point": {"row": 102, "column": 58}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 102, "column": 52}, "end_point": {"row": 102, "column": 53}}, {"id": 185, "type": "identifier", "text": "saddr", "parent": 183, "children": [], "start_point": {"row": 102, "column": 53}, "end_point": {"row": 102, "column": 58}}, {"id": 186, "type": "parameter_declaration", "text": "unsigned addrlen", "parent": 177, "children": [187, 189], "start_point": {"row": 102, "column": 60}, "end_point": {"row": 102, "column": 76}}, {"id": 187, "type": "sized_type_specifier", "text": "unsigned", "parent": 186, "children": [188], "start_point": {"row": 102, "column": 60}, "end_point": {"row": 102, "column": 68}}, {"id": 188, "type": "unsigned", "text": "unsigned", "parent": 187, "children": [], "start_point": {"row": 102, "column": 60}, "end_point": {"row": 102, "column": 68}}, {"id": 189, "type": "identifier", "text": "addrlen", "parent": 186, "children": [], "start_point": {"row": 102, "column": 69}, "end_point": {"row": 102, "column": 76}}, {"id": 190, "type": "function_declarator", "text": "IOT_V0IO(this)", "parent": 174, "children": [191, 192], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 29}}, {"id": 191, "type": "field_identifier", "text": "IOT_V0IO", "parent": 190, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 23}}, {"id": 192, "type": "parameter_list", "text": "(this)", "parent": 190, "children": [193], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 29}}, {"id": 193, "type": "parameter_declaration", "text": "this", "parent": 192, "children": [194], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 28}}, {"id": 194, "type": "type_identifier", "text": "this", "parent": 193, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 28}}, {"id": 195, "type": "function_declarator", "text": "connect0(p, sock, saddr, addrlen)", "parent": 172, "children": [196, 197], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 63}}, {"id": 196, "type": "field_identifier", "text": "connect0", "parent": 195, "children": [], "start_point": {"row": 104, "column": 30}, "end_point": {"row": 104, "column": 38}}, {"id": 197, "type": "parameter_list", "text": "(p, sock, saddr, addrlen)", "parent": 195, "children": [198, 200, 202, 204], "start_point": {"row": 104, "column": 38}, "end_point": {"row": 104, "column": 63}}, {"id": 198, "type": "parameter_declaration", "text": "p", "parent": 197, "children": [199], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 40}}, {"id": 199, "type": "type_identifier", "text": "p", "parent": 198, "children": [], "start_point": {"row": 104, "column": 39}, "end_point": {"row": 104, "column": 40}}, {"id": 200, "type": "parameter_declaration", "text": "sock", "parent": 197, "children": [201], "start_point": {"row": 104, "column": 42}, "end_point": {"row": 104, "column": 46}}, {"id": 201, "type": "type_identifier", "text": "sock", "parent": 200, "children": [], "start_point": {"row": 104, "column": 42}, "end_point": {"row": 104, "column": 46}}, {"id": 202, "type": "parameter_declaration", "text": "saddr", "parent": 197, "children": [203], "start_point": {"row": 104, "column": 48}, "end_point": {"row": 104, "column": 53}}, {"id": 203, "type": "type_identifier", "text": "saddr", "parent": 202, "children": [], "start_point": {"row": 104, "column": 48}, "end_point": {"row": 104, "column": 53}}, {"id": 204, "type": "parameter_declaration", "text": "addrlen", "parent": 197, "children": [205], "start_point": {"row": 104, "column": 55}, "end_point": {"row": 104, "column": 62}}, {"id": 205, "type": "type_identifier", "text": "addrlen", "parent": 204, "children": [], "start_point": {"row": 104, "column": 55}, "end_point": {"row": 104, "column": 62}}, {"id": 206, "type": "field_declaration", "text": "lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);", "parent": 115, "children": [207, 208, 226], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 109, "column": 65}}, {"id": 207, "type": "type_identifier", "text": "lcb_socket_t", "parent": 206, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 16}}, {"id": 208, "type": "ERROR", "text": "E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).", "parent": 206, "children": [209, 221], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 109, "column": 30}}, {"id": 209, "type": "function_declarator", "text": "E_socket(int domain, int type, int protocol)", "parent": 208, "children": [210, 211], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 61}}, {"id": 210, "type": "field_identifier", "text": "E_socket", "parent": 209, "children": [], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 25}}, {"id": 211, "type": "parameter_list", "text": "(int domain, int type, int protocol)", "parent": 209, "children": [212, 215, 218], "start_point": {"row": 107, "column": 25}, "end_point": {"row": 107, "column": 61}}, {"id": 212, "type": "parameter_declaration", "text": "int domain", "parent": 211, "children": [213, 214], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 36}}, {"id": 213, "type": "primitive_type", "text": "int", "parent": 212, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 29}}, {"id": 214, "type": "identifier", "text": "domain", "parent": 212, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 36}}, {"id": 215, "type": "parameter_declaration", "text": "int type", "parent": 211, "children": [216, 217], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 46}}, {"id": 216, "type": "primitive_type", "text": "int", "parent": 215, "children": [], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 41}}, {"id": 217, "type": "identifier", "text": "type", "parent": 215, "children": [], "start_point": {"row": 107, "column": 42}, "end_point": {"row": 107, "column": 46}}, {"id": 218, "type": "parameter_declaration", "text": "int protocol", "parent": 211, "children": [219, 220], "start_point": {"row": 107, "column": 48}, "end_point": {"row": 107, "column": 60}}, {"id": 219, "type": "primitive_type", "text": "int", "parent": 218, "children": [], "start_point": {"row": 107, "column": 48}, "end_point": {"row": 107, "column": 51}}, {"id": 220, "type": "identifier", "text": "protocol", "parent": 218, "children": [], "start_point": {"row": 107, "column": 52}, "end_point": {"row": 107, "column": 60}}, {"id": 221, "type": "function_declarator", "text": "IOT_V0IO(this)", "parent": 208, "children": [222, 223], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 29}}, {"id": 222, "type": "field_identifier", "text": "IOT_V0IO", "parent": 221, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 23}}, {"id": 223, "type": "parameter_list", "text": "(this)", "parent": 221, "children": [224], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 29}}, {"id": 224, "type": "parameter_declaration", "text": "this", "parent": 223, "children": [225], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 28}}, {"id": 225, "type": "type_identifier", "text": "this", "parent": 224, "children": [], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 28}}, {"id": 226, "type": "function_declarator", "text": "socket0(p, domain, type, protocol)", "parent": 206, "children": [227, 228], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 64}}, {"id": 227, "type": "field_identifier", "text": "socket0", "parent": 226, "children": [], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 37}}, {"id": 228, "type": "parameter_list", "text": "(p, domain, type, protocol)", "parent": 226, "children": [229, 231, 233, 235], "start_point": {"row": 109, "column": 37}, "end_point": {"row": 109, "column": 64}}, {"id": 229, "type": "parameter_declaration", "text": "p", "parent": 228, "children": [230], "start_point": {"row": 109, "column": 38}, "end_point": {"row": 109, "column": 39}}, {"id": 230, "type": "type_identifier", "text": "p", "parent": 229, "children": [], "start_point": {"row": 109, "column": 38}, "end_point": {"row": 109, "column": 39}}, {"id": 231, "type": "parameter_declaration", "text": "domain", "parent": 228, "children": [232], "start_point": {"row": 109, "column": 41}, "end_point": {"row": 109, "column": 47}}, {"id": 232, "type": "type_identifier", "text": "domain", "parent": 231, "children": [], "start_point": {"row": 109, "column": 41}, "end_point": {"row": 109, "column": 47}}, {"id": 233, "type": "parameter_declaration", "text": "type", "parent": 228, "children": [234], "start_point": {"row": 109, "column": 49}, "end_point": {"row": 109, "column": 53}}, {"id": 234, "type": "type_identifier", "text": "type", "parent": 233, "children": [], "start_point": {"row": 109, "column": 49}, "end_point": {"row": 109, "column": 53}}, {"id": 235, "type": "parameter_declaration", "text": "protocol", "parent": 228, "children": [236], "start_point": {"row": 109, "column": 55}, "end_point": {"row": 109, "column": 63}}, {"id": 236, "type": "type_identifier", "text": "protocol", "parent": 235, "children": [], "start_point": {"row": 109, "column": 55}, "end_point": {"row": 109, "column": 63}}, {"id": 237, "type": "field_declaration", "text": "lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);", "parent": 115, "children": [238, 239, 248], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 114, "column": 73}}, {"id": 238, "type": "type_identifier", "text": "lcb_socket_t", "parent": 237, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 16}}, {"id": 239, "type": "ERROR", "text": "E_socket(const addrinfo *ai)\n {\n return", "parent": 237, "children": [240], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 114, "column": 14}}, {"id": 240, "type": "function_declarator", "text": "E_socket(const addrinfo *ai)", "parent": 239, "children": [241, 242], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 45}}, {"id": 241, "type": "field_identifier", "text": "E_socket", "parent": 240, "children": [], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 25}}, {"id": 242, "type": "parameter_list", "text": "(const addrinfo *ai)", "parent": 240, "children": [243], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 45}}, {"id": 243, "type": "parameter_declaration", "text": "const addrinfo *ai", "parent": 242, "children": [244, 245], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 44}}, {"id": 244, "type": "type_identifier", "text": "addrinfo", "parent": 243, "children": [], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 112, "column": 40}}, {"id": 245, "type": "pointer_declarator", "text": "*ai", "parent": 243, "children": [246, 247], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 44}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 42}}, {"id": 247, "type": "identifier", "text": "ai", "parent": 245, "children": [], "start_point": {"row": 112, "column": 42}, "end_point": {"row": 112, "column": 44}}, {"id": 248, "type": "function_declarator", "text": "E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)", "parent": 237, "children": [249, 250], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 72}}, {"id": 249, "type": "field_identifier", "text": "E_socket", "parent": 248, "children": [], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 23}}, {"id": 250, "type": "parameter_list", "text": "(ai->ai_family, ai->ai_socktype, ai->ai_protocol)", "parent": 248, "children": [251, 254, 257], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 72}}, {"id": 251, "type": "parameter_declaration", "text": "ai->ai_family", "parent": 250, "children": [252, 253], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 37}}, {"id": 252, "type": "type_identifier", "text": "ai", "parent": 251, "children": [], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 26}}, {"id": 253, "type": "identifier", "text": "ai_family", "parent": 251, "children": [], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 37}}, {"id": 254, "type": "parameter_declaration", "text": "ai->ai_socktype", "parent": 250, "children": [255, 256], "start_point": {"row": 114, "column": 39}, "end_point": {"row": 114, "column": 54}}, {"id": 255, "type": "type_identifier", "text": "ai", "parent": 254, "children": [], "start_point": {"row": 114, "column": 39}, "end_point": {"row": 114, "column": 41}}, {"id": 256, "type": "identifier", "text": "ai_socktype", "parent": 254, "children": [], "start_point": {"row": 114, "column": 43}, "end_point": {"row": 114, "column": 54}}, {"id": 257, "type": "parameter_declaration", "text": "ai->ai_protocol", "parent": 250, "children": [258, 259], "start_point": {"row": 114, "column": 56}, "end_point": {"row": 114, "column": 71}}, {"id": 258, "type": "type_identifier", "text": "ai", "parent": 257, "children": [], "start_point": {"row": 114, "column": 56}, "end_point": {"row": 114, "column": 58}}, {"id": 259, "type": "identifier", "text": "ai_protocol", "parent": 257, "children": [], "start_point": {"row": 114, "column": 60}, "end_point": {"row": 114, "column": 71}}, {"id": 260, "type": "field_declaration", "text": "void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);", "parent": 115, "children": [261, 262, 274], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 119, "column": 38}}, {"id": 261, "type": "primitive_type", "text": "void", "parent": 260, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 8}}, {"id": 262, "type": "ERROR", "text": "E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).", "parent": 260, "children": [263, 269], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 119, "column": 23}}, {"id": 263, "type": "function_declarator", "text": "E_close(lcb_socket_t sock)", "parent": 262, "children": [264, 265], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 35}}, {"id": 264, "type": "field_identifier", "text": "E_close", "parent": 263, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 16}}, {"id": 265, "type": "parameter_list", "text": "(lcb_socket_t sock)", "parent": 263, "children": [266], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 35}}, {"id": 266, "type": "parameter_declaration", "text": "lcb_socket_t sock", "parent": 265, "children": [267, 268], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 34}}, {"id": 267, "type": "type_identifier", "text": "lcb_socket_t", "parent": 266, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 29}}, {"id": 268, "type": "identifier", "text": "sock", "parent": 266, "children": [], "start_point": {"row": 117, "column": 30}, "end_point": {"row": 117, "column": 34}}, {"id": 269, "type": "function_declarator", "text": "IOT_V0IO(this)", "parent": 262, "children": [270, 271], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 22}}, {"id": 270, "type": "field_identifier", "text": "IOT_V0IO", "parent": 269, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 16}}, {"id": 271, "type": "parameter_list", "text": "(this)", "parent": 269, "children": [272], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 22}}, {"id": 272, "type": "parameter_declaration", "text": "this", "parent": 271, "children": [273], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 21}}, {"id": 273, "type": "type_identifier", "text": "this", "parent": 272, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 21}}, {"id": 274, "type": "function_declarator", "text": "close(p, sock)", "parent": 260, "children": [275, 276], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 37}}, {"id": 275, "type": "field_identifier", "text": "close", "parent": 274, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 28}}, {"id": 276, "type": "parameter_list", "text": "(p, sock)", "parent": 274, "children": [277, 279], "start_point": {"row": 119, "column": 28}, "end_point": {"row": 119, "column": 37}}, {"id": 277, "type": "parameter_declaration", "text": "p", "parent": 276, "children": [278], "start_point": {"row": 119, "column": 29}, "end_point": {"row": 119, "column": 30}}, {"id": 278, "type": "type_identifier", "text": "p", "parent": 277, "children": [], "start_point": {"row": 119, "column": 29}, "end_point": {"row": 119, "column": 30}}, {"id": 279, "type": "parameter_declaration", "text": "sock", "parent": 276, "children": [280], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 36}}, {"id": 280, "type": "type_identifier", "text": "sock", "parent": 279, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 36}}, {"id": 281, "type": "field_declaration", "text": "void *E_event_create()\n {\n return IOT_V0EV(this).create(p);", "parent": 115, "children": [282, 283], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 124, "column": 40}}, {"id": 282, "type": "primitive_type", "text": "void", "parent": 281, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 8}}, {"id": 283, "type": "pointer_declarator", "text": "*E_event_create()\n {\n return IOT_V0EV(this).create(p)", "parent": 281, "children": [284, 285, 294], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 124, "column": 39}}, {"id": 284, "type": "*", "text": "*", "parent": 283, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 10}}, {"id": 285, "type": "ERROR", "text": "E_event_create()\n {\n return IOT_V0EV(this).", "parent": 283, "children": [286, 289], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 124, "column": 30}}, {"id": 286, "type": "function_declarator", "text": "E_event_create()", "parent": 285, "children": [287, 288], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 26}}, {"id": 287, "type": "field_identifier", "text": "E_event_create", "parent": 286, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 24}}, {"id": 288, "type": "parameter_list", "text": "()", "parent": 286, "children": [], "start_point": {"row": 122, "column": 24}, "end_point": {"row": 122, "column": 26}}, {"id": 289, "type": "function_declarator", "text": "IOT_V0EV(this)", "parent": 285, "children": [290, 291], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 29}}, {"id": 290, "type": "field_identifier", "text": "IOT_V0EV", "parent": 289, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 23}}, {"id": 291, "type": "parameter_list", "text": "(this)", "parent": 289, "children": [292], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 29}}, {"id": 292, "type": "parameter_declaration", "text": "this", "parent": 291, "children": [293], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 28}}, {"id": 293, "type": "type_identifier", "text": "this", "parent": 292, "children": [], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 28}}, {"id": 294, "type": "function_declarator", "text": "create(p)", "parent": 283, "children": [295, 296], "start_point": {"row": 124, "column": 30}, "end_point": {"row": 124, "column": 39}}, {"id": 295, "type": "field_identifier", "text": "create", "parent": 294, "children": [], "start_point": {"row": 124, "column": 30}, "end_point": {"row": 124, "column": 36}}, {"id": 296, "type": "parameter_list", "text": "(p)", "parent": 294, "children": [297], "start_point": {"row": 124, "column": 36}, "end_point": {"row": 124, "column": 39}}, {"id": 297, "type": "parameter_declaration", "text": "p", "parent": 296, "children": [298], "start_point": {"row": 124, "column": 37}, "end_point": {"row": 124, "column": 38}}, {"id": 298, "type": "type_identifier", "text": "p", "parent": 297, "children": [], "start_point": {"row": 124, "column": 37}, "end_point": {"row": 124, "column": 38}}, {"id": 299, "type": "field_declaration", "text": "void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);", "parent": 115, "children": [300, 301, 330], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 129, "column": 58}}, {"id": 300, "type": "primitive_type", "text": "void", "parent": 299, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 8}}, {"id": 301, "type": "ERROR", "text": "E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).", "parent": 299, "children": [302, 325], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 129, "column": 23}}, {"id": 302, "type": "function_declarator", "text": "E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)", "parent": 301, "children": [303, 304], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 96}}, {"id": 303, "type": "field_identifier", "text": "E_event_watch", "parent": 302, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 22}}, {"id": 304, "type": "parameter_list", "text": "(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)", "parent": 302, "children": [305, 308, 313, 317, 322], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 96}}, {"id": 305, "type": "parameter_declaration", "text": "lcb_socket_t fd", "parent": 304, "children": [306, 307], "start_point": {"row": 127, "column": 23}, "end_point": {"row": 127, "column": 38}}, {"id": 306, "type": "type_identifier", "text": "lcb_socket_t", "parent": 305, "children": [], "start_point": {"row": 127, "column": 23}, "end_point": {"row": 127, "column": 35}}, {"id": 307, "type": "identifier", "text": "fd", "parent": 305, "children": [], "start_point": {"row": 127, "column": 36}, "end_point": {"row": 127, "column": 38}}, {"id": 308, "type": "parameter_declaration", "text": "void *event", "parent": 304, "children": [309, 310], "start_point": {"row": 127, "column": 40}, "end_point": {"row": 127, "column": 51}}, {"id": 309, "type": "primitive_type", "text": "void", "parent": 308, "children": [], "start_point": {"row": 127, "column": 40}, "end_point": {"row": 127, "column": 44}}, {"id": 310, "type": "pointer_declarator", "text": "*event", "parent": 308, "children": [311, 312], "start_point": {"row": 127, "column": 45}, "end_point": {"row": 127, "column": 51}}, {"id": 311, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 127, "column": 45}, "end_point": {"row": 127, "column": 46}}, {"id": 312, "type": "identifier", "text": "event", "parent": 310, "children": [], "start_point": {"row": 127, "column": 46}, "end_point": {"row": 127, "column": 51}}, {"id": 313, "type": "parameter_declaration", "text": "short mask", "parent": 304, "children": [314, 316], "start_point": {"row": 127, "column": 53}, "end_point": {"row": 127, "column": 63}}, {"id": 314, "type": "sized_type_specifier", "text": "short", "parent": 313, "children": [315], "start_point": {"row": 127, "column": 53}, "end_point": {"row": 127, "column": 58}}, {"id": 315, "type": "short", "text": "short", "parent": 314, "children": [], "start_point": {"row": 127, "column": 53}, "end_point": {"row": 127, "column": 58}}, {"id": 316, "type": "identifier", "text": "mask", "parent": 313, "children": [], "start_point": {"row": 127, "column": 59}, "end_point": {"row": 127, "column": 63}}, {"id": 317, "type": "parameter_declaration", "text": "void *arg", "parent": 304, "children": [318, 319], "start_point": {"row": 127, "column": 65}, "end_point": {"row": 127, "column": 74}}, {"id": 318, "type": "primitive_type", "text": "void", "parent": 317, "children": [], "start_point": {"row": 127, "column": 65}, "end_point": {"row": 127, "column": 69}}, {"id": 319, "type": "pointer_declarator", "text": "*arg", "parent": 317, "children": [320, 321], "start_point": {"row": 127, "column": 70}, "end_point": {"row": 127, "column": 74}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 127, "column": 70}, "end_point": {"row": 127, "column": 71}}, {"id": 321, "type": "identifier", "text": "arg", "parent": 319, "children": [], "start_point": {"row": 127, "column": 71}, "end_point": {"row": 127, "column": 74}}, {"id": 322, "type": "parameter_declaration", "text": "lcb_ioE_callback cb", "parent": 304, "children": [323, 324], "start_point": {"row": 127, "column": 76}, "end_point": {"row": 127, "column": 95}}, {"id": 323, "type": "type_identifier", "text": "lcb_ioE_callback", "parent": 322, "children": [], "start_point": {"row": 127, "column": 76}, "end_point": {"row": 127, "column": 92}}, {"id": 324, "type": "identifier", "text": "cb", "parent": 322, "children": [], "start_point": {"row": 127, "column": 93}, "end_point": {"row": 127, "column": 95}}, {"id": 325, "type": "function_declarator", "text": "IOT_V0EV(this)", "parent": 301, "children": [326, 327], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 22}}, {"id": 326, "type": "field_identifier", "text": "IOT_V0EV", "parent": 325, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 16}}, {"id": 327, "type": "parameter_list", "text": "(this)", "parent": 325, "children": [328], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 22}}, {"id": 328, "type": "parameter_declaration", "text": "this", "parent": 327, "children": [329], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 21}}, {"id": 329, "type": "type_identifier", "text": "this", "parent": 328, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 21}}, {"id": 330, "type": "function_declarator", "text": "watch(p, fd, event, mask, arg, cb)", "parent": 299, "children": [331, 332], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 57}}, {"id": 331, "type": "field_identifier", "text": "watch", "parent": 330, "children": [], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 28}}, {"id": 332, "type": "parameter_list", "text": "(p, fd, event, mask, arg, cb)", "parent": 330, "children": [333, 335, 337, 339, 341, 343], "start_point": {"row": 129, "column": 28}, "end_point": {"row": 129, "column": 57}}, {"id": 333, "type": "parameter_declaration", "text": "p", "parent": 332, "children": [334], "start_point": {"row": 129, "column": 29}, "end_point": {"row": 129, "column": 30}}, {"id": 334, "type": "type_identifier", "text": "p", "parent": 333, "children": [], "start_point": {"row": 129, "column": 29}, "end_point": {"row": 129, "column": 30}}, {"id": 335, "type": "parameter_declaration", "text": "fd", "parent": 332, "children": [336], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 129, "column": 34}}, {"id": 336, "type": "type_identifier", "text": "fd", "parent": 335, "children": [], "start_point": {"row": 129, "column": 32}, "end_point": {"row": 129, "column": 34}}, {"id": 337, "type": "parameter_declaration", "text": "event", "parent": 332, "children": [338], "start_point": {"row": 129, "column": 36}, "end_point": {"row": 129, "column": 41}}, {"id": 338, "type": "type_identifier", "text": "event", "parent": 337, "children": [], "start_point": {"row": 129, "column": 36}, "end_point": {"row": 129, "column": 41}}, {"id": 339, "type": "parameter_declaration", "text": "mask", "parent": 332, "children": [340], "start_point": {"row": 129, "column": 43}, "end_point": {"row": 129, "column": 47}}, {"id": 340, "type": "type_identifier", "text": "mask", "parent": 339, "children": [], "start_point": {"row": 129, "column": 43}, "end_point": {"row": 129, "column": 47}}, {"id": 341, "type": "parameter_declaration", "text": "arg", "parent": 332, "children": [342], "start_point": {"row": 129, "column": 49}, "end_point": {"row": 129, "column": 52}}, {"id": 342, "type": "type_identifier", "text": "arg", "parent": 341, "children": [], "start_point": {"row": 129, "column": 49}, "end_point": {"row": 129, "column": 52}}, {"id": 343, "type": "parameter_declaration", "text": "cb", "parent": 332, "children": [344], "start_point": {"row": 129, "column": 54}, "end_point": {"row": 129, "column": 56}}, {"id": 344, "type": "type_identifier", "text": "cb", "parent": 343, "children": [], "start_point": {"row": 129, "column": 54}, "end_point": {"row": 129, "column": 56}}, {"id": 345, "type": "field_declaration", "text": "void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);", "parent": 115, "children": [346, 347, 361], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 134, "column": 41}}, {"id": 346, "type": "primitive_type", "text": "void", "parent": 345, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 8}}, {"id": 347, "type": "ERROR", "text": "E_event_destroy(void *event)\n {\n IOT_V0EV(this).", "parent": 345, "children": [348, 356], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 134, "column": 23}}, {"id": 348, "type": "function_declarator", "text": "E_event_destroy(void *event)", "parent": 347, "children": [349, 350], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 37}}, {"id": 349, "type": "field_identifier", "text": "E_event_destroy", "parent": 348, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 24}}, {"id": 350, "type": "parameter_list", "text": "(void *event)", "parent": 348, "children": [351], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 37}}, {"id": 351, "type": "parameter_declaration", "text": "void *event", "parent": 350, "children": [352, 353], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 36}}, {"id": 352, "type": "primitive_type", "text": "void", "parent": 351, "children": [], "start_point": {"row": 132, "column": 25}, "end_point": {"row": 132, "column": 29}}, {"id": 353, "type": "pointer_declarator", "text": "*event", "parent": 351, "children": [354, 355], "start_point": {"row": 132, "column": 30}, "end_point": {"row": 132, "column": 36}}, {"id": 354, "type": "*", "text": "*", "parent": 353, "children": [], "start_point": {"row": 132, "column": 30}, "end_point": {"row": 132, "column": 31}}, {"id": 355, "type": "identifier", "text": "event", "parent": 353, "children": [], "start_point": {"row": 132, "column": 31}, "end_point": {"row": 132, "column": 36}}, {"id": 356, "type": "function_declarator", "text": "IOT_V0EV(this)", "parent": 347, "children": [357, 358], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 22}}, {"id": 357, "type": "field_identifier", "text": "IOT_V0EV", "parent": 356, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 16}}, {"id": 358, "type": "parameter_list", "text": "(this)", "parent": 356, "children": [359], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 22}}, {"id": 359, "type": "parameter_declaration", "text": "this", "parent": 358, "children": [360], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 21}}, {"id": 360, "type": "type_identifier", "text": "this", "parent": 359, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 21}}, {"id": 361, "type": "function_declarator", "text": "destroy(p, event)", "parent": 345, "children": [362, 363], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 40}}, {"id": 362, "type": "field_identifier", "text": "destroy", "parent": 361, "children": [], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 30}}, {"id": 363, "type": "parameter_list", "text": "(p, event)", "parent": 361, "children": [364, 366], "start_point": {"row": 134, "column": 30}, "end_point": {"row": 134, "column": 40}}, {"id": 364, "type": "parameter_declaration", "text": "p", "parent": 363, "children": [365], "start_point": {"row": 134, "column": 31}, "end_point": {"row": 134, "column": 32}}, {"id": 365, "type": "type_identifier", "text": "p", "parent": 364, "children": [], "start_point": {"row": 134, "column": 31}, "end_point": {"row": 134, "column": 32}}, {"id": 366, "type": "parameter_declaration", "text": "event", "parent": 363, "children": [367], "start_point": {"row": 134, "column": 34}, "end_point": {"row": 134, "column": 39}}, {"id": 367, "type": "type_identifier", "text": "event", "parent": 366, "children": [], "start_point": {"row": 134, "column": 34}, "end_point": {"row": 134, "column": 39}}, {"id": 368, "type": "field_declaration", "text": "void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);", "parent": 115, "children": [369, 370, 387], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 139, "column": 44}}, {"id": 369, "type": "primitive_type", "text": "void", "parent": 368, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 8}}, {"id": 370, "type": "ERROR", "text": "E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).", "parent": 368, "children": [371, 382], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 139, "column": 23}}, {"id": 371, "type": "function_declarator", "text": "E_event_cancel(lcb_socket_t fd, void *event)", "parent": 370, "children": [372, 373], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 53}}, {"id": 372, "type": "field_identifier", "text": "E_event_cancel", "parent": 371, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 23}}, {"id": 373, "type": "parameter_list", "text": "(lcb_socket_t fd, void *event)", "parent": 371, "children": [374, 377], "start_point": {"row": 137, "column": 23}, "end_point": {"row": 137, "column": 53}}, {"id": 374, "type": "parameter_declaration", "text": "lcb_socket_t fd", "parent": 373, "children": [375, 376], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 39}}, {"id": 375, "type": "type_identifier", "text": "lcb_socket_t", "parent": 374, "children": [], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 36}}, {"id": 376, "type": "identifier", "text": "fd", "parent": 374, "children": [], "start_point": {"row": 137, "column": 37}, "end_point": {"row": 137, "column": 39}}, {"id": 377, "type": "parameter_declaration", "text": "void *event", "parent": 373, "children": [378, 379], "start_point": {"row": 137, "column": 41}, "end_point": {"row": 137, "column": 52}}, {"id": 378, "type": "primitive_type", "text": "void", "parent": 377, "children": [], "start_point": {"row": 137, "column": 41}, "end_point": {"row": 137, "column": 45}}, {"id": 379, "type": "pointer_declarator", "text": "*event", "parent": 377, "children": [380, 381], "start_point": {"row": 137, "column": 46}, "end_point": {"row": 137, "column": 52}}, {"id": 380, "type": "*", "text": "*", "parent": 379, "children": [], "start_point": {"row": 137, "column": 46}, "end_point": {"row": 137, "column": 47}}, {"id": 381, "type": "identifier", "text": "event", "parent": 379, "children": [], "start_point": {"row": 137, "column": 47}, "end_point": {"row": 137, "column": 52}}, {"id": 382, "type": "function_declarator", "text": "IOT_V0EV(this)", "parent": 370, "children": [383, 384], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 22}}, {"id": 383, "type": "field_identifier", "text": "IOT_V0EV", "parent": 382, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 16}}, {"id": 384, "type": "parameter_list", "text": "(this)", "parent": 382, "children": [385], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 22}}, {"id": 385, "type": "parameter_declaration", "text": "this", "parent": 384, "children": [386], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 21}}, {"id": 386, "type": "type_identifier", "text": "this", "parent": 385, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 21}}, {"id": 387, "type": "function_declarator", "text": "cancel(p, fd, event)", "parent": 368, "children": [388, 389], "start_point": {"row": 139, "column": 23}, "end_point": {"row": 139, "column": 43}}, {"id": 388, "type": "field_identifier", "text": "cancel", "parent": 387, "children": [], "start_point": {"row": 139, "column": 23}, "end_point": {"row": 139, "column": 29}}, {"id": 389, "type": "parameter_list", "text": "(p, fd, event)", "parent": 387, "children": [390, 392, 394], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 43}}, {"id": 390, "type": "parameter_declaration", "text": "p", "parent": 389, "children": [391], "start_point": {"row": 139, "column": 30}, "end_point": {"row": 139, "column": 31}}, {"id": 391, "type": "type_identifier", "text": "p", "parent": 390, "children": [], "start_point": {"row": 139, "column": 30}, "end_point": {"row": 139, "column": 31}}, {"id": 392, "type": "parameter_declaration", "text": "fd", "parent": 389, "children": [393], "start_point": {"row": 139, "column": 33}, "end_point": {"row": 139, "column": 35}}, {"id": 393, "type": "type_identifier", "text": "fd", "parent": 392, "children": [], "start_point": {"row": 139, "column": 33}, "end_point": {"row": 139, "column": 35}}, {"id": 394, "type": "parameter_declaration", "text": "event", "parent": 389, "children": [395], "start_point": {"row": 139, "column": 37}, "end_point": {"row": 139, "column": 42}}, {"id": 395, "type": "type_identifier", "text": "event", "parent": 394, "children": [], "start_point": {"row": 139, "column": 37}, "end_point": {"row": 139, "column": 42}}, {"id": 396, "type": "field_declaration", "text": "int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);", "parent": 115, "children": [397, 398, 413], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 144, "column": 53}}, {"id": 397, "type": "primitive_type", "text": "int", "parent": 396, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 7}}, {"id": 398, "type": "ERROR", "text": "E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).", "parent": 396, "children": [399, 408], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 144, "column": 30}}, {"id": 399, "type": "function_declarator", "text": "E_check_closed(lcb_socket_t s, int flags)", "parent": 398, "children": [400, 401], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 49}}, {"id": 400, "type": "field_identifier", "text": "E_check_closed", "parent": 399, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 22}}, {"id": 401, "type": "parameter_list", "text": "(lcb_socket_t s, int flags)", "parent": 399, "children": [402, 405], "start_point": {"row": 142, "column": 22}, "end_point": {"row": 142, "column": 49}}, {"id": 402, "type": "parameter_declaration", "text": "lcb_socket_t s", "parent": 401, "children": [403, 404], "start_point": {"row": 142, "column": 23}, "end_point": {"row": 142, "column": 37}}, {"id": 403, "type": "type_identifier", "text": "lcb_socket_t", "parent": 402, "children": [], "start_point": {"row": 142, "column": 23}, "end_point": {"row": 142, "column": 35}}, {"id": 404, "type": "identifier", "text": "s", "parent": 402, "children": [], "start_point": {"row": 142, "column": 36}, "end_point": {"row": 142, "column": 37}}, {"id": 405, "type": "parameter_declaration", "text": "int flags", "parent": 401, "children": [406, 407], "start_point": {"row": 142, "column": 39}, "end_point": {"row": 142, "column": 48}}, {"id": 406, "type": "primitive_type", "text": "int", "parent": 405, "children": [], "start_point": {"row": 142, "column": 39}, "end_point": {"row": 142, "column": 42}}, {"id": 407, "type": "identifier", "text": "flags", "parent": 405, "children": [], "start_point": {"row": 142, "column": 43}, "end_point": {"row": 142, "column": 48}}, {"id": 408, "type": "function_declarator", "text": "IOT_V0IO(this)", "parent": 398, "children": [409, 410], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 29}}, {"id": 409, "type": "field_identifier", "text": "IOT_V0IO", "parent": 408, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 23}}, {"id": 410, "type": "parameter_list", "text": "(this)", "parent": 408, "children": [411], "start_point": {"row": 144, "column": 23}, "end_point": {"row": 144, "column": 29}}, {"id": 411, "type": "parameter_declaration", "text": "this", "parent": 410, "children": [412], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 28}}, {"id": 412, "type": "type_identifier", "text": "this", "parent": 411, "children": [], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 28}}, {"id": 413, "type": "function_declarator", "text": "is_closed(p, s, flags)", "parent": 396, "children": [414, 415], "start_point": {"row": 144, "column": 30}, "end_point": {"row": 144, "column": 52}}, {"id": 414, "type": "field_identifier", "text": "is_closed", "parent": 413, "children": [], "start_point": {"row": 144, "column": 30}, "end_point": {"row": 144, "column": 39}}, {"id": 415, "type": "parameter_list", "text": "(p, s, flags)", "parent": 413, "children": [416, 418, 420], "start_point": {"row": 144, "column": 39}, "end_point": {"row": 144, "column": 52}}, {"id": 416, "type": "parameter_declaration", "text": "p", "parent": 415, "children": [417], "start_point": {"row": 144, "column": 40}, "end_point": {"row": 144, "column": 41}}, {"id": 417, "type": "type_identifier", "text": "p", "parent": 416, "children": [], "start_point": {"row": 144, "column": 40}, "end_point": {"row": 144, "column": 41}}, {"id": 418, "type": "parameter_declaration", "text": "s", "parent": 415, "children": [419], "start_point": {"row": 144, "column": 43}, "end_point": {"row": 144, "column": 44}}, {"id": 419, "type": "type_identifier", "text": "s", "parent": 418, "children": [], "start_point": {"row": 144, "column": 43}, "end_point": {"row": 144, "column": 44}}, {"id": 420, "type": "parameter_declaration", "text": "flags", "parent": 415, "children": [421], "start_point": {"row": 144, "column": 46}, "end_point": {"row": 144, "column": 51}}, {"id": 421, "type": "type_identifier", "text": "flags", "parent": 420, "children": [], "start_point": {"row": 144, "column": 46}, "end_point": {"row": 144, "column": 51}}, {"id": 422, "type": "field_declaration", "text": "int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);", "parent": 115, "children": [423, 424, 447], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 149, "column": 57}}, {"id": 423, "type": "primitive_type", "text": "int", "parent": 422, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 7}}, {"id": 424, "type": "ERROR", "text": "E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).", "parent": 422, "children": [425, 442], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 149, "column": 30}}, {"id": 425, "type": "function_declarator", "text": "E_cntl(lcb_socket_t s, int mode, int opt, void *val)", "parent": 424, "children": [426, 427], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 60}}, {"id": 426, "type": "field_identifier", "text": "E_cntl", "parent": 425, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 14}}, {"id": 427, "type": "parameter_list", "text": "(lcb_socket_t s, int mode, int opt, void *val)", "parent": 425, "children": [428, 431, 434, 437], "start_point": {"row": 147, "column": 14}, "end_point": {"row": 147, "column": 60}}, {"id": 428, "type": "parameter_declaration", "text": "lcb_socket_t s", "parent": 427, "children": [429, 430], "start_point": {"row": 147, "column": 15}, "end_point": {"row": 147, "column": 29}}, {"id": 429, "type": "type_identifier", "text": "lcb_socket_t", "parent": 428, "children": [], "start_point": {"row": 147, "column": 15}, "end_point": {"row": 147, "column": 27}}, {"id": 430, "type": "identifier", "text": "s", "parent": 428, "children": [], "start_point": {"row": 147, "column": 28}, "end_point": {"row": 147, "column": 29}}, {"id": 431, "type": "parameter_declaration", "text": "int mode", "parent": 427, "children": [432, 433], "start_point": {"row": 147, "column": 31}, "end_point": {"row": 147, "column": 39}}, {"id": 432, "type": "primitive_type", "text": "int", "parent": 431, "children": [], "start_point": {"row": 147, "column": 31}, "end_point": {"row": 147, "column": 34}}, {"id": 433, "type": "identifier", "text": "mode", "parent": 431, "children": [], "start_point": {"row": 147, "column": 35}, "end_point": {"row": 147, "column": 39}}, {"id": 434, "type": "parameter_declaration", "text": "int opt", "parent": 427, "children": [435, 436], "start_point": {"row": 147, "column": 41}, "end_point": {"row": 147, "column": 48}}, {"id": 435, "type": "primitive_type", "text": "int", "parent": 434, "children": [], "start_point": {"row": 147, "column": 41}, "end_point": {"row": 147, "column": 44}}, {"id": 436, "type": "identifier", "text": "opt", "parent": 434, "children": [], "start_point": {"row": 147, "column": 45}, "end_point": {"row": 147, "column": 48}}, {"id": 437, "type": "parameter_declaration", "text": "void *val", "parent": 427, "children": [438, 439], "start_point": {"row": 147, "column": 50}, "end_point": {"row": 147, "column": 59}}, {"id": 438, "type": "primitive_type", "text": "void", "parent": 437, "children": [], "start_point": {"row": 147, "column": 50}, "end_point": {"row": 147, "column": 54}}, {"id": 439, "type": "pointer_declarator", "text": "*val", "parent": 437, "children": [440, 441], "start_point": {"row": 147, "column": 55}, "end_point": {"row": 147, "column": 59}}, {"id": 440, "type": "*", "text": "*", "parent": 439, "children": [], "start_point": {"row": 147, "column": 55}, "end_point": {"row": 147, "column": 56}}, {"id": 441, "type": "identifier", "text": "val", "parent": 439, "children": [], "start_point": {"row": 147, "column": 56}, "end_point": {"row": 147, "column": 59}}, {"id": 442, "type": "function_declarator", "text": "IOT_V0IO(this)", "parent": 424, "children": [443, 444], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 29}}, {"id": 443, "type": "field_identifier", "text": "IOT_V0IO", "parent": 442, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 23}}, {"id": 444, "type": "parameter_list", "text": "(this)", "parent": 442, "children": [445], "start_point": {"row": 149, "column": 23}, "end_point": {"row": 149, "column": 29}}, {"id": 445, "type": "parameter_declaration", "text": "this", "parent": 444, "children": [446], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 28}}, {"id": 446, "type": "type_identifier", "text": "this", "parent": 445, "children": [], "start_point": {"row": 149, "column": 24}, "end_point": {"row": 149, "column": 28}}, {"id": 447, "type": "function_declarator", "text": "cntl(p, s, mode, opt, val)", "parent": 422, "children": [448, 449], "start_point": {"row": 149, "column": 30}, "end_point": {"row": 149, "column": 56}}, {"id": 448, "type": "field_identifier", "text": "cntl", "parent": 447, "children": [], "start_point": {"row": 149, "column": 30}, "end_point": {"row": 149, "column": 34}}, {"id": 449, "type": "parameter_list", "text": "(p, s, mode, opt, val)", "parent": 447, "children": [450, 452, 454, 456, 458], "start_point": {"row": 149, "column": 34}, "end_point": {"row": 149, "column": 56}}, {"id": 450, "type": "parameter_declaration", "text": "p", "parent": 449, "children": [451], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 36}}, {"id": 451, "type": "type_identifier", "text": "p", "parent": 450, "children": [], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 36}}, {"id": 452, "type": "parameter_declaration", "text": "s", "parent": 449, "children": [453], "start_point": {"row": 149, "column": 38}, "end_point": {"row": 149, "column": 39}}, {"id": 453, "type": "type_identifier", "text": "s", "parent": 452, "children": [], "start_point": {"row": 149, "column": 38}, "end_point": {"row": 149, "column": 39}}, {"id": 454, "type": "parameter_declaration", "text": "mode", "parent": 449, "children": [455], "start_point": {"row": 149, "column": 41}, "end_point": {"row": 149, "column": 45}}, {"id": 455, "type": "type_identifier", "text": "mode", "parent": 454, "children": [], "start_point": {"row": 149, "column": 41}, "end_point": {"row": 149, "column": 45}}, {"id": 456, "type": "parameter_declaration", "text": "opt", "parent": 449, "children": [457], "start_point": {"row": 149, "column": 47}, "end_point": {"row": 149, "column": 50}}, {"id": 457, "type": "type_identifier", "text": "opt", "parent": 456, "children": [], "start_point": {"row": 149, "column": 47}, "end_point": {"row": 149, "column": 50}}, {"id": 458, "type": "parameter_declaration", "text": "val", "parent": 449, "children": [459], "start_point": {"row": 149, "column": 52}, "end_point": {"row": 149, "column": 55}}, {"id": 459, "type": "type_identifier", "text": "val", "parent": 458, "children": [], "start_point": {"row": 149, "column": 52}, "end_point": {"row": 149, "column": 55}}, {"id": 460, "type": "field_declaration", "text": "void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);", "parent": 115, "children": [461, 462, 476], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 154, "column": 34}}, {"id": 461, "type": "primitive_type", "text": "void", "parent": 460, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 8}}, {"id": 462, "type": "ERROR", "text": "C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).", "parent": 460, "children": [463, 471], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 154, "column": 21}}, {"id": 463, "type": "function_declarator", "text": "C_close(lcb_sockdata_t *sd)", "parent": 462, "children": [464, 465], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 36}}, {"id": 464, "type": "field_identifier", "text": "C_close", "parent": 463, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 16}}, {"id": 465, "type": "parameter_list", "text": "(lcb_sockdata_t *sd)", "parent": 463, "children": [466], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 36}}, {"id": 466, "type": "parameter_declaration", "text": "lcb_sockdata_t *sd", "parent": 465, "children": [467, 468], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 35}}, {"id": 467, "type": "type_identifier", "text": "lcb_sockdata_t", "parent": 466, "children": [], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 31}}, {"id": 468, "type": "pointer_declarator", "text": "*sd", "parent": 466, "children": [469, 470], "start_point": {"row": 152, "column": 32}, "end_point": {"row": 152, "column": 35}}, {"id": 469, "type": "*", "text": "*", "parent": 468, "children": [], "start_point": {"row": 152, "column": 32}, "end_point": {"row": 152, "column": 33}}, {"id": 470, "type": "identifier", "text": "sd", "parent": 468, "children": [], "start_point": {"row": 152, "column": 33}, "end_point": {"row": 152, "column": 35}}, {"id": 471, "type": "function_declarator", "text": "IOT_V1(this)", "parent": 462, "children": [472, 473], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 20}}, {"id": 472, "type": "field_identifier", "text": "IOT_V1", "parent": 471, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 14}}, {"id": 473, "type": "parameter_list", "text": "(this)", "parent": 471, "children": [474], "start_point": {"row": 154, "column": 14}, "end_point": {"row": 154, "column": 20}}, {"id": 474, "type": "parameter_declaration", "text": "this", "parent": 473, "children": [475], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 19}}, {"id": 475, "type": "type_identifier", "text": "this", "parent": 474, "children": [], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 19}}, {"id": 476, "type": "function_declarator", "text": "close(p, sd)", "parent": 460, "children": [477, 478], "start_point": {"row": 154, "column": 21}, "end_point": {"row": 154, "column": 33}}, {"id": 477, "type": "field_identifier", "text": "close", "parent": 476, "children": [], "start_point": {"row": 154, "column": 21}, "end_point": {"row": 154, "column": 26}}, {"id": 478, "type": "parameter_list", "text": "(p, sd)", "parent": 476, "children": [479, 481], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 33}}, {"id": 479, "type": "parameter_declaration", "text": "p", "parent": 478, "children": [480], "start_point": {"row": 154, "column": 27}, "end_point": {"row": 154, "column": 28}}, {"id": 480, "type": "type_identifier", "text": "p", "parent": 479, "children": [], "start_point": {"row": 154, "column": 27}, "end_point": {"row": 154, "column": 28}}, {"id": 481, "type": "parameter_declaration", "text": "sd", "parent": 478, "children": [482], "start_point": {"row": 154, "column": 30}, "end_point": {"row": 154, "column": 32}}, {"id": 482, "type": "type_identifier", "text": "sd", "parent": 481, "children": [], "start_point": {"row": 154, "column": 30}, "end_point": {"row": 154, "column": 32}}, {"id": 483, "type": "field_declaration", "text": "int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);", "parent": 115, "children": [484, 485, 511], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 159, "column": 68}}, {"id": 484, "type": "primitive_type", "text": "int", "parent": 483, "children": [], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 7}}, {"id": 485, "type": "ERROR", "text": "C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).", "parent": 483, "children": [486, 506], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 159, "column": 28}}, {"id": 486, "type": "function_declarator", "text": "C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)", "parent": 485, "children": [487, 488], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 105}}, {"id": 487, "type": "field_identifier", "text": "C_connect", "parent": 486, "children": [], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 17}}, {"id": 488, "type": "parameter_list", "text": "(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)", "parent": 486, "children": [489, 494, 499, 503], "start_point": {"row": 157, "column": 17}, "end_point": {"row": 157, "column": 105}}, {"id": 489, "type": "parameter_declaration", "text": "lcb_sockdata_t *sd", "parent": 488, "children": [490, 491], "start_point": {"row": 157, "column": 18}, "end_point": {"row": 157, "column": 36}}, {"id": 490, "type": "type_identifier", "text": "lcb_sockdata_t", "parent": 489, "children": [], "start_point": {"row": 157, "column": 18}, "end_point": {"row": 157, "column": 32}}, {"id": 491, "type": "pointer_declarator", "text": "*sd", "parent": 489, "children": [492, 493], "start_point": {"row": 157, "column": 33}, "end_point": {"row": 157, "column": 36}}, {"id": 492, "type": "*", "text": "*", "parent": 491, "children": [], "start_point": {"row": 157, "column": 33}, "end_point": {"row": 157, "column": 34}}, {"id": 493, "type": "identifier", "text": "sd", "parent": 491, "children": [], "start_point": {"row": 157, "column": 34}, "end_point": {"row": 157, "column": 36}}, {"id": 494, "type": "parameter_declaration", "text": "const sockaddr *addr", "parent": 488, "children": [495, 496], "start_point": {"row": 157, "column": 38}, "end_point": {"row": 157, "column": 58}}, {"id": 495, "type": "type_identifier", "text": "sockaddr", "parent": 494, "children": [], "start_point": {"row": 157, "column": 44}, "end_point": {"row": 157, "column": 52}}, {"id": 496, "type": "pointer_declarator", "text": "*addr", "parent": 494, "children": [497, 498], "start_point": {"row": 157, "column": 53}, "end_point": {"row": 157, "column": 58}}, {"id": 497, "type": "*", "text": "*", "parent": 496, "children": [], "start_point": {"row": 157, "column": 53}, "end_point": {"row": 157, "column": 54}}, {"id": 498, "type": "identifier", "text": "addr", "parent": 496, "children": [], "start_point": {"row": 157, "column": 54}, "end_point": {"row": 157, "column": 58}}, {"id": 499, "type": "parameter_declaration", "text": "unsigned addrlen", "parent": 488, "children": [500, 502], "start_point": {"row": 157, "column": 60}, "end_point": {"row": 157, "column": 76}}, {"id": 500, "type": "sized_type_specifier", "text": "unsigned", "parent": 499, "children": [501], "start_point": {"row": 157, "column": 60}, "end_point": {"row": 157, "column": 68}}, {"id": 501, "type": "unsigned", "text": "unsigned", "parent": 500, "children": [], "start_point": {"row": 157, "column": 60}, "end_point": {"row": 157, "column": 68}}, {"id": 502, "type": "identifier", "text": "addrlen", "parent": 499, "children": [], "start_point": {"row": 157, "column": 69}, "end_point": {"row": 157, "column": 76}}, {"id": 503, "type": "parameter_declaration", "text": "lcb_io_connect_cb callback", "parent": 488, "children": [504, 505], "start_point": {"row": 157, "column": 78}, "end_point": {"row": 157, "column": 104}}, {"id": 504, "type": "type_identifier", "text": "lcb_io_connect_cb", "parent": 503, "children": [], "start_point": {"row": 157, "column": 78}, "end_point": {"row": 157, "column": 95}}, {"id": 505, "type": "identifier", "text": "callback", "parent": 503, "children": [], "start_point": {"row": 157, "column": 96}, "end_point": {"row": 157, "column": 104}}, {"id": 506, "type": "function_declarator", "text": "IOT_V1(this)", "parent": 485, "children": [507, 508], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 159, "column": 27}}, {"id": 507, "type": "field_identifier", "text": "IOT_V1", "parent": 506, "children": [], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 159, "column": 21}}, {"id": 508, "type": "parameter_list", "text": "(this)", "parent": 506, "children": [509], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 27}}, {"id": 509, "type": "parameter_declaration", "text": "this", "parent": 508, "children": [510], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 26}}, {"id": 510, "type": "type_identifier", "text": "this", "parent": 509, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 26}}, {"id": 511, "type": "function_declarator", "text": "connect(p, sd, addr, addrlen, callback)", "parent": 483, "children": [512, 513], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 67}}, {"id": 512, "type": "field_identifier", "text": "connect", "parent": 511, "children": [], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 35}}, {"id": 513, "type": "parameter_list", "text": "(p, sd, addr, addrlen, callback)", "parent": 511, "children": [514, 516, 518, 520, 522], "start_point": {"row": 159, "column": 35}, "end_point": {"row": 159, "column": 67}}, {"id": 514, "type": "parameter_declaration", "text": "p", "parent": 513, "children": [515], "start_point": {"row": 159, "column": 36}, "end_point": {"row": 159, "column": 37}}, {"id": 515, "type": "type_identifier", "text": "p", "parent": 514, "children": [], "start_point": {"row": 159, "column": 36}, "end_point": {"row": 159, "column": 37}}, {"id": 516, "type": "parameter_declaration", "text": "sd", "parent": 513, "children": [517], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 41}}, {"id": 517, "type": "type_identifier", "text": "sd", "parent": 516, "children": [], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 41}}, {"id": 518, "type": "parameter_declaration", "text": "addr", "parent": 513, "children": [519], "start_point": {"row": 159, "column": 43}, "end_point": {"row": 159, "column": 47}}, {"id": 519, "type": "type_identifier", "text": "addr", "parent": 518, "children": [], "start_point": {"row": 159, "column": 43}, "end_point": {"row": 159, "column": 47}}, {"id": 520, "type": "parameter_declaration", "text": "addrlen", "parent": 513, "children": [521], "start_point": {"row": 159, "column": 49}, "end_point": {"row": 159, "column": 56}}, {"id": 521, "type": "type_identifier", "text": "addrlen", "parent": 520, "children": [], "start_point": {"row": 159, "column": 49}, "end_point": {"row": 159, "column": 56}}, {"id": 522, "type": "parameter_declaration", "text": "callback", "parent": 513, "children": [523], "start_point": {"row": 159, "column": 58}, "end_point": {"row": 159, "column": 66}}, {"id": 523, "type": "type_identifier", "text": "callback", "parent": 522, "children": [], "start_point": {"row": 159, "column": 58}, "end_point": {"row": 159, "column": 66}}, {"id": 524, "type": "field_declaration", "text": "lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);", "parent": 115, "children": [525, 526], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 164, "column": 62}}, {"id": 525, "type": "type_identifier", "text": "lcb_sockdata_t", "parent": 524, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 18}}, {"id": 526, "type": "pointer_declarator", "text": "*C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol)", "parent": 524, "children": [527, 528, 546], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 164, "column": 61}}, {"id": 527, "type": "*", "text": "*", "parent": 526, "children": [], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 20}}, {"id": 528, "type": "ERROR", "text": "C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).", "parent": 526, "children": [529, 541], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 164, "column": 28}}, {"id": 529, "type": "function_declarator", "text": "C_socket(int domain, int type, int protocol)", "parent": 528, "children": [530, 531], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 64}}, {"id": 530, "type": "field_identifier", "text": "C_socket", "parent": 529, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 28}}, {"id": 531, "type": "parameter_list", "text": "(int domain, int type, int protocol)", "parent": 529, "children": [532, 535, 538], "start_point": {"row": 162, "column": 28}, "end_point": {"row": 162, "column": 64}}, {"id": 532, "type": "parameter_declaration", "text": "int domain", "parent": 531, "children": [533, 534], "start_point": {"row": 162, "column": 29}, "end_point": {"row": 162, "column": 39}}, {"id": 533, "type": "primitive_type", "text": "int", "parent": 532, "children": [], "start_point": {"row": 162, "column": 29}, "end_point": {"row": 162, "column": 32}}, {"id": 534, "type": "identifier", "text": "domain", "parent": 532, "children": [], "start_point": {"row": 162, "column": 33}, "end_point": {"row": 162, "column": 39}}, {"id": 535, "type": "parameter_declaration", "text": "int type", "parent": 531, "children": [536, 537], "start_point": {"row": 162, "column": 41}, "end_point": {"row": 162, "column": 49}}, {"id": 536, "type": "primitive_type", "text": "int", "parent": 535, "children": [], "start_point": {"row": 162, "column": 41}, "end_point": {"row": 162, "column": 44}}, {"id": 537, "type": "identifier", "text": "type", "parent": 535, "children": [], "start_point": {"row": 162, "column": 45}, "end_point": {"row": 162, "column": 49}}, {"id": 538, "type": "parameter_declaration", "text": "int protocol", "parent": 531, "children": [539, 540], "start_point": {"row": 162, "column": 51}, "end_point": {"row": 162, "column": 63}}, {"id": 539, "type": "primitive_type", "text": "int", "parent": 538, "children": [], "start_point": {"row": 162, "column": 51}, "end_point": {"row": 162, "column": 54}}, {"id": 540, "type": "identifier", "text": "protocol", "parent": 538, "children": [], "start_point": {"row": 162, "column": 55}, "end_point": {"row": 162, "column": 63}}, {"id": 541, "type": "function_declarator", "text": "IOT_V1(this)", "parent": 528, "children": [542, 543], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 27}}, {"id": 542, "type": "field_identifier", "text": "IOT_V1", "parent": 541, "children": [], "start_point": {"row": 164, "column": 15}, "end_point": {"row": 164, "column": 21}}, {"id": 543, "type": "parameter_list", "text": "(this)", "parent": 541, "children": [544], "start_point": {"row": 164, "column": 21}, "end_point": {"row": 164, "column": 27}}, {"id": 544, "type": "parameter_declaration", "text": "this", "parent": 543, "children": [545], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 26}}, {"id": 545, "type": "type_identifier", "text": "this", "parent": 544, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 26}}, {"id": 546, "type": "function_declarator", "text": "socket(p, domain, type, protocol)", "parent": 526, "children": [547, 548], "start_point": {"row": 164, "column": 28}, "end_point": {"row": 164, "column": 61}}, {"id": 547, "type": "field_identifier", "text": "socket", "parent": 546, "children": [], "start_point": {"row": 164, "column": 28}, "end_point": {"row": 164, "column": 34}}, {"id": 548, "type": "parameter_list", "text": "(p, domain, type, protocol)", "parent": 546, "children": [549, 551, 553, 555], "start_point": {"row": 164, "column": 34}, "end_point": {"row": 164, "column": 61}}, {"id": 549, "type": "parameter_declaration", "text": "p", "parent": 548, "children": [550], "start_point": {"row": 164, "column": 35}, "end_point": {"row": 164, "column": 36}}, {"id": 550, "type": "type_identifier", "text": "p", "parent": 549, "children": [], "start_point": {"row": 164, "column": 35}, "end_point": {"row": 164, "column": 36}}, {"id": 551, "type": "parameter_declaration", "text": "domain", "parent": 548, "children": [552], "start_point": {"row": 164, "column": 38}, "end_point": {"row": 164, "column": 44}}, {"id": 552, "type": "type_identifier", "text": "domain", "parent": 551, "children": [], "start_point": {"row": 164, "column": 38}, "end_point": {"row": 164, "column": 44}}, {"id": 553, "type": "parameter_declaration", "text": "type", "parent": 548, "children": [554], "start_point": {"row": 164, "column": 46}, "end_point": {"row": 164, "column": 50}}, {"id": 554, "type": "type_identifier", "text": "type", "parent": 553, "children": [], "start_point": {"row": 164, "column": 46}, "end_point": {"row": 164, "column": 50}}, {"id": 555, "type": "parameter_declaration", "text": "protocol", "parent": 548, "children": [556], "start_point": {"row": 164, "column": 52}, "end_point": {"row": 164, "column": 60}}, {"id": 556, "type": "type_identifier", "text": "protocol", "parent": 555, "children": [], "start_point": {"row": 164, "column": 52}, "end_point": {"row": 164, "column": 60}}, {"id": 557, "type": "field_declaration", "text": "lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);", "parent": 115, "children": [558, 559], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 169, "column": 73}}, {"id": 558, "type": "type_identifier", "text": "lcb_sockdata_t", "parent": 557, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 18}}, {"id": 559, "type": "pointer_declarator", "text": "*C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)", "parent": 557, "children": [560, 561, 570], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 169, "column": 72}}, {"id": 560, "type": "*", "text": "*", "parent": 559, "children": [], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 20}}, {"id": 561, "type": "ERROR", "text": "C_socket(const addrinfo *ai)\n {\n return", "parent": 559, "children": [562], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 169, "column": 14}}, {"id": 562, "type": "function_declarator", "text": "C_socket(const addrinfo *ai)", "parent": 561, "children": [563, 564], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 48}}, {"id": 563, "type": "field_identifier", "text": "C_socket", "parent": 562, "children": [], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 28}}, {"id": 564, "type": "parameter_list", "text": "(const addrinfo *ai)", "parent": 562, "children": [565], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 48}}, {"id": 565, "type": "parameter_declaration", "text": "const addrinfo *ai", "parent": 564, "children": [566, 567], "start_point": {"row": 167, "column": 29}, "end_point": {"row": 167, "column": 47}}, {"id": 566, "type": "type_identifier", "text": "addrinfo", "parent": 565, "children": [], "start_point": {"row": 167, "column": 35}, "end_point": {"row": 167, "column": 43}}, {"id": 567, "type": "pointer_declarator", "text": "*ai", "parent": 565, "children": [568, 569], "start_point": {"row": 167, "column": 44}, "end_point": {"row": 167, "column": 47}}, {"id": 568, "type": "*", "text": "*", "parent": 567, "children": [], "start_point": {"row": 167, "column": 44}, "end_point": {"row": 167, "column": 45}}, {"id": 569, "type": "identifier", "text": "ai", "parent": 567, "children": [], "start_point": {"row": 167, "column": 45}, "end_point": {"row": 167, "column": 47}}, {"id": 570, "type": "function_declarator", "text": "C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)", "parent": 559, "children": [571, 572], "start_point": {"row": 169, "column": 15}, "end_point": {"row": 169, "column": 72}}, {"id": 571, "type": "field_identifier", "text": "C_socket", "parent": 570, "children": [], "start_point": {"row": 169, "column": 15}, "end_point": {"row": 169, "column": 23}}, {"id": 572, "type": "parameter_list", "text": "(ai->ai_family, ai->ai_socktype, ai->ai_protocol)", "parent": 570, "children": [573, 576, 579], "start_point": {"row": 169, "column": 23}, "end_point": {"row": 169, "column": 72}}, {"id": 573, "type": "parameter_declaration", "text": "ai->ai_family", "parent": 572, "children": [574, 575], "start_point": {"row": 169, "column": 24}, "end_point": {"row": 169, "column": 37}}, {"id": 574, "type": "type_identifier", "text": "ai", "parent": 573, "children": [], "start_point": {"row": 169, "column": 24}, "end_point": {"row": 169, "column": 26}}, {"id": 575, "type": "identifier", "text": "ai_family", "parent": 573, "children": [], "start_point": {"row": 169, "column": 28}, "end_point": {"row": 169, "column": 37}}, {"id": 576, "type": "parameter_declaration", "text": "ai->ai_socktype", "parent": 572, "children": [577, 578], "start_point": {"row": 169, "column": 39}, "end_point": {"row": 169, "column": 54}}, {"id": 577, "type": "type_identifier", "text": "ai", "parent": 576, "children": [], "start_point": {"row": 169, "column": 39}, "end_point": {"row": 169, "column": 41}}, {"id": 578, "type": "identifier", "text": "ai_socktype", "parent": 576, "children": [], "start_point": {"row": 169, "column": 43}, "end_point": {"row": 169, "column": 54}}, {"id": 579, "type": "parameter_declaration", "text": "ai->ai_protocol", "parent": 572, "children": [580, 581], "start_point": {"row": 169, "column": 56}, "end_point": {"row": 169, "column": 71}}, {"id": 580, "type": "type_identifier", "text": "ai", "parent": 579, "children": [], "start_point": {"row": 169, "column": 56}, "end_point": {"row": 169, "column": 58}}, {"id": 581, "type": "identifier", "text": "ai_protocol", "parent": 579, "children": [], "start_point": {"row": 169, "column": 60}, "end_point": {"row": 169, "column": 71}}, {"id": 582, "type": "field_declaration", "text": "int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);", "parent": 115, "children": [583, 584, 601], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 174, "column": 54}}, {"id": 583, "type": "primitive_type", "text": "int", "parent": 582, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 7}}, {"id": 584, "type": "ERROR", "text": "C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).", "parent": 582, "children": [585, 596], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 174, "column": 28}}, {"id": 585, "type": "function_declarator", "text": "C_check_closed(lcb_sockdata_t *sock, int flags)", "parent": 584, "children": [586, 587], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 55}}, {"id": 586, "type": "field_identifier", "text": "C_check_closed", "parent": 585, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 22}}, {"id": 587, "type": "parameter_list", "text": "(lcb_sockdata_t *sock, int flags)", "parent": 585, "children": [588, 593], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 55}}, {"id": 588, "type": "parameter_declaration", "text": "lcb_sockdata_t *sock", "parent": 587, "children": [589, 590], "start_point": {"row": 172, "column": 23}, "end_point": {"row": 172, "column": 43}}, {"id": 589, "type": "type_identifier", "text": "lcb_sockdata_t", "parent": 588, "children": [], "start_point": {"row": 172, "column": 23}, "end_point": {"row": 172, "column": 37}}, {"id": 590, "type": "pointer_declarator", "text": "*sock", "parent": 588, "children": [591, 592], "start_point": {"row": 172, "column": 38}, "end_point": {"row": 172, "column": 43}}, {"id": 591, "type": "*", "text": "*", "parent": 590, "children": [], "start_point": {"row": 172, "column": 38}, "end_point": {"row": 172, "column": 39}}, {"id": 592, "type": "identifier", "text": "sock", "parent": 590, "children": [], "start_point": {"row": 172, "column": 39}, "end_point": {"row": 172, "column": 43}}, {"id": 593, "type": "parameter_declaration", "text": "int flags", "parent": 587, "children": [594, 595], "start_point": {"row": 172, "column": 45}, "end_point": {"row": 172, "column": 54}}, {"id": 594, "type": "primitive_type", "text": "int", "parent": 593, "children": [], "start_point": {"row": 172, "column": 45}, "end_point": {"row": 172, "column": 48}}, {"id": 595, "type": "identifier", "text": "flags", "parent": 593, "children": [], "start_point": {"row": 172, "column": 49}, "end_point": {"row": 172, "column": 54}}, {"id": 596, "type": "function_declarator", "text": "IOT_V1(this)", "parent": 584, "children": [597, 598], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 27}}, {"id": 597, "type": "field_identifier", "text": "IOT_V1", "parent": 596, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 21}}, {"id": 598, "type": "parameter_list", "text": "(this)", "parent": 596, "children": [599], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 27}}, {"id": 599, "type": "parameter_declaration", "text": "this", "parent": 598, "children": [600], "start_point": {"row": 174, "column": 22}, "end_point": {"row": 174, "column": 26}}, {"id": 600, "type": "type_identifier", "text": "this", "parent": 599, "children": [], "start_point": {"row": 174, "column": 22}, "end_point": {"row": 174, "column": 26}}, {"id": 601, "type": "function_declarator", "text": "is_closed(p, sock, flags)", "parent": 582, "children": [602, 603], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 53}}, {"id": 602, "type": "field_identifier", "text": "is_closed", "parent": 601, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 37}}, {"id": 603, "type": "parameter_list", "text": "(p, sock, flags)", "parent": 601, "children": [604, 606, 608], "start_point": {"row": 174, "column": 37}, "end_point": {"row": 174, "column": 53}}, {"id": 604, "type": "parameter_declaration", "text": "p", "parent": 603, "children": [605], "start_point": {"row": 174, "column": 38}, "end_point": {"row": 174, "column": 39}}, {"id": 605, "type": "type_identifier", "text": "p", "parent": 604, "children": [], "start_point": {"row": 174, "column": 38}, "end_point": {"row": 174, "column": 39}}, {"id": 606, "type": "parameter_declaration", "text": "sock", "parent": 603, "children": [607], "start_point": {"row": 174, "column": 41}, "end_point": {"row": 174, "column": 45}}, {"id": 607, "type": "type_identifier", "text": "sock", "parent": 606, "children": [], "start_point": {"row": 174, "column": 41}, "end_point": {"row": 174, "column": 45}}, {"id": 608, "type": "parameter_declaration", "text": "flags", "parent": 603, "children": [609], "start_point": {"row": 174, "column": 47}, "end_point": {"row": 174, "column": 52}}, {"id": 609, "type": "type_identifier", "text": "flags", "parent": 608, "children": [], "start_point": {"row": 174, "column": 47}, "end_point": {"row": 174, "column": 52}}, {"id": 610, "type": "field_declaration", "text": "int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;", "parent": 115, "children": [611, 612, 637, 650], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 179, "column": 61}}, {"id": 611, "type": "primitive_type", "text": "int", "parent": 610, "children": [], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 7}}, {"id": 612, "type": "ERROR", "text": "C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).", "parent": 610, "children": [613, 632], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 179, "column": 28}}, {"id": 613, "type": "function_declarator", "text": "C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)", "parent": 612, "children": [614, 615], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 64}}, {"id": 614, "type": "field_identifier", "text": "C_cntl", "parent": 613, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 14}}, {"id": 615, "type": "parameter_list", "text": "(lcb_sockdata_t *sd, int mode, int opt, void *val)", "parent": 613, "children": [616, 621, 624, 627], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 64}}, {"id": 616, "type": "parameter_declaration", "text": "lcb_sockdata_t *sd", "parent": 615, "children": [617, 618], "start_point": {"row": 177, "column": 15}, "end_point": {"row": 177, "column": 33}}, {"id": 617, "type": "type_identifier", "text": "lcb_sockdata_t", "parent": 616, "children": [], "start_point": {"row": 177, "column": 15}, "end_point": {"row": 177, "column": 29}}, {"id": 618, "type": "pointer_declarator", "text": "*sd", "parent": 616, "children": [619, 620], "start_point": {"row": 177, "column": 30}, "end_point": {"row": 177, "column": 33}}, {"id": 619, "type": "*", "text": "*", "parent": 618, "children": [], "start_point": {"row": 177, "column": 30}, "end_point": {"row": 177, "column": 31}}, {"id": 620, "type": "identifier", "text": "sd", "parent": 618, "children": [], "start_point": {"row": 177, "column": 31}, "end_point": {"row": 177, "column": 33}}, {"id": 621, "type": "parameter_declaration", "text": "int mode", "parent": 615, "children": [622, 623], "start_point": {"row": 177, "column": 35}, "end_point": {"row": 177, "column": 43}}, {"id": 622, "type": "primitive_type", "text": "int", "parent": 621, "children": [], "start_point": {"row": 177, "column": 35}, "end_point": {"row": 177, "column": 38}}, {"id": 623, "type": "identifier", "text": "mode", "parent": 621, "children": [], "start_point": {"row": 177, "column": 39}, "end_point": {"row": 177, "column": 43}}, {"id": 624, "type": "parameter_declaration", "text": "int opt", "parent": 615, "children": [625, 626], "start_point": {"row": 177, "column": 45}, "end_point": {"row": 177, "column": 52}}, {"id": 625, "type": "primitive_type", "text": "int", "parent": 624, "children": [], "start_point": {"row": 177, "column": 45}, "end_point": {"row": 177, "column": 48}}, {"id": 626, "type": "identifier", "text": "opt", "parent": 624, "children": [], "start_point": {"row": 177, "column": 49}, "end_point": {"row": 177, "column": 52}}, {"id": 627, "type": "parameter_declaration", "text": "void *val", "parent": 615, "children": [628, 629], "start_point": {"row": 177, "column": 54}, "end_point": {"row": 177, "column": 63}}, {"id": 628, "type": "primitive_type", "text": "void", "parent": 627, "children": [], "start_point": {"row": 177, "column": 54}, "end_point": {"row": 177, "column": 58}}, {"id": 629, "type": "pointer_declarator", "text": "*val", "parent": 627, "children": [630, 631], "start_point": {"row": 177, "column": 59}, "end_point": {"row": 177, "column": 63}}, {"id": 630, "type": "*", "text": "*", "parent": 629, "children": [], "start_point": {"row": 177, "column": 59}, "end_point": {"row": 177, "column": 60}}, {"id": 631, "type": "identifier", "text": "val", "parent": 629, "children": [], "start_point": {"row": 177, "column": 60}, "end_point": {"row": 177, "column": 63}}, {"id": 632, "type": "function_declarator", "text": "IOT_V1(this)", "parent": 612, "children": [633, 634], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 27}}, {"id": 633, "type": "field_identifier", "text": "IOT_V1", "parent": 632, "children": [], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 21}}, {"id": 634, "type": "parameter_list", "text": "(this)", "parent": 632, "children": [635], "start_point": {"row": 179, "column": 21}, "end_point": {"row": 179, "column": 27}}, {"id": 635, "type": "parameter_declaration", "text": "this", "parent": 634, "children": [636], "start_point": {"row": 179, "column": 22}, "end_point": {"row": 179, "column": 26}}, {"id": 636, "type": "type_identifier", "text": "this", "parent": 635, "children": [], "start_point": {"row": 179, "column": 22}, "end_point": {"row": 179, "column": 26}}, {"id": 637, "type": "function_declarator", "text": "cntl(p, sd, mode, opt, val)", "parent": 610, "children": [638, 639], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 55}}, {"id": 638, "type": "field_identifier", "text": "cntl", "parent": 637, "children": [], "start_point": {"row": 179, "column": 28}, "end_point": {"row": 179, "column": 32}}, {"id": 639, "type": "parameter_list", "text": "(p, sd, mode, opt, val)", "parent": 637, "children": [640, 642, 644, 646, 648], "start_point": {"row": 179, "column": 32}, "end_point": {"row": 179, "column": 55}}, {"id": 640, "type": "parameter_declaration", "text": "p", "parent": 639, "children": [641], "start_point": {"row": 179, "column": 33}, "end_point": {"row": 179, "column": 34}}, {"id": 641, "type": "type_identifier", "text": "p", "parent": 640, "children": [], "start_point": {"row": 179, "column": 33}, "end_point": {"row": 179, "column": 34}}, {"id": 642, "type": "parameter_declaration", "text": "sd", "parent": 639, "children": [643], "start_point": {"row": 179, "column": 36}, "end_point": {"row": 179, "column": 38}}, {"id": 643, "type": "type_identifier", "text": "sd", "parent": 642, "children": [], "start_point": {"row": 179, "column": 36}, "end_point": {"row": 179, "column": 38}}, {"id": 644, "type": "parameter_declaration", "text": "mode", "parent": 639, "children": [645], "start_point": {"row": 179, "column": 40}, "end_point": {"row": 179, "column": 44}}, {"id": 645, "type": "type_identifier", "text": "mode", "parent": 644, "children": [], "start_point": {"row": 179, "column": 40}, "end_point": {"row": 179, "column": 44}}, {"id": 646, "type": "parameter_declaration", "text": "opt", "parent": 639, "children": [647], "start_point": {"row": 179, "column": 46}, "end_point": {"row": 179, "column": 49}}, {"id": 647, "type": "type_identifier", "text": "opt", "parent": 646, "children": [], "start_point": {"row": 179, "column": 46}, "end_point": {"row": 179, "column": 49}}, {"id": 648, "type": "parameter_declaration", "text": "val", "parent": 639, "children": [649], "start_point": {"row": 179, "column": 51}, "end_point": {"row": 179, "column": 54}}, {"id": 649, "type": "type_identifier", "text": "val", "parent": 648, "children": [], "start_point": {"row": 179, "column": 51}, "end_point": {"row": 179, "column": 54}}, {"id": 650, "type": "ERROR", "text": "== 0", "parent": 610, "children": [651, 652], "start_point": {"row": 179, "column": 56}, "end_point": {"row": 179, "column": 60}}, {"id": 651, "type": "==", "text": "==", "parent": 650, "children": [], "start_point": {"row": 179, "column": 56}, "end_point": {"row": 179, "column": 58}}, {"id": 652, "type": "number_literal", "text": "0", "parent": 650, "children": [], "start_point": {"row": 179, "column": 59}, "end_point": {"row": 179, "column": 60}}, {"id": 653, "type": "field_declaration", "text": "bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;", "parent": 115, "children": [654, 655, 671, 672], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 185, "column": 47}}, {"id": 654, "type": "primitive_type", "text": "bool", "parent": 653, "children": [], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 8}}, {"id": 655, "type": "ERROR", "text": "has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).", "parent": 653, "children": [656, 666], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 185, "column": 34}}, {"id": 656, "type": "function_declarator", "text": "has_cntl()\n {\n if (is_E())", "parent": 655, "children": [657, 660, 661], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 184, "column": 19}}, {"id": 657, "type": "function_declarator", "text": "has_cntl()", "parent": 656, "children": [658, 659], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 19}}, {"id": 658, "type": "field_identifier", "text": "has_cntl", "parent": 657, "children": [], "start_point": {"row": 182, "column": 9}, "end_point": {"row": 182, "column": 17}}, {"id": 659, "type": "parameter_list", "text": "()", "parent": 657, "children": [], "start_point": {"row": 182, "column": 17}, "end_point": {"row": 182, "column": 19}}, {"id": 660, "type": "ERROR", "text": "{\n if", "parent": 656, "children": [], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 184, "column": 10}}, {"id": 661, "type": "parameter_list", "text": "(is_E())", "parent": 656, "children": [662], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 19}}, {"id": 662, "type": "parameter_declaration", "text": "is_E()", "parent": 661, "children": [663, 664], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 18}}, {"id": 663, "type": "type_identifier", "text": "is_E", "parent": 662, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 16}}, {"id": 664, "type": "abstract_function_declarator", "text": "()", "parent": 662, "children": [665], "start_point": {"row": 184, "column": 16}, "end_point": {"row": 184, "column": 18}}, {"id": 665, "type": "parameter_list", "text": "()", "parent": 664, "children": [], "start_point": {"row": 184, "column": 16}, "end_point": {"row": 184, "column": 18}}, {"id": 666, "type": "function_declarator", "text": "IOT_V0IO(this)", "parent": 655, "children": [667, 668], "start_point": {"row": 185, "column": 19}, "end_point": {"row": 185, "column": 33}}, {"id": 667, "type": "field_identifier", "text": "IOT_V0IO", "parent": 666, "children": [], "start_point": {"row": 185, "column": 19}, "end_point": {"row": 185, "column": 27}}, {"id": 668, "type": "parameter_list", "text": "(this)", "parent": 666, "children": [669], "start_point": {"row": 185, "column": 27}, "end_point": {"row": 185, "column": 33}}, {"id": 669, "type": "parameter_declaration", "text": "this", "parent": 668, "children": [670], "start_point": {"row": 185, "column": 28}, "end_point": {"row": 185, "column": 32}}, {"id": 670, "type": "type_identifier", "text": "this", "parent": 669, "children": [], "start_point": {"row": 185, "column": 28}, "end_point": {"row": 185, "column": 32}}, {"id": 671, "type": "field_identifier", "text": "cntl", "parent": 653, "children": [], "start_point": {"row": 185, "column": 34}, "end_point": {"row": 185, "column": 38}}, {"id": 672, "type": "ERROR", "text": "!= NULL", "parent": 653, "children": [673, 674], "start_point": {"row": 185, "column": 39}, "end_point": {"row": 185, "column": 46}}, {"id": 673, "type": "!=", "text": "!=", "parent": 672, "children": [], "start_point": {"row": 185, "column": 39}, "end_point": {"row": 185, "column": 41}}, {"id": 674, "type": "NULL", "text": "NULL", "parent": 672, "children": [], "start_point": {"row": 185, "column": 42}, "end_point": {"row": 185, "column": 46}}, {"id": 675, "type": "#endif", "text": "", "parent": 115, "children": [], "start_point": {"row": 185, "column": 47}, "end_point": {"row": 185, "column": 47}}, {"id": 676, "type": "return_statement", "text": "return IOT_V1(this).cntl != NULL;", "parent": 12, "children": [677], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 45}}, {"id": 677, "type": "binary_expression", "text": "IOT_V1(this).cntl != NULL", "parent": 676, "children": [678, 684, 685], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 44}}, {"id": 678, "type": "field_expression", "text": "IOT_V1(this).cntl", "parent": 677, "children": [679, 683], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 36}}, {"id": 679, "type": "call_expression", "text": "IOT_V1(this)", "parent": 678, "children": [680, 681], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 31}}, {"id": 680, "type": "identifier", "text": "IOT_V1", "parent": 679, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 25}}, {"id": 681, "type": "argument_list", "text": "(this)", "parent": 679, "children": [682], "start_point": {"row": 187, "column": 25}, "end_point": {"row": 187, "column": 31}}, {"id": 682, "type": "identifier", "text": "this", "parent": 681, "children": [], "start_point": {"row": 187, "column": 26}, "end_point": {"row": 187, "column": 30}}, {"id": 683, "type": "field_identifier", "text": "cntl", "parent": 678, "children": [], "start_point": {"row": 187, "column": 32}, "end_point": {"row": 187, "column": 36}}, {"id": 684, "type": "!=", "text": "!=", "parent": 677, "children": [], "start_point": {"row": 187, "column": 37}, "end_point": {"row": 187, "column": 39}}, {"id": 685, "type": "null", "text": "NULL", "parent": 677, "children": [686], "start_point": {"row": 187, "column": 40}, "end_point": {"row": 187, "column": 44}}, {"id": 686, "type": "NULL", "text": "NULL", "parent": 685, "children": [], "start_point": {"row": 187, "column": 40}, "end_point": {"row": 187, "column": 44}}, {"id": 687, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 6}}, {"id": 688, "type": "identifier", "text": "lcbio_TABLE", "parent": 0, "children": [], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 192, "column": 13}}, {"id": 689, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [690, 691, 692], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 196, "column": 6}}, {"id": 690, "type": "#ifdef", "text": "#ifdef", "parent": 689, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 6}}, {"id": 691, "type": "identifier", "text": "__cplusplus", "parent": 689, "children": [], "start_point": {"row": 194, "column": 7}, "end_point": {"row": 194, "column": 18}}, {"id": 692, "type": "#endif", "text": "#endif", "parent": 689, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 6}}, {"id": 693, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17, 23, 29, 35, 41, 47, 53, 59, 105, 121, 124, 132, 136, 142, 145, 153, 156, 164, 167, 175, 190, 195, 209, 221, 226, 240, 248, 263, 269, 274, 286, 289, 294, 302, 325, 330, 348, 356, 361, 371, 382, 387, 399, 408, 413, 425, 442, 447, 463, 471, 476, 486, 506, 511, 529, 541, 546, 562, 570, 585, 596, 601, 613, 632, 637, 656, 657, 664, 666], "variables": [65, 70, 73, 76, 79, 82, 85, 88, 91, 95, 99, 103, 111, 118, 127, 129, 139, 148, 150, 159, 161, 170, 172, 178, 181, 186, 193, 198, 200, 202, 204, 206, 212, 215, 218, 224, 229, 231, 233, 235, 237, 243, 251, 254, 257, 260, 266, 272, 277, 279, 281, 292, 297, 299, 305, 308, 313, 317, 322, 328, 333, 335, 337, 339, 341, 343, 345, 351, 359, 364, 366, 368, 374, 377, 385, 390, 392, 394, 396, 402, 405, 411, 416, 418, 420, 422, 428, 431, 434, 437, 445, 450, 452, 454, 456, 458, 460, 466, 474, 479, 481, 483, 489, 494, 499, 503, 509, 514, 516, 518, 520, 522, 524, 532, 535, 538, 544, 549, 551, 553, 555, 557, 565, 573, 576, 579, 582, 588, 593, 599, 604, 606, 608, 610, 616, 621, 624, 627, 635, 640, 642, 644, 646, 648, 653, 662, 669], "classes": [67, 68, 83, 84, 86, 87], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [677, 678, 679], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 10, 11, 12, 19, 21, 25, 27, 31, 33, 37, 39, 43, 45, 49, 51, 55, 57, 61, 63, 69, 71, 72, 74, 75, 77, 78, 80, 81, 89, 90, 92, 93, 94, 96, 97, 98, 100, 102, 109, 115, 116, 117, 122, 125, 128, 133, 137, 143, 146, 149, 154, 157, 160, 165, 168, 171, 176, 179, 180, 182, 185, 187, 189, 191, 194, 196, 199, 201, 203, 205, 207, 210, 214, 217, 220, 222, 225, 227, 230, 232, 234, 236, 238, 241, 244, 247, 249, 252, 253, 255, 256, 258, 259, 264, 267, 268, 270, 273, 275, 278, 280, 287, 290, 293, 295, 298, 303, 306, 307, 312, 314, 316, 321, 323, 324, 326, 329, 331, 334, 336, 338, 340, 342, 344, 349, 355, 357, 360, 362, 365, 367, 372, 375, 376, 381, 383, 386, 388, 391, 393, 395, 400, 403, 404, 407, 409, 412, 414, 417, 419, 421, 426, 429, 430, 433, 436, 441, 443, 446, 448, 451, 453, 455, 457, 459, 464, 467, 470, 472, 475, 477, 480, 482, 487, 490, 493, 495, 498, 500, 502, 504, 505, 507, 510, 512, 515, 517, 519, 521, 523, 525, 530, 534, 537, 540, 542, 545, 547, 550, 552, 554, 556, 558, 563, 566, 569, 571, 574, 575, 577, 578, 580, 581, 586, 589, 592, 595, 597, 600, 602, 605, 607, 609, 614, 617, 620, 623, 626, 631, 633, 636, 638, 641, 643, 645, 647, 649, 658, 663, 667, 670, 671, 675, 680, 682, 683, 687, 688, 689, 690, 691, 692, 693], "returns": [676], "exceptions": []}, "expressions": {"calls": [15], "literals": [8, 14, 652], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n"}, {"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_V0IO(iot) (iot)->u_io.v0.io\n"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_V1(iot) (iot)->u_io.completion\n"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_START(iot) (iot)->loop.start((iot)->p)\n"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOT_ARG(iot) (iot)->p\n"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "(*dtor)(void *)"}, {"node_id": 121, "universal_type": "function", "name": "unknown", "text_snippet": "is_E()"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_IS_EVENT(this)"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "is_C()"}, {"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "is_E()"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "get_errno()"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_ERRNO(this)"}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "run_loop()"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_START(this)"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "stop_loop()"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_STOP(this)"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)"}, {"node_id": 190, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0IO(this)"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "connect0(p, sock, saddr, addrlen)"}, {"node_id": 209, "universal_type": "function", "name": "type,", "text_snippet": "E_socket(int domain, int type, int protocol)"}, {"node_id": 221, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0IO(this)"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "socket0(p, domain, type, protocol)"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "E_socket(const addrinfo *ai)"}, {"node_id": 248, "universal_type": "function", "name": "unknown", "text_snippet": "E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)"}, {"node_id": 263, "universal_type": "function", "name": "unknown", "text_snippet": "E_close(lcb_socket_t sock)"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0IO(this)"}, {"node_id": 274, "universal_type": "function", "name": "unknown", "text_snippet": "close(p, sock)"}, {"node_id": 286, "universal_type": "function", "name": "unknown", "text_snippet": "E_event_create()"}, {"node_id": 289, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0EV(this)"}, {"node_id": 294, "universal_type": "function", "name": "unknown", "text_snippet": "create(p)"}, {"node_id": 302, "universal_type": "function", "name": "*event,", "text_snippet": "E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)"}, {"node_id": 325, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0EV(this)"}, {"node_id": 330, "universal_type": "function", "name": "unknown", "text_snippet": "watch(p, fd, event, mask, arg, cb)"}, {"node_id": 348, "universal_type": "function", "name": "unknown", "text_snippet": "E_event_destroy(void *event)"}, {"node_id": 356, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0EV(this)"}, {"node_id": 361, "universal_type": "function", "name": "unknown", "text_snippet": "destroy(p, event)"}, {"node_id": 371, "universal_type": "function", "name": "*event)", "text_snippet": "E_event_cancel(lcb_socket_t fd, void *event)"}, {"node_id": 382, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0EV(this)"}, {"node_id": 387, "universal_type": "function", "name": "unknown", "text_snippet": "cancel(p, fd, event)"}, {"node_id": 399, "universal_type": "function", "name": "flags)", "text_snippet": "E_check_closed(lcb_socket_t s, int flags)"}, {"node_id": 408, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0IO(this)"}, {"node_id": 413, "universal_type": "function", "name": "unknown", "text_snippet": "is_closed(p, s, flags)"}, {"node_id": 425, "universal_type": "function", "name": "mode,", "text_snippet": "E_cntl(lcb_socket_t s, int mode, int opt, void *val)"}, {"node_id": 442, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0IO(this)"}, {"node_id": 447, "universal_type": "function", "name": "unknown", "text_snippet": "cntl(p, s, mode, opt, val)"}, {"node_id": 463, "universal_type": "function", "name": "unknown", "text_snippet": "C_close(lcb_sockdata_t *sd)"}, {"node_id": 471, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V1(this)"}, {"node_id": 476, "universal_type": "function", "name": "unknown", "text_snippet": "close(p, sd)"}, {"node_id": 486, "universal_type": "function", "name": "unknown", "text_snippet": "C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)"}, {"node_id": 506, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V1(this)"}, {"node_id": 511, "universal_type": "function", "name": "unknown", "text_snippet": "connect(p, sd, addr, addrlen, callback)"}, {"node_id": 529, "universal_type": "function", "name": "type,", "text_snippet": "C_socket(int domain, int type, int protocol)"}, {"node_id": 541, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V1(this)"}, {"node_id": 546, "universal_type": "function", "name": "unknown", "text_snippet": "socket(p, domain, type, protocol)"}, {"node_id": 562, "universal_type": "function", "name": "unknown", "text_snippet": "C_socket(const addrinfo *ai)"}, {"node_id": 570, "universal_type": "function", "name": "unknown", "text_snippet": "C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)"}, {"node_id": 585, "universal_type": "function", "name": "flags)", "text_snippet": "C_check_closed(lcb_sockdata_t *sock, int flags)"}, {"node_id": 596, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V1(this)"}, {"node_id": 601, "universal_type": "function", "name": "unknown", "text_snippet": "is_closed(p, sock, flags)"}, {"node_id": 613, "universal_type": "function", "name": "mode,", "text_snippet": "C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)"}, {"node_id": 632, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V1(this)"}, {"node_id": 637, "universal_type": "function", "name": "unknown", "text_snippet": "cntl(p, sd, mode, opt, val)"}, {"node_id": 656, "universal_type": "function", "name": "unknown", "text_snippet": "has_cntl()\n {\n if (is_E())"}, {"node_id": 657, "universal_type": "function", "name": "unknown", "text_snippet": "has_cntl()"}, {"node_id": 664, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 666, "universal_type": "function", "name": "unknown", "text_snippet": "IOT_V0IO(this)"}], "class_declarations": [{"node_id": 67, "universal_type": "class", "name": "lcbio_TABLE", "text_snippet": "struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb"}, {"node_id": 68, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 83, "universal_type": "class", "name": "{", "text_snippet": "union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n "}, {"node_id": 84, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 86, "universal_type": "class", "name": "{", "text_snippet": "struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n }"}, {"node_id": 87, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <libcouchbase/couchbase.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n/*\n * Copyright 2014-2020 Couchbase, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#ifndef LCB_IOTABLE_H\n#define LCB_IOTABLE_H\n\n#include <libcouchbase/couchbase.h>\n\n/**\n * @file\n * @brief Internal I/O Table routines\n *\n * @details\n * Include this file if you are actually manipulating the I/O system (i.e.\n * creating timers, starting/stoping loops, or writing to/from a socket).\n *\n * This file defines the iotable layout as well as various macros associated\n * with its use. The actual \"Public\" API (i.e. just for passing it around) can\n * be found in <lcbio/connect.h>\n */\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/** Whether the underlying model is event-based */\n#define IOT_IS_EVENT(iot) ((iot)->model == LCB_IOMODEL_EVENT)\n\n/** Returns an lcb_ev_procs structure for event-based I/O */\n#define IOT_V0EV(iot) (iot)->u_io.v0.ev\n\n/** Returns an lcb_bsd_procs structure for event-based I/O */\n#define IOT_V0IO(iot) (iot)->u_io.v0.io\n\n/** Returns an lcb_completion_procs structure for completion-based I/O */\n#define IOT_V1(iot) (iot)->u_io.completion\n\n/** Error code of last I/O operation */\n#define IOT_ERRNO(iot) (iot)->p->v.v0.error\n\n/** Start the loop */\n#define IOT_START(iot) (iot)->loop.start((iot)->p)\n\n/** Stop the loop */\n#define IOT_STOP(iot) (iot)->loop.stop((iot)->p)\n\n/** First argument to IO Table */\n#define IOT_ARG(iot) (iot)->p\n\ntypedef struct lcbio_TABLE {\n lcb_io_opt_t p;\n lcb_iomodel_t model;\n lcb_timer_procs timer;\n lcb_loop_procs loop;\n\n union {\n struct {\n lcb_ev_procs ev;\n lcb_bsd_procs io;\n } v0;\n lcb_completion_procs completion;\n } u_io;\n unsigned refcount;\n void (*dtor)(void *);\n\n#ifdef __cplusplus\n bool is_E() const\n {\n return IOT_IS_EVENT(this);\n }\n bool is_C() const\n {\n return !is_E();\n }\n int get_errno() const\n {\n return IOT_ERRNO(this);\n }\n\n void run_loop()\n {\n IOT_START(this);\n }\n void stop_loop()\n {\n IOT_STOP(this);\n }\n\n int E_connect(lcb_socket_t sock, const sockaddr *saddr, unsigned addrlen)\n {\n return IOT_V0IO(this).connect0(p, sock, saddr, addrlen);\n }\n\n lcb_socket_t E_socket(int domain, int type, int protocol)\n {\n return IOT_V0IO(this).socket0(p, domain, type, protocol);\n }\n\n lcb_socket_t E_socket(const addrinfo *ai)\n {\n return E_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n void E_close(lcb_socket_t sock)\n {\n IOT_V0IO(this).close(p, sock);\n }\n\n void *E_event_create()\n {\n return IOT_V0EV(this).create(p);\n }\n\n void E_event_watch(lcb_socket_t fd, void *event, short mask, void *arg, lcb_ioE_callback cb)\n {\n IOT_V0EV(this).watch(p, fd, event, mask, arg, cb);\n }\n\n void E_event_destroy(void *event)\n {\n IOT_V0EV(this).destroy(p, event);\n }\n\n void E_event_cancel(lcb_socket_t fd, void *event)\n {\n IOT_V0EV(this).cancel(p, fd, event);\n }\n\n int E_check_closed(lcb_socket_t s, int flags)\n {\n return IOT_V0IO(this).is_closed(p, s, flags);\n }\n\n int E_cntl(lcb_socket_t s, int mode, int opt, void *val)\n {\n return IOT_V0IO(this).cntl(p, s, mode, opt, val);\n }\n\n void C_close(lcb_sockdata_t *sd)\n {\n IOT_V1(this).close(p, sd);\n }\n\n int C_connect(lcb_sockdata_t *sd, const sockaddr *addr, unsigned addrlen, lcb_io_connect_cb callback)\n {\n return IOT_V1(this).connect(p, sd, addr, addrlen, callback);\n }\n\n lcb_sockdata_t *C_socket(int domain, int type, int protocol)\n {\n return IOT_V1(this).socket(p, domain, type, protocol);\n }\n\n lcb_sockdata_t *C_socket(const addrinfo *ai)\n {\n return C_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n }\n\n int C_check_closed(lcb_sockdata_t *sock, int flags)\n {\n return IOT_V1(this).is_closed(p, sock, flags);\n }\n\n int C_cntl(lcb_sockdata_t *sd, int mode, int opt, void *val)\n {\n return IOT_V1(this).cntl(p, sd, mode, opt, val) == 0;\n }\n\n bool has_cntl()\n {\n if (is_E()) {\n return IOT_V0IO(this).cntl != NULL;\n } else {\n return IOT_V1(this).cntl != NULL;\n }\n }\n#endif\n\n} lcbio_TABLE;\n\n#ifdef __cplusplus\n}\n#endif\n#endif\n"}
80,853
c
/*!@addtogroup HiTechnic * @{ * @defgroup httmux Touch Sensor MUX * HiTechnic Touch Sensor MUX * @{ */ #ifndef __HTTMUX_H__ #define __HTTMUX_H__ /** \file hitechnic-touchmux.h * \brief HiTechnic Touch Sensor Multiplexer Sensor driver * * hitechnic-touchmux.h provides an API for the HiTechnic Touch Sensor Multiplexer Sensor. * * Changelog: * - 0.1: Initial release * * Credits: * - Big thanks to HiTechnic for providing me with the hardware necessary to write and test this. * * License: You may use this code as you wish, provided you give credit where its due. * * THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 4.10 AND HIGHER * \author <NAME> (<EMAIL>) * \date 15 March 2009 * \version 0.1 * \example hitechnic-touchmux-test1.c */ #pragma systemFile #ifndef __COMMON_H__ #include "common.h" #endif typedef struct { tI2CData I2CData; ubyte statusMask; bool status[4]; } tHTTMUX, *tHTTMUXPtr; bool initSensor(tHTTMUXPtr httmuxPtr, tSensors port); bool readSensor(tHTTMUXPtr httmuxPtr); /** * Initialise the sensor's data struct and port * * @param httmuxPtr pointer to the sensor's data struct * @param port the sensor port * @return true if no error occured, false if it did */ bool initSensor(tHTTMUXPtr httmuxPtr, tSensors port) { memset(httmuxPtr, 0, sizeof(tHTTMUXPtr)); httmuxPtr->I2CData.port = port; httmuxPtr->I2CData.type = sensorRawValue; // Ensure the sensor is configured correctly if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type) SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type; return true; } /** * Read all the sensor's data * * @param httmuxPtr pointer to the sensor's data struct * @return true if no error occured, false if it did */ bool readSensor(tHTTMUXPtr httmuxPtr) { long muxvalue = 0; long switches = 0; // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet. // No small furry animals were hurt during the calculation of this algorithm. muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port]; switches = 339 * muxvalue; switches /= (1023 - muxvalue); switches += 5; switches /= 10; httmuxPtr->statusMask = switches; for (int i = 0; i < 4; i++) { httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false; } return true; } #endif // __HTTMUX_H__ /* @} */ /* @} */
26.68
85
(translation_unit) "/*!@addtogroup HiTechnic\n * @{\n * @defgroup httmux Touch Sensor MUX\n * HiTechnic Touch Sensor MUX\n * @{\n */\n\n#ifndef __HTTMUX_H__\n#define __HTTMUX_H__\n/** \file hitechnic-touchmux.h\n * \brief HiTechnic Touch Sensor Multiplexer Sensor driver\n *\n * hitechnic-touchmux.h provides an API for the HiTechnic Touch Sensor Multiplexer Sensor.\n *\n * Changelog:\n * - 0.1: Initial release\n *\n * Credits:\n * - Big thanks to HiTechnic for providing me with the hardware necessary to write and test this.\n *\n * License: You may use this code as you wish, provided you give credit where its due.\n *\n * THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 4.10 AND HIGHER\n\n * \author <NAME> (<EMAIL>)\n * \date 15 March 2009\n * \version 0.1\n * \example hitechnic-touchmux-test1.c\n */\n\n#pragma systemFile\n\n#ifndef __COMMON_H__\n#include "common.h"\n#endif\n\ntypedef struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n} tHTTMUX, *tHTTMUXPtr;\n\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port);\nbool readSensor(tHTTMUXPtr httmuxPtr);\n\n\n/**\n * Initialise the sensor's data struct and port\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @param port the sensor port\n * @return true if no error occured, false if it did\n */\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port)\n{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n httmuxPtr->I2CData.port = port;\n httmuxPtr->I2CData.type = sensorRawValue;\n\n // Ensure the sensor is configured correctly\n if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;\n\n return true;\n}\n\n\n/**\n * Read all the sensor's data\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @return true if no error occured, false if it did\n */\nbool readSensor(tHTTMUXPtr httmuxPtr)\n{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet.\n // No small furry animals were hurt during the calculation of this algorithm.\n muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];\n switches = 339 * muxvalue;\n switches /= (1023 - muxvalue);\n switches += 5;\n switches /= 10;\n\n httmuxPtr->statusMask = switches;\n for (int i = 0; i < 4; i++)\n {\n httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }\n\n return true;\n}\n#endif // __HTTMUX_H__\n\n/* @} */\n/* @} */\n" (comment) "/*!@addtogroup HiTechnic\n * @{\n * @defgroup httmux Touch Sensor MUX\n * HiTechnic Touch Sensor MUX\n * @{\n */" (preproc_ifdef) "#ifndef __HTTMUX_H__\n#define __HTTMUX_H__\n/** \file hitechnic-touchmux.h\n * \brief HiTechnic Touch Sensor Multiplexer Sensor driver\n *\n * hitechnic-touchmux.h provides an API for the HiTechnic Touch Sensor Multiplexer Sensor.\n *\n * Changelog:\n * - 0.1: Initial release\n *\n * Credits:\n * - Big thanks to HiTechnic for providing me with the hardware necessary to write and test this.\n *\n * License: You may use this code as you wish, provided you give credit where its due.\n *\n * THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 4.10 AND HIGHER\n\n * \author <NAME> (<EMAIL>)\n * \date 15 March 2009\n * \version 0.1\n * \example hitechnic-touchmux-test1.c\n */\n\n#pragma systemFile\n\n#ifndef __COMMON_H__\n#include "common.h"\n#endif\n\ntypedef struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n} tHTTMUX, *tHTTMUXPtr;\n\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port);\nbool readSensor(tHTTMUXPtr httmuxPtr);\n\n\n/**\n * Initialise the sensor's data struct and port\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @param port the sensor port\n * @return true if no error occured, false if it did\n */\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port)\n{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n httmuxPtr->I2CData.port = port;\n httmuxPtr->I2CData.type = sensorRawValue;\n\n // Ensure the sensor is configured correctly\n if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;\n\n return true;\n}\n\n\n/**\n * Read all the sensor's data\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @return true if no error occured, false if it did\n */\nbool readSensor(tHTTMUXPtr httmuxPtr)\n{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet.\n // No small furry animals were hurt during the calculation of this algorithm.\n muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];\n switches = 339 * muxvalue;\n switches /= (1023 - muxvalue);\n switches += 5;\n switches /= 10;\n\n httmuxPtr->statusMask = switches;\n for (int i = 0; i < 4; i++)\n {\n httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }\n\n return true;\n}\n#endif" (#ifndef) "#ifndef" (identifier) "__HTTMUX_H__" (preproc_def) "#define __HTTMUX_H__\n" (#define) "#define" (identifier) "__HTTMUX_H__" (comment) "/** \file hitechnic-touchmux.h\n * \brief HiTechnic Touch Sensor Multiplexer Sensor driver\n *\n * hitechnic-touchmux.h provides an API for the HiTechnic Touch Sensor Multiplexer Sensor.\n *\n * Changelog:\n * - 0.1: Initial release\n *\n * Credits:\n * - Big thanks to HiTechnic for providing me with the hardware necessary to write and test this.\n *\n * License: You may use this code as you wish, provided you give credit where its due.\n *\n * THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 4.10 AND HIGHER\n\n * \author <NAME> (<EMAIL>)\n * \date 15 March 2009\n * \version 0.1\n * \example hitechnic-touchmux-test1.c\n */" (preproc_call) "#pragma systemFile\n" (preproc_directive) "#pragma" (preproc_arg) "systemFile" (preproc_ifdef) "#ifndef __COMMON_H__\n#include "common.h"\n#endif" (#ifndef) "#ifndef" (identifier) "__COMMON_H__" (preproc_include) "#include "common.h"\n" (#include) "#include" (string_literal) ""common.h"" (") """ (string_content) "common.h" (") """ (#endif) "#endif" (type_definition) "typedef struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n} tHTTMUX, *tHTTMUXPtr;" (typedef) "typedef" (struct_specifier) "struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n}" (struct) "struct" (field_declaration_list) "{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n}" ({) "{" (field_declaration) "tI2CData I2CData;" (type_identifier) "tI2CData" (field_identifier) "I2CData" (;) ";" (field_declaration) "ubyte statusMask;" (type_identifier) "ubyte" (field_identifier) "statusMask" (;) ";" (field_declaration) "bool status[4];" (primitive_type) "bool" (array_declarator) "status[4]" (field_identifier) "status" ([) "[" (number_literal) "4" (]) "]" (;) ";" (}) "}" (type_identifier) "tHTTMUX" (,) "," (pointer_declarator) "*tHTTMUXPtr" (*) "*" (type_identifier) "tHTTMUXPtr" (;) ";" (declaration) "bool initSensor(tHTTMUXPtr httmuxPtr, tSensors port);" (primitive_type) "bool" (function_declarator) "initSensor(tHTTMUXPtr httmuxPtr, tSensors port)" (identifier) "initSensor" (parameter_list) "(tHTTMUXPtr httmuxPtr, tSensors port)" (() "(" (parameter_declaration) "tHTTMUXPtr httmuxPtr" (type_identifier) "tHTTMUXPtr" (identifier) "httmuxPtr" (,) "," (parameter_declaration) "tSensors port" (type_identifier) "tSensors" (identifier) "port" ()) ")" (;) ";" (declaration) "bool readSensor(tHTTMUXPtr httmuxPtr);" (primitive_type) "bool" (function_declarator) "readSensor(tHTTMUXPtr httmuxPtr)" (identifier) "readSensor" (parameter_list) "(tHTTMUXPtr httmuxPtr)" (() "(" (parameter_declaration) "tHTTMUXPtr httmuxPtr" (type_identifier) "tHTTMUXPtr" (identifier) "httmuxPtr" ()) ")" (;) ";" (comment) "/**\n * Initialise the sensor's data struct and port\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @param port the sensor port\n * @return true if no error occured, false if it did\n */" (function_definition) "bool initSensor(tHTTMUXPtr httmuxPtr, tSensors port)\n{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n httmuxPtr->I2CData.port = port;\n httmuxPtr->I2CData.type = sensorRawValue;\n\n // Ensure the sensor is configured correctly\n if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;\n\n return true;\n}" (primitive_type) "bool" (function_declarator) "initSensor(tHTTMUXPtr httmuxPtr, tSensors port)" (identifier) "initSensor" (parameter_list) "(tHTTMUXPtr httmuxPtr, tSensors port)" (() "(" (parameter_declaration) "tHTTMUXPtr httmuxPtr" (type_identifier) "tHTTMUXPtr" (identifier) "httmuxPtr" (,) "," (parameter_declaration) "tSensors port" (type_identifier) "tSensors" (identifier) "port" ()) ")" (compound_statement) "{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n httmuxPtr->I2CData.port = port;\n httmuxPtr->I2CData.type = sensorRawValue;\n\n // Ensure the sensor is configured correctly\n if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;\n\n return true;\n}" ({) "{" (expression_statement) "memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));" (call_expression) "memset(httmuxPtr, 0, sizeof(tHTTMUXPtr))" (identifier) "memset" (argument_list) "(httmuxPtr, 0, sizeof(tHTTMUXPtr))" (() "(" (identifier) "httmuxPtr" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof(tHTTMUXPtr)" (sizeof) "sizeof" (parenthesized_expression) "(tHTTMUXPtr)" (() "(" (identifier) "tHTTMUXPtr" ()) ")" ()) ")" (;) ";" (expression_statement) "httmuxPtr->I2CData.port = port;" (assignment_expression) "httmuxPtr->I2CData.port = port" (field_expression) "httmuxPtr->I2CData.port" (field_expression) "httmuxPtr->I2CData" (identifier) "httmuxPtr" (->) "->" (field_identifier) "I2CData" (.) "." (field_identifier) "port" (=) "=" (identifier) "port" (;) ";" (expression_statement) "httmuxPtr->I2CData.type = sensorRawValue;" (assignment_expression) "httmuxPtr->I2CData.type = sensorRawValue" (field_expression) "httmuxPtr->I2CData.type" (field_expression) "httmuxPtr->I2CData" (identifier) "httmuxPtr" (->) "->" (field_identifier) "I2CData" (.) "." (field_identifier) "type" (=) "=" (identifier) "sensorRawValue" (;) ";" (comment) "// Ensure the sensor is configured correctly" (if_statement) "if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;" (if) "if" (parenthesized_expression) "(SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)" (() "(" (binary_expression) "SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type" (subscript_expression) "SensorType[httmuxPtr->I2CData.port]" (identifier) "SensorType" ([) "[" (field_expression) "httmuxPtr->I2CData.port" (field_expression) "httmuxPtr->I2CData" (identifier) "httmuxPtr" (->) "->" (field_identifier) "I2CData" (.) "." (field_identifier) "port" (]) "]" (!=) "!=" (field_expression) "httmuxPtr->I2CData.type" (field_expression) "httmuxPtr->I2CData" (identifier) "httmuxPtr" (->) "->" (field_identifier) "I2CData" (.) "." (field_identifier) "type" ()) ")" (expression_statement) "SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;" (assignment_expression) "SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type" (subscript_expression) "SensorType[httmuxPtr->I2CData.port]" (identifier) "SensorType" ([) "[" (field_expression) "httmuxPtr->I2CData.port" (field_expression) "httmuxPtr->I2CData" (identifier) "httmuxPtr" (->) "->" (field_identifier) "I2CData" (.) "." (field_identifier) "port" (]) "]" (=) "=" (field_expression) "httmuxPtr->I2CData.type" (field_expression) "httmuxPtr->I2CData" (identifier) "httmuxPtr" (->) "->" (field_identifier) "I2CData" (.) "." (field_identifier) "type" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (comment) "/**\n * Read all the sensor's data\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @return true if no error occured, false if it did\n */" (function_definition) "bool readSensor(tHTTMUXPtr httmuxPtr)\n{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet.\n // No small furry animals were hurt during the calculation of this algorithm.\n muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];\n switches = 339 * muxvalue;\n switches /= (1023 - muxvalue);\n switches += 5;\n switches /= 10;\n\n httmuxPtr->statusMask = switches;\n for (int i = 0; i < 4; i++)\n {\n httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }\n\n return true;\n}" (primitive_type) "bool" (function_declarator) "readSensor(tHTTMUXPtr httmuxPtr)" (identifier) "readSensor" (parameter_list) "(tHTTMUXPtr httmuxPtr)" (() "(" (parameter_declaration) "tHTTMUXPtr httmuxPtr" (type_identifier) "tHTTMUXPtr" (identifier) "httmuxPtr" ()) ")" (compound_statement) "{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet.\n // No small furry animals were hurt during the calculation of this algorithm.\n muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];\n switches = 339 * muxvalue;\n switches /= (1023 - muxvalue);\n switches += 5;\n switches /= 10;\n\n httmuxPtr->statusMask = switches;\n for (int i = 0; i < 4; i++)\n {\n httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }\n\n return true;\n}" ({) "{" (declaration) "long muxvalue = 0;" (sized_type_specifier) "long" (long) "long" (init_declarator) "muxvalue = 0" (identifier) "muxvalue" (=) "=" (number_literal) "0" (;) ";" (declaration) "long switches = 0;" (sized_type_specifier) "long" (long) "long" (init_declarator) "switches = 0" (identifier) "switches" (=) "=" (number_literal) "0" (;) ";" (comment) "// Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet." (comment) "// No small furry animals were hurt during the calculation of this algorithm." (expression_statement) "muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];" (assignment_expression) "muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port]" (identifier) "muxvalue" (=) "=" (binary_expression) "1023 - SensorRaw[httmuxPtr->I2CData.port]" (number_literal) "1023" (-) "-" (subscript_expression) "SensorRaw[httmuxPtr->I2CData.port]" (identifier) "SensorRaw" ([) "[" (field_expression) "httmuxPtr->I2CData.port" (field_expression) "httmuxPtr->I2CData" (identifier) "httmuxPtr" (->) "->" (field_identifier) "I2CData" (.) "." (field_identifier) "port" (]) "]" (;) ";" (expression_statement) "switches = 339 * muxvalue;" (assignment_expression) "switches = 339 * muxvalue" (identifier) "switches" (=) "=" (binary_expression) "339 * muxvalue" (number_literal) "339" (*) "*" (identifier) "muxvalue" (;) ";" (expression_statement) "switches /= (1023 - muxvalue);" (assignment_expression) "switches /= (1023 - muxvalue)" (identifier) "switches" (/=) "/=" (parenthesized_expression) "(1023 - muxvalue)" (() "(" (binary_expression) "1023 - muxvalue" (number_literal) "1023" (-) "-" (identifier) "muxvalue" ()) ")" (;) ";" (expression_statement) "switches += 5;" (assignment_expression) "switches += 5" (identifier) "switches" (+=) "+=" (number_literal) "5" (;) ";" (expression_statement) "switches /= 10;" (assignment_expression) "switches /= 10" (identifier) "switches" (/=) "/=" (number_literal) "10" (;) ";" (expression_statement) "httmuxPtr->statusMask = switches;" (assignment_expression) "httmuxPtr->statusMask = switches" (field_expression) "httmuxPtr->statusMask" (identifier) "httmuxPtr" (->) "->" (field_identifier) "statusMask" (=) "=" (identifier) "switches" (;) ";" (for_statement) "for (int i = 0; i < 4; i++)\n {\n httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 4" (identifier) "i" (<) "<" (number_literal) "4" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }" ({) "{" (expression_statement) "httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;" (assignment_expression) "httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false" (subscript_expression) "httmuxPtr->status[i]" (field_expression) "httmuxPtr->status" (identifier) "httmuxPtr" (->) "->" (field_identifier) "status" ([) "[" (identifier) "i" (]) "]" (=) "=" (conditional_expression) "(httmuxPtr->statusMask & (1 << i)) ? true : false" (parenthesized_expression) "(httmuxPtr->statusMask & (1 << i))" (() "(" (binary_expression) "httmuxPtr->statusMask & (1 << i)" (field_expression) "httmuxPtr->statusMask" (identifier) "httmuxPtr" (->) "->" (field_identifier) "statusMask" (&) "&" (parenthesized_expression) "(1 << i)" (() "(" (binary_expression) "1 << i" (number_literal) "1" (<<) "<<" (identifier) "i" ()) ")" ()) ")" (?) "?" (true) "true" (:) ":" (false) "false" (;) ";" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (#endif) "#endif" (comment) "// __HTTMUX_H__" (comment) "/* @} */" (comment) "/* @} */"
344
0
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 26.68, "nodes": 223, "errors": 0, "source_hash": "359913aa2b1555c0436a77eafeb4b5c9e6b0772c1cc03b8934e149921b89d194", "categorized_nodes": 174}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __HTTMUX_H__\n#define __HTTMUX_H__\n/** \\file hitechnic-touchmux.h\n * \\brief HiTechnic Touch Sensor Multiplexer Sensor driver\n *\n * hitechnic-touchmux.h provides an API for the HiTechnic Touch Sensor Multiplexer Sensor.\n *\n * Changelog:\n * - 0.1: Initial release\n *\n * Credits:\n * - Big thanks to HiTechnic for providing me with the hardware necessary to write and test this.\n *\n * License: You may use this code as you wish, provided you give credit where its due.\n *\n * THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 4.10 AND HIGHER\n\n * \\author <NAME> (<EMAIL>)\n * \\date 15 March 2009\n * \\version 0.1\n * \\example hitechnic-touchmux-test1.c\n */\n\n#pragma systemFile\n\n#ifndef __COMMON_H__\n#include \"common.h\"\n#endif\n\ntypedef struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n} tHTTMUX, *tHTTMUXPtr;\n\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port);\nbool readSensor(tHTTMUXPtr httmuxPtr);\n\n\n/**\n * Initialise the sensor's data struct and port\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @param port the sensor port\n * @return true if no error occured, false if it did\n */\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port)\n{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n httmuxPtr->I2CData.port = port;\n httmuxPtr->I2CData.type = sensorRawValue;\n\n // Ensure the sensor is configured correctly\n if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;\n\n return true;\n}\n\n\n/**\n * Read all the sensor's data\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @return true if no error occured, false if it did\n */\nbool readSensor(tHTTMUXPtr httmuxPtr)\n{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet.\n // No small furry animals were hurt during the calculation of this algorithm.\n muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];\n switches = 339 * muxvalue;\n switches /= (1023 - muxvalue);\n switches += 5;\n switches /= 10;\n\n httmuxPtr->statusMask = switches;\n for (int i = 0; i < 4; i++)\n {\n \thttmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }\n\n return true;\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 16, 35, 46, 54, 121, 222], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "identifier", "text": "__HTTMUX_H__", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define __HTTMUX_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "__HTTMUX_H__", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 20}}, {"id": 6, "type": "preproc_call", "text": "#pragma systemFile\n", "parent": 0, "children": [7, 8], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#pragma", "parent": 6, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "systemFile", "parent": 6, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 18}}, {"id": 9, "type": "preproc_ifdef", "text": "#ifndef __COMMON_H__\n#include \"common.h\"\n#endif", "parent": 0, "children": [10, 11, 12, 15], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 10, "type": "#ifndef", "text": "#ifndef", "parent": 9, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 11, "type": "identifier", "text": "__COMMON_H__", "parent": 9, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"common.h\"\n", "parent": 9, "children": [13, 14], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"common.h\"", "parent": 12, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 19}}, {"id": 15, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 16, "type": "type_definition", "text": "typedef struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n} tHTTMUX, *tHTTMUXPtr;", "parent": 0, "children": [17, 18, 31, 32], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 41, "column": 23}}, {"id": 17, "type": "typedef", "text": "typedef", "parent": 16, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 18, "type": "struct_specifier", "text": "struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n}", "parent": 16, "children": [19], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 41, "column": 1}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 14}}, {"id": 20, "type": "field_declaration", "text": "tI2CData I2CData;", "parent": 18, "children": [21, 22], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 19}}, {"id": 21, "type": "type_identifier", "text": "tI2CData", "parent": 20, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 10}}, {"id": 22, "type": "field_identifier", "text": "I2CData", "parent": 20, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 18}}, {"id": 23, "type": "field_declaration", "text": "ubyte statusMask;", "parent": 18, "children": [24, 25], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 19}}, {"id": 24, "type": "type_identifier", "text": "ubyte", "parent": 23, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 7}}, {"id": 25, "type": "field_identifier", "text": "statusMask", "parent": 23, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 18}}, {"id": 26, "type": "field_declaration", "text": "bool status[4];", "parent": 18, "children": [27, 28], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 17}}, {"id": 27, "type": "primitive_type", "text": "bool", "parent": 26, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 28, "type": "array_declarator", "text": "status[4]", "parent": 26, "children": [29, 30], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 16}}, {"id": 29, "type": "field_identifier", "text": "status", "parent": 28, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 13}}, {"id": 30, "type": "number_literal", "text": "4", "parent": 28, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 31, "type": "type_identifier", "text": "tHTTMUX", "parent": 16, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 9}}, {"id": 32, "type": "pointer_declarator", "text": "*tHTTMUXPtr", "parent": 16, "children": [33, 34], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 22}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 34, "type": "type_identifier", "text": "tHTTMUXPtr", "parent": 32, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 22}}, {"id": 35, "type": "declaration", "text": "bool initSensor(tHTTMUXPtr httmuxPtr, tSensors port);", "parent": 0, "children": [36, 37], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 53}}, {"id": 36, "type": "primitive_type", "text": "bool", "parent": 35, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 4}}, {"id": 37, "type": "function_declarator", "text": "initSensor(tHTTMUXPtr httmuxPtr, tSensors port)", "parent": 35, "children": [38, 39], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 52}}, {"id": 38, "type": "identifier", "text": "initSensor", "parent": 37, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 15}}, {"id": 39, "type": "parameter_list", "text": "(tHTTMUXPtr httmuxPtr, tSensors port)", "parent": 37, "children": [40, 43], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 52}}, {"id": 40, "type": "parameter_declaration", "text": "tHTTMUXPtr httmuxPtr", "parent": 39, "children": [41, 42], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 36}}, {"id": 41, "type": "type_identifier", "text": "tHTTMUXPtr", "parent": 40, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 26}}, {"id": 42, "type": "identifier", "text": "httmuxPtr", "parent": 40, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 36}}, {"id": 43, "type": "parameter_declaration", "text": "tSensors port", "parent": 39, "children": [44, 45], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 51}}, {"id": 44, "type": "type_identifier", "text": "tSensors", "parent": 43, "children": [], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 46}}, {"id": 45, "type": "identifier", "text": "port", "parent": 43, "children": [], "start_point": {"row": 43, "column": 47}, "end_point": {"row": 43, "column": 51}}, {"id": 46, "type": "declaration", "text": "bool readSensor(tHTTMUXPtr httmuxPtr);", "parent": 0, "children": [47, 48], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 38}}, {"id": 47, "type": "primitive_type", "text": "bool", "parent": 46, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 48, "type": "function_declarator", "text": "readSensor(tHTTMUXPtr httmuxPtr)", "parent": 46, "children": [49, 50], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 37}}, {"id": 49, "type": "identifier", "text": "readSensor", "parent": 48, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 15}}, {"id": 50, "type": "parameter_list", "text": "(tHTTMUXPtr httmuxPtr)", "parent": 48, "children": [51], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 37}}, {"id": 51, "type": "parameter_declaration", "text": "tHTTMUXPtr httmuxPtr", "parent": 50, "children": [52, 53], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 36}}, {"id": 52, "type": "type_identifier", "text": "tHTTMUXPtr", "parent": 51, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 26}}, {"id": 53, "type": "identifier", "text": "httmuxPtr", "parent": 51, "children": [], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 36}}, {"id": 54, "type": "function_definition", "text": "bool initSensor(tHTTMUXPtr httmuxPtr, tSensors port)\n{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n httmuxPtr->I2CData.port = port;\n httmuxPtr->I2CData.type = sensorRawValue;\n\n // Ensure the sensor is configured correctly\n if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;\n\n return true;\n}", "parent": 0, "children": [55, 56], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 55, "type": "primitive_type", "text": "bool", "parent": 54, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 4}}, {"id": 56, "type": "function_declarator", "text": "initSensor(tHTTMUXPtr httmuxPtr, tSensors port)", "parent": 54, "children": [57, 58], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 52}}, {"id": 57, "type": "identifier", "text": "initSensor", "parent": 56, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 15}}, {"id": 58, "type": "parameter_list", "text": "(tHTTMUXPtr httmuxPtr, tSensors port)", "parent": 56, "children": [59, 62], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 52}}, {"id": 59, "type": "parameter_declaration", "text": "tHTTMUXPtr httmuxPtr", "parent": 58, "children": [60, 61], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 36}}, {"id": 60, "type": "type_identifier", "text": "tHTTMUXPtr", "parent": 59, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 26}}, {"id": 61, "type": "identifier", "text": "httmuxPtr", "parent": 59, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 36}}, {"id": 62, "type": "parameter_declaration", "text": "tSensors port", "parent": 58, "children": [63, 64], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 51}}, {"id": 63, "type": "type_identifier", "text": "tSensors", "parent": 62, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 46}}, {"id": 64, "type": "identifier", "text": "port", "parent": 62, "children": [], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 51}}, {"id": 65, "type": "call_expression", "text": "memset(httmuxPtr, 0, sizeof(tHTTMUXPtr))", "parent": 54, "children": [66, 67], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 42}}, {"id": 66, "type": "identifier", "text": "memset", "parent": 65, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 8}}, {"id": 67, "type": "argument_list", "text": "(httmuxPtr, 0, sizeof(tHTTMUXPtr))", "parent": 65, "children": [68, 69, 70], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 42}}, {"id": 68, "type": "identifier", "text": "httmuxPtr", "parent": 67, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 18}}, {"id": 69, "type": "number_literal", "text": "0", "parent": 67, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 70, "type": "sizeof_expression", "text": "sizeof(tHTTMUXPtr)", "parent": 67, "children": [71], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 41}}, {"id": 71, "type": "parenthesized_expression", "text": "(tHTTMUXPtr)", "parent": 70, "children": [72], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 41}}, {"id": 72, "type": "identifier", "text": "tHTTMUXPtr", "parent": 71, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 40}}, {"id": 73, "type": "assignment_expression", "text": "httmuxPtr->I2CData.port = port", "parent": 54, "children": [74, 79, 80], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 32}}, {"id": 74, "type": "field_expression", "text": "httmuxPtr->I2CData.port", "parent": 73, "children": [75, 78], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 25}}, {"id": 75, "type": "field_expression", "text": "httmuxPtr->I2CData", "parent": 74, "children": [76, 77], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 20}}, {"id": 76, "type": "identifier", "text": "httmuxPtr", "parent": 75, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 11}}, {"id": 77, "type": "field_identifier", "text": "I2CData", "parent": 75, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 20}}, {"id": 78, "type": "field_identifier", "text": "port", "parent": 74, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 25}}, {"id": 79, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 27}}, {"id": 80, "type": "identifier", "text": "port", "parent": 73, "children": [], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 32}}, {"id": 81, "type": "assignment_expression", "text": "httmuxPtr->I2CData.type = sensorRawValue", "parent": 54, "children": [82, 87, 88], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 42}}, {"id": 82, "type": "field_expression", "text": "httmuxPtr->I2CData.type", "parent": 81, "children": [83, 86], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 25}}, {"id": 83, "type": "field_expression", "text": "httmuxPtr->I2CData", "parent": 82, "children": [84, 85], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 20}}, {"id": 84, "type": "identifier", "text": "httmuxPtr", "parent": 83, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 11}}, {"id": 85, "type": "field_identifier", "text": "I2CData", "parent": 83, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 20}}, {"id": 86, "type": "field_identifier", "text": "type", "parent": 82, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 25}}, {"id": 87, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 27}}, {"id": 88, "type": "identifier", "text": "sensorRawValue", "parent": 81, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 42}}, {"id": 89, "type": "if_statement", "text": "if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;", "parent": 54, "children": [90], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 62, "column": 66}}, {"id": 90, "type": "parenthesized_expression", "text": "(SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)", "parent": 89, "children": [91], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 69}}, {"id": 91, "type": "binary_expression", "text": "SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type", "parent": 90, "children": [92, 99, 100], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 68}}, {"id": 92, "type": "subscript_expression", "text": "SensorType[httmuxPtr->I2CData.port]", "parent": 91, "children": [93, 94], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 41}}, {"id": 93, "type": "identifier", "text": "SensorType", "parent": 92, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 16}}, {"id": 94, "type": "field_expression", "text": "httmuxPtr->I2CData.port", "parent": 92, "children": [95, 98], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 40}}, {"id": 95, "type": "field_expression", "text": "httmuxPtr->I2CData", "parent": 94, "children": [96, 97], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 35}}, {"id": 96, "type": "identifier", "text": "httmuxPtr", "parent": 95, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 26}}, {"id": 97, "type": "field_identifier", "text": "I2CData", "parent": 95, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 35}}, {"id": 98, "type": "field_identifier", "text": "port", "parent": 94, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 40}}, {"id": 99, "type": "!=", "text": "!=", "parent": 91, "children": [], "start_point": {"row": 61, "column": 42}, "end_point": {"row": 61, "column": 44}}, {"id": 100, "type": "field_expression", "text": "httmuxPtr->I2CData.type", "parent": 91, "children": [101, 104], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 68}}, {"id": 101, "type": "field_expression", "text": "httmuxPtr->I2CData", "parent": 100, "children": [102, 103], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 63}}, {"id": 102, "type": "identifier", "text": "httmuxPtr", "parent": 101, "children": [], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 54}}, {"id": 103, "type": "field_identifier", "text": "I2CData", "parent": 101, "children": [], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 63}}, {"id": 104, "type": "field_identifier", "text": "type", "parent": 100, "children": [], "start_point": {"row": 61, "column": 64}, "end_point": {"row": 61, "column": 68}}, {"id": 105, "type": "assignment_expression", "text": "SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type", "parent": 89, "children": [106, 113, 114], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 65}}, {"id": 106, "type": "subscript_expression", "text": "SensorType[httmuxPtr->I2CData.port]", "parent": 105, "children": [107, 108], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 39}}, {"id": 107, "type": "identifier", "text": "SensorType", "parent": 106, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 14}}, {"id": 108, "type": "field_expression", "text": "httmuxPtr->I2CData.port", "parent": 106, "children": [109, 112], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 38}}, {"id": 109, "type": "field_expression", "text": "httmuxPtr->I2CData", "parent": 108, "children": [110, 111], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 33}}, {"id": 110, "type": "identifier", "text": "httmuxPtr", "parent": 109, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 24}}, {"id": 111, "type": "field_identifier", "text": "I2CData", "parent": 109, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 33}}, {"id": 112, "type": "field_identifier", "text": "port", "parent": 108, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 38}}, {"id": 113, "type": "=", "text": "=", "parent": 105, "children": [], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 41}}, {"id": 114, "type": "field_expression", "text": "httmuxPtr->I2CData.type", "parent": 105, "children": [115, 118], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 65}}, {"id": 115, "type": "field_expression", "text": "httmuxPtr->I2CData", "parent": 114, "children": [116, 117], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 60}}, {"id": 116, "type": "identifier", "text": "httmuxPtr", "parent": 115, "children": [], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 51}}, {"id": 117, "type": "field_identifier", "text": "I2CData", "parent": 115, "children": [], "start_point": {"row": 62, "column": 53}, "end_point": {"row": 62, "column": 60}}, {"id": 118, "type": "field_identifier", "text": "type", "parent": 114, "children": [], "start_point": {"row": 62, "column": 61}, "end_point": {"row": 62, "column": 65}}, {"id": 119, "type": "return_statement", "text": "return true;", "parent": 54, "children": [120], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 14}}, {"id": 120, "type": "true", "text": "true", "parent": 119, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 13}}, {"id": 121, "type": "function_definition", "text": "bool readSensor(tHTTMUXPtr httmuxPtr)\n{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet.\n // No small furry animals were hurt during the calculation of this algorithm.\n muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];\n switches = 339 * muxvalue;\n switches /= (1023 - muxvalue);\n switches += 5;\n switches /= 10;\n\n httmuxPtr->statusMask = switches;\n for (int i = 0; i < 4; i++)\n {\n \thttmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }\n\n return true;\n}", "parent": 0, "children": [122, 123], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 122, "type": "primitive_type", "text": "bool", "parent": 121, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 4}}, {"id": 123, "type": "function_declarator", "text": "readSensor(tHTTMUXPtr httmuxPtr)", "parent": 121, "children": [124, 125], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 37}}, {"id": 124, "type": "identifier", "text": "readSensor", "parent": 123, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 15}}, {"id": 125, "type": "parameter_list", "text": "(tHTTMUXPtr httmuxPtr)", "parent": 123, "children": [126], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 37}}, {"id": 126, "type": "parameter_declaration", "text": "tHTTMUXPtr httmuxPtr", "parent": 125, "children": [127, 128], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 36}}, {"id": 127, "type": "type_identifier", "text": "tHTTMUXPtr", "parent": 126, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 26}}, {"id": 128, "type": "identifier", "text": "httmuxPtr", "parent": 126, "children": [], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 36}}, {"id": 129, "type": "declaration", "text": "long muxvalue = 0;", "parent": 121, "children": [130, 132], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 20}}, {"id": 130, "type": "sized_type_specifier", "text": "long", "parent": 129, "children": [131], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 131, "type": "long", "text": "long", "parent": 130, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 132, "type": "init_declarator", "text": "muxvalue = 0", "parent": 129, "children": [133, 134, 135], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 19}}, {"id": 133, "type": "identifier", "text": "muxvalue", "parent": 132, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 15}}, {"id": 134, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 17}}, {"id": 135, "type": "number_literal", "text": "0", "parent": 132, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 19}}, {"id": 136, "type": "declaration", "text": "long switches = 0;", "parent": 121, "children": [137, 139], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 20}}, {"id": 137, "type": "sized_type_specifier", "text": "long", "parent": 136, "children": [138], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 138, "type": "long", "text": "long", "parent": 137, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 139, "type": "init_declarator", "text": "switches = 0", "parent": 136, "children": [140, 141, 142], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 19}}, {"id": 140, "type": "identifier", "text": "switches", "parent": 139, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 15}}, {"id": 141, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 17}}, {"id": 142, "type": "number_literal", "text": "0", "parent": 139, "children": [], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 19}}, {"id": 143, "type": "assignment_expression", "text": "muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port]", "parent": 121, "children": [144, 145, 146], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 54}}, {"id": 144, "type": "identifier", "text": "muxvalue", "parent": 143, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 10}}, {"id": 145, "type": "=", "text": "=", "parent": 143, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 12}}, {"id": 146, "type": "binary_expression", "text": "1023 - SensorRaw[httmuxPtr->I2CData.port]", "parent": 143, "children": [147, 148, 149], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 54}}, {"id": 147, "type": "number_literal", "text": "1023", "parent": 146, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 17}}, {"id": 148, "type": "-", "text": "-", "parent": 146, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 149, "type": "subscript_expression", "text": "SensorRaw[httmuxPtr->I2CData.port]", "parent": 146, "children": [150, 151], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 54}}, {"id": 150, "type": "identifier", "text": "SensorRaw", "parent": 149, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 29}}, {"id": 151, "type": "field_expression", "text": "httmuxPtr->I2CData.port", "parent": 149, "children": [152, 155], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 53}}, {"id": 152, "type": "field_expression", "text": "httmuxPtr->I2CData", "parent": 151, "children": [153, 154], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 48}}, {"id": 153, "type": "identifier", "text": "httmuxPtr", "parent": 152, "children": [], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 39}}, {"id": 154, "type": "field_identifier", "text": "I2CData", "parent": 152, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 48}}, {"id": 155, "type": "field_identifier", "text": "port", "parent": 151, "children": [], "start_point": {"row": 81, "column": 49}, "end_point": {"row": 81, "column": 53}}, {"id": 156, "type": "assignment_expression", "text": "switches = 339 * muxvalue", "parent": 121, "children": [157, 158, 159], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 27}}, {"id": 157, "type": "identifier", "text": "switches", "parent": 156, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 10}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 159, "type": "binary_expression", "text": "339 * muxvalue", "parent": 156, "children": [160, 161, 162], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 27}}, {"id": 160, "type": "number_literal", "text": "339", "parent": 159, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 16}}, {"id": 161, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 18}}, {"id": 162, "type": "identifier", "text": "muxvalue", "parent": 159, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 27}}, {"id": 163, "type": "assignment_expression", "text": "switches /= (1023 - muxvalue)", "parent": 121, "children": [164, 165, 166], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 31}}, {"id": 164, "type": "identifier", "text": "switches", "parent": 163, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 10}}, {"id": 165, "type": "/=", "text": "/=", "parent": 163, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 13}}, {"id": 166, "type": "parenthesized_expression", "text": "(1023 - muxvalue)", "parent": 163, "children": [167], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 31}}, {"id": 167, "type": "binary_expression", "text": "1023 - muxvalue", "parent": 166, "children": [168, 169, 170], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 30}}, {"id": 168, "type": "number_literal", "text": "1023", "parent": 167, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 19}}, {"id": 169, "type": "-", "text": "-", "parent": 167, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 170, "type": "identifier", "text": "muxvalue", "parent": 167, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 30}}, {"id": 171, "type": "assignment_expression", "text": "switches += 5", "parent": 121, "children": [172, 173, 174], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 15}}, {"id": 172, "type": "identifier", "text": "switches", "parent": 171, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 10}}, {"id": 173, "type": "+=", "text": "+=", "parent": 171, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 13}}, {"id": 174, "type": "number_literal", "text": "5", "parent": 171, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 15}}, {"id": 175, "type": "assignment_expression", "text": "switches /= 10", "parent": 121, "children": [176, 177, 178], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 16}}, {"id": 176, "type": "identifier", "text": "switches", "parent": 175, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 10}}, {"id": 177, "type": "/=", "text": "/=", "parent": 175, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 13}}, {"id": 178, "type": "number_literal", "text": "10", "parent": 175, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 16}}, {"id": 179, "type": "assignment_expression", "text": "httmuxPtr->statusMask = switches", "parent": 121, "children": [180, 183, 184], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 34}}, {"id": 180, "type": "field_expression", "text": "httmuxPtr->statusMask", "parent": 179, "children": [181, 182], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 23}}, {"id": 181, "type": "identifier", "text": "httmuxPtr", "parent": 180, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 11}}, {"id": 182, "type": "field_identifier", "text": "statusMask", "parent": 180, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 23}}, {"id": 183, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 25}}, {"id": 184, "type": "identifier", "text": "switches", "parent": 179, "children": [], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 34}}, {"id": 185, "type": "for_statement", "text": "for (int i = 0; i < 4; i++)\n {\n \thttmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }", "parent": 121, "children": [186, 192, 196], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 91, "column": 3}}, {"id": 186, "type": "declaration", "text": "int i = 0;", "parent": 185, "children": [187, 188], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 17}}, {"id": 187, "type": "primitive_type", "text": "int", "parent": 186, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 10}}, {"id": 188, "type": "init_declarator", "text": "i = 0", "parent": 186, "children": [189, 190, 191], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 16}}, {"id": 189, "type": "identifier", "text": "i", "parent": 188, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 12}}, {"id": 190, "type": "=", "text": "=", "parent": 188, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 14}}, {"id": 191, "type": "number_literal", "text": "0", "parent": 188, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 16}}, {"id": 192, "type": "binary_expression", "text": "i < 4", "parent": 185, "children": [193, 194, 195], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 23}}, {"id": 193, "type": "identifier", "text": "i", "parent": 192, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 19}}, {"id": 194, "type": "<", "text": "<", "parent": 192, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 21}}, {"id": 195, "type": "number_literal", "text": "4", "parent": 192, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 23}}, {"id": 196, "type": "update_expression", "text": "i++", "parent": 185, "children": [197, 198], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 28}}, {"id": 197, "type": "identifier", "text": "i", "parent": 196, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 26}}, {"id": 198, "type": "++", "text": "++", "parent": 196, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 28}}, {"id": 199, "type": "assignment_expression", "text": "httmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false", "parent": 185, "children": [200, 205, 206], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 75}}, {"id": 200, "type": "subscript_expression", "text": "httmuxPtr->status[i]", "parent": 199, "children": [201, 204], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 23}}, {"id": 201, "type": "field_expression", "text": "httmuxPtr->status", "parent": 200, "children": [202, 203], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 20}}, {"id": 202, "type": "identifier", "text": "httmuxPtr", "parent": 201, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 12}}, {"id": 203, "type": "field_identifier", "text": "status", "parent": 201, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 20}}, {"id": 204, "type": "identifier", "text": "i", "parent": 200, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 22}}, {"id": 205, "type": "=", "text": "=", "parent": 199, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 25}}, {"id": 206, "type": "conditional_expression", "text": "(httmuxPtr->statusMask & (1 << i)) ? true : false", "parent": 199, "children": [207, 217, 218, 219], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 75}}, {"id": 207, "type": "parenthesized_expression", "text": "(httmuxPtr->statusMask & (1 << i))", "parent": 206, "children": [208], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 60}}, {"id": 208, "type": "binary_expression", "text": "httmuxPtr->statusMask & (1 << i)", "parent": 207, "children": [209, 212], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 59}}, {"id": 209, "type": "field_expression", "text": "httmuxPtr->statusMask", "parent": 208, "children": [210, 211], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 48}}, {"id": 210, "type": "identifier", "text": "httmuxPtr", "parent": 209, "children": [], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 36}}, {"id": 211, "type": "field_identifier", "text": "statusMask", "parent": 209, "children": [], "start_point": {"row": 90, "column": 38}, "end_point": {"row": 90, "column": 48}}, {"id": 212, "type": "parenthesized_expression", "text": "(1 << i)", "parent": 208, "children": [213], "start_point": {"row": 90, "column": 51}, "end_point": {"row": 90, "column": 59}}, {"id": 213, "type": "binary_expression", "text": "1 << i", "parent": 212, "children": [214, 215, 216], "start_point": {"row": 90, "column": 52}, "end_point": {"row": 90, "column": 58}}, {"id": 214, "type": "number_literal", "text": "1", "parent": 213, "children": [], "start_point": {"row": 90, "column": 52}, "end_point": {"row": 90, "column": 53}}, {"id": 215, "type": "<<", "text": "<<", "parent": 213, "children": [], "start_point": {"row": 90, "column": 54}, "end_point": {"row": 90, "column": 56}}, {"id": 216, "type": "identifier", "text": "i", "parent": 213, "children": [], "start_point": {"row": 90, "column": 57}, "end_point": {"row": 90, "column": 58}}, {"id": 217, "type": "?", "text": "?", "parent": 206, "children": [], "start_point": {"row": 90, "column": 61}, "end_point": {"row": 90, "column": 62}}, {"id": 218, "type": "true", "text": "true", "parent": 206, "children": [], "start_point": {"row": 90, "column": 63}, "end_point": {"row": 90, "column": 67}}, {"id": 219, "type": "false", "text": "false", "parent": 206, "children": [], "start_point": {"row": 90, "column": 70}, "end_point": {"row": 90, "column": 75}}, {"id": 220, "type": "return_statement", "text": "return true;", "parent": 121, "children": [221], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 14}}, {"id": 221, "type": "true", "text": "true", "parent": 220, "children": [], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 13}}, {"id": 222, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}]}, "node_categories": {"declarations": {"functions": [37, 48, 54, 56, 121, 123], "variables": [16, 20, 23, 26, 35, 40, 43, 46, 51, 59, 62, 126, 129, 136, 186], "classes": [18, 19], "imports": [12, 13], "modules": [], "enums": []}, "statements": {"expressions": [65, 70, 71, 74, 75, 82, 83, 90, 91, 92, 94, 95, 100, 101, 106, 108, 109, 114, 115, 146, 149, 151, 152, 159, 166, 167, 180, 192, 196, 200, 201, 207, 208, 209, 212, 213], "assignments": [73, 81, 105, 143, 156, 163, 171, 175, 179, 199], "loops": [185], "conditionals": [0, 1, 2, 5, 9, 10, 11, 15, 21, 22, 24, 25, 29, 31, 34, 38, 41, 42, 44, 45, 49, 52, 53, 57, 60, 61, 63, 64, 66, 68, 72, 76, 77, 78, 80, 84, 85, 86, 88, 89, 93, 96, 97, 98, 102, 103, 104, 107, 110, 111, 112, 116, 117, 118, 124, 127, 128, 130, 133, 137, 140, 144, 150, 153, 154, 155, 157, 162, 164, 170, 172, 176, 181, 182, 184, 189, 193, 197, 202, 203, 204, 206, 210, 211, 216, 222], "returns": [119, 220], "exceptions": []}, "expressions": {"calls": [6], "literals": [14, 30, 69, 135, 142, 147, 160, 168, 174, 178, 191, 195, 214], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "initSensor(tHTTMUXPtr httmuxPtr, tSensors port)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "readSensor(tHTTMUXPtr httmuxPtr)"}, {"node_id": 54, "universal_type": "function", "name": "initSensor", "text_snippet": "bool initSensor(tHTTMUXPtr httmuxPtr, tSensors port)\n{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n "}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "initSensor(tHTTMUXPtr httmuxPtr, tSensors port)"}, {"node_id": 121, "universal_type": "function", "name": "readSensor", "text_snippet": "bool readSensor(tHTTMUXPtr httmuxPtr)\n{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "readSensor(tHTTMUXPtr httmuxPtr)"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "{", "text_snippet": "struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n}"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 12, "text": "#include \"common.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*!@addtogroup HiTechnic\n * @{\n * @defgroup httmux Touch Sensor MUX\n * HiTechnic Touch Sensor MUX\n * @{\n */\n\n#ifndef __HTTMUX_H__\n#define __HTTMUX_H__\n/** \\file hitechnic-touchmux.h\n * \\brief HiTechnic Touch Sensor Multiplexer Sensor driver\n *\n * hitechnic-touchmux.h provides an API for the HiTechnic Touch Sensor Multiplexer Sensor.\n *\n * Changelog:\n * - 0.1: Initial release\n *\n * Credits:\n * - Big thanks to HiTechnic for providing me with the hardware necessary to write and test this.\n *\n * License: You may use this code as you wish, provided you give credit where its due.\n *\n * THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 4.10 AND HIGHER\n\n * \\author <NAME> (<EMAIL>)\n * \\date 15 March 2009\n * \\version 0.1\n * \\example hitechnic-touchmux-test1.c\n */\n\n#pragma systemFile\n\n#ifndef __COMMON_H__\n#include \"common.h\"\n#endif\n\ntypedef struct\n{\n tI2CData I2CData;\n ubyte statusMask;\n bool status[4];\n} tHTTMUX, *tHTTMUXPtr;\n\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port);\nbool readSensor(tHTTMUXPtr httmuxPtr);\n\n\n/**\n * Initialise the sensor's data struct and port\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @param port the sensor port\n * @return true if no error occured, false if it did\n */\nbool initSensor(tHTTMUXPtr httmuxPtr, tSensors port)\n{\n memset(httmuxPtr, 0, sizeof(tHTTMUXPtr));\n httmuxPtr->I2CData.port = port;\n httmuxPtr->I2CData.type = sensorRawValue;\n\n // Ensure the sensor is configured correctly\n if (SensorType[httmuxPtr->I2CData.port] != httmuxPtr->I2CData.type)\n SensorType[httmuxPtr->I2CData.port] = httmuxPtr->I2CData.type;\n\n return true;\n}\n\n\n/**\n * Read all the sensor's data\n *\n * @param httmuxPtr pointer to the sensor's data struct\n * @return true if no error occured, false if it did\n */\nbool readSensor(tHTTMUXPtr httmuxPtr)\n{\n long muxvalue = 0;\n long switches = 0;\n\n // Voodoo magic starts here. This is taken straight from the Touch MUX pamphlet.\n // No small furry animals were hurt during the calculation of this algorithm.\n muxvalue = 1023 - SensorRaw[httmuxPtr->I2CData.port];\n switches = 339 * muxvalue;\n switches /= (1023 - muxvalue);\n switches += 5;\n switches /= 10;\n\n httmuxPtr->statusMask = switches;\n for (int i = 0; i < 4; i++)\n {\n \thttmuxPtr->status[i] = (httmuxPtr->statusMask & (1 << i)) ? true : false;\n }\n\n return true;\n}\n#endif // __HTTMUX_H__\n\n/* @} */\n/* @} */\n"}
80,854
c
#ifndef FILE_H #define FILE_H #include <string> #include <vector> struct user; struct credential; namespace file::credentials { void write(std::string const& filename, std::vector<credential> const&); void append(std::string const&, std::vector<credential> const&); std::vector<credential> read(std::string const& filename); } // namespace file::credentials namespace file::users { user read(std::string const& filename); void write(std::string const& filename, user const&); void writeToCSV(std::string filename, credential const& user_credentials, int const number); } // namespace file::users namespace file::user_files { std::string filePath(std::string const& username); std::string data(std::string const& username); std::string account(std::string const& username); std::string returning_user(); } // namespace file::user_files namespace file::crypt { void encrypt(std::string const& filename, std::string const& password); void decrypt(std::string const& filename, std::string const& password); } // namespace file::crypt #endif // FILECRYPT_H
39.74
27
(translation_unit) "#ifndef FILE_H\n#define FILE_H\n\n#include <string>\n#include <vector>\n\nstruct user;\nstruct credential;\n\nnamespace file::credentials {\n void write(std::string const& filename, std::vector<credential> const&);\n void append(std::string const&, std::vector<credential> const&);\n std::vector<credential> read(std::string const& filename);\n} // namespace file::credentials\n\nnamespace file::users {\n user read(std::string const& filename);\n void write(std::string const& filename, user const&);\n void writeToCSV(std::string filename, credential const& user_credentials, int const number);\n} // namespace file::users\n\nnamespace file::user_files {\n std::string filePath(std::string const& username);\n std::string data(std::string const& username);\n std::string account(std::string const& username);\n std::string returning_user();\n} // namespace file::user_files\n\nnamespace file::crypt {\n void encrypt(std::string const& filename, std::string const& password);\n void decrypt(std::string const& filename, std::string const& password);\n} // namespace file::crypt\n\n#endif // FILECRYPT_H\n" (preproc_ifdef) "#ifndef FILE_H\n#define FILE_H\n\n#include <string>\n#include <vector>\n\nstruct user;\nstruct credential;\n\nnamespace file::credentials {\n void write(std::string const& filename, std::vector<credential> const&);\n void append(std::string const&, std::vector<credential> const&);\n std::vector<credential> read(std::string const& filename);\n} // namespace file::credentials\n\nnamespace file::users {\n user read(std::string const& filename);\n void write(std::string const& filename, user const&);\n void writeToCSV(std::string filename, credential const& user_credentials, int const number);\n} // namespace file::users\n\nnamespace file::user_files {\n std::string filePath(std::string const& username);\n std::string data(std::string const& username);\n std::string account(std::string const& username);\n std::string returning_user();\n} // namespace file::user_files\n\nnamespace file::crypt {\n void encrypt(std::string const& filename, std::string const& password);\n void decrypt(std::string const& filename, std::string const& password);\n} // namespace file::crypt\n\n#endif" (#ifndef) "#ifndef" (identifier) "FILE_H" (preproc_def) "#define FILE_H\n" (#define) "#define" (identifier) "FILE_H" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (struct_specifier) "struct user" (struct) "struct" (type_identifier) "user" (;) ";" (struct_specifier) "struct credential" (struct) "struct" (type_identifier) "credential" (;) ";" (function_definition) "namespace file::credentials {\n void write(std::string const& filename, std::vector<credential> const&);\n void append(std::string const&, std::vector<credential> const&);\n std::vector<credential> read(std::string const& filename);\n}" (type_identifier) "namespace" (ERROR) "file::" (identifier) "file" (:) ":" (:) ":" (identifier) "credentials" (compound_statement) "{\n void write(std::string const& filename, std::vector<credential> const&);\n void append(std::string const&, std::vector<credential> const&);\n std::vector<credential> read(std::string const& filename);\n}" ({) "{" (declaration) "void write(std::string const& filename, std::vector<credential> const&);" (primitive_type) "void" (function_declarator) "write(std::string const& filename, std::vector<credential> const&)" (identifier) "write" (parameter_list) "(std::string const& filename, std::vector<credential> const&)" (() "(" (parameter_declaration) "std::string const& filename" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "filename" (,) "," (parameter_declaration) "std::vector<credential" (type_identifier) "std" (ERROR) "::vector<" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "credential" (ERROR) "> const&" (>) ">" (const) "const" (&) "&" ()) ")" (;) ";" (declaration) "void append(std::string const&, std::vector<credential> const&);" (primitive_type) "void" (function_declarator) "append(std::string const&, std::vector<credential> const&)" (identifier) "append" (parameter_list) "(std::string const&, std::vector<credential> const&)" (() "(" (parameter_declaration) "std::string" (type_identifier) "std" (ERROR) "::" (:) ":" (:) ":" (identifier) "string" (ERROR) "const&" (identifier) "const" (&) "&" (,) "," (parameter_declaration) "std::vector<credential" (type_identifier) "std" (ERROR) "::vector<" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "credential" (ERROR) "> const&" (>) ">" (const) "const" (&) "&" ()) ")" (;) ";" (labeled_statement) "std::vector<credential> read(std::string const& filename);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<credential> read(std::string const& filename);" (binary_expression) "vector<credential> read(std::string const& filename)" (binary_expression) "vector<credential" (identifier) "vector" (<) "<" (identifier) "credential" (>) ">" (call_expression) "read(std::string const& filename)" (identifier) "read" (argument_list) "(std::string const& filename)" (() "(" (ERROR) "std::string" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (binary_expression) "const& filename" (identifier) "const" (&) "&" (identifier) "filename" ()) ")" (;) ";" (}) "}" (comment) "// namespace file::credentials" (function_definition) "namespace file::users {\n user read(std::string const& filename);\n void write(std::string const& filename, user const&);\n void writeToCSV(std::string filename, credential const& user_credentials, int const number);\n}" (type_identifier) "namespace" (ERROR) "file::" (identifier) "file" (:) ":" (:) ":" (identifier) "users" (compound_statement) "{\n user read(std::string const& filename);\n void write(std::string const& filename, user const&);\n void writeToCSV(std::string filename, credential const& user_credentials, int const number);\n}" ({) "{" (declaration) "user read(std::string const& filename);" (type_identifier) "user" (function_declarator) "read(std::string const& filename)" (identifier) "read" (parameter_list) "(std::string const& filename)" (() "(" (parameter_declaration) "std::string const& filename" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "filename" ()) ")" (;) ";" (declaration) "void write(std::string const& filename, user const&);" (primitive_type) "void" (function_declarator) "write(std::string const& filename, user const&)" (identifier) "write" (parameter_list) "(std::string const& filename, user const&)" (() "(" (parameter_declaration) "std::string const& filename" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "filename" (,) "," (parameter_declaration) "user const" (type_identifier) "user" (type_qualifier) "const" (const) "const" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "void writeToCSV(std::string filename, credential const& user_credentials, int const number);" (primitive_type) "void" (function_declarator) "writeToCSV(std::string filename, credential const& user_credentials, int const number)" (identifier) "writeToCSV" (parameter_list) "(std::string filename, credential const& user_credentials, int const number)" (() "(" (parameter_declaration) "std::string filename" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "filename" (,) "," (parameter_declaration) "credential const& user_credentials" (type_identifier) "credential" (type_qualifier) "const" (const) "const" (ERROR) "&" (&) "&" (identifier) "user_credentials" (,) "," (parameter_declaration) "int const number" (primitive_type) "int" (type_qualifier) "const" (const) "const" (identifier) "number" ()) ")" (;) ";" (}) "}" (comment) "// namespace file::users" (function_definition) "namespace file::user_files {\n std::string filePath(std::string const& username);\n std::string data(std::string const& username);\n std::string account(std::string const& username);\n std::string returning_user();\n}" (type_identifier) "namespace" (ERROR) "file::" (identifier) "file" (:) ":" (:) ":" (identifier) "user_files" (compound_statement) "{\n std::string filePath(std::string const& username);\n std::string data(std::string const& username);\n std::string account(std::string const& username);\n std::string returning_user();\n}" ({) "{" (labeled_statement) "std::string filePath(std::string const& username);" (statement_identifier) "std" (ERROR) "::string filePath(std:" (:) ":" (:) ":" (type_identifier) "string" (identifier) "filePath" (() "(" (type_identifier) "std" (:) ":" (:) ":" (declaration) "string const& username);" (type_identifier) "string" (type_qualifier) "const" (const) "const" (ERROR) "&" (&) "&" (identifier) "username" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "std::string data(std::string const& username);" (statement_identifier) "std" (ERROR) "::string data(std:" (:) ":" (:) ":" (type_identifier) "string" (identifier) "data" (() "(" (type_identifier) "std" (:) ":" (:) ":" (declaration) "string const& username);" (type_identifier) "string" (type_qualifier) "const" (const) "const" (ERROR) "&" (&) "&" (identifier) "username" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "std::string account(std::string const& username);" (statement_identifier) "std" (ERROR) "::string account(std:" (:) ":" (:) ":" (type_identifier) "string" (identifier) "account" (() "(" (type_identifier) "std" (:) ":" (:) ":" (declaration) "string const& username);" (type_identifier) "string" (type_qualifier) "const" (const) "const" (ERROR) "&" (&) "&" (identifier) "username" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "std::string returning_user();" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string returning_user();" (type_identifier) "string" (function_declarator) "returning_user()" (identifier) "returning_user" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// namespace file::user_files" (function_definition) "namespace file::crypt {\n void encrypt(std::string const& filename, std::string const& password);\n void decrypt(std::string const& filename, std::string const& password);\n}" (type_identifier) "namespace" (ERROR) "file::" (identifier) "file" (:) ":" (:) ":" (identifier) "crypt" (compound_statement) "{\n void encrypt(std::string const& filename, std::string const& password);\n void decrypt(std::string const& filename, std::string const& password);\n}" ({) "{" (declaration) "void encrypt(std::string const& filename, std::string const& password);" (primitive_type) "void" (function_declarator) "encrypt(std::string const& filename, std::string const& password)" (identifier) "encrypt" (parameter_list) "(std::string const& filename, std::string const& password)" (() "(" (parameter_declaration) "std::string const& filename" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "filename" (,) "," (parameter_declaration) "std::string const& password" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "password" ()) ")" (;) ";" (declaration) "void decrypt(std::string const& filename, std::string const& password);" (primitive_type) "void" (function_declarator) "decrypt(std::string const& filename, std::string const& password)" (identifier) "decrypt" (parameter_list) "(std::string const& filename, std::string const& password)" (() "(" (parameter_declaration) "std::string const& filename" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "filename" (,) "," (parameter_declaration) "std::string const& password" (type_identifier) "std" (ERROR) "::string const&" (:) ":" (:) ":" (identifier) "string" (identifier) "const" (&) "&" (identifier) "password" ()) ")" (;) ";" (}) "}" (comment) "// namespace file::crypt" (#endif) "#endif" (comment) "// FILECRYPT_H"
354
32
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 39.74, "nodes": 192, "errors": 0, "source_hash": "026f6654fd248f8132182a2948065fc4d1f5e9801d6ff7c7d17cf888f138723c", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FILE_H\n#define FILE_H\n\n#include <string>\n#include <vector>\n\nstruct user;\nstruct credential;\n\nnamespace file::credentials {\n void write(std::string const& filename, std::vector<credential> const&);\n void append(std::string const&, std::vector<credential> const&);\n std::vector<credential> read(std::string const& filename);\n} // namespace file::credentials\n\nnamespace file::users {\n user read(std::string const& filename);\n void write(std::string const& filename, user const&);\n void writeToCSV(std::string filename, credential const& user_credentials, int const number);\n} // namespace file::users\n\nnamespace file::user_files {\n std::string filePath(std::string const& username);\n std::string data(std::string const& username);\n std::string account(std::string const& username);\n std::string returning_user();\n} // namespace file::user_files\n\nnamespace file::crypt {\n void encrypt(std::string const& filename, std::string const& password);\n void decrypt(std::string const& filename, std::string const& password);\n} // namespace file::crypt\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 74, 117, 156, 191], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "FILE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "preproc_def", "text": "#define FILE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "FILE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "struct_specifier", "text": "struct user", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 11}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "type_identifier", "text": "user", "parent": 12, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 11}}, {"id": 15, "type": "struct_specifier", "text": "struct credential", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 17}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 17, "type": "type_identifier", "text": "credential", "parent": 15, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 17}}, {"id": 18, "type": "function_definition", "text": "namespace file::credentials {\n void write(std::string const& filename, std::vector<credential> const&);\n void append(std::string const&, std::vector<credential> const&);\n std::vector<credential> read(std::string const& filename);\n}", "parent": 0, "children": [19, 20, 22], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 20, "type": "ERROR", "text": "file::", "parent": 18, "children": [21], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 16}}, {"id": 21, "type": "identifier", "text": "file", "parent": 20, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 14}}, {"id": 22, "type": "identifier", "text": "credentials", "parent": 18, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 27}}, {"id": 23, "type": "declaration", "text": "void write(std::string const& filename, std::vector<credential> const&);", "parent": 18, "children": [24, 25], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 76}}, {"id": 24, "type": "primitive_type", "text": "void", "parent": 23, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 8}}, {"id": 25, "type": "function_declarator", "text": "write(std::string const& filename, std::vector<credential> const&)", "parent": 23, "children": [26, 27], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 75}}, {"id": 26, "type": "identifier", "text": "write", "parent": 25, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 14}}, {"id": 27, "type": "parameter_list", "text": "(std::string const& filename, std::vector<credential> const&)", "parent": 25, "children": [28, 33, 39], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 75}}, {"id": 28, "type": "parameter_declaration", "text": "std::string const& filename", "parent": 27, "children": [29, 30, 32], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 42}}, {"id": 29, "type": "type_identifier", "text": "std", "parent": 28, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 18}}, {"id": 30, "type": "ERROR", "text": "::string const&", "parent": 28, "children": [31], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 33}}, {"id": 31, "type": "identifier", "text": "string", "parent": 30, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 26}}, {"id": 32, "type": "identifier", "text": "filename", "parent": 28, "children": [], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 42}}, {"id": 33, "type": "parameter_declaration", "text": "std::vector<credential", "parent": 27, "children": [34, 35, 38], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 66}}, {"id": 34, "type": "type_identifier", "text": "std", "parent": 33, "children": [], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 47}}, {"id": 35, "type": "ERROR", "text": "::vector<", "parent": 33, "children": [36, 37], "start_point": {"row": 10, "column": 47}, "end_point": {"row": 10, "column": 56}}, {"id": 36, "type": "identifier", "text": "vector", "parent": 35, "children": [], "start_point": {"row": 10, "column": 49}, "end_point": {"row": 10, "column": 55}}, {"id": 37, "type": "<", "text": "<", "parent": 35, "children": [], "start_point": {"row": 10, "column": 55}, "end_point": {"row": 10, "column": 56}}, {"id": 38, "type": "identifier", "text": "credential", "parent": 33, "children": [], "start_point": {"row": 10, "column": 56}, "end_point": {"row": 10, "column": 66}}, {"id": 39, "type": "ERROR", "text": "> const&", "parent": 27, "children": [40], "start_point": {"row": 10, "column": 66}, "end_point": {"row": 10, "column": 74}}, {"id": 40, "type": ">", "text": ">", "parent": 39, "children": [], "start_point": {"row": 10, "column": 66}, "end_point": {"row": 10, "column": 67}}, {"id": 41, "type": "declaration", "text": "void append(std::string const&, std::vector<credential> const&);", "parent": 18, "children": [42, 43], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 68}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 8}}, {"id": 43, "type": "function_declarator", "text": "append(std::string const&, std::vector<credential> const&)", "parent": 41, "children": [44, 45], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 67}}, {"id": 44, "type": "identifier", "text": "append", "parent": 43, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 15}}, {"id": 45, "type": "parameter_list", "text": "(std::string const&, std::vector<credential> const&)", "parent": 43, "children": [46, 49, 50, 56], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 67}}, {"id": 46, "type": "parameter_declaration", "text": "std::string", "parent": 45, "children": [47, 48], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 27}}, {"id": 47, "type": "type_identifier", "text": "std", "parent": 46, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 19}}, {"id": 48, "type": "identifier", "text": "string", "parent": 46, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 27}}, {"id": 49, "type": "ERROR", "text": "const&", "parent": 45, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 34}}, {"id": 50, "type": "parameter_declaration", "text": "std::vector<credential", "parent": 45, "children": [51, 52, 55], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 58}}, {"id": 51, "type": "type_identifier", "text": "std", "parent": 50, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 39}}, {"id": 52, "type": "ERROR", "text": "::vector<", "parent": 50, "children": [53, 54], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 48}}, {"id": 53, "type": "identifier", "text": "vector", "parent": 52, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 47}}, {"id": 54, "type": "<", "text": "<", "parent": 52, "children": [], "start_point": {"row": 11, "column": 47}, "end_point": {"row": 11, "column": 48}}, {"id": 55, "type": "identifier", "text": "credential", "parent": 50, "children": [], "start_point": {"row": 11, "column": 48}, "end_point": {"row": 11, "column": 58}}, {"id": 56, "type": "ERROR", "text": "> const&", "parent": 45, "children": [57], "start_point": {"row": 11, "column": 58}, "end_point": {"row": 11, "column": 66}}, {"id": 57, "type": ">", "text": ">", "parent": 56, "children": [], "start_point": {"row": 11, "column": 58}, "end_point": {"row": 11, "column": 59}}, {"id": 58, "type": "labeled_statement", "text": "std::vector<credential> read(std::string const& filename);", "parent": 18, "children": [59], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 62}}, {"id": 59, "type": "statement_identifier", "text": "std", "parent": 58, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 7}}, {"id": 60, "type": "binary_expression", "text": "vector<credential> read(std::string const& filename)", "parent": 58, "children": [61, 65, 66], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 61}}, {"id": 61, "type": "binary_expression", "text": "vector<credential", "parent": 60, "children": [62, 63, 64], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 26}}, {"id": 62, "type": "identifier", "text": "vector", "parent": 61, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 15}}, {"id": 63, "type": "<", "text": "<", "parent": 61, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 16}}, {"id": 64, "type": "identifier", "text": "credential", "parent": 61, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 26}}, {"id": 65, "type": ">", "text": ">", "parent": 60, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 27}}, {"id": 66, "type": "call_expression", "text": "read(std::string const& filename)", "parent": 60, "children": [67, 68], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 61}}, {"id": 67, "type": "identifier", "text": "read", "parent": 66, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 32}}, {"id": 68, "type": "argument_list", "text": "(std::string const& filename)", "parent": 66, "children": [69, 72], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 61}}, {"id": 69, "type": "ERROR", "text": "std::string", "parent": 68, "children": [70, 71], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 44}}, {"id": 70, "type": "identifier", "text": "std", "parent": 69, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 36}}, {"id": 71, "type": "identifier", "text": "string", "parent": 69, "children": [], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 44}}, {"id": 72, "type": "binary_expression", "text": "const& filename", "parent": 68, "children": [73], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 60}}, {"id": 73, "type": "identifier", "text": "filename", "parent": 72, "children": [], "start_point": {"row": 12, "column": 52}, "end_point": {"row": 12, "column": 60}}, {"id": 74, "type": "function_definition", "text": "namespace file::users {\n user read(std::string const& filename);\n void write(std::string const& filename, user const&);\n void writeToCSV(std::string filename, credential const& user_credentials, int const number);\n}", "parent": 0, "children": [75, 76, 78], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 75, "type": "type_identifier", "text": "namespace", "parent": 74, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 76, "type": "ERROR", "text": "file::", "parent": 74, "children": [77], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 16}}, {"id": 77, "type": "identifier", "text": "file", "parent": 76, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 78, "type": "identifier", "text": "users", "parent": 74, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 21}}, {"id": 79, "type": "declaration", "text": "user read(std::string const& filename);", "parent": 74, "children": [80, 81], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 43}}, {"id": 80, "type": "type_identifier", "text": "user", "parent": 79, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 81, "type": "function_declarator", "text": "read(std::string const& filename)", "parent": 79, "children": [82, 83], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 42}}, {"id": 82, "type": "identifier", "text": "read", "parent": 81, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 83, "type": "parameter_list", "text": "(std::string const& filename)", "parent": 81, "children": [84], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 42}}, {"id": 84, "type": "parameter_declaration", "text": "std::string const& filename", "parent": 83, "children": [85, 86, 88], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 41}}, {"id": 85, "type": "type_identifier", "text": "std", "parent": 84, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 17}}, {"id": 86, "type": "ERROR", "text": "::string const&", "parent": 84, "children": [87], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 32}}, {"id": 87, "type": "identifier", "text": "string", "parent": 86, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 25}}, {"id": 88, "type": "identifier", "text": "filename", "parent": 84, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 41}}, {"id": 89, "type": "declaration", "text": "void write(std::string const& filename, user const&);", "parent": 74, "children": [90, 91], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 57}}, {"id": 90, "type": "primitive_type", "text": "void", "parent": 89, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 8}}, {"id": 91, "type": "function_declarator", "text": "write(std::string const& filename, user const&)", "parent": 89, "children": [92, 93], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 56}}, {"id": 92, "type": "identifier", "text": "write", "parent": 91, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 14}}, {"id": 93, "type": "parameter_list", "text": "(std::string const& filename, user const&)", "parent": 91, "children": [94, 99], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 56}}, {"id": 94, "type": "parameter_declaration", "text": "std::string const& filename", "parent": 93, "children": [95, 96, 98], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 42}}, {"id": 95, "type": "type_identifier", "text": "std", "parent": 94, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 18}}, {"id": 96, "type": "ERROR", "text": "::string const&", "parent": 94, "children": [97], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 33}}, {"id": 97, "type": "identifier", "text": "string", "parent": 96, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 26}}, {"id": 98, "type": "identifier", "text": "filename", "parent": 94, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 42}}, {"id": 99, "type": "parameter_declaration", "text": "user const", "parent": 93, "children": [100], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 54}}, {"id": 100, "type": "type_identifier", "text": "user", "parent": 99, "children": [], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 48}}, {"id": 101, "type": "declaration", "text": "void writeToCSV(std::string filename, credential const& user_credentials, int const number);", "parent": 74, "children": [102, 103], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 96}}, {"id": 102, "type": "primitive_type", "text": "void", "parent": 101, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 103, "type": "function_declarator", "text": "writeToCSV(std::string filename, credential const& user_credentials, int const number)", "parent": 101, "children": [104, 105], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 95}}, {"id": 104, "type": "identifier", "text": "writeToCSV", "parent": 103, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 19}}, {"id": 105, "type": "parameter_list", "text": "(std::string filename, credential const& user_credentials, int const number)", "parent": 103, "children": [106, 111, 114], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 95}}, {"id": 106, "type": "parameter_declaration", "text": "std::string filename", "parent": 105, "children": [107, 108, 110], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 40}}, {"id": 107, "type": "type_identifier", "text": "std", "parent": 106, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 23}}, {"id": 108, "type": "ERROR", "text": "::string", "parent": 106, "children": [109], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 31}}, {"id": 109, "type": "identifier", "text": "string", "parent": 108, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 31}}, {"id": 110, "type": "identifier", "text": "filename", "parent": 106, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 40}}, {"id": 111, "type": "parameter_declaration", "text": "credential const& user_credentials", "parent": 105, "children": [112, 113], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 76}}, {"id": 112, "type": "type_identifier", "text": "credential", "parent": 111, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 52}}, {"id": 113, "type": "identifier", "text": "user_credentials", "parent": 111, "children": [], "start_point": {"row": 18, "column": 60}, "end_point": {"row": 18, "column": 76}}, {"id": 114, "type": "parameter_declaration", "text": "int const number", "parent": 105, "children": [115, 116], "start_point": {"row": 18, "column": 78}, "end_point": {"row": 18, "column": 94}}, {"id": 115, "type": "primitive_type", "text": "int", "parent": 114, "children": [], "start_point": {"row": 18, "column": 78}, "end_point": {"row": 18, "column": 81}}, {"id": 116, "type": "identifier", "text": "number", "parent": 114, "children": [], "start_point": {"row": 18, "column": 88}, "end_point": {"row": 18, "column": 94}}, {"id": 117, "type": "function_definition", "text": "namespace file::user_files {\n std::string filePath(std::string const& username);\n std::string data(std::string const& username);\n std::string account(std::string const& username);\n std::string returning_user();\n}", "parent": 0, "children": [118, 119, 121], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 118, "type": "type_identifier", "text": "namespace", "parent": 117, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 9}}, {"id": 119, "type": "ERROR", "text": "file::", "parent": 117, "children": [120], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 16}}, {"id": 120, "type": "identifier", "text": "file", "parent": 119, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 121, "type": "identifier", "text": "user_files", "parent": 117, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 26}}, {"id": 122, "type": "labeled_statement", "text": "std::string filePath(std::string const& username);", "parent": 117, "children": [123, 124, 128], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 54}}, {"id": 123, "type": "statement_identifier", "text": "std", "parent": 122, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 7}}, {"id": 124, "type": "ERROR", "text": "::string filePath(std:", "parent": 122, "children": [125, 126, 127], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 29}}, {"id": 125, "type": "type_identifier", "text": "string", "parent": 124, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 15}}, {"id": 126, "type": "identifier", "text": "filePath", "parent": 124, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 24}}, {"id": 127, "type": "type_identifier", "text": "std", "parent": 124, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 28}}, {"id": 128, "type": "declaration", "text": "string const& username);", "parent": 122, "children": [129, 130], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 54}}, {"id": 129, "type": "type_identifier", "text": "string", "parent": 128, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 36}}, {"id": 130, "type": "identifier", "text": "username", "parent": 128, "children": [], "start_point": {"row": 22, "column": 44}, "end_point": {"row": 22, "column": 52}}, {"id": 131, "type": "labeled_statement", "text": "std::string data(std::string const& username);", "parent": 117, "children": [132, 133, 137], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 50}}, {"id": 132, "type": "statement_identifier", "text": "std", "parent": 131, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 7}}, {"id": 133, "type": "ERROR", "text": "::string data(std:", "parent": 131, "children": [134, 135, 136], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 25}}, {"id": 134, "type": "type_identifier", "text": "string", "parent": 133, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 15}}, {"id": 135, "type": "identifier", "text": "data", "parent": 133, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 20}}, {"id": 136, "type": "type_identifier", "text": "std", "parent": 133, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 24}}, {"id": 137, "type": "declaration", "text": "string const& username);", "parent": 131, "children": [138, 139], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 50}}, {"id": 138, "type": "type_identifier", "text": "string", "parent": 137, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 32}}, {"id": 139, "type": "identifier", "text": "username", "parent": 137, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 48}}, {"id": 140, "type": "labeled_statement", "text": "std::string account(std::string const& username);", "parent": 117, "children": [141, 142, 146], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 53}}, {"id": 141, "type": "statement_identifier", "text": "std", "parent": 140, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 7}}, {"id": 142, "type": "ERROR", "text": "::string account(std:", "parent": 140, "children": [143, 144, 145], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 28}}, {"id": 143, "type": "type_identifier", "text": "string", "parent": 142, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 15}}, {"id": 144, "type": "identifier", "text": "account", "parent": 142, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 23}}, {"id": 145, "type": "type_identifier", "text": "std", "parent": 142, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 27}}, {"id": 146, "type": "declaration", "text": "string const& username);", "parent": 140, "children": [147, 148], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 53}}, {"id": 147, "type": "type_identifier", "text": "string", "parent": 146, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 35}}, {"id": 148, "type": "identifier", "text": "username", "parent": 146, "children": [], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 51}}, {"id": 149, "type": "labeled_statement", "text": "std::string returning_user();", "parent": 117, "children": [150, 151], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 33}}, {"id": 150, "type": "statement_identifier", "text": "std", "parent": 149, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 151, "type": "declaration", "text": "string returning_user();", "parent": 149, "children": [152, 153], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 33}}, {"id": 152, "type": "type_identifier", "text": "string", "parent": 151, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 15}}, {"id": 153, "type": "function_declarator", "text": "returning_user()", "parent": 151, "children": [154, 155], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 32}}, {"id": 154, "type": "identifier", "text": "returning_user", "parent": 153, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 30}}, {"id": 155, "type": "parameter_list", "text": "()", "parent": 153, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 32}}, {"id": 156, "type": "function_definition", "text": "namespace file::crypt {\n void encrypt(std::string const& filename, std::string const& password);\n void decrypt(std::string const& filename, std::string const& password);\n}", "parent": 0, "children": [157, 158, 160], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 157, "type": "type_identifier", "text": "namespace", "parent": 156, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 9}}, {"id": 158, "type": "ERROR", "text": "file::", "parent": 156, "children": [159], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 16}}, {"id": 159, "type": "identifier", "text": "file", "parent": 158, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 14}}, {"id": 160, "type": "identifier", "text": "crypt", "parent": 156, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 21}}, {"id": 161, "type": "declaration", "text": "void encrypt(std::string const& filename, std::string const& password);", "parent": 156, "children": [162, 163], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 75}}, {"id": 162, "type": "primitive_type", "text": "void", "parent": 161, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 163, "type": "function_declarator", "text": "encrypt(std::string const& filename, std::string const& password)", "parent": 161, "children": [164, 165], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 74}}, {"id": 164, "type": "identifier", "text": "encrypt", "parent": 163, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 16}}, {"id": 165, "type": "parameter_list", "text": "(std::string const& filename, std::string const& password)", "parent": 163, "children": [166, 171], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 74}}, {"id": 166, "type": "parameter_declaration", "text": "std::string const& filename", "parent": 165, "children": [167, 168, 170], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 44}}, {"id": 167, "type": "type_identifier", "text": "std", "parent": 166, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 20}}, {"id": 168, "type": "ERROR", "text": "::string const&", "parent": 166, "children": [169], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 35}}, {"id": 169, "type": "identifier", "text": "string", "parent": 168, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 28}}, {"id": 170, "type": "identifier", "text": "filename", "parent": 166, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 44}}, {"id": 171, "type": "parameter_declaration", "text": "std::string const& password", "parent": 165, "children": [172, 173, 175], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 73}}, {"id": 172, "type": "type_identifier", "text": "std", "parent": 171, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 49}}, {"id": 173, "type": "ERROR", "text": "::string const&", "parent": 171, "children": [174], "start_point": {"row": 29, "column": 49}, "end_point": {"row": 29, "column": 64}}, {"id": 174, "type": "identifier", "text": "string", "parent": 173, "children": [], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 57}}, {"id": 175, "type": "identifier", "text": "password", "parent": 171, "children": [], "start_point": {"row": 29, "column": 65}, "end_point": {"row": 29, "column": 73}}, {"id": 176, "type": "declaration", "text": "void decrypt(std::string const& filename, std::string const& password);", "parent": 156, "children": [177, 178], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 75}}, {"id": 177, "type": "primitive_type", "text": "void", "parent": 176, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 8}}, {"id": 178, "type": "function_declarator", "text": "decrypt(std::string const& filename, std::string const& password)", "parent": 176, "children": [179, 180], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 74}}, {"id": 179, "type": "identifier", "text": "decrypt", "parent": 178, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 16}}, {"id": 180, "type": "parameter_list", "text": "(std::string const& filename, std::string const& password)", "parent": 178, "children": [181, 186], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 74}}, {"id": 181, "type": "parameter_declaration", "text": "std::string const& filename", "parent": 180, "children": [182, 183, 185], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 44}}, {"id": 182, "type": "type_identifier", "text": "std", "parent": 181, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 20}}, {"id": 183, "type": "ERROR", "text": "::string const&", "parent": 181, "children": [184], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 35}}, {"id": 184, "type": "identifier", "text": "string", "parent": 183, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 28}}, {"id": 185, "type": "identifier", "text": "filename", "parent": 181, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 44}}, {"id": 186, "type": "parameter_declaration", "text": "std::string const& password", "parent": 180, "children": [187, 188, 190], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 73}}, {"id": 187, "type": "type_identifier", "text": "std", "parent": 186, "children": [], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 49}}, {"id": 188, "type": "ERROR", "text": "::string const&", "parent": 186, "children": [189], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 64}}, {"id": 189, "type": "identifier", "text": "string", "parent": 188, "children": [], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 57}}, {"id": 190, "type": "identifier", "text": "password", "parent": 186, "children": [], "start_point": {"row": 30, "column": 65}, "end_point": {"row": 30, "column": 73}}, {"id": 191, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 25, 43, 74, 81, 91, 103, 117, 153, 156, 163, 178], "variables": [23, 28, 33, 41, 46, 50, 79, 84, 89, 94, 99, 101, 106, 111, 114, 128, 137, 146, 151, 161, 166, 171, 176, 181, 186], "classes": [12, 13, 15, 16], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [60, 61, 66, 72], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 14, 17, 19, 21, 22, 26, 29, 31, 32, 34, 36, 38, 44, 47, 48, 51, 53, 55, 59, 62, 64, 67, 70, 71, 73, 75, 77, 78, 80, 82, 85, 87, 88, 92, 95, 97, 98, 100, 104, 107, 109, 110, 112, 113, 116, 118, 120, 121, 123, 125, 126, 127, 129, 130, 132, 134, 135, 136, 138, 139, 141, 143, 144, 145, 147, 148, 150, 152, 154, 157, 159, 160, 164, 167, 169, 170, 172, 174, 175, 179, 182, 184, 185, 187, 189, 190, 191], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "write", "text_snippet": "namespace file::credentials {\n void write(std::string const& filename, std::vector<credential> co"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "write(std::string const& filename, std::vector<credential> const&)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "append(std::string const&, std::vector<credential> const&)"}, {"node_id": 74, "universal_type": "function", "name": "write", "text_snippet": "namespace file::users {\n user read(std::string const& filename);\n void write(std::string const"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "read(std::string const& filename)"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "write(std::string const& filename, user const&)"}, {"node_id": 103, "universal_type": "function", "name": "const", "text_snippet": "writeToCSV(std::string filename, credential const& user_credentials, int const number)"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "namespace file::user_files {\n std::string filePath(std::string const& username);\n std::string "}, {"node_id": 153, "universal_type": "function", "name": "unknown", "text_snippet": "returning_user()"}, {"node_id": 156, "universal_type": "function", "name": "encrypt", "text_snippet": "namespace file::crypt {\n void encrypt(std::string const& filename, std::string const& password);\n"}, {"node_id": 163, "universal_type": "function", "name": "unknown", "text_snippet": "encrypt(std::string const& filename, std::string const& password)"}, {"node_id": 178, "universal_type": "function", "name": "unknown", "text_snippet": "decrypt(std::string const& filename, std::string const& password)"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "user", "text_snippet": "struct user"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 15, "universal_type": "class", "name": "credential", "text_snippet": "struct credential"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef FILE_H\n#define FILE_H\n\n#include <string>\n#include <vector>\n\nstruct user;\nstruct credential;\n\nnamespace file::credentials {\n void write(std::string const& filename, std::vector<credential> const&);\n void append(std::string const&, std::vector<credential> const&);\n std::vector<credential> read(std::string const& filename);\n} // namespace file::credentials\n\nnamespace file::users {\n user read(std::string const& filename);\n void write(std::string const& filename, user const&);\n void writeToCSV(std::string filename, credential const& user_credentials, int const number);\n} // namespace file::users\n\nnamespace file::user_files {\n std::string filePath(std::string const& username);\n std::string data(std::string const& username);\n std::string account(std::string const& username);\n std::string returning_user();\n} // namespace file::user_files\n\nnamespace file::crypt {\n void encrypt(std::string const& filename, std::string const& password);\n void decrypt(std::string const& filename, std::string const& password);\n} // namespace file::crypt\n\n#endif // FILECRYPT_H\n"}
80,855
c
#define STB_IMAGE_IMPLEMENTATION #define STBI_NO_STDIO #include "stb_image.h"
25
3
(translation_unit) "#define STB_IMAGE_IMPLEMENTATION\n#define STBI_NO_STDIO\n#include "stb_image.h"\n" (preproc_def) "#define STB_IMAGE_IMPLEMENTATION\n" (#define) "#define" (identifier) "STB_IMAGE_IMPLEMENTATION" (preproc_def) "#define STBI_NO_STDIO\n" (#define) "#define" (identifier) "STBI_NO_STDIO" (preproc_include) "#include "stb_image.h"\n" (#include) "#include" (string_literal) ""stb_image.h"" (") """ (string_content) "stb_image.h" (") """
13
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 25.0, "nodes": 9, "errors": 0, "source_hash": "7f580be9067c12b4a0fa93ee522394e7215a49a28686e5e2b9445527ded2d486", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define STB_IMAGE_IMPLEMENTATION\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "STB_IMAGE_IMPLEMENTATION", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 32}}, {"id": 3, "type": "preproc_def", "text": "#define STBI_NO_STDIO\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "STBI_NO_STDIO", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"stb_image.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": "\"stb_image.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 22}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 5], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"stb_image.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#define STB_IMAGE_IMPLEMENTATION\n#define STBI_NO_STDIO\n#include \"stb_image.h\"\n"}
80,856
c
// https://www.codeproject.com/Articles/1275479/State-Machine-Design-in-C // // The StateMachine module is a C language implementation of a finite state // machine (FSM). // // All event data must be created dynamically using SM_XAlloc. Use a fixed // block allocator or the heap as desired. // // The standard version (non-EX) supports state and event functions. The // extended version (EX) supports the additional guard, entry and exit state // machine features. // // Macros are used to assist in creating the state machine machinery. #ifndef _STATE_MACHINE_H #define _STATE_MACHINE_H #include "DataTypes.h" #include "Fault.h" #ifdef __cplusplus extern "C" { #endif // Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap #define USE_SM_ALLOCATOR #ifdef USE_SM_ALLOCATOR #include "sm_allocator.h" #define SM_XAlloc(size) SMALLOC_Alloc(size) #define SM_XFree(ptr) SMALLOC_Free(ptr) #else #include <stdlib.h> #define SM_XAlloc(size) malloc(size) #define SM_XFree(ptr) free(ptr) #endif enum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF }; typedef void NoEventData; // State machine constant data typedef struct { const CHAR* name; const BYTE maxStates; const struct SM_StateStruct* stateMap; const struct SM_StateStructEx* stateMapEx; } SM_StateMachineConst; // State machine instance data typedef struct { const CHAR* name; void* pInstance; BYTE newState; BYTE currentState; BOOL eventGenerated; void* pEventData; } SM_StateMachine; // Generic state function signatures typedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData); typedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData); typedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData); typedef void (*SM_ExitFunc)(SM_StateMachine* self); typedef struct SM_StateStruct { SM_StateFunc pStateFunc; } SM_StateStruct; typedef struct SM_StateStructEx { SM_StateFunc pStateFunc; SM_GuardFunc pGuardFunc; SM_EntryFunc pEntryFunc; SM_ExitFunc pExitFunc; } SM_StateStructEx; // Public functions #define SM_Event(_smName_, _eventFunc_, _eventData_) \ _eventFunc_(&_smName_##Obj, _eventData_) // Protected functions #define SM_InternalEvent(_newState_, _eventData_) \ _SM_InternalEvent(self, _newState_, _eventData_) #define SM_GetInstance(_instance_) \ (_instance_*)(self->pInstance); // Private functions void _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData); void _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData); void _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst); void _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst); #define SM_DECLARE(_smName_) \ extern SM_StateMachine _smName_##Obj; #define SM_DEFINE(_smName_, _instance_) \ SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \ 0, 0, 0, 0 }; #define EVENT_DECLARE(_eventFunc_, _eventData_) \ void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData); #define EVENT_DEFINE(_eventFunc_, _eventData_) \ void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData) #define STATE_DECLARE(_stateFunc_, _eventData_) \ static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData); #define STATE_DEFINE(_stateFunc_, _eventData_) \ static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData) #define GUARD_DECLARE(_guardFunc_, _eventData_) \ static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData); #define GUARD_DEFINE(_guardFunc_, _eventData_) \ static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData) #define ENTRY_DECLARE(_entryFunc_, _eventData_) \ static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData); #define ENTRY_DEFINE(_entryFunc_, _eventData_) \ static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData) #define EXIT_DECLARE(_exitFunc_) \ static void EX_##_exitFunc_(SM_StateMachine* self); #define EXIT_DEFINE(_exitFunc_) \ static void EX_##_exitFunc_(SM_StateMachine* self) #define BEGIN_STATE_MAP(_smName_) \ static const SM_StateStruct _smName_##StateMap[] = { #define STATE_MAP_ENTRY(_stateFunc_) \ { _stateFunc_ }, #define END_STATE_MAP(_smName_) \ }; \ static const SM_StateMachineConst _smName_##Const = { #_smName_, \ (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \ _smName_##StateMap, NULL }; #define BEGIN_STATE_MAP_EX(_smName_) \ static const SM_StateStructEx _smName_##StateMap[] = { #define STATE_MAP_ENTRY_EX(_stateFunc_) \ { _stateFunc_, NULL, NULL, NULL }, #define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \ { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ }, #define END_STATE_MAP_EX(_smName_) \ }; \ static const SM_StateMachineConst _smName_##Const = { #_smName_, \ (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \ NULL, _smName_##StateMap }; #define BEGIN_TRANSITION_MAP \ static const BYTE TRANSITIONS[] = { \ #define TRANSITION_MAP_ENTRY(_entry_) \ _entry_, #define END_TRANSITION_MAP(_smName_, _eventData_) \ }; \ _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \ C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0]))); #ifdef __cplusplus } #endif #endif // _STATE_MACHINE_H
42.59
128
(translation_unit) "// https://www.codeproject.com/Articles/1275479/State-Machine-Design-in-C\n//\n// The StateMachine module is a C language implementation of a finite state \n// machine (FSM).\n//\n// All event data must be created dynamically using SM_XAlloc. Use a fixed \n// block allocator or the heap as desired. \n//\n// The standard version (non-EX) supports state and event functions. The \n// extended version (EX) supports the additional guard, entry and exit state\n// machine features. \n//\n// Macros are used to assist in creating the state machine machinery. \n\n#ifndef _STATE_MACHINE_H\n#define _STATE_MACHINE_H\n\n#include "DataTypes.h"\n#include "Fault.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include "sm_allocator.h"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\n static const BYTE TRANSITIONS[] = { \\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\n }; \\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}\n#endif\n \n#endif // _STATE_MACHINE_H" (comment) "// https://www.codeproject.com/Articles/1275479/State-Machine-Design-in-C" (comment) "//" (comment) "// The StateMachine module is a C language implementation of a finite state " (comment) "// machine (FSM)." (comment) "//" (comment) "// All event data must be created dynamically using SM_XAlloc. Use a fixed " (comment) "// block allocator or the heap as desired. " (comment) "//" (comment) "// The standard version (non-EX) supports state and event functions. The " (comment) "// extended version (EX) supports the additional guard, entry and exit state" (comment) "// machine features. " (comment) "//" (comment) "// Macros are used to assist in creating the state machine machinery. " (preproc_ifdef) "#ifndef _STATE_MACHINE_H\n#define _STATE_MACHINE_H\n\n#include "DataTypes.h"\n#include "Fault.h"\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include "sm_allocator.h"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\n static const BYTE TRANSITIONS[] = { \\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\n }; \\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}\n#endif\n \n#endif" (#ifndef) "#ifndef" (identifier) "_STATE_MACHINE_H" (preproc_def) "#define _STATE_MACHINE_H\n" (#define) "#define" (identifier) "_STATE_MACHINE_H" (preproc_include) "#include "DataTypes.h"\n" (#include) "#include" (string_literal) ""DataTypes.h"" (") """ (string_content) "DataTypes.h" (") """ (preproc_include) "#include "Fault.h"\n" (#include) "#include" (string_literal) ""Fault.h"" (") """ (string_content) "Fault.h" (") """ (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include "sm_allocator.h"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\n static const BYTE TRANSITIONS[] = { \\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\n }; \\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include "sm_allocator.h"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\n static const BYTE TRANSITIONS[] = { \\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\n }; \\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include "sm_allocator.h"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\n static const BYTE TRANSITIONS[] = { \\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\n }; \\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (comment) "// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap" (preproc_def) "#define USE_SM_ALLOCATOR\n" (#define) "#define" (identifier) "USE_SM_ALLOCATOR" (preproc_ifdef) "#ifdef USE_SM_ALLOCATOR\n #include "sm_allocator.h"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif" (#ifdef) "#ifdef" (identifier) "USE_SM_ALLOCATOR" (preproc_include) "#include "sm_allocator.h"\n" (#include) "#include" (string_literal) ""sm_allocator.h"" (") """ (string_content) "sm_allocator.h" (") """ (preproc_function_def) "#define SM_XAlloc(size) SMALLOC_Alloc(size)\n" (#define) "#define" (identifier) "SM_XAlloc" (preproc_params) "(size)" (() "(" (identifier) "size" ()) ")" (preproc_arg) "SMALLOC_Alloc(size)" (preproc_function_def) "#define SM_XFree(ptr) SMALLOC_Free(ptr)\n" (#define) "#define" (identifier) "SM_XFree" (preproc_params) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (preproc_arg) "SMALLOC_Free(ptr)" (preproc_else) "#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n" (#else) "#else" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_function_def) "#define SM_XAlloc(size) malloc(size)\n" (#define) "#define" (identifier) "SM_XAlloc" (preproc_params) "(size)" (() "(" (identifier) "size" ()) ")" (preproc_arg) "malloc(size)" (preproc_function_def) "#define SM_XFree(ptr) free(ptr)\n" (#define) "#define" (identifier) "SM_XFree" (preproc_params) "(ptr)" (() "(" (identifier) "ptr" ()) ")" (preproc_arg) "free(ptr)" (#endif) "#endif" (enum_specifier) "enum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF }" (enum) "enum" (enumerator_list) "{ EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF }" ({) "{" (enumerator) "EVENT_IGNORED = 0xFE" (identifier) "EVENT_IGNORED" (=) "=" (number_literal) "0xFE" (,) "," (enumerator) "CANNOT_HAPPEN = 0xFF" (identifier) "CANNOT_HAPPEN" (=) "=" (number_literal) "0xFF" (}) "}" (;) ";" (type_definition) "typedef void NoEventData;" (typedef) "typedef" (primitive_type) "void" (type_identifier) "NoEventData" (;) ";" (comment) "// State machine constant data" (type_definition) "typedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;" (typedef) "typedef" (struct_specifier) "struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n}" (struct) "struct" (field_declaration_list) "{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n}" ({) "{" (field_declaration) "const CHAR* name;" (type_qualifier) "const" (const) "const" (type_identifier) "CHAR" (pointer_declarator) "* name" (*) "*" (field_identifier) "name" (;) ";" (field_declaration) "const BYTE maxStates;" (type_qualifier) "const" (const) "const" (type_identifier) "BYTE" (field_identifier) "maxStates" (;) ";" (field_declaration) "const struct SM_StateStruct* stateMap;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct SM_StateStruct" (struct) "struct" (type_identifier) "SM_StateStruct" (pointer_declarator) "* stateMap" (*) "*" (field_identifier) "stateMap" (;) ";" (field_declaration) "const struct SM_StateStructEx* stateMapEx;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct SM_StateStructEx" (struct) "struct" (type_identifier) "SM_StateStructEx" (pointer_declarator) "* stateMapEx" (*) "*" (field_identifier) "stateMapEx" (;) ";" (}) "}" (type_identifier) "SM_StateMachineConst" (;) ";" (comment) "// State machine instance data" (type_definition) "typedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;" (typedef) "typedef" (struct_specifier) "struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n}" (struct) "struct" (field_declaration_list) "{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n}" ({) "{" (field_declaration) "const CHAR* name;" (type_qualifier) "const" (const) "const" (type_identifier) "CHAR" (pointer_declarator) "* name" (*) "*" (field_identifier) "name" (;) ";" (field_declaration) "void* pInstance;" (primitive_type) "void" (pointer_declarator) "* pInstance" (*) "*" (field_identifier) "pInstance" (;) ";" (field_declaration) "BYTE newState;" (type_identifier) "BYTE" (field_identifier) "newState" (;) ";" (field_declaration) "BYTE currentState;" (type_identifier) "BYTE" (field_identifier) "currentState" (;) ";" (field_declaration) "BOOL eventGenerated;" (type_identifier) "BOOL" (field_identifier) "eventGenerated" (;) ";" (field_declaration) "void* pEventData;" (primitive_type) "void" (pointer_declarator) "* pEventData" (*) "*" (field_identifier) "pEventData" (;) ";" (}) "}" (type_identifier) "SM_StateMachine" (;) ";" (comment) "// Generic state function signatures" (type_definition) "typedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*SM_StateFunc)(SM_StateMachine* self, void* pEventData)" (parenthesized_declarator) "(*SM_StateFunc)" (() "(" (pointer_declarator) "*SM_StateFunc" (*) "*" (type_identifier) "SM_StateFunc" ()) ")" (parameter_list) "(SM_StateMachine* self, void* pEventData)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "void* pEventData" (primitive_type) "void" (pointer_declarator) "* pEventData" (*) "*" (identifier) "pEventData" ()) ")" (;) ";" (type_definition) "typedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);" (typedef) "typedef" (type_identifier) "BOOL" (function_declarator) "(*SM_GuardFunc)(SM_StateMachine* self, void* pEventData)" (parenthesized_declarator) "(*SM_GuardFunc)" (() "(" (pointer_declarator) "*SM_GuardFunc" (*) "*" (type_identifier) "SM_GuardFunc" ()) ")" (parameter_list) "(SM_StateMachine* self, void* pEventData)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "void* pEventData" (primitive_type) "void" (pointer_declarator) "* pEventData" (*) "*" (identifier) "pEventData" ()) ")" (;) ";" (type_definition) "typedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*SM_EntryFunc)(SM_StateMachine* self, void* pEventData)" (parenthesized_declarator) "(*SM_EntryFunc)" (() "(" (pointer_declarator) "*SM_EntryFunc" (*) "*" (type_identifier) "SM_EntryFunc" ()) ")" (parameter_list) "(SM_StateMachine* self, void* pEventData)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "void* pEventData" (primitive_type) "void" (pointer_declarator) "* pEventData" (*) "*" (identifier) "pEventData" ()) ")" (;) ";" (type_definition) "typedef void (*SM_ExitFunc)(SM_StateMachine* self);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*SM_ExitFunc)(SM_StateMachine* self)" (parenthesized_declarator) "(*SM_ExitFunc)" (() "(" (pointer_declarator) "*SM_ExitFunc" (*) "*" (type_identifier) "SM_ExitFunc" ()) ")" (parameter_list) "(SM_StateMachine* self)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" ()) ")" (;) ";" (type_definition) "typedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;" (typedef) "typedef" (struct_specifier) "struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n}" (struct) "struct" (type_identifier) "SM_StateStruct" (field_declaration_list) "{\n SM_StateFunc pStateFunc;\n}" ({) "{" (field_declaration) "SM_StateFunc pStateFunc;" (type_identifier) "SM_StateFunc" (field_identifier) "pStateFunc" (;) ";" (}) "}" (type_identifier) "SM_StateStruct" (;) ";" (type_definition) "typedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;" (typedef) "typedef" (struct_specifier) "struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n}" (struct) "struct" (type_identifier) "SM_StateStructEx" (field_declaration_list) "{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n}" ({) "{" (field_declaration) "SM_StateFunc pStateFunc;" (type_identifier) "SM_StateFunc" (field_identifier) "pStateFunc" (;) ";" (field_declaration) "SM_GuardFunc pGuardFunc;" (type_identifier) "SM_GuardFunc" (field_identifier) "pGuardFunc" (;) ";" (field_declaration) "SM_EntryFunc pEntryFunc;" (type_identifier) "SM_EntryFunc" (field_identifier) "pEntryFunc" (;) ";" (field_declaration) "SM_ExitFunc pExitFunc;" (type_identifier) "SM_ExitFunc" (field_identifier) "pExitFunc" (;) ";" (}) "}" (type_identifier) "SM_StateStructEx" (;) ";" (comment) "// Public functions" (preproc_function_def) "#define SM_Event(_smName_, _eventFunc_, _eventData_) \\n _eventFunc_(&_smName_##Obj, _eventData_)\n" (#define) "#define" (identifier) "SM_Event" (preproc_params) "(_smName_, _eventFunc_, _eventData_)" (() "(" (identifier) "_smName_" (,) "," (identifier) "_eventFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "_eventFunc_(&_smName_##Obj, _eventData_)" (comment) "// Protected functions" (preproc_function_def) "#define SM_InternalEvent(_newState_, _eventData_) \\n _SM_InternalEvent(self, _newState_, _eventData_)\n" (#define) "#define" (identifier) "SM_InternalEvent" (preproc_params) "(_newState_, _eventData_)" (() "(" (identifier) "_newState_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "_SM_InternalEvent(self, _newState_, _eventData_)" (preproc_function_def) "#define SM_GetInstance(_instance_) \\n (_instance_*)(self->pInstance);\n" (#define) "#define" (identifier) "SM_GetInstance" (preproc_params) "(_instance_)" (() "(" (identifier) "_instance_" ()) ")" (preproc_arg) "(_instance_*)(self->pInstance);" (comment) "// Private functions" (declaration) "void _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);" (primitive_type) "void" (function_declarator) "_SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData)" (identifier) "_SM_ExternalEvent" (parameter_list) "(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "const SM_StateMachineConst* selfConst" (type_qualifier) "const" (const) "const" (type_identifier) "SM_StateMachineConst" (pointer_declarator) "* selfConst" (*) "*" (identifier) "selfConst" (,) "," (parameter_declaration) "BYTE newState" (type_identifier) "BYTE" (identifier) "newState" (,) "," (parameter_declaration) "void* pEventData" (primitive_type) "void" (pointer_declarator) "* pEventData" (*) "*" (identifier) "pEventData" ()) ")" (;) ";" (declaration) "void _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);" (primitive_type) "void" (function_declarator) "_SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData)" (identifier) "_SM_InternalEvent" (parameter_list) "(SM_StateMachine* self, BYTE newState, void* pEventData)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "BYTE newState" (type_identifier) "BYTE" (identifier) "newState" (,) "," (parameter_declaration) "void* pEventData" (primitive_type) "void" (pointer_declarator) "* pEventData" (*) "*" (identifier) "pEventData" ()) ")" (;) ";" (declaration) "void _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);" (primitive_type) "void" (function_declarator) "_SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst)" (identifier) "_SM_StateEngine" (parameter_list) "(SM_StateMachine* self, const SM_StateMachineConst* selfConst)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "const SM_StateMachineConst* selfConst" (type_qualifier) "const" (const) "const" (type_identifier) "SM_StateMachineConst" (pointer_declarator) "* selfConst" (*) "*" (identifier) "selfConst" ()) ")" (;) ";" (declaration) "void _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);" (primitive_type) "void" (function_declarator) "_SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst)" (identifier) "_SM_StateEngineEx" (parameter_list) "(SM_StateMachine* self, const SM_StateMachineConst* selfConst)" (() "(" (parameter_declaration) "SM_StateMachine* self" (type_identifier) "SM_StateMachine" (pointer_declarator) "* self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "const SM_StateMachineConst* selfConst" (type_qualifier) "const" (const) "const" (type_identifier) "SM_StateMachineConst" (pointer_declarator) "* selfConst" (*) "*" (identifier) "selfConst" ()) ")" (;) ";" (preproc_function_def) "#define SM_DECLARE(_smName_) \\n extern SM_StateMachine _smName_##Obj; \n" (#define) "#define" (identifier) "SM_DECLARE" (preproc_params) "(_smName_)" (() "(" (identifier) "_smName_" ()) ")" (preproc_arg) "extern SM_StateMachine _smName_##Obj; " (preproc_function_def) "#define SM_DEFINE(_smName_, _instance_) \\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\n 0, 0, 0, 0 }; \n" (#define) "#define" (identifier) "SM_DEFINE" (preproc_params) "(_smName_, _instance_)" (() "(" (identifier) "_smName_" (,) "," (identifier) "_instance_" ()) ")" (preproc_arg) "SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\n 0, 0, 0, 0 }; " (preproc_function_def) "#define EVENT_DECLARE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n" (#define) "#define" (identifier) "EVENT_DECLARE" (preproc_params) "(_eventFunc_, _eventData_)" (() "(" (identifier) "_eventFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);" (preproc_function_def) "#define EVENT_DEFINE(_eventFunc_, _eventData_) \\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n" (#define) "#define" (identifier) "EVENT_DEFINE" (preproc_params) "(_eventFunc_, _eventData_)" (() "(" (identifier) "_eventFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)" (preproc_function_def) "#define STATE_DECLARE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n" (#define) "#define" (identifier) "STATE_DECLARE" (preproc_params) "(_stateFunc_, _eventData_)" (() "(" (identifier) "_stateFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);" (preproc_function_def) "#define STATE_DEFINE(_stateFunc_, _eventData_) \\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n" (#define) "#define" (identifier) "STATE_DEFINE" (preproc_params) "(_stateFunc_, _eventData_)" (() "(" (identifier) "_stateFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)" (preproc_function_def) "#define GUARD_DECLARE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n" (#define) "#define" (identifier) "GUARD_DECLARE" (preproc_params) "(_guardFunc_, _eventData_)" (() "(" (identifier) "_guardFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);" (preproc_function_def) "#define GUARD_DEFINE(_guardFunc_, _eventData_) \\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n" (#define) "#define" (identifier) "GUARD_DEFINE" (preproc_params) "(_guardFunc_, _eventData_)" (() "(" (identifier) "_guardFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)" (preproc_function_def) "#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n" (#define) "#define" (identifier) "ENTRY_DECLARE" (preproc_params) "(_entryFunc_, _eventData_)" (() "(" (identifier) "_entryFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);" (preproc_function_def) "#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n" (#define) "#define" (identifier) "ENTRY_DEFINE" (preproc_params) "(_entryFunc_, _eventData_)" (() "(" (identifier) "_entryFunc_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)" (preproc_function_def) "#define EXIT_DECLARE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self);\n" (#define) "#define" (identifier) "EXIT_DECLARE" (preproc_params) "(_exitFunc_)" (() "(" (identifier) "_exitFunc_" ()) ")" (preproc_arg) "static void EX_##_exitFunc_(SM_StateMachine* self);" (preproc_function_def) "#define EXIT_DEFINE(_exitFunc_) \\n static void EX_##_exitFunc_(SM_StateMachine* self)\n" (#define) "#define" (identifier) "EXIT_DEFINE" (preproc_params) "(_exitFunc_)" (() "(" (identifier) "_exitFunc_" ()) ")" (preproc_arg) "static void EX_##_exitFunc_(SM_StateMachine* self)" (preproc_function_def) "#define BEGIN_STATE_MAP(_smName_) \\n static const SM_StateStruct _smName_##StateMap[] = { \n" (#define) "#define" (identifier) "BEGIN_STATE_MAP" (preproc_params) "(_smName_)" (() "(" (identifier) "_smName_" ()) ")" (preproc_arg) "static const SM_StateStruct _smName_##StateMap[] = { " (preproc_function_def) "#define STATE_MAP_ENTRY(_stateFunc_) \\n { _stateFunc_ },\n" (#define) "#define" (identifier) "STATE_MAP_ENTRY" (preproc_params) "(_stateFunc_)" (() "(" (identifier) "_stateFunc_" ()) ")" (preproc_arg) "{ _stateFunc_ }," (preproc_function_def) "#define END_STATE_MAP(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n _smName_##StateMap, NULL };\n" (#define) "#define" (identifier) "END_STATE_MAP" (preproc_params) "(_smName_)" (() "(" (identifier) "_smName_" ()) ")" (preproc_arg) "}; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n _smName_##StateMap, NULL };" (preproc_function_def) "#define BEGIN_STATE_MAP_EX(_smName_) \\n static const SM_StateStructEx _smName_##StateMap[] = { \n" (#define) "#define" (identifier) "BEGIN_STATE_MAP_EX" (preproc_params) "(_smName_)" (() "(" (identifier) "_smName_" ()) ")" (preproc_arg) "static const SM_StateStructEx _smName_##StateMap[] = { " (preproc_function_def) "#define STATE_MAP_ENTRY_EX(_stateFunc_) \\n { _stateFunc_, NULL, NULL, NULL },\n" (#define) "#define" (identifier) "STATE_MAP_ENTRY_EX" (preproc_params) "(_stateFunc_)" (() "(" (identifier) "_stateFunc_" ()) ")" (preproc_arg) "{ _stateFunc_, NULL, NULL, NULL }," (preproc_function_def) "#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n" (#define) "#define" (identifier) "STATE_MAP_ENTRY_ALL_EX" (preproc_params) "(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_)" (() "(" (identifier) "_stateFunc_" (,) "," (identifier) "_guardFunc_" (,) "," (identifier) "_entryFunc_" (,) "," (identifier) "_exitFunc_" ()) ")" (preproc_arg) "{ _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ }," (preproc_function_def) "#define END_STATE_MAP_EX(_smName_) \\n }; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n NULL, _smName_##StateMap };\n" (#define) "#define" (identifier) "END_STATE_MAP_EX" (preproc_params) "(_smName_)" (() "(" (identifier) "_smName_" ()) ")" (preproc_arg) "}; \\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\n NULL, _smName_##StateMap };" (preproc_def) "#define BEGIN_TRANSITION_MAP \\n static const BYTE TRANSITIONS[] = { \\n\n" (#define) "#define" (identifier) "BEGIN_TRANSITION_MAP" (preproc_arg) "static const BYTE TRANSITIONS[] = { \\n" (preproc_function_def) "#define TRANSITION_MAP_ENTRY(_entry_) \\n _entry_,\n" (#define) "#define" (identifier) "TRANSITION_MAP_ENTRY" (preproc_params) "(_entry_)" (() "(" (identifier) "_entry_" ()) ")" (preproc_arg) "_entry_," (preproc_function_def) "#define END_TRANSITION_MAP(_smName_, _eventData_) \\n }; \\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n" (#define) "#define" (identifier) "END_TRANSITION_MAP" (preproc_params) "(_smName_, _eventData_)" (() "(" (identifier) "_smName_" (,) "," (identifier) "_eventData_" ()) ")" (preproc_arg) "}; \\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif" (comment) "// _STATE_MACHINE_H"
672
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 42.59, "nodes": 469, "errors": 0, "source_hash": "1e9a5c04c619a57da2ab93c43c43ee2b3d761fb33031f3a5a8a423cbfa609f5f", "categorized_nodes": 284}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _STATE_MACHINE_H\n#define _STATE_MACHINE_H\n\n#include \"DataTypes.h\"\n#include \"Fault.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include \"sm_allocator.h\"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\\n static const BYTE TRANSITIONS[] = { \\\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\\n }; \\\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}\n#endif\n \n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 468], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 174, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 2, "type": "identifier", "text": "_STATE_MACHINE_H", "parent": 0, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define _STATE_MACHINE_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 5, "type": "identifier", "text": "_STATE_MACHINE_H", "parent": 3, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"DataTypes.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"DataTypes.h\"", "parent": 6, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include \"Fault.h\"\n", "parent": 0, "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": "\"Fault.h\"", "parent": 9, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 18}}, {"id": 12, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include \"sm_allocator.h\"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\\n static const BYTE TRANSITIONS[] = { \\\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\\n }; \\\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [13, 14, 15, 467], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 172, "column": 6}}, {"id": 13, "type": "#ifdef", "text": "#ifdef", "parent": 12, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 14, "type": "identifier", "text": "__cplusplus", "parent": 12, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 18}}, {"id": 15, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include \"sm_allocator.h\"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\\n static const BYTE TRANSITIONS[] = { \\\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\\n }; \\\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}", "parent": 12, "children": [16, 17], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 16, "type": "extern", "text": "extern", "parent": 15, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 17, "type": "string_literal", "text": "\"C\"", "parent": 15, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 10}}, {"id": 18, "type": "preproc_call", "text": "#endif\n", "parent": 15, "children": [19], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 19, "type": "preproc_directive", "text": "#endif", "parent": 18, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 20, "type": "preproc_def", "text": "#define USE_SM_ALLOCATOR\n", "parent": 15, "children": [21, 22], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 22, "type": "identifier", "text": "USE_SM_ALLOCATOR", "parent": 20, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 24}}, {"id": 23, "type": "preproc_ifdef", "text": "#ifdef USE_SM_ALLOCATOR\n #include \"sm_allocator.h\"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif", "parent": 15, "children": [24, 25, 26, 29, 35, 41, 58], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 24, "type": "#ifdef", "text": "#ifdef", "parent": 23, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 25, "type": "identifier", "text": "USE_SM_ALLOCATOR", "parent": 23, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 23}}, {"id": 26, "type": "preproc_include", "text": "#include \"sm_allocator.h\"\n", "parent": 23, "children": [27, 28], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 28, "column": 0}}, {"id": 27, "type": "#include", "text": "#include", "parent": 26, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 28, "type": "string_literal", "text": "\"sm_allocator.h\"", "parent": 26, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 29}}, {"id": 29, "type": "preproc_function_def", "text": "#define SM_XAlloc(size) SMALLOC_Alloc(size)\n", "parent": 23, "children": [30, 31, 32, 34], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 29, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 11}}, {"id": 31, "type": "identifier", "text": "SM_XAlloc", "parent": 29, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 21}}, {"id": 32, "type": "preproc_params", "text": "(size)", "parent": 29, "children": [33], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 27}}, {"id": 33, "type": "identifier", "text": "size", "parent": 32, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 26}}, {"id": 34, "type": "preproc_arg", "text": "SMALLOC_Alloc(size)", "parent": 29, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 50}}, {"id": 35, "type": "preproc_function_def", "text": "#define SM_XFree(ptr) SMALLOC_Free(ptr)\n", "parent": 23, "children": [36, 37, 38, 40], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 30, "column": 0}}, {"id": 36, "type": "#define", "text": "#define", "parent": 35, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 37, "type": "identifier", "text": "SM_XFree", "parent": 35, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 20}}, {"id": 38, "type": "preproc_params", "text": "(ptr)", "parent": 35, "children": [39], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 25}}, {"id": 39, "type": "identifier", "text": "ptr", "parent": 38, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 24}}, {"id": 40, "type": "preproc_arg", "text": "SMALLOC_Free(ptr)", "parent": 35, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 48}}, {"id": 41, "type": "preproc_else", "text": "#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n", "parent": 23, "children": [42, 43, 46, 52], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 42, "type": "#else", "text": "#else", "parent": 41, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 5}}, {"id": 43, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": 41, "children": [44, 45], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 32, "column": 0}}, {"id": 44, "type": "#include", "text": "#include", "parent": 43, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 12}}, {"id": 45, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 43, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 23}}, {"id": 46, "type": "preproc_function_def", "text": "#define SM_XAlloc(size) malloc(size)\n", "parent": 41, "children": [47, 48, 49, 51], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 33, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 11}}, {"id": 48, "type": "identifier", "text": "SM_XAlloc", "parent": 46, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 21}}, {"id": 49, "type": "preproc_params", "text": "(size)", "parent": 46, "children": [50], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 27}}, {"id": 50, "type": "identifier", "text": "size", "parent": 49, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 26}}, {"id": 51, "type": "preproc_arg", "text": "malloc(size)", "parent": 46, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 43}}, {"id": 52, "type": "preproc_function_def", "text": "#define SM_XFree(ptr) free(ptr)\n", "parent": 41, "children": [53, 54, 55, 57], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 34, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 11}}, {"id": 54, "type": "identifier", "text": "SM_XFree", "parent": 52, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 20}}, {"id": 55, "type": "preproc_params", "text": "(ptr)", "parent": 52, "children": [56], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 25}}, {"id": 56, "type": "identifier", "text": "ptr", "parent": 55, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 24}}, {"id": 57, "type": "preproc_arg", "text": "free(ptr)", "parent": 52, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 40}}, {"id": 58, "type": "#endif", "text": "#endif", "parent": 23, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 59, "type": "enum_specifier", "text": "enum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF }", "parent": 15, "children": [60, 61], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 51}}, {"id": 60, "type": "enum", "text": "enum", "parent": 59, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 4}}, {"id": 61, "type": "enumerator_list", "text": "{ EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF }", "parent": 59, "children": [62, 66], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 51}}, {"id": 62, "type": "enumerator", "text": "EVENT_IGNORED = 0xFE", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 27}}, {"id": 63, "type": "identifier", "text": "EVENT_IGNORED", "parent": 62, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 20}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 65, "type": "number_literal", "text": "0xFE", "parent": 62, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 27}}, {"id": 66, "type": "enumerator", "text": "CANNOT_HAPPEN = 0xFF", "parent": 61, "children": [67, 68, 69], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 49}}, {"id": 67, "type": "identifier", "text": "CANNOT_HAPPEN", "parent": 66, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 42}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 36, "column": 43}, "end_point": {"row": 36, "column": 44}}, {"id": 69, "type": "number_literal", "text": "0xFF", "parent": 66, "children": [], "start_point": {"row": 36, "column": 45}, "end_point": {"row": 36, "column": 49}}, {"id": 70, "type": "type_definition", "text": "typedef void NoEventData;", "parent": 15, "children": [71, 72, 73], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 25}}, {"id": 71, "type": "typedef", "text": "typedef", "parent": 70, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 70, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 12}}, {"id": 73, "type": "type_identifier", "text": "NoEventData", "parent": 70, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 24}}, {"id": 74, "type": "type_definition", "text": "typedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;", "parent": 15, "children": [75, 76, 100], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 47, "column": 23}}, {"id": 75, "type": "typedef", "text": "typedef", "parent": 74, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 76, "type": "struct_specifier", "text": "struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n}", "parent": 74, "children": [77], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 47, "column": 1}}, {"id": 77, "type": "struct", "text": "struct", "parent": 76, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 14}}, {"id": 78, "type": "field_declaration", "text": "const CHAR* name;", "parent": 76, "children": [79, 80], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 21}}, {"id": 79, "type": "type_identifier", "text": "CHAR", "parent": 78, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 14}}, {"id": 80, "type": "pointer_declarator", "text": "* name", "parent": 78, "children": [81, 82], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 20}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 15}}, {"id": 82, "type": "field_identifier", "text": "name", "parent": 80, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 20}}, {"id": 83, "type": "field_declaration", "text": "const BYTE maxStates;", "parent": 76, "children": [84, 85], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 25}}, {"id": 84, "type": "type_identifier", "text": "BYTE", "parent": 83, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 14}}, {"id": 85, "type": "field_identifier", "text": "maxStates", "parent": 83, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 24}}, {"id": 86, "type": "field_declaration", "text": "const struct SM_StateStruct* stateMap;", "parent": 76, "children": [87, 90], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 42}}, {"id": 87, "type": "struct_specifier", "text": "struct SM_StateStruct", "parent": 86, "children": [88, 89], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 31}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 16}}, {"id": 89, "type": "type_identifier", "text": "SM_StateStruct", "parent": 87, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 31}}, {"id": 90, "type": "pointer_declarator", "text": "* stateMap", "parent": 86, "children": [91, 92], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 41}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 32}}, {"id": 92, "type": "field_identifier", "text": "stateMap", "parent": 90, "children": [], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 41}}, {"id": 93, "type": "field_declaration", "text": "const struct SM_StateStructEx* stateMapEx;", "parent": 76, "children": [94, 97], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 46}}, {"id": 94, "type": "struct_specifier", "text": "struct SM_StateStructEx", "parent": 93, "children": [95, 96], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 33}}, {"id": 95, "type": "struct", "text": "struct", "parent": 94, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 16}}, {"id": 96, "type": "type_identifier", "text": "SM_StateStructEx", "parent": 94, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 33}}, {"id": 97, "type": "pointer_declarator", "text": "* stateMapEx", "parent": 93, "children": [98, 99], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 45}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 34}}, {"id": 99, "type": "field_identifier", "text": "stateMapEx", "parent": 97, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 45}}, {"id": 100, "type": "type_identifier", "text": "SM_StateMachineConst", "parent": 74, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 22}}, {"id": 101, "type": "type_definition", "text": "typedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;", "parent": 15, "children": [102, 103, 129], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 58, "column": 18}}, {"id": 102, "type": "typedef", "text": "typedef", "parent": 101, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 103, "type": "struct_specifier", "text": "struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n}", "parent": 101, "children": [104], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 58, "column": 1}}, {"id": 104, "type": "struct", "text": "struct", "parent": 103, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 14}}, {"id": 105, "type": "field_declaration", "text": "const CHAR* name;", "parent": 103, "children": [106, 107], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 21}}, {"id": 106, "type": "type_identifier", "text": "CHAR", "parent": 105, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 14}}, {"id": 107, "type": "pointer_declarator", "text": "* name", "parent": 105, "children": [108, 109], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 20}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 15}}, {"id": 109, "type": "field_identifier", "text": "name", "parent": 107, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 20}}, {"id": 110, "type": "field_declaration", "text": "void* pInstance;", "parent": 103, "children": [111, 112], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 20}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 110, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 112, "type": "pointer_declarator", "text": "* pInstance", "parent": 110, "children": [113, 114], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 19}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 9}}, {"id": 114, "type": "field_identifier", "text": "pInstance", "parent": 112, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 19}}, {"id": 115, "type": "field_declaration", "text": "BYTE newState;", "parent": 103, "children": [116, 117], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 18}}, {"id": 116, "type": "type_identifier", "text": "BYTE", "parent": 115, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 8}}, {"id": 117, "type": "field_identifier", "text": "newState", "parent": 115, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 17}}, {"id": 118, "type": "field_declaration", "text": "BYTE currentState;", "parent": 103, "children": [119, 120], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 22}}, {"id": 119, "type": "type_identifier", "text": "BYTE", "parent": 118, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 8}}, {"id": 120, "type": "field_identifier", "text": "currentState", "parent": 118, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 21}}, {"id": 121, "type": "field_declaration", "text": "BOOL eventGenerated;", "parent": 103, "children": [122, 123], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 24}}, {"id": 122, "type": "type_identifier", "text": "BOOL", "parent": 121, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 8}}, {"id": 123, "type": "field_identifier", "text": "eventGenerated", "parent": 121, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 23}}, {"id": 124, "type": "field_declaration", "text": "void* pEventData;", "parent": 103, "children": [125, 126], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 21}}, {"id": 125, "type": "primitive_type", "text": "void", "parent": 124, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 8}}, {"id": 126, "type": "pointer_declarator", "text": "* pEventData", "parent": 124, "children": [127, 128], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 20}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 128, "type": "field_identifier", "text": "pEventData", "parent": 126, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 20}}, {"id": 129, "type": "type_identifier", "text": "SM_StateMachine", "parent": 101, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 17}}, {"id": 130, "type": "type_definition", "text": "typedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);", "parent": 15, "children": [131, 132, 133], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 70}}, {"id": 131, "type": "typedef", "text": "typedef", "parent": 130, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 132, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 12}}, {"id": 133, "type": "function_declarator", "text": "(*SM_StateFunc)(SM_StateMachine* self, void* pEventData)", "parent": 130, "children": [134, 138], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 69}}, {"id": 134, "type": "parenthesized_declarator", "text": "(*SM_StateFunc)", "parent": 133, "children": [135], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 28}}, {"id": 135, "type": "pointer_declarator", "text": "*SM_StateFunc", "parent": 134, "children": [136, 137], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 27}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 15}}, {"id": 137, "type": "type_identifier", "text": "SM_StateFunc", "parent": 135, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 27}}, {"id": 138, "type": "parameter_list", "text": "(SM_StateMachine* self, void* pEventData)", "parent": 133, "children": [139, 144], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 69}}, {"id": 139, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 138, "children": [140, 141], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 50}}, {"id": 140, "type": "type_identifier", "text": "SM_StateMachine", "parent": 139, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 44}}, {"id": 141, "type": "pointer_declarator", "text": "* self", "parent": 139, "children": [142, 143], "start_point": {"row": 61, "column": 44}, "end_point": {"row": 61, "column": 50}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 61, "column": 44}, "end_point": {"row": 61, "column": 45}}, {"id": 143, "type": "identifier", "text": "self", "parent": 141, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 50}}, {"id": 144, "type": "parameter_declaration", "text": "void* pEventData", "parent": 138, "children": [145, 146], "start_point": {"row": 61, "column": 52}, "end_point": {"row": 61, "column": 68}}, {"id": 145, "type": "primitive_type", "text": "void", "parent": 144, "children": [], "start_point": {"row": 61, "column": 52}, "end_point": {"row": 61, "column": 56}}, {"id": 146, "type": "pointer_declarator", "text": "* pEventData", "parent": 144, "children": [147, 148], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 68}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 57}}, {"id": 148, "type": "identifier", "text": "pEventData", "parent": 146, "children": [], "start_point": {"row": 61, "column": 58}, "end_point": {"row": 61, "column": 68}}, {"id": 149, "type": "type_definition", "text": "typedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);", "parent": 15, "children": [150, 151, 152], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 70}}, {"id": 150, "type": "typedef", "text": "typedef", "parent": 149, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 7}}, {"id": 151, "type": "type_identifier", "text": "BOOL", "parent": 149, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 12}}, {"id": 152, "type": "function_declarator", "text": "(*SM_GuardFunc)(SM_StateMachine* self, void* pEventData)", "parent": 149, "children": [153, 157], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 69}}, {"id": 153, "type": "parenthesized_declarator", "text": "(*SM_GuardFunc)", "parent": 152, "children": [154], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 28}}, {"id": 154, "type": "pointer_declarator", "text": "*SM_GuardFunc", "parent": 153, "children": [155, 156], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 27}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 15}}, {"id": 156, "type": "type_identifier", "text": "SM_GuardFunc", "parent": 154, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 27}}, {"id": 157, "type": "parameter_list", "text": "(SM_StateMachine* self, void* pEventData)", "parent": 152, "children": [158, 163], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 69}}, {"id": 158, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 157, "children": [159, 160], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 50}}, {"id": 159, "type": "type_identifier", "text": "SM_StateMachine", "parent": 158, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 44}}, {"id": 160, "type": "pointer_declarator", "text": "* self", "parent": 158, "children": [161, 162], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 50}}, {"id": 161, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 45}}, {"id": 162, "type": "identifier", "text": "self", "parent": 160, "children": [], "start_point": {"row": 62, "column": 46}, "end_point": {"row": 62, "column": 50}}, {"id": 163, "type": "parameter_declaration", "text": "void* pEventData", "parent": 157, "children": [164, 165], "start_point": {"row": 62, "column": 52}, "end_point": {"row": 62, "column": 68}}, {"id": 164, "type": "primitive_type", "text": "void", "parent": 163, "children": [], "start_point": {"row": 62, "column": 52}, "end_point": {"row": 62, "column": 56}}, {"id": 165, "type": "pointer_declarator", "text": "* pEventData", "parent": 163, "children": [166, 167], "start_point": {"row": 62, "column": 56}, "end_point": {"row": 62, "column": 68}}, {"id": 166, "type": "*", "text": "*", "parent": 165, "children": [], "start_point": {"row": 62, "column": 56}, "end_point": {"row": 62, "column": 57}}, {"id": 167, "type": "identifier", "text": "pEventData", "parent": 165, "children": [], "start_point": {"row": 62, "column": 58}, "end_point": {"row": 62, "column": 68}}, {"id": 168, "type": "type_definition", "text": "typedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);", "parent": 15, "children": [169, 170, 171], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 70}}, {"id": 169, "type": "typedef", "text": "typedef", "parent": 168, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 170, "type": "primitive_type", "text": "void", "parent": 168, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 12}}, {"id": 171, "type": "function_declarator", "text": "(*SM_EntryFunc)(SM_StateMachine* self, void* pEventData)", "parent": 168, "children": [172, 176], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 69}}, {"id": 172, "type": "parenthesized_declarator", "text": "(*SM_EntryFunc)", "parent": 171, "children": [173], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 28}}, {"id": 173, "type": "pointer_declarator", "text": "*SM_EntryFunc", "parent": 172, "children": [174, 175], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 27}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 15}}, {"id": 175, "type": "type_identifier", "text": "SM_EntryFunc", "parent": 173, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 27}}, {"id": 176, "type": "parameter_list", "text": "(SM_StateMachine* self, void* pEventData)", "parent": 171, "children": [177, 182], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 69}}, {"id": 177, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 176, "children": [178, 179], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 50}}, {"id": 178, "type": "type_identifier", "text": "SM_StateMachine", "parent": 177, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 44}}, {"id": 179, "type": "pointer_declarator", "text": "* self", "parent": 177, "children": [180, 181], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 50}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 45}}, {"id": 181, "type": "identifier", "text": "self", "parent": 179, "children": [], "start_point": {"row": 63, "column": 46}, "end_point": {"row": 63, "column": 50}}, {"id": 182, "type": "parameter_declaration", "text": "void* pEventData", "parent": 176, "children": [183, 184], "start_point": {"row": 63, "column": 52}, "end_point": {"row": 63, "column": 68}}, {"id": 183, "type": "primitive_type", "text": "void", "parent": 182, "children": [], "start_point": {"row": 63, "column": 52}, "end_point": {"row": 63, "column": 56}}, {"id": 184, "type": "pointer_declarator", "text": "* pEventData", "parent": 182, "children": [185, 186], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 68}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 57}}, {"id": 186, "type": "identifier", "text": "pEventData", "parent": 184, "children": [], "start_point": {"row": 63, "column": 58}, "end_point": {"row": 63, "column": 68}}, {"id": 187, "type": "type_definition", "text": "typedef void (*SM_ExitFunc)(SM_StateMachine* self);", "parent": 15, "children": [188, 189, 190], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 51}}, {"id": 188, "type": "typedef", "text": "typedef", "parent": 187, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 7}}, {"id": 189, "type": "primitive_type", "text": "void", "parent": 187, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 12}}, {"id": 190, "type": "function_declarator", "text": "(*SM_ExitFunc)(SM_StateMachine* self)", "parent": 187, "children": [191, 195], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 50}}, {"id": 191, "type": "parenthesized_declarator", "text": "(*SM_ExitFunc)", "parent": 190, "children": [192], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 27}}, {"id": 192, "type": "pointer_declarator", "text": "*SM_ExitFunc", "parent": 191, "children": [193, 194], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 26}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 15}}, {"id": 194, "type": "type_identifier", "text": "SM_ExitFunc", "parent": 192, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 26}}, {"id": 195, "type": "parameter_list", "text": "(SM_StateMachine* self)", "parent": 190, "children": [196], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 50}}, {"id": 196, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 195, "children": [197, 198], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 49}}, {"id": 197, "type": "type_identifier", "text": "SM_StateMachine", "parent": 196, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 43}}, {"id": 198, "type": "pointer_declarator", "text": "* self", "parent": 196, "children": [199, 200], "start_point": {"row": 64, "column": 43}, "end_point": {"row": 64, "column": 49}}, {"id": 199, "type": "*", "text": "*", "parent": 198, "children": [], "start_point": {"row": 64, "column": 43}, "end_point": {"row": 64, "column": 44}}, {"id": 200, "type": "identifier", "text": "self", "parent": 198, "children": [], "start_point": {"row": 64, "column": 45}, "end_point": {"row": 64, "column": 49}}, {"id": 201, "type": "type_definition", "text": "typedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;", "parent": 15, "children": [202, 203, 209], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 69, "column": 17}}, {"id": 202, "type": "typedef", "text": "typedef", "parent": 201, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 203, "type": "struct_specifier", "text": "struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n}", "parent": 201, "children": [204, 205], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 69, "column": 1}}, {"id": 204, "type": "struct", "text": "struct", "parent": 203, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 14}}, {"id": 205, "type": "type_identifier", "text": "SM_StateStruct", "parent": 203, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 29}}, {"id": 206, "type": "field_declaration", "text": "SM_StateFunc pStateFunc;", "parent": 203, "children": [207, 208], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 28}}, {"id": 207, "type": "type_identifier", "text": "SM_StateFunc", "parent": 206, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 16}}, {"id": 208, "type": "field_identifier", "text": "pStateFunc", "parent": 206, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 27}}, {"id": 209, "type": "type_identifier", "text": "SM_StateStruct", "parent": 201, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 16}}, {"id": 210, "type": "type_definition", "text": "typedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;", "parent": 15, "children": [211, 212, 227], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 77, "column": 19}}, {"id": 211, "type": "typedef", "text": "typedef", "parent": 210, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 212, "type": "struct_specifier", "text": "struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n}", "parent": 210, "children": [213, 214], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 77, "column": 1}}, {"id": 213, "type": "struct", "text": "struct", "parent": 212, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 214, "type": "type_identifier", "text": "SM_StateStructEx", "parent": 212, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 31}}, {"id": 215, "type": "field_declaration", "text": "SM_StateFunc pStateFunc;", "parent": 212, "children": [216, 217], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 28}}, {"id": 216, "type": "type_identifier", "text": "SM_StateFunc", "parent": 215, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 16}}, {"id": 217, "type": "field_identifier", "text": "pStateFunc", "parent": 215, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 27}}, {"id": 218, "type": "field_declaration", "text": "SM_GuardFunc pGuardFunc;", "parent": 212, "children": [219, 220], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 28}}, {"id": 219, "type": "type_identifier", "text": "SM_GuardFunc", "parent": 218, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 16}}, {"id": 220, "type": "field_identifier", "text": "pGuardFunc", "parent": 218, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 27}}, {"id": 221, "type": "field_declaration", "text": "SM_EntryFunc pEntryFunc;", "parent": 212, "children": [222, 223], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 28}}, {"id": 222, "type": "type_identifier", "text": "SM_EntryFunc", "parent": 221, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 16}}, {"id": 223, "type": "field_identifier", "text": "pEntryFunc", "parent": 221, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 27}}, {"id": 224, "type": "field_declaration", "text": "SM_ExitFunc pExitFunc;", "parent": 212, "children": [225, 226], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 26}}, {"id": 225, "type": "type_identifier", "text": "SM_ExitFunc", "parent": 224, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 15}}, {"id": 226, "type": "field_identifier", "text": "pExitFunc", "parent": 224, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 25}}, {"id": 227, "type": "type_identifier", "text": "SM_StateStructEx", "parent": 210, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 18}}, {"id": 228, "type": "preproc_function_def", "text": "#define SM_Event(_smName_, _eventFunc_, _eventData_) \\\n _eventFunc_(&_smName_##Obj, _eventData_)\n", "parent": 15, "children": [229, 230, 231, 235], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 82, "column": 0}}, {"id": 229, "type": "#define", "text": "#define", "parent": 228, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 7}}, {"id": 230, "type": "identifier", "text": "SM_Event", "parent": 228, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 16}}, {"id": 231, "type": "preproc_params", "text": "(_smName_, _eventFunc_, _eventData_)", "parent": 228, "children": [232, 233, 234], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 52}}, {"id": 232, "type": "identifier", "text": "_smName_", "parent": 231, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 25}}, {"id": 233, "type": "identifier", "text": "_eventFunc_", "parent": 231, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 38}}, {"id": 234, "type": "identifier", "text": "_eventData_", "parent": 231, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 51}}, {"id": 235, "type": "preproc_arg", "text": "_eventFunc_(&_smName_##Obj, _eventData_)", "parent": 228, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 44}}, {"id": 236, "type": "preproc_function_def", "text": "#define SM_InternalEvent(_newState_, _eventData_) \\\n _SM_InternalEvent(self, _newState_, _eventData_)\n", "parent": 15, "children": [237, 238, 239, 242], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 86, "column": 0}}, {"id": 237, "type": "#define", "text": "#define", "parent": 236, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 7}}, {"id": 238, "type": "identifier", "text": "SM_InternalEvent", "parent": 236, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 24}}, {"id": 239, "type": "preproc_params", "text": "(_newState_, _eventData_)", "parent": 236, "children": [240, 241], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 49}}, {"id": 240, "type": "identifier", "text": "_newState_", "parent": 239, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 35}}, {"id": 241, "type": "identifier", "text": "_eventData_", "parent": 239, "children": [], "start_point": {"row": 84, "column": 37}, "end_point": {"row": 84, "column": 48}}, {"id": 242, "type": "preproc_arg", "text": "_SM_InternalEvent(self, _newState_, _eventData_)", "parent": 236, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 52}}, {"id": 243, "type": "preproc_function_def", "text": "#define SM_GetInstance(_instance_) \\\n (_instance_*)(self->pInstance);\n", "parent": 15, "children": [244, 245, 246, 248], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 88, "column": 0}}, {"id": 244, "type": "#define", "text": "#define", "parent": 243, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 7}}, {"id": 245, "type": "identifier", "text": "SM_GetInstance", "parent": 243, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 22}}, {"id": 246, "type": "preproc_params", "text": "(_instance_)", "parent": 243, "children": [247], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 34}}, {"id": 247, "type": "identifier", "text": "_instance_", "parent": 246, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 33}}, {"id": 248, "type": "preproc_arg", "text": "(_instance_*)(self->pInstance);", "parent": 243, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 35}}, {"id": 249, "type": "declaration", "text": "void _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);", "parent": 15, "children": [250, 251], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 118}}, {"id": 250, "type": "primitive_type", "text": "void", "parent": 249, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 4}}, {"id": 251, "type": "function_declarator", "text": "_SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData)", "parent": 249, "children": [252, 253], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 117}}, {"id": 252, "type": "identifier", "text": "_SM_ExternalEvent", "parent": 251, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 22}}, {"id": 253, "type": "parameter_list", "text": "(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData)", "parent": 251, "children": [254, 259, 264, 267], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 117}}, {"id": 254, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 253, "children": [255, 256], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 44}}, {"id": 255, "type": "type_identifier", "text": "SM_StateMachine", "parent": 254, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 38}}, {"id": 256, "type": "pointer_declarator", "text": "* self", "parent": 254, "children": [257, 258], "start_point": {"row": 90, "column": 38}, "end_point": {"row": 90, "column": 44}}, {"id": 257, "type": "*", "text": "*", "parent": 256, "children": [], "start_point": {"row": 90, "column": 38}, "end_point": {"row": 90, "column": 39}}, {"id": 258, "type": "identifier", "text": "self", "parent": 256, "children": [], "start_point": {"row": 90, "column": 40}, "end_point": {"row": 90, "column": 44}}, {"id": 259, "type": "parameter_declaration", "text": "const SM_StateMachineConst* selfConst", "parent": 253, "children": [260, 261], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 83}}, {"id": 260, "type": "type_identifier", "text": "SM_StateMachineConst", "parent": 259, "children": [], "start_point": {"row": 90, "column": 52}, "end_point": {"row": 90, "column": 72}}, {"id": 261, "type": "pointer_declarator", "text": "* selfConst", "parent": 259, "children": [262, 263], "start_point": {"row": 90, "column": 72}, "end_point": {"row": 90, "column": 83}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 90, "column": 72}, "end_point": {"row": 90, "column": 73}}, {"id": 263, "type": "identifier", "text": "selfConst", "parent": 261, "children": [], "start_point": {"row": 90, "column": 74}, "end_point": {"row": 90, "column": 83}}, {"id": 264, "type": "parameter_declaration", "text": "BYTE newState", "parent": 253, "children": [265, 266], "start_point": {"row": 90, "column": 85}, "end_point": {"row": 90, "column": 98}}, {"id": 265, "type": "type_identifier", "text": "BYTE", "parent": 264, "children": [], "start_point": {"row": 90, "column": 85}, "end_point": {"row": 90, "column": 89}}, {"id": 266, "type": "identifier", "text": "newState", "parent": 264, "children": [], "start_point": {"row": 90, "column": 90}, "end_point": {"row": 90, "column": 98}}, {"id": 267, "type": "parameter_declaration", "text": "void* pEventData", "parent": 253, "children": [268, 269], "start_point": {"row": 90, "column": 100}, "end_point": {"row": 90, "column": 116}}, {"id": 268, "type": "primitive_type", "text": "void", "parent": 267, "children": [], "start_point": {"row": 90, "column": 100}, "end_point": {"row": 90, "column": 104}}, {"id": 269, "type": "pointer_declarator", "text": "* pEventData", "parent": 267, "children": [270, 271], "start_point": {"row": 90, "column": 104}, "end_point": {"row": 90, "column": 116}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 90, "column": 104}, "end_point": {"row": 90, "column": 105}}, {"id": 271, "type": "identifier", "text": "pEventData", "parent": 269, "children": [], "start_point": {"row": 90, "column": 106}, "end_point": {"row": 90, "column": 116}}, {"id": 272, "type": "declaration", "text": "void _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);", "parent": 15, "children": [273, 274], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 79}}, {"id": 273, "type": "primitive_type", "text": "void", "parent": 272, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 4}}, {"id": 274, "type": "function_declarator", "text": "_SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData)", "parent": 272, "children": [275, 276], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 78}}, {"id": 275, "type": "identifier", "text": "_SM_InternalEvent", "parent": 274, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 22}}, {"id": 276, "type": "parameter_list", "text": "(SM_StateMachine* self, BYTE newState, void* pEventData)", "parent": 274, "children": [277, 282, 285], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 78}}, {"id": 277, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 276, "children": [278, 279], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 44}}, {"id": 278, "type": "type_identifier", "text": "SM_StateMachine", "parent": 277, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 38}}, {"id": 279, "type": "pointer_declarator", "text": "* self", "parent": 277, "children": [280, 281], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 44}}, {"id": 280, "type": "*", "text": "*", "parent": 279, "children": [], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 39}}, {"id": 281, "type": "identifier", "text": "self", "parent": 279, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 44}}, {"id": 282, "type": "parameter_declaration", "text": "BYTE newState", "parent": 276, "children": [283, 284], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 59}}, {"id": 283, "type": "type_identifier", "text": "BYTE", "parent": 282, "children": [], "start_point": {"row": 91, "column": 46}, "end_point": {"row": 91, "column": 50}}, {"id": 284, "type": "identifier", "text": "newState", "parent": 282, "children": [], "start_point": {"row": 91, "column": 51}, "end_point": {"row": 91, "column": 59}}, {"id": 285, "type": "parameter_declaration", "text": "void* pEventData", "parent": 276, "children": [286, 287], "start_point": {"row": 91, "column": 61}, "end_point": {"row": 91, "column": 77}}, {"id": 286, "type": "primitive_type", "text": "void", "parent": 285, "children": [], "start_point": {"row": 91, "column": 61}, "end_point": {"row": 91, "column": 65}}, {"id": 287, "type": "pointer_declarator", "text": "* pEventData", "parent": 285, "children": [288, 289], "start_point": {"row": 91, "column": 65}, "end_point": {"row": 91, "column": 77}}, {"id": 288, "type": "*", "text": "*", "parent": 287, "children": [], "start_point": {"row": 91, "column": 65}, "end_point": {"row": 91, "column": 66}}, {"id": 289, "type": "identifier", "text": "pEventData", "parent": 287, "children": [], "start_point": {"row": 91, "column": 67}, "end_point": {"row": 91, "column": 77}}, {"id": 290, "type": "declaration", "text": "void _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);", "parent": 15, "children": [291, 292], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 83}}, {"id": 291, "type": "primitive_type", "text": "void", "parent": 290, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 4}}, {"id": 292, "type": "function_declarator", "text": "_SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst)", "parent": 290, "children": [293, 294], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 82}}, {"id": 293, "type": "identifier", "text": "_SM_StateEngine", "parent": 292, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 20}}, {"id": 294, "type": "parameter_list", "text": "(SM_StateMachine* self, const SM_StateMachineConst* selfConst)", "parent": 292, "children": [295, 300], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 82}}, {"id": 295, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 294, "children": [296, 297], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 42}}, {"id": 296, "type": "type_identifier", "text": "SM_StateMachine", "parent": 295, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 36}}, {"id": 297, "type": "pointer_declarator", "text": "* self", "parent": 295, "children": [298, 299], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 42}}, {"id": 298, "type": "*", "text": "*", "parent": 297, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 37}}, {"id": 299, "type": "identifier", "text": "self", "parent": 297, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 42}}, {"id": 300, "type": "parameter_declaration", "text": "const SM_StateMachineConst* selfConst", "parent": 294, "children": [301, 302], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 81}}, {"id": 301, "type": "type_identifier", "text": "SM_StateMachineConst", "parent": 300, "children": [], "start_point": {"row": 92, "column": 50}, "end_point": {"row": 92, "column": 70}}, {"id": 302, "type": "pointer_declarator", "text": "* selfConst", "parent": 300, "children": [303, 304], "start_point": {"row": 92, "column": 70}, "end_point": {"row": 92, "column": 81}}, {"id": 303, "type": "*", "text": "*", "parent": 302, "children": [], "start_point": {"row": 92, "column": 70}, "end_point": {"row": 92, "column": 71}}, {"id": 304, "type": "identifier", "text": "selfConst", "parent": 302, "children": [], "start_point": {"row": 92, "column": 72}, "end_point": {"row": 92, "column": 81}}, {"id": 305, "type": "declaration", "text": "void _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);", "parent": 15, "children": [306, 307], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 85}}, {"id": 306, "type": "primitive_type", "text": "void", "parent": 305, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 4}}, {"id": 307, "type": "function_declarator", "text": "_SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst)", "parent": 305, "children": [308, 309], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 84}}, {"id": 308, "type": "identifier", "text": "_SM_StateEngineEx", "parent": 307, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 22}}, {"id": 309, "type": "parameter_list", "text": "(SM_StateMachine* self, const SM_StateMachineConst* selfConst)", "parent": 307, "children": [310, 315], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 84}}, {"id": 310, "type": "parameter_declaration", "text": "SM_StateMachine* self", "parent": 309, "children": [311, 312], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 44}}, {"id": 311, "type": "type_identifier", "text": "SM_StateMachine", "parent": 310, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 38}}, {"id": 312, "type": "pointer_declarator", "text": "* self", "parent": 310, "children": [313, 314], "start_point": {"row": 93, "column": 38}, "end_point": {"row": 93, "column": 44}}, {"id": 313, "type": "*", "text": "*", "parent": 312, "children": [], "start_point": {"row": 93, "column": 38}, "end_point": {"row": 93, "column": 39}}, {"id": 314, "type": "identifier", "text": "self", "parent": 312, "children": [], "start_point": {"row": 93, "column": 40}, "end_point": {"row": 93, "column": 44}}, {"id": 315, "type": "parameter_declaration", "text": "const SM_StateMachineConst* selfConst", "parent": 309, "children": [316, 317], "start_point": {"row": 93, "column": 46}, "end_point": {"row": 93, "column": 83}}, {"id": 316, "type": "type_identifier", "text": "SM_StateMachineConst", "parent": 315, "children": [], "start_point": {"row": 93, "column": 52}, "end_point": {"row": 93, "column": 72}}, {"id": 317, "type": "pointer_declarator", "text": "* selfConst", "parent": 315, "children": [318, 319], "start_point": {"row": 93, "column": 72}, "end_point": {"row": 93, "column": 83}}, {"id": 318, "type": "*", "text": "*", "parent": 317, "children": [], "start_point": {"row": 93, "column": 72}, "end_point": {"row": 93, "column": 73}}, {"id": 319, "type": "identifier", "text": "selfConst", "parent": 317, "children": [], "start_point": {"row": 93, "column": 74}, "end_point": {"row": 93, "column": 83}}, {"id": 320, "type": "preproc_function_def", "text": "#define SM_DECLARE(_smName_) \\\n extern SM_StateMachine _smName_##Obj; \n", "parent": 15, "children": [321, 322, 323, 325], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 321, "type": "#define", "text": "#define", "parent": 320, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 322, "type": "identifier", "text": "SM_DECLARE", "parent": 320, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 18}}, {"id": 323, "type": "preproc_params", "text": "(_smName_)", "parent": 320, "children": [324], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 28}}, {"id": 324, "type": "identifier", "text": "_smName_", "parent": 323, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 27}}, {"id": 325, "type": "preproc_arg", "text": "extern SM_StateMachine _smName_##Obj; ", "parent": 320, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 42}}, {"id": 326, "type": "preproc_function_def", "text": "#define SM_DEFINE(_smName_, _instance_) \\\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\\n 0, 0, 0, 0 }; \n", "parent": 15, "children": [327, 328, 329, 332], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 101, "column": 0}}, {"id": 327, "type": "#define", "text": "#define", "parent": 326, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 7}}, {"id": 328, "type": "identifier", "text": "SM_DEFINE", "parent": 326, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 17}}, {"id": 329, "type": "preproc_params", "text": "(_smName_, _instance_)", "parent": 326, "children": [330, 331], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 39}}, {"id": 330, "type": "identifier", "text": "_smName_", "parent": 329, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 26}}, {"id": 331, "type": "identifier", "text": "_instance_", "parent": 329, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 38}}, {"id": 332, "type": "preproc_arg", "text": "SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\\n 0, 0, 0, 0 }; ", "parent": 326, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 100, "column": 22}}, {"id": 333, "type": "preproc_function_def", "text": "#define EVENT_DECLARE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n", "parent": 15, "children": [334, 335, 336, 339], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 104, "column": 0}}, {"id": 334, "type": "#define", "text": "#define", "parent": 333, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 335, "type": "identifier", "text": "EVENT_DECLARE", "parent": 333, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 21}}, {"id": 336, "type": "preproc_params", "text": "(_eventFunc_, _eventData_)", "parent": 333, "children": [337, 338], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 47}}, {"id": 337, "type": "identifier", "text": "_eventFunc_", "parent": 336, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 33}}, {"id": 338, "type": "identifier", "text": "_eventData_", "parent": 336, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 46}}, {"id": 339, "type": "preproc_arg", "text": "void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);", "parent": 333, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 69}}, {"id": 340, "type": "preproc_function_def", "text": "#define EVENT_DEFINE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n", "parent": 15, "children": [341, 342, 343, 346], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 107, "column": 0}}, {"id": 341, "type": "#define", "text": "#define", "parent": 340, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 342, "type": "identifier", "text": "EVENT_DEFINE", "parent": 340, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 20}}, {"id": 343, "type": "preproc_params", "text": "(_eventFunc_, _eventData_)", "parent": 340, "children": [344, 345], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 46}}, {"id": 344, "type": "identifier", "text": "_eventFunc_", "parent": 343, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 32}}, {"id": 345, "type": "identifier", "text": "_eventData_", "parent": 343, "children": [], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 45}}, {"id": 346, "type": "preproc_arg", "text": "void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)", "parent": 340, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 68}}, {"id": 347, "type": "preproc_function_def", "text": "#define STATE_DECLARE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n", "parent": 15, "children": [348, 349, 350, 353], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 110, "column": 0}}, {"id": 348, "type": "#define", "text": "#define", "parent": 347, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 7}}, {"id": 349, "type": "identifier", "text": "STATE_DECLARE", "parent": 347, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 21}}, {"id": 350, "type": "preproc_params", "text": "(_stateFunc_, _eventData_)", "parent": 347, "children": [351, 352], "start_point": {"row": 108, "column": 21}, "end_point": {"row": 108, "column": 47}}, {"id": 351, "type": "identifier", "text": "_stateFunc_", "parent": 350, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 33}}, {"id": 352, "type": "identifier", "text": "_eventData_", "parent": 350, "children": [], "start_point": {"row": 108, "column": 35}, "end_point": {"row": 108, "column": 46}}, {"id": 353, "type": "preproc_arg", "text": "static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);", "parent": 347, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 81}}, {"id": 354, "type": "preproc_function_def", "text": "#define STATE_DEFINE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n", "parent": 15, "children": [355, 356, 357, 360], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 113, "column": 0}}, {"id": 355, "type": "#define", "text": "#define", "parent": 354, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 7}}, {"id": 356, "type": "identifier", "text": "STATE_DEFINE", "parent": 354, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 20}}, {"id": 357, "type": "preproc_params", "text": "(_stateFunc_, _eventData_)", "parent": 354, "children": [358, 359], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 46}}, {"id": 358, "type": "identifier", "text": "_stateFunc_", "parent": 357, "children": [], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 32}}, {"id": 359, "type": "identifier", "text": "_eventData_", "parent": 357, "children": [], "start_point": {"row": 111, "column": 34}, "end_point": {"row": 111, "column": 45}}, {"id": 360, "type": "preproc_arg", "text": "static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)", "parent": 354, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 80}}, {"id": 361, "type": "preproc_function_def", "text": "#define GUARD_DECLARE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n", "parent": 15, "children": [362, 363, 364, 367], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 116, "column": 0}}, {"id": 362, "type": "#define", "text": "#define", "parent": 361, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 7}}, {"id": 363, "type": "identifier", "text": "GUARD_DECLARE", "parent": 361, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 21}}, {"id": 364, "type": "preproc_params", "text": "(_guardFunc_, _eventData_)", "parent": 361, "children": [365, 366], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 47}}, {"id": 365, "type": "identifier", "text": "_guardFunc_", "parent": 364, "children": [], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 33}}, {"id": 366, "type": "identifier", "text": "_eventData_", "parent": 364, "children": [], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 46}}, {"id": 367, "type": "preproc_arg", "text": "static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);", "parent": 361, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 81}}, {"id": 368, "type": "preproc_function_def", "text": "#define GUARD_DEFINE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n", "parent": 15, "children": [369, 370, 371, 374], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 119, "column": 0}}, {"id": 369, "type": "#define", "text": "#define", "parent": 368, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 370, "type": "identifier", "text": "GUARD_DEFINE", "parent": 368, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 20}}, {"id": 371, "type": "preproc_params", "text": "(_guardFunc_, _eventData_)", "parent": 368, "children": [372, 373], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 46}}, {"id": 372, "type": "identifier", "text": "_guardFunc_", "parent": 371, "children": [], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 32}}, {"id": 373, "type": "identifier", "text": "_eventData_", "parent": 371, "children": [], "start_point": {"row": 117, "column": 34}, "end_point": {"row": 117, "column": 45}}, {"id": 374, "type": "preproc_arg", "text": "static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)", "parent": 368, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 80}}, {"id": 375, "type": "preproc_function_def", "text": "#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n", "parent": 15, "children": [376, 377, 378, 381], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 122, "column": 0}}, {"id": 376, "type": "#define", "text": "#define", "parent": 375, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 7}}, {"id": 377, "type": "identifier", "text": "ENTRY_DECLARE", "parent": 375, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 21}}, {"id": 378, "type": "preproc_params", "text": "(_entryFunc_, _eventData_)", "parent": 375, "children": [379, 380], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 47}}, {"id": 379, "type": "identifier", "text": "_entryFunc_", "parent": 378, "children": [], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 33}}, {"id": 380, "type": "identifier", "text": "_eventData_", "parent": 378, "children": [], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 46}}, {"id": 381, "type": "preproc_arg", "text": "static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);", "parent": 375, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 81}}, {"id": 382, "type": "preproc_function_def", "text": "#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n", "parent": 15, "children": [383, 384, 385, 388], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 125, "column": 0}}, {"id": 383, "type": "#define", "text": "#define", "parent": 382, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 7}}, {"id": 384, "type": "identifier", "text": "ENTRY_DEFINE", "parent": 382, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 20}}, {"id": 385, "type": "preproc_params", "text": "(_entryFunc_, _eventData_)", "parent": 382, "children": [386, 387], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 46}}, {"id": 386, "type": "identifier", "text": "_entryFunc_", "parent": 385, "children": [], "start_point": {"row": 123, "column": 21}, "end_point": {"row": 123, "column": 32}}, {"id": 387, "type": "identifier", "text": "_eventData_", "parent": 385, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 45}}, {"id": 388, "type": "preproc_arg", "text": "static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)", "parent": 382, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 80}}, {"id": 389, "type": "preproc_function_def", "text": "#define EXIT_DECLARE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self);\n", "parent": 15, "children": [390, 391, 392, 394], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 128, "column": 0}}, {"id": 390, "type": "#define", "text": "#define", "parent": 389, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 7}}, {"id": 391, "type": "identifier", "text": "EXIT_DECLARE", "parent": 389, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 20}}, {"id": 392, "type": "preproc_params", "text": "(_exitFunc_)", "parent": 389, "children": [393], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 32}}, {"id": 393, "type": "identifier", "text": "_exitFunc_", "parent": 392, "children": [], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 31}}, {"id": 394, "type": "preproc_arg", "text": "static void EX_##_exitFunc_(SM_StateMachine* self);", "parent": 389, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 55}}, {"id": 395, "type": "preproc_function_def", "text": "#define EXIT_DEFINE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self)\n", "parent": 15, "children": [396, 397, 398, 400], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 131, "column": 0}}, {"id": 396, "type": "#define", "text": "#define", "parent": 395, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 7}}, {"id": 397, "type": "identifier", "text": "EXIT_DEFINE", "parent": 395, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 19}}, {"id": 398, "type": "preproc_params", "text": "(_exitFunc_)", "parent": 395, "children": [399], "start_point": {"row": 129, "column": 19}, "end_point": {"row": 129, "column": 31}}, {"id": 399, "type": "identifier", "text": "_exitFunc_", "parent": 398, "children": [], "start_point": {"row": 129, "column": 20}, "end_point": {"row": 129, "column": 30}}, {"id": 400, "type": "preproc_arg", "text": "static void EX_##_exitFunc_(SM_StateMachine* self)", "parent": 395, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 54}}, {"id": 401, "type": "preproc_function_def", "text": "#define BEGIN_STATE_MAP(_smName_) \\\n static const SM_StateStruct _smName_##StateMap[] = { \n", "parent": 15, "children": [402, 403, 404, 406], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 134, "column": 0}}, {"id": 402, "type": "#define", "text": "#define", "parent": 401, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 403, "type": "identifier", "text": "BEGIN_STATE_MAP", "parent": 401, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 23}}, {"id": 404, "type": "preproc_params", "text": "(_smName_)", "parent": 401, "children": [405], "start_point": {"row": 132, "column": 23}, "end_point": {"row": 132, "column": 33}}, {"id": 405, "type": "identifier", "text": "_smName_", "parent": 404, "children": [], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 32}}, {"id": 406, "type": "preproc_arg", "text": "static const SM_StateStruct _smName_##StateMap[] = { ", "parent": 401, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 57}}, {"id": 407, "type": "preproc_function_def", "text": "#define STATE_MAP_ENTRY(_stateFunc_) \\\n { _stateFunc_ },\n", "parent": 15, "children": [408, 409, 410, 412], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 137, "column": 0}}, {"id": 408, "type": "#define", "text": "#define", "parent": 407, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 7}}, {"id": 409, "type": "identifier", "text": "STATE_MAP_ENTRY", "parent": 407, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 23}}, {"id": 410, "type": "preproc_params", "text": "(_stateFunc_)", "parent": 407, "children": [411], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 36}}, {"id": 411, "type": "identifier", "text": "_stateFunc_", "parent": 410, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 35}}, {"id": 412, "type": "preproc_arg", "text": "{ _stateFunc_ },", "parent": 407, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 20}}, {"id": 413, "type": "preproc_function_def", "text": "#define END_STATE_MAP(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n _smName_##StateMap, NULL };\n", "parent": 15, "children": [414, 415, 416, 418], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 143, "column": 0}}, {"id": 414, "type": "#define", "text": "#define", "parent": 413, "children": [], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 138, "column": 7}}, {"id": 415, "type": "identifier", "text": "END_STATE_MAP", "parent": 413, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 21}}, {"id": 416, "type": "preproc_params", "text": "(_smName_)", "parent": 413, "children": [417], "start_point": {"row": 138, "column": 21}, "end_point": {"row": 138, "column": 31}}, {"id": 417, "type": "identifier", "text": "_smName_", "parent": 416, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 30}}, {"id": 418, "type": "preproc_arg", "text": "}; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n _smName_##StateMap, NULL };", "parent": 413, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 142, "column": 35}}, {"id": 419, "type": "preproc_function_def", "text": "#define BEGIN_STATE_MAP_EX(_smName_) \\\n static const SM_StateStructEx _smName_##StateMap[] = { \n", "parent": 15, "children": [420, 421, 422, 424], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 146, "column": 0}}, {"id": 420, "type": "#define", "text": "#define", "parent": 419, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 7}}, {"id": 421, "type": "identifier", "text": "BEGIN_STATE_MAP_EX", "parent": 419, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 26}}, {"id": 422, "type": "preproc_params", "text": "(_smName_)", "parent": 419, "children": [423], "start_point": {"row": 144, "column": 26}, "end_point": {"row": 144, "column": 36}}, {"id": 423, "type": "identifier", "text": "_smName_", "parent": 422, "children": [], "start_point": {"row": 144, "column": 27}, "end_point": {"row": 144, "column": 35}}, {"id": 424, "type": "preproc_arg", "text": "static const SM_StateStructEx _smName_##StateMap[] = { ", "parent": 419, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 59}}, {"id": 425, "type": "preproc_function_def", "text": "#define STATE_MAP_ENTRY_EX(_stateFunc_) \\\n { _stateFunc_, NULL, NULL, NULL },\n", "parent": 15, "children": [426, 427, 428, 430], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 149, "column": 0}}, {"id": 426, "type": "#define", "text": "#define", "parent": 425, "children": [], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 147, "column": 7}}, {"id": 427, "type": "identifier", "text": "STATE_MAP_ENTRY_EX", "parent": 425, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 26}}, {"id": 428, "type": "preproc_params", "text": "(_stateFunc_)", "parent": 425, "children": [429], "start_point": {"row": 147, "column": 26}, "end_point": {"row": 147, "column": 39}}, {"id": 429, "type": "identifier", "text": "_stateFunc_", "parent": 428, "children": [], "start_point": {"row": 147, "column": 27}, "end_point": {"row": 147, "column": 38}}, {"id": 430, "type": "preproc_arg", "text": "{ _stateFunc_, NULL, NULL, NULL },", "parent": 425, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 38}}, {"id": 431, "type": "preproc_function_def", "text": "#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n", "parent": 15, "children": [432, 433, 434, 439], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 152, "column": 0}}, {"id": 432, "type": "#define", "text": "#define", "parent": 431, "children": [], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 150, "column": 7}}, {"id": 433, "type": "identifier", "text": "STATE_MAP_ENTRY_ALL_EX", "parent": 431, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 30}}, {"id": 434, "type": "preproc_params", "text": "(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_)", "parent": 431, "children": [435, 436, 437, 438], "start_point": {"row": 150, "column": 30}, "end_point": {"row": 150, "column": 81}}, {"id": 435, "type": "identifier", "text": "_stateFunc_", "parent": 434, "children": [], "start_point": {"row": 150, "column": 31}, "end_point": {"row": 150, "column": 42}}, {"id": 436, "type": "identifier", "text": "_guardFunc_", "parent": 434, "children": [], "start_point": {"row": 150, "column": 44}, "end_point": {"row": 150, "column": 55}}, {"id": 437, "type": "identifier", "text": "_entryFunc_", "parent": 434, "children": [], "start_point": {"row": 150, "column": 57}, "end_point": {"row": 150, "column": 68}}, {"id": 438, "type": "identifier", "text": "_exitFunc_", "parent": 434, "children": [], "start_point": {"row": 150, "column": 70}, "end_point": {"row": 150, "column": 80}}, {"id": 439, "type": "preproc_arg", "text": "{ _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },", "parent": 431, "children": [], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 58}}, {"id": 440, "type": "preproc_function_def", "text": "#define END_STATE_MAP_EX(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n NULL, _smName_##StateMap };\n", "parent": 15, "children": [441, 442, 443, 445], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 158, "column": 0}}, {"id": 441, "type": "#define", "text": "#define", "parent": 440, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 7}}, {"id": 442, "type": "identifier", "text": "END_STATE_MAP_EX", "parent": 440, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 24}}, {"id": 443, "type": "preproc_params", "text": "(_smName_)", "parent": 440, "children": [444], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 34}}, {"id": 444, "type": "identifier", "text": "_smName_", "parent": 443, "children": [], "start_point": {"row": 153, "column": 25}, "end_point": {"row": 153, "column": 33}}, {"id": 445, "type": "preproc_arg", "text": "}; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n NULL, _smName_##StateMap };", "parent": 440, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 157, "column": 35}}, {"id": 446, "type": "preproc_def", "text": "#define BEGIN_TRANSITION_MAP \\\n static const BYTE TRANSITIONS[] = { \\\n\n", "parent": 15, "children": [447, 448, 449], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 162, "column": 0}}, {"id": 447, "type": "#define", "text": "#define", "parent": 446, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 7}}, {"id": 448, "type": "identifier", "text": "BEGIN_TRANSITION_MAP", "parent": 446, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 28}}, {"id": 449, "type": "preproc_arg", "text": "static const BYTE TRANSITIONS[] = { \\\n", "parent": 446, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 161, "column": 0}}, {"id": 450, "type": "preproc_function_def", "text": "#define TRANSITION_MAP_ENTRY(_entry_) \\\n _entry_,\n", "parent": 15, "children": [451, 452, 453, 455], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 164, "column": 0}}, {"id": 451, "type": "#define", "text": "#define", "parent": 450, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 7}}, {"id": 452, "type": "identifier", "text": "TRANSITION_MAP_ENTRY", "parent": 450, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 28}}, {"id": 453, "type": "preproc_params", "text": "(_entry_)", "parent": 450, "children": [454], "start_point": {"row": 162, "column": 28}, "end_point": {"row": 162, "column": 37}}, {"id": 454, "type": "identifier", "text": "_entry_", "parent": 453, "children": [], "start_point": {"row": 162, "column": 29}, "end_point": {"row": 162, "column": 36}}, {"id": 455, "type": "preproc_arg", "text": "_entry_,", "parent": 450, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 12}}, {"id": 456, "type": "preproc_function_def", "text": "#define END_TRANSITION_MAP(_smName_, _eventData_) \\\n }; \\\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n", "parent": 15, "children": [457, 458, 459, 462], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 169, "column": 0}}, {"id": 457, "type": "#define", "text": "#define", "parent": 456, "children": [], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 7}}, {"id": 458, "type": "identifier", "text": "END_TRANSITION_MAP", "parent": 456, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 26}}, {"id": 459, "type": "preproc_params", "text": "(_smName_, _eventData_)", "parent": 456, "children": [460, 461], "start_point": {"row": 165, "column": 26}, "end_point": {"row": 165, "column": 49}}, {"id": 460, "type": "identifier", "text": "_smName_", "parent": 459, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 35}}, {"id": 461, "type": "identifier", "text": "_eventData_", "parent": 459, "children": [], "start_point": {"row": 165, "column": 37}, "end_point": {"row": 165, "column": 48}}, {"id": 462, "type": "preproc_arg", "text": "}; \\\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));", "parent": 456, "children": [], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 168, "column": 111}}, {"id": 463, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 15, "children": [464, 465, 466], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 18}}, {"id": 464, "type": "#ifdef", "text": "#ifdef", "parent": 463, "children": [], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 6}}, {"id": 465, "type": "identifier", "text": "__cplusplus", "parent": 463, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 18}}, {"id": 466, "type": "#endif", "text": "", "parent": 463, "children": [], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 18}}, {"id": 467, "type": "#endif", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 6}}, {"id": 468, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 6}}]}, "node_categories": {"declarations": {"functions": [29, 35, 46, 52, 133, 152, 171, 190, 228, 236, 243, 251, 274, 292, 307, 320, 326, 333, 340, 347, 354, 361, 368, 375, 382, 389, 395, 401, 407, 413, 419, 425, 431, 440, 450, 456], "variables": [70, 74, 78, 83, 86, 93, 101, 105, 110, 115, 118, 121, 124, 130, 139, 144, 149, 158, 163, 168, 177, 182, 187, 196, 201, 206, 210, 215, 218, 221, 224, 249, 254, 259, 264, 267, 272, 277, 282, 285, 290, 295, 300, 305, 310, 315], "classes": [76, 77, 87, 88, 94, 95, 103, 104, 203, 204, 212, 213], "imports": [6, 7, 9, 10, 26, 27, 43, 44], "modules": [], "enums": [59, 60, 61, 62, 66]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 13, 14, 15, 22, 23, 24, 25, 31, 33, 37, 39, 48, 50, 54, 56, 58, 63, 67, 73, 79, 82, 84, 85, 89, 92, 96, 99, 100, 106, 109, 114, 116, 117, 119, 120, 122, 123, 128, 129, 137, 140, 143, 148, 151, 156, 159, 162, 167, 175, 178, 181, 186, 194, 197, 200, 205, 207, 208, 209, 214, 216, 217, 219, 220, 222, 223, 225, 226, 227, 230, 232, 233, 234, 238, 240, 241, 245, 247, 252, 255, 258, 260, 263, 265, 266, 271, 275, 278, 281, 283, 284, 289, 293, 296, 299, 301, 304, 308, 311, 314, 316, 319, 322, 324, 328, 330, 331, 335, 337, 338, 342, 344, 345, 349, 351, 352, 356, 358, 359, 363, 365, 366, 370, 372, 373, 377, 379, 380, 384, 386, 387, 391, 393, 397, 399, 403, 405, 409, 411, 415, 417, 421, 423, 427, 429, 433, 435, 436, 437, 438, 442, 444, 448, 452, 454, 458, 460, 461, 463, 464, 465, 466, 467, 468], "returns": [], "exceptions": []}, "expressions": {"calls": [18], "literals": [8, 11, 17, 28, 45, 65, 69], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_XAlloc(size) SMALLOC_Alloc(size)\n"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_XFree(ptr) SMALLOC_Free(ptr)\n"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_XAlloc(size) malloc(size)\n"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_XFree(ptr) free(ptr)\n"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "(*SM_StateFunc)(SM_StateMachine* self, void* pEventData)"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "(*SM_GuardFunc)(SM_StateMachine* self, void* pEventData)"}, {"node_id": 171, "universal_type": "function", "name": "unknown", "text_snippet": "(*SM_EntryFunc)(SM_StateMachine* self, void* pEventData)"}, {"node_id": 190, "universal_type": "function", "name": "unknown", "text_snippet": "(*SM_ExitFunc)(SM_StateMachine* self)"}, {"node_id": 228, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_Event(_smName_, _eventFunc_, _eventData_) \\\n _eventFunc_(&_smName_##Obj, _eventData_)\n"}, {"node_id": 236, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_InternalEvent(_newState_, _eventData_) \\\n _SM_InternalEvent(self, _newState_, _eventDa"}, {"node_id": 243, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_GetInstance(_instance_) \\\n (_instance_*)(self->pInstance);\n"}, {"node_id": 251, "universal_type": "function", "name": "unknown", "text_snippet": "_SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void*"}, {"node_id": 274, "universal_type": "function", "name": "unknown", "text_snippet": "_SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData)"}, {"node_id": 292, "universal_type": "function", "name": "unknown", "text_snippet": "_SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst)"}, {"node_id": 307, "universal_type": "function", "name": "unknown", "text_snippet": "_SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst)"}, {"node_id": 320, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_DECLARE(_smName_) \\\n extern SM_StateMachine _smName_##Obj; \n"}, {"node_id": 326, "universal_type": "function", "name": "unknown", "text_snippet": "#define SM_DEFINE(_smName_, _instance_) \\\n SM_StateMachine _smName_##Obj = { #_smName_, _instance"}, {"node_id": 333, "universal_type": "function", "name": "_eventFunc_", "text_snippet": "#define EVENT_DECLARE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _event"}, {"node_id": 340, "universal_type": "function", "name": "_eventFunc_", "text_snippet": "#define EVENT_DEFINE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventD"}, {"node_id": 347, "universal_type": "function", "name": "ST_##_stateFunc_", "text_snippet": "#define STATE_DECLARE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* "}, {"node_id": 354, "universal_type": "function", "name": "ST_##_stateFunc_", "text_snippet": "#define STATE_DEFINE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* s"}, {"node_id": 361, "universal_type": "function", "name": "unknown", "text_snippet": "#define GUARD_DECLARE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* "}, {"node_id": 368, "universal_type": "function", "name": "unknown", "text_snippet": "#define GUARD_DEFINE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* s"}, {"node_id": 375, "universal_type": "function", "name": "EN_##_entryFunc_", "text_snippet": "#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* "}, {"node_id": 382, "universal_type": "function", "name": "EN_##_entryFunc_", "text_snippet": "#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* s"}, {"node_id": 389, "universal_type": "function", "name": "EX_##_exitFunc_", "text_snippet": "#define EXIT_DECLARE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self);\n"}, {"node_id": 395, "universal_type": "function", "name": "EX_##_exitFunc_", "text_snippet": "#define EXIT_DEFINE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self)\n"}, {"node_id": 401, "universal_type": "function", "name": "unknown", "text_snippet": "#define BEGIN_STATE_MAP(_smName_) \\\n static const SM_StateStruct _smName_##StateMap[] = { \n"}, {"node_id": 407, "universal_type": "function", "name": "unknown", "text_snippet": "#define STATE_MAP_ENTRY(_stateFunc_) \\\n { _stateFunc_ },\n"}, {"node_id": 413, "universal_type": "function", "name": "unknown", "text_snippet": "#define END_STATE_MAP(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = {"}, {"node_id": 419, "universal_type": "function", "name": "unknown", "text_snippet": "#define BEGIN_STATE_MAP_EX(_smName_) \\\n static const SM_StateStructEx _smName_##StateMap[] = { \n"}, {"node_id": 425, "universal_type": "function", "name": "unknown", "text_snippet": "#define STATE_MAP_ENTRY_EX(_stateFunc_) \\\n { _stateFunc_, NULL, NULL, NULL },\n"}, {"node_id": 431, "universal_type": "function", "name": "unknown", "text_snippet": "#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\\n { _stateFunc"}, {"node_id": 440, "universal_type": "function", "name": "unknown", "text_snippet": "#define END_STATE_MAP_EX(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const "}, {"node_id": 450, "universal_type": "function", "name": "unknown", "text_snippet": "#define TRANSITION_MAP_ENTRY(_entry_) \\\n _entry_,\n"}, {"node_id": 456, "universal_type": "function", "name": "unknown", "text_snippet": "#define END_TRANSITION_MAP(_smName_, _eventData_) \\\n }; \\\n _SM_ExternalEvent(self, &_smName_##"}], "class_declarations": [{"node_id": 76, "universal_type": "class", "name": "{", "text_snippet": "struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n"}, {"node_id": 77, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "SM_StateStruct", "text_snippet": "struct SM_StateStruct"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 94, "universal_type": "class", "name": "SM_StateStructEx", "text_snippet": "struct SM_StateStructEx"}, {"node_id": 95, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 103, "universal_type": "class", "name": "{", "text_snippet": "struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n B"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 203, "universal_type": "class", "name": "SM_StateStruct", "text_snippet": "struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n}"}, {"node_id": 204, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 212, "universal_type": "class", "name": "SM_StateStructEx", "text_snippet": "struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc"}, {"node_id": 213, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"DataTypes.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Fault.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 26, "text": "#include \"sm_allocator.h\"\n"}, {"node_id": 27, "text": "#include"}, {"node_id": 43, "text": "#include <stdlib.h>\n"}, {"node_id": 44, "text": "#include"}]}, "original_source_code": "// https://www.codeproject.com/Articles/1275479/State-Machine-Design-in-C\n//\n// The StateMachine module is a C language implementation of a finite state \n// machine (FSM).\n//\n// All event data must be created dynamically using SM_XAlloc. Use a fixed \n// block allocator or the heap as desired. \n//\n// The standard version (non-EX) supports state and event functions. The \n// extended version (EX) supports the additional guard, entry and exit state\n// machine features. \n//\n// Macros are used to assist in creating the state machine machinery. \n\n#ifndef _STATE_MACHINE_H\n#define _STATE_MACHINE_H\n\n#include \"DataTypes.h\"\n#include \"Fault.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n// Define USE_SM_ALLOCATOR to use the fixed block allocator instead of heap\n#define USE_SM_ALLOCATOR\n#ifdef USE_SM_ALLOCATOR\n #include \"sm_allocator.h\"\n #define SM_XAlloc(size) SMALLOC_Alloc(size)\n #define SM_XFree(ptr) SMALLOC_Free(ptr)\n#else\n #include <stdlib.h>\n #define SM_XAlloc(size) malloc(size)\n #define SM_XFree(ptr) free(ptr)\n#endif\n\nenum { EVENT_IGNORED = 0xFE, CANNOT_HAPPEN = 0xFF };\n\ntypedef void NoEventData;\n\n// State machine constant data\ntypedef struct\n{\n const CHAR* name;\n const BYTE maxStates;\n const struct SM_StateStruct* stateMap;\n const struct SM_StateStructEx* stateMapEx;\n} SM_StateMachineConst;\n\n// State machine instance data\ntypedef struct \n{\n const CHAR* name;\n void* pInstance;\n BYTE newState;\n BYTE currentState;\n BOOL eventGenerated;\n void* pEventData;\n} SM_StateMachine;\n\n// Generic state function signatures\ntypedef void (*SM_StateFunc)(SM_StateMachine* self, void* pEventData);\ntypedef BOOL (*SM_GuardFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_EntryFunc)(SM_StateMachine* self, void* pEventData);\ntypedef void (*SM_ExitFunc)(SM_StateMachine* self);\n\ntypedef struct SM_StateStruct\n{\n SM_StateFunc pStateFunc;\n} SM_StateStruct;\n\ntypedef struct SM_StateStructEx\n{\n SM_StateFunc pStateFunc;\n SM_GuardFunc pGuardFunc;\n SM_EntryFunc pEntryFunc;\n SM_ExitFunc pExitFunc;\n} SM_StateStructEx;\n\n// Public functions\n#define SM_Event(_smName_, _eventFunc_, _eventData_) \\\n _eventFunc_(&_smName_##Obj, _eventData_)\n\n// Protected functions\n#define SM_InternalEvent(_newState_, _eventData_) \\\n _SM_InternalEvent(self, _newState_, _eventData_)\n#define SM_GetInstance(_instance_) \\\n (_instance_*)(self->pInstance);\n\n// Private functions\nvoid _SM_ExternalEvent(SM_StateMachine* self, const SM_StateMachineConst* selfConst, BYTE newState, void* pEventData);\nvoid _SM_InternalEvent(SM_StateMachine* self, BYTE newState, void* pEventData);\nvoid _SM_StateEngine(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\nvoid _SM_StateEngineEx(SM_StateMachine* self, const SM_StateMachineConst* selfConst);\n\n#define SM_DECLARE(_smName_) \\\n extern SM_StateMachine _smName_##Obj; \n\n#define SM_DEFINE(_smName_, _instance_) \\\n SM_StateMachine _smName_##Obj = { #_smName_, _instance_, \\\n 0, 0, 0, 0 }; \n\n#define EVENT_DECLARE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define EVENT_DEFINE(_eventFunc_, _eventData_) \\\n void _eventFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define STATE_DECLARE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define STATE_DEFINE(_stateFunc_, _eventData_) \\\n static void ST_##_stateFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define GUARD_DECLARE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define GUARD_DEFINE(_guardFunc_, _eventData_) \\\n static BOOL GD_##_guardFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define ENTRY_DECLARE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData);\n\n#define ENTRY_DEFINE(_entryFunc_, _eventData_) \\\n static void EN_##_entryFunc_(SM_StateMachine* self, _eventData_* pEventData)\n\n#define EXIT_DECLARE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self);\n\n#define EXIT_DEFINE(_exitFunc_) \\\n static void EX_##_exitFunc_(SM_StateMachine* self)\n\n#define BEGIN_STATE_MAP(_smName_) \\\n static const SM_StateStruct _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY(_stateFunc_) \\\n { _stateFunc_ },\n\n#define END_STATE_MAP(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n _smName_##StateMap, NULL };\n\n#define BEGIN_STATE_MAP_EX(_smName_) \\\n static const SM_StateStructEx _smName_##StateMap[] = { \n\n#define STATE_MAP_ENTRY_EX(_stateFunc_) \\\n { _stateFunc_, NULL, NULL, NULL },\n\n#define STATE_MAP_ENTRY_ALL_EX(_stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_) \\\n { _stateFunc_, _guardFunc_, _entryFunc_, _exitFunc_ },\n\n#define END_STATE_MAP_EX(_smName_) \\\n }; \\\n static const SM_StateMachineConst _smName_##Const = { #_smName_, \\\n (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])), \\\n NULL, _smName_##StateMap };\n\n#define BEGIN_TRANSITION_MAP \\\n static const BYTE TRANSITIONS[] = { \\\n\n#define TRANSITION_MAP_ENTRY(_entry_) \\\n _entry_,\n\n#define END_TRANSITION_MAP(_smName_, _eventData_) \\\n }; \\\n _SM_ExternalEvent(self, &_smName_##Const, TRANSITIONS[self->currentState], _eventData_); \\\n C_ASSERT((sizeof(TRANSITIONS)/sizeof(BYTE)) == (sizeof(_smName_##StateMap)/sizeof(_smName_##StateMap[0])));\n\n#ifdef __cplusplus\n}\n#endif\n \n#endif // _STATE_MACHINE_H"}
80,857
c
/*===============================================================================================*/ /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ /*! @file azx_spi_flash_types.h @brief Project: SPI data flash @details @version 1.0.0 @note @author <NAME> @note File created on: Apr 08, 2020 */ #ifndef AZX_SPI_FLASH_TYPES_H #define AZX_SPI_FLASH_TYPES_H /********JSC TYPE DEFINITION************/ typedef unsigned char JSC_uint8; typedef unsigned short JSC_uint16; typedef unsigned int JSC_uint32; typedef unsigned long long JSC_uint64; typedef signed int JSC_int32; typedef char JSC_char; typedef int JSC_bool; typedef long long JSC_loff_t; typedef unsigned int JSC_size_t; typedef void *JSC_HANDLE; #ifndef NULL #define NULL 0 #endif #ifndef true #define true 1 #endif #ifndef false #define false 0 #endif #endif /* AZX_SPI_FLASH_TYPES_H */
23.4
40
(translation_unit) "/*===============================================================================================*/\n/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */\n/*!\n @file\n azx_spi_flash_types.h\n\n @brief\n Project: SPI data flash\n\n @details\n\n @version\n 1.0.0\n\n @note\n\n @author\n <NAME>\n\n @note\n File created on: Apr 08, 2020\n*/\n\n\n#ifndef AZX_SPI_FLASH_TYPES_H\n#define AZX_SPI_FLASH_TYPES_H\n\n/********JSC TYPE DEFINITION************/\ntypedef unsigned char JSC_uint8;\ntypedef unsigned short JSC_uint16;\ntypedef unsigned int JSC_uint32;\ntypedef unsigned long long JSC_uint64;\n\ntypedef signed int JSC_int32;\ntypedef char JSC_char;\ntypedef int JSC_bool;\n\ntypedef long long JSC_loff_t;\ntypedef unsigned int JSC_size_t;\n\ntypedef void *JSC_HANDLE;\n\n#ifndef NULL\n #define NULL 0\n#endif\n\n#ifndef true\n #define true 1\n#endif\n\n#ifndef false\n #define false 0\n#endif\n\n#endif /* AZX_SPI_FLASH_TYPES_H */\n" (comment) "/*===============================================================================================*/" (comment) "/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */" (comment) "/*!\n @file\n azx_spi_flash_types.h\n\n @brief\n Project: SPI data flash\n\n @details\n\n @version\n 1.0.0\n\n @note\n\n @author\n <NAME>\n\n @note\n File created on: Apr 08, 2020\n*/" (preproc_ifdef) "#ifndef AZX_SPI_FLASH_TYPES_H\n#define AZX_SPI_FLASH_TYPES_H\n\n/********JSC TYPE DEFINITION************/\ntypedef unsigned char JSC_uint8;\ntypedef unsigned short JSC_uint16;\ntypedef unsigned int JSC_uint32;\ntypedef unsigned long long JSC_uint64;\n\ntypedef signed int JSC_int32;\ntypedef char JSC_char;\ntypedef int JSC_bool;\n\ntypedef long long JSC_loff_t;\ntypedef unsigned int JSC_size_t;\n\ntypedef void *JSC_HANDLE;\n\n#ifndef NULL\n #define NULL 0\n#endif\n\n#ifndef true\n #define true 1\n#endif\n\n#ifndef false\n #define false 0\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "AZX_SPI_FLASH_TYPES_H" (preproc_def) "#define AZX_SPI_FLASH_TYPES_H\n" (#define) "#define" (identifier) "AZX_SPI_FLASH_TYPES_H" (comment) "/********JSC TYPE DEFINITION************/" (type_definition) "typedef unsigned char JSC_uint8;" (typedef) "typedef" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (type_identifier) "JSC_uint8" (;) ";" (type_definition) "typedef unsigned short JSC_uint16;" (typedef) "typedef" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (type_identifier) "JSC_uint16" (;) ";" (type_definition) "typedef unsigned int JSC_uint32;" (typedef) "typedef" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (type_identifier) "JSC_uint32" (;) ";" (type_definition) "typedef unsigned long long JSC_uint64;" (typedef) "typedef" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (type_identifier) "JSC_uint64" (;) ";" (type_definition) "typedef signed int JSC_int32;" (typedef) "typedef" (sized_type_specifier) "signed int" (signed) "signed" (primitive_type) "int" (type_identifier) "JSC_int32" (;) ";" (type_definition) "typedef char JSC_char;" (typedef) "typedef" (primitive_type) "char" (type_identifier) "JSC_char" (;) ";" (type_definition) "typedef int JSC_bool;" (typedef) "typedef" (primitive_type) "int" (type_identifier) "JSC_bool" (;) ";" (type_definition) "typedef long long JSC_loff_t;" (typedef) "typedef" (sized_type_specifier) "long long" (long) "long" (long) "long" (type_identifier) "JSC_loff_t" (;) ";" (type_definition) "typedef unsigned int JSC_size_t;" (typedef) "typedef" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (type_identifier) "JSC_size_t" (;) ";" (type_definition) "typedef void *JSC_HANDLE;" (typedef) "typedef" (primitive_type) "void" (pointer_declarator) "*JSC_HANDLE" (*) "*" (type_identifier) "JSC_HANDLE" (;) ";" (preproc_ifdef) "#ifndef NULL\n #define NULL 0\n#endif" (#ifndef) "#ifndef" (identifier) "NULL" (preproc_def) "#define NULL 0\n" (#define) "#define" (identifier) "NULL" (preproc_arg) "0" (#endif) "#endif" (preproc_ifdef) "#ifndef true\n #define true 1\n#endif" (#ifndef) "#ifndef" (identifier) "true" (preproc_def) "#define true 1\n" (#define) "#define" (identifier) "true" (preproc_arg) "1" (#endif) "#endif" (preproc_ifdef) "#ifndef false\n #define false 0\n#endif" (#ifndef) "#ifndef" (identifier) "false" (preproc_def) "#define false 0\n" (#define) "#define" (identifier) "false" (preproc_arg) "0" (#endif) "#endif" (#endif) "#endif" (comment) "/* AZX_SPI_FLASH_TYPES_H */"
104
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 23.4, "nodes": 88, "errors": 0, "source_hash": "e6e8b9383781da690d46b5ae9979a06ef860fdec01ce99930c18e29a80d14f3a", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef AZX_SPI_FLASH_TYPES_H\n#define AZX_SPI_FLASH_TYPES_H\n\n/********JSC TYPE DEFINITION************/\ntypedef unsigned char \t\tJSC_uint8;\ntypedef unsigned short \t\tJSC_uint16;\ntypedef unsigned int \t\tJSC_uint32;\ntypedef unsigned long long \tJSC_uint64;\n\ntypedef signed int\t\t\tJSC_int32;\ntypedef char \t\t\t\tJSC_char;\ntypedef int \t\t\t\tJSC_bool;\n\ntypedef long long \t\t\tJSC_loff_t;\ntypedef unsigned int \t\tJSC_size_t;\n\ntypedef void *JSC_HANDLE;\n\n#ifndef NULL\n\t#define NULL 0\n#endif\n\n#ifndef true\n\t#define true 1\n#endif\n\n#ifndef false\n\t#define false 0\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 12, 18, 24, 31, 37, 41, 45, 51, 57, 63, 71, 79, 87], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 2, "type": "identifier", "text": "AZX_SPI_FLASH_TYPES_H", "parent": 0, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define AZX_SPI_FLASH_TYPES_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 5, "type": "identifier", "text": "AZX_SPI_FLASH_TYPES_H", "parent": 3, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 29}}, {"id": 6, "type": "type_definition", "text": "typedef unsigned char \t\tJSC_uint8;", "parent": 0, "children": [7, 8, 11], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 34}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 8, "type": "sized_type_specifier", "text": "unsigned char", "parent": 6, "children": [9, 10], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 9, "type": "unsigned", "text": "unsigned", "parent": 8, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 16}}, {"id": 10, "type": "primitive_type", "text": "char", "parent": 8, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 21}}, {"id": 11, "type": "type_identifier", "text": "JSC_uint8", "parent": 6, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 33}}, {"id": 12, "type": "type_definition", "text": "typedef unsigned short \t\tJSC_uint16;", "parent": 0, "children": [13, 14, 17], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 36}}, {"id": 13, "type": "typedef", "text": "typedef", "parent": 12, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 14, "type": "sized_type_specifier", "text": "unsigned short", "parent": 12, "children": [15, 16], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 22}}, {"id": 15, "type": "unsigned", "text": "unsigned", "parent": 14, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 16}}, {"id": 16, "type": "short", "text": "short", "parent": 14, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 22}}, {"id": 17, "type": "type_identifier", "text": "JSC_uint16", "parent": 12, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 35}}, {"id": 18, "type": "type_definition", "text": "typedef unsigned int \t\tJSC_uint32;", "parent": 0, "children": [19, 20, 23], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 34}}, {"id": 19, "type": "typedef", "text": "typedef", "parent": 18, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 20, "type": "sized_type_specifier", "text": "unsigned int", "parent": 18, "children": [21, 22], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 20}}, {"id": 21, "type": "unsigned", "text": "unsigned", "parent": 20, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 16}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 20}}, {"id": 23, "type": "type_identifier", "text": "JSC_uint32", "parent": 18, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 33}}, {"id": 24, "type": "type_definition", "text": "typedef unsigned long long \tJSC_uint64;", "parent": 0, "children": [25, 26, 30], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 39}}, {"id": 25, "type": "typedef", "text": "typedef", "parent": 24, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 26, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 24, "children": [27, 28, 29], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 26}}, {"id": 27, "type": "unsigned", "text": "unsigned", "parent": 26, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 16}}, {"id": 28, "type": "long", "text": "long", "parent": 26, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 21}}, {"id": 29, "type": "long", "text": "long", "parent": 26, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 26}}, {"id": 30, "type": "type_identifier", "text": "JSC_uint64", "parent": 24, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 38}}, {"id": 31, "type": "type_definition", "text": "typedef signed int\t\t\tJSC_int32;", "parent": 0, "children": [32, 33, 36], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 31}}, {"id": 32, "type": "typedef", "text": "typedef", "parent": 31, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 33, "type": "sized_type_specifier", "text": "signed int", "parent": 31, "children": [34, 35], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 18}}, {"id": 34, "type": "signed", "text": "signed", "parent": 33, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 14}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 18}}, {"id": 36, "type": "type_identifier", "text": "JSC_int32", "parent": 31, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 30}}, {"id": 37, "type": "type_definition", "text": "typedef char \t\t\t\tJSC_char;", "parent": 0, "children": [38, 39, 40], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 27}}, {"id": 38, "type": "typedef", "text": "typedef", "parent": 37, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 39, "type": "primitive_type", "text": "char", "parent": 37, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 12}}, {"id": 40, "type": "type_identifier", "text": "JSC_char", "parent": 37, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 26}}, {"id": 41, "type": "type_definition", "text": "typedef int \t\t\t\tJSC_bool;", "parent": 0, "children": [42, 43, 44], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 25}}, {"id": 42, "type": "typedef", "text": "typedef", "parent": 41, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 11}}, {"id": 44, "type": "type_identifier", "text": "JSC_bool", "parent": 41, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 24}}, {"id": 45, "type": "type_definition", "text": "typedef long long \t\t\tJSC_loff_t;", "parent": 0, "children": [46, 47, 50], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 32}}, {"id": 46, "type": "typedef", "text": "typedef", "parent": 45, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 47, "type": "sized_type_specifier", "text": "long long", "parent": 45, "children": [48, 49], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 17}}, {"id": 48, "type": "long", "text": "long", "parent": 47, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 12}}, {"id": 49, "type": "long", "text": "long", "parent": 47, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 17}}, {"id": 50, "type": "type_identifier", "text": "JSC_loff_t", "parent": 45, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 31}}, {"id": 51, "type": "type_definition", "text": "typedef unsigned int \t\tJSC_size_t;", "parent": 0, "children": [52, 53, 56], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 34}}, {"id": 52, "type": "typedef", "text": "typedef", "parent": 51, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 53, "type": "sized_type_specifier", "text": "unsigned int", "parent": 51, "children": [54, 55], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 20}}, {"id": 54, "type": "unsigned", "text": "unsigned", "parent": 53, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 16}}, {"id": 55, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 20}}, {"id": 56, "type": "type_identifier", "text": "JSC_size_t", "parent": 51, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 33}}, {"id": 57, "type": "type_definition", "text": "typedef void *JSC_HANDLE;", "parent": 0, "children": [58, 59, 60], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 40}}, {"id": 58, "type": "typedef", "text": "typedef", "parent": 57, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 59, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 60, "type": "pointer_declarator", "text": "*JSC_HANDLE", "parent": 57, "children": [61, 62], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 39}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 29}}, {"id": 62, "type": "type_identifier", "text": "JSC_HANDLE", "parent": 60, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 39}}, {"id": 63, "type": "preproc_ifdef", "text": "#ifndef NULL\n\t#define NULL 0\n#endif", "parent": 0, "children": [64, 65, 66, 70], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 64, "type": "#ifndef", "text": "#ifndef", "parent": 63, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 65, "type": "identifier", "text": "NULL", "parent": 63, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 66, "type": "preproc_def", "text": "#define NULL 0\n", "parent": 63, "children": [67, 68, 69], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 44, "column": 0}}, {"id": 67, "type": "#define", "text": "#define", "parent": 66, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 68, "type": "identifier", "text": "NULL", "parent": 66, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 13}}, {"id": 69, "type": "preproc_arg", "text": "0", "parent": 66, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 70, "type": "#endif", "text": "#endif", "parent": 63, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 6}}, {"id": 71, "type": "preproc_ifdef", "text": "#ifndef true\n\t#define true 1\n#endif", "parent": 0, "children": [72, 73, 74, 78], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 72, "type": "#ifndef", "text": "#ifndef", "parent": 71, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 73, "type": "identifier", "text": "true", "parent": 71, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 12}}, {"id": 74, "type": "preproc_def", "text": "#define true 1\n", "parent": 71, "children": [75, 76, 77], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 48, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 8}}, {"id": 76, "type": "identifier", "text": "true", "parent": 74, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 13}}, {"id": 77, "type": "preproc_arg", "text": "1", "parent": 74, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 78, "type": "#endif", "text": "#endif", "parent": 71, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 79, "type": "preproc_ifdef", "text": "#ifndef false\n\t#define false 0\n#endif", "parent": 0, "children": [80, 81, 82, 86], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 80, "type": "#ifndef", "text": "#ifndef", "parent": 79, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 81, "type": "identifier", "text": "false", "parent": 79, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 13}}, {"id": 82, "type": "preproc_def", "text": "#define false 0\n", "parent": 79, "children": [83, 84, 85], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 52, "column": 0}}, {"id": 83, "type": "#define", "text": "#define", "parent": 82, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 8}}, {"id": 84, "type": "identifier", "text": "false", "parent": 82, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 14}}, {"id": 85, "type": "preproc_arg", "text": "0", "parent": 82, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 16}}, {"id": 86, "type": "#endif", "text": "#endif", "parent": 79, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 87, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [6, 12, 18, 24, 31, 37, 41, 45, 51, 57], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 11, 14, 17, 20, 23, 26, 30, 33, 36, 40, 44, 47, 50, 53, 56, 62, 63, 64, 65, 68, 70, 71, 72, 73, 76, 78, 79, 80, 81, 84, 86, 87], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/*===============================================================================================*/\n/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */\n/*!\n @file\n \t azx_spi_flash_types.h\n\n @brief\n \t Project: SPI data flash\n\n @details\n\n @version\n \t 1.0.0\n\n @note\n\n @author\n \t <NAME>\n\n @note\n \t File created on: Apr 08, 2020\n*/\n\n\n#ifndef AZX_SPI_FLASH_TYPES_H\n#define AZX_SPI_FLASH_TYPES_H\n\n/********JSC TYPE DEFINITION************/\ntypedef unsigned char \t\tJSC_uint8;\ntypedef unsigned short \t\tJSC_uint16;\ntypedef unsigned int \t\tJSC_uint32;\ntypedef unsigned long long \tJSC_uint64;\n\ntypedef signed int\t\t\tJSC_int32;\ntypedef char \t\t\t\tJSC_char;\ntypedef int \t\t\t\tJSC_bool;\n\ntypedef long long \t\t\tJSC_loff_t;\ntypedef unsigned int \t\tJSC_size_t;\n\ntypedef void *JSC_HANDLE;\n\n#ifndef NULL\n\t#define NULL 0\n#endif\n\n#ifndef true\n\t#define true 1\n#endif\n\n#ifndef false\n\t#define false 0\n#endif\n\n#endif /* AZX_SPI_FLASH_TYPES_H */\n"}
80,858
c
#ifndef CCXS_DATA_H #define CCXS_DATA_H #include <libwebsockets.h> struct client_user_data { const char *name; /* should be a constant */ void (*subscribe)(struct lws *wsi); char *(*parse_json)(const void *const in); }; /* one of these created for each message */ struct msg { void *payload; /* is malloc'd */ size_t len; }; /* one of these is created for each client connecting to us */ struct per_session_data__minimal { struct per_session_data__minimal *pss_list; struct lws *wsi; uint32_t tail; }; /* one of these is created for each vhost our protocol is used with */ struct per_vhost_data__minimal { struct lws_context *context; struct lws_vhost *vhost; const struct lws_protocols *protocol; struct per_session_data__minimal *pss_list; /* linked-list of live pss*/ struct lws_ring *ring; /* ringbuffer holding unsent messages */ struct lws *client_wsi; }; #endif //CCXS_DATA_H
31.38
29
(translation_unit) "#ifndef CCXS_DATA_H\n#define CCXS_DATA_H\n\n#include <libwebsockets.h>\n\nstruct client_user_data {\n const char *name; /* should be a constant */\n\n void (*subscribe)(struct lws *wsi);\n\n char *(*parse_json)(const void *const in);\n};\n\n/* one of these created for each message */\n\nstruct msg {\n void *payload; /* is malloc'd */\n size_t len;\n};\n\n/* one of these is created for each client connecting to us */\n\nstruct per_session_data__minimal {\n struct per_session_data__minimal *pss_list;\n struct lws *wsi;\n uint32_t tail;\n};\n\n/* one of these is created for each vhost our protocol is used with */\n\nstruct per_vhost_data__minimal {\n struct lws_context *context;\n struct lws_vhost *vhost;\n const struct lws_protocols *protocol;\n\n struct per_session_data__minimal *pss_list; /* linked-list of live pss*/\n\n struct lws_ring *ring; /* ringbuffer holding unsent messages */\n struct lws *client_wsi;\n};\n\n#endif //CCXS_DATA_H\n" (preproc_ifdef) "#ifndef CCXS_DATA_H\n#define CCXS_DATA_H\n\n#include <libwebsockets.h>\n\nstruct client_user_data {\n const char *name; /* should be a constant */\n\n void (*subscribe)(struct lws *wsi);\n\n char *(*parse_json)(const void *const in);\n};\n\n/* one of these created for each message */\n\nstruct msg {\n void *payload; /* is malloc'd */\n size_t len;\n};\n\n/* one of these is created for each client connecting to us */\n\nstruct per_session_data__minimal {\n struct per_session_data__minimal *pss_list;\n struct lws *wsi;\n uint32_t tail;\n};\n\n/* one of these is created for each vhost our protocol is used with */\n\nstruct per_vhost_data__minimal {\n struct lws_context *context;\n struct lws_vhost *vhost;\n const struct lws_protocols *protocol;\n\n struct per_session_data__minimal *pss_list; /* linked-list of live pss*/\n\n struct lws_ring *ring; /* ringbuffer holding unsent messages */\n struct lws *client_wsi;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "CCXS_DATA_H" (preproc_def) "#define CCXS_DATA_H\n" (#define) "#define" (identifier) "CCXS_DATA_H" (preproc_include) "#include <libwebsockets.h>\n" (#include) "#include" (system_lib_string) "<libwebsockets.h>" (struct_specifier) "struct client_user_data {\n const char *name; /* should be a constant */\n\n void (*subscribe)(struct lws *wsi);\n\n char *(*parse_json)(const void *const in);\n}" (struct) "struct" (type_identifier) "client_user_data" (field_declaration_list) "{\n const char *name; /* should be a constant */\n\n void (*subscribe)(struct lws *wsi);\n\n char *(*parse_json)(const void *const in);\n}" ({) "{" (field_declaration) "const char *name;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (comment) "/* should be a constant */" (field_declaration) "void (*subscribe)(struct lws *wsi);" (primitive_type) "void" (function_declarator) "(*subscribe)(struct lws *wsi)" (parenthesized_declarator) "(*subscribe)" (() "(" (pointer_declarator) "*subscribe" (*) "*" (field_identifier) "subscribe" ()) ")" (parameter_list) "(struct lws *wsi)" (() "(" (parameter_declaration) "struct lws *wsi" (struct_specifier) "struct lws" (struct) "struct" (type_identifier) "lws" (pointer_declarator) "*wsi" (*) "*" (identifier) "wsi" ()) ")" (;) ";" (field_declaration) "char *(*parse_json)(const void *const in);" (primitive_type) "char" (pointer_declarator) "*(*parse_json)(const void *const in)" (*) "*" (function_declarator) "(*parse_json)(const void *const in)" (parenthesized_declarator) "(*parse_json)" (() "(" (pointer_declarator) "*parse_json" (*) "*" (field_identifier) "parse_json" ()) ")" (parameter_list) "(const void *const in)" (() "(" (parameter_declaration) "const void *const in" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*const in" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "in" ()) ")" (;) ";" (}) "}" (;) ";" (comment) "/* one of these created for each message */" (struct_specifier) "struct msg {\n void *payload; /* is malloc'd */\n size_t len;\n}" (struct) "struct" (type_identifier) "msg" (field_declaration_list) "{\n void *payload; /* is malloc'd */\n size_t len;\n}" ({) "{" (field_declaration) "void *payload;" (primitive_type) "void" (pointer_declarator) "*payload" (*) "*" (field_identifier) "payload" (;) ";" (comment) "/* is malloc'd */" (field_declaration) "size_t len;" (primitive_type) "size_t" (field_identifier) "len" (;) ";" (}) "}" (;) ";" (comment) "/* one of these is created for each client connecting to us */" (struct_specifier) "struct per_session_data__minimal {\n struct per_session_data__minimal *pss_list;\n struct lws *wsi;\n uint32_t tail;\n}" (struct) "struct" (type_identifier) "per_session_data__minimal" (field_declaration_list) "{\n struct per_session_data__minimal *pss_list;\n struct lws *wsi;\n uint32_t tail;\n}" ({) "{" (field_declaration) "struct per_session_data__minimal *pss_list;" (struct_specifier) "struct per_session_data__minimal" (struct) "struct" (type_identifier) "per_session_data__minimal" (pointer_declarator) "*pss_list" (*) "*" (field_identifier) "pss_list" (;) ";" (field_declaration) "struct lws *wsi;" (struct_specifier) "struct lws" (struct) "struct" (type_identifier) "lws" (pointer_declarator) "*wsi" (*) "*" (field_identifier) "wsi" (;) ";" (field_declaration) "uint32_t tail;" (primitive_type) "uint32_t" (field_identifier) "tail" (;) ";" (}) "}" (;) ";" (comment) "/* one of these is created for each vhost our protocol is used with */" (struct_specifier) "struct per_vhost_data__minimal {\n struct lws_context *context;\n struct lws_vhost *vhost;\n const struct lws_protocols *protocol;\n\n struct per_session_data__minimal *pss_list; /* linked-list of live pss*/\n\n struct lws_ring *ring; /* ringbuffer holding unsent messages */\n struct lws *client_wsi;\n}" (struct) "struct" (type_identifier) "per_vhost_data__minimal" (field_declaration_list) "{\n struct lws_context *context;\n struct lws_vhost *vhost;\n const struct lws_protocols *protocol;\n\n struct per_session_data__minimal *pss_list; /* linked-list of live pss*/\n\n struct lws_ring *ring; /* ringbuffer holding unsent messages */\n struct lws *client_wsi;\n}" ({) "{" (field_declaration) "struct lws_context *context;" (struct_specifier) "struct lws_context" (struct) "struct" (type_identifier) "lws_context" (pointer_declarator) "*context" (*) "*" (field_identifier) "context" (;) ";" (field_declaration) "struct lws_vhost *vhost;" (struct_specifier) "struct lws_vhost" (struct) "struct" (type_identifier) "lws_vhost" (pointer_declarator) "*vhost" (*) "*" (field_identifier) "vhost" (;) ";" (field_declaration) "const struct lws_protocols *protocol;" (type_qualifier) "const" (const) "const" (struct_specifier) "struct lws_protocols" (struct) "struct" (type_identifier) "lws_protocols" (pointer_declarator) "*protocol" (*) "*" (field_identifier) "protocol" (;) ";" (field_declaration) "struct per_session_data__minimal *pss_list;" (struct_specifier) "struct per_session_data__minimal" (struct) "struct" (type_identifier) "per_session_data__minimal" (pointer_declarator) "*pss_list" (*) "*" (field_identifier) "pss_list" (;) ";" (comment) "/* linked-list of live pss*/" (field_declaration) "struct lws_ring *ring;" (struct_specifier) "struct lws_ring" (struct) "struct" (type_identifier) "lws_ring" (pointer_declarator) "*ring" (*) "*" (field_identifier) "ring" (;) ";" (comment) "/* ringbuffer holding unsent messages */" (field_declaration) "struct lws *client_wsi;" (struct_specifier) "struct lws" (struct) "struct" (type_identifier) "lws" (pointer_declarator) "*client_wsi" (*) "*" (field_identifier) "client_wsi" (;) ";" (}) "}" (;) ";" (#endif) "#endif" (comment) "//CCXS_DATA_H"
179
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 31.38, "nodes": 124, "errors": 0, "source_hash": "1ec709035864605de4e5a23f85b35c1835cc4bcf0dae472c6a70ef20ff2c3e59", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CCXS_DATA_H\n#define CCXS_DATA_H\n\n#include <libwebsockets.h>\n\nstruct client_user_data {\n const char *name; /* should be a constant */\n\n void (*subscribe)(struct lws *wsi);\n\n char *(*parse_json)(const void *const in);\n};\n\n/* one of these created for each message */\n\nstruct msg {\n void *payload; /* is malloc'd */\n size_t len;\n};\n\n/* one of these is created for each client connecting to us */\n\nstruct per_session_data__minimal {\n struct per_session_data__minimal *pss_list;\n struct lws *wsi;\n uint32_t tail;\n};\n\n/* one of these is created for each vhost our protocol is used with */\n\nstruct per_vhost_data__minimal {\n struct lws_context *context;\n struct lws_vhost *vhost;\n const struct lws_protocols *protocol;\n\n struct per_session_data__minimal *pss_list; /* linked-list of live pss*/\n\n struct lws_ring *ring; /* ringbuffer holding unsent messages */\n struct lws *client_wsi;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 47, 58, 78, 123], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 41, "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": "CCXS_DATA_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define CCXS_DATA_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": "CCXS_DATA_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <libwebsockets.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<libwebsockets.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 26}}, {"id": 9, "type": "struct_specifier", "text": "struct client_user_data {\n const char *name; /* should be a constant */\n\n void (*subscribe)(struct lws *wsi);\n\n char *(*parse_json)(const void *const in);\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "client_user_data", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 23}}, {"id": 12, "type": "field_declaration", "text": "const char *name;", "parent": 9, "children": [13, 14], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 21}}, {"id": 13, "type": "primitive_type", "text": "char", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 14}}, {"id": 14, "type": "pointer_declarator", "text": "*name", "parent": 12, "children": [15, 16], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 20}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 16}}, {"id": 16, "type": "field_identifier", "text": "name", "parent": 14, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 20}}, {"id": 17, "type": "field_declaration", "text": "void (*subscribe)(struct lws *wsi);", "parent": 9, "children": [18, 19], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 39}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 8}}, {"id": 19, "type": "function_declarator", "text": "(*subscribe)(struct lws *wsi)", "parent": 17, "children": [20, 24], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 38}}, {"id": 20, "type": "parenthesized_declarator", "text": "(*subscribe)", "parent": 19, "children": [21], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 21}}, {"id": 21, "type": "pointer_declarator", "text": "*subscribe", "parent": 20, "children": [22, 23], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 20}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 23, "type": "field_identifier", "text": "subscribe", "parent": 21, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 20}}, {"id": 24, "type": "parameter_list", "text": "(struct lws *wsi)", "parent": 19, "children": [25], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 38}}, {"id": 25, "type": "parameter_declaration", "text": "struct lws *wsi", "parent": 24, "children": [26, 29], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 37}}, {"id": 26, "type": "struct_specifier", "text": "struct lws", "parent": 25, "children": [27, 28], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 32}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 28}}, {"id": 28, "type": "type_identifier", "text": "lws", "parent": 26, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 32}}, {"id": 29, "type": "pointer_declarator", "text": "*wsi", "parent": 25, "children": [30, 31], "start_point": {"row": 8, "column": 33}, "end_point": {"row": 8, "column": 37}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 8, "column": 33}, "end_point": {"row": 8, "column": 34}}, {"id": 31, "type": "identifier", "text": "wsi", "parent": 29, "children": [], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 37}}, {"id": 32, "type": "field_declaration", "text": "char *(*parse_json)(const void *const in);", "parent": 9, "children": [33, 34], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 46}}, {"id": 33, "type": "primitive_type", "text": "char", "parent": 32, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 8}}, {"id": 34, "type": "pointer_declarator", "text": "*(*parse_json)(const void *const in)", "parent": 32, "children": [35, 36], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 45}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 10}}, {"id": 36, "type": "function_declarator", "text": "(*parse_json)(const void *const in)", "parent": 34, "children": [37, 41], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 45}}, {"id": 37, "type": "parenthesized_declarator", "text": "(*parse_json)", "parent": 36, "children": [38], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 23}}, {"id": 38, "type": "pointer_declarator", "text": "*parse_json", "parent": 37, "children": [39, 40], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 22}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 12}}, {"id": 40, "type": "field_identifier", "text": "parse_json", "parent": 38, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 22}}, {"id": 41, "type": "parameter_list", "text": "(const void *const in)", "parent": 36, "children": [42], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 45}}, {"id": 42, "type": "parameter_declaration", "text": "const void *const in", "parent": 41, "children": [43, 44], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 44}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 34}}, {"id": 44, "type": "pointer_declarator", "text": "*const in", "parent": 42, "children": [45, 46], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 44}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 36}}, {"id": 46, "type": "identifier", "text": "in", "parent": 44, "children": [], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 44}}, {"id": 47, "type": "struct_specifier", "text": "struct msg {\n void *payload; /* is malloc'd */\n size_t len;\n}", "parent": 0, "children": [48, 49], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 49, "type": "type_identifier", "text": "msg", "parent": 47, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 10}}, {"id": 50, "type": "field_declaration", "text": "void *payload;", "parent": 47, "children": [51, 52], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 18}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 52, "type": "pointer_declarator", "text": "*payload", "parent": 50, "children": [53, 54], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 17}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 54, "type": "field_identifier", "text": "payload", "parent": 52, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 17}}, {"id": 55, "type": "field_declaration", "text": "size_t len;", "parent": 47, "children": [56, 57], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 15}}, {"id": 56, "type": "primitive_type", "text": "size_t", "parent": 55, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 10}}, {"id": 57, "type": "field_identifier", "text": "len", "parent": 55, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 14}}, {"id": 58, "type": "struct_specifier", "text": "struct per_session_data__minimal {\n struct per_session_data__minimal *pss_list;\n struct lws *wsi;\n uint32_t tail;\n}", "parent": 0, "children": [59, 60], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 59, "type": "struct", "text": "struct", "parent": 58, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 60, "type": "type_identifier", "text": "per_session_data__minimal", "parent": 58, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 32}}, {"id": 61, "type": "field_declaration", "text": "struct per_session_data__minimal *pss_list;", "parent": 58, "children": [62, 65], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 47}}, {"id": 62, "type": "struct_specifier", "text": "struct per_session_data__minimal", "parent": 61, "children": [63, 64], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 36}}, {"id": 63, "type": "struct", "text": "struct", "parent": 62, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 10}}, {"id": 64, "type": "type_identifier", "text": "per_session_data__minimal", "parent": 62, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 36}}, {"id": 65, "type": "pointer_declarator", "text": "*pss_list", "parent": 61, "children": [66, 67], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 46}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 38}}, {"id": 67, "type": "field_identifier", "text": "pss_list", "parent": 65, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 46}}, {"id": 68, "type": "field_declaration", "text": "struct lws *wsi;", "parent": 58, "children": [69, 72], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 20}}, {"id": 69, "type": "struct_specifier", "text": "struct lws", "parent": 68, "children": [70, 71], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 14}}, {"id": 70, "type": "struct", "text": "struct", "parent": 69, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 71, "type": "type_identifier", "text": "lws", "parent": 69, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 14}}, {"id": 72, "type": "pointer_declarator", "text": "*wsi", "parent": 68, "children": [73, 74], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 19}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 16}}, {"id": 74, "type": "field_identifier", "text": "wsi", "parent": 72, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 19}}, {"id": 75, "type": "field_declaration", "text": "uint32_t tail;", "parent": 58, "children": [76, 77], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 18}}, {"id": 76, "type": "primitive_type", "text": "uint32_t", "parent": 75, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 77, "type": "field_identifier", "text": "tail", "parent": 75, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 17}}, {"id": 78, "type": "struct_specifier", "text": "struct per_vhost_data__minimal {\n struct lws_context *context;\n struct lws_vhost *vhost;\n const struct lws_protocols *protocol;\n\n struct per_session_data__minimal *pss_list; /* linked-list of live pss*/\n\n struct lws_ring *ring; /* ringbuffer holding unsent messages */\n struct lws *client_wsi;\n}", "parent": 0, "children": [79, 80], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 79, "type": "struct", "text": "struct", "parent": 78, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 80, "type": "type_identifier", "text": "per_vhost_data__minimal", "parent": 78, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 30}}, {"id": 81, "type": "field_declaration", "text": "struct lws_context *context;", "parent": 78, "children": [82, 85], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 32}}, {"id": 82, "type": "struct_specifier", "text": "struct lws_context", "parent": 81, "children": [83, 84], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 22}}, {"id": 83, "type": "struct", "text": "struct", "parent": 82, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 84, "type": "type_identifier", "text": "lws_context", "parent": 82, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 22}}, {"id": 85, "type": "pointer_declarator", "text": "*context", "parent": 81, "children": [86, 87], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 31}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 24}}, {"id": 87, "type": "field_identifier", "text": "context", "parent": 85, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 31}}, {"id": 88, "type": "field_declaration", "text": "struct lws_vhost *vhost;", "parent": 78, "children": [89, 92], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 28}}, {"id": 89, "type": "struct_specifier", "text": "struct lws_vhost", "parent": 88, "children": [90, 91], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 20}}, {"id": 90, "type": "struct", "text": "struct", "parent": 89, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 91, "type": "type_identifier", "text": "lws_vhost", "parent": 89, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 20}}, {"id": 92, "type": "pointer_declarator", "text": "*vhost", "parent": 88, "children": [93, 94], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 27}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 22}}, {"id": 94, "type": "field_identifier", "text": "vhost", "parent": 92, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 27}}, {"id": 95, "type": "field_declaration", "text": "const struct lws_protocols *protocol;", "parent": 78, "children": [96, 99], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 41}}, {"id": 96, "type": "struct_specifier", "text": "struct lws_protocols", "parent": 95, "children": [97, 98], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 30}}, {"id": 97, "type": "struct", "text": "struct", "parent": 96, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 16}}, {"id": 98, "type": "type_identifier", "text": "lws_protocols", "parent": 96, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 30}}, {"id": 99, "type": "pointer_declarator", "text": "*protocol", "parent": 95, "children": [100, 101], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 40}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 101, "type": "field_identifier", "text": "protocol", "parent": 99, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 40}}, {"id": 102, "type": "field_declaration", "text": "struct per_session_data__minimal *pss_list;", "parent": 78, "children": [103, 106], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 47}}, {"id": 103, "type": "struct_specifier", "text": "struct per_session_data__minimal", "parent": 102, "children": [104, 105], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 36}}, {"id": 104, "type": "struct", "text": "struct", "parent": 103, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 10}}, {"id": 105, "type": "type_identifier", "text": "per_session_data__minimal", "parent": 103, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 36}}, {"id": 106, "type": "pointer_declarator", "text": "*pss_list", "parent": 102, "children": [107, 108], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 46}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 38}}, {"id": 108, "type": "field_identifier", "text": "pss_list", "parent": 106, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 46}}, {"id": 109, "type": "field_declaration", "text": "struct lws_ring *ring;", "parent": 78, "children": [110, 113], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 26}}, {"id": 110, "type": "struct_specifier", "text": "struct lws_ring", "parent": 109, "children": [111, 112], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 19}}, {"id": 111, "type": "struct", "text": "struct", "parent": 110, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 10}}, {"id": 112, "type": "type_identifier", "text": "lws_ring", "parent": 110, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 19}}, {"id": 113, "type": "pointer_declarator", "text": "*ring", "parent": 109, "children": [114, 115], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 25}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 21}}, {"id": 115, "type": "field_identifier", "text": "ring", "parent": 113, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 25}}, {"id": 116, "type": "field_declaration", "text": "struct lws *client_wsi;", "parent": 78, "children": [117, 120], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 27}}, {"id": 117, "type": "struct_specifier", "text": "struct lws", "parent": 116, "children": [118, 119], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 14}}, {"id": 118, "type": "struct", "text": "struct", "parent": 117, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 10}}, {"id": 119, "type": "type_identifier", "text": "lws", "parent": 117, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 14}}, {"id": 120, "type": "pointer_declarator", "text": "*client_wsi", "parent": 116, "children": [121, 122], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 26}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 16}}, {"id": 122, "type": "field_identifier", "text": "client_wsi", "parent": 120, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 26}}, {"id": 123, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 6}}]}, "node_categories": {"declarations": {"functions": [19, 36], "variables": [12, 17, 25, 32, 42, 50, 55, 61, 68, 75, 81, 88, 95, 102, 109, 116], "classes": [9, 10, 26, 27, 47, 48, 58, 59, 62, 63, 69, 70, 78, 79, 82, 83, 89, 90, 96, 97, 103, 104, 110, 111, 117, 118], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 16, 23, 28, 31, 40, 46, 49, 54, 57, 60, 64, 67, 71, 74, 77, 80, 84, 87, 91, 94, 98, 101, 105, 108, 112, 115, 119, 122, 123], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "(*subscribe)(struct lws *wsi)"}, {"node_id": 36, "universal_type": "function", "name": "*const", "text_snippet": "(*parse_json)(const void *const in)"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "client_user_data", "text_snippet": "struct client_user_data {\n const char *name; /* should be a constant */\n\n void (*subscribe)(st"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 26, "universal_type": "class", "name": "lws", "text_snippet": "struct lws"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 47, "universal_type": "class", "name": "msg", "text_snippet": "struct msg {\n void *payload; /* is malloc'd */\n size_t len;\n}"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 58, "universal_type": "class", "name": "per_session_data__minimal", "text_snippet": "struct per_session_data__minimal {\n struct per_session_data__minimal *pss_list;\n struct lws *w"}, {"node_id": 59, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 62, "universal_type": "class", "name": "per_session_data__minimal", "text_snippet": "struct per_session_data__minimal"}, {"node_id": 63, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 69, "universal_type": "class", "name": "lws", "text_snippet": "struct lws"}, {"node_id": 70, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 78, "universal_type": "class", "name": "per_vhost_data__minimal", "text_snippet": "struct per_vhost_data__minimal {\n struct lws_context *context;\n struct lws_vhost *vhost;\n c"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 82, "universal_type": "class", "name": "lws_context", "text_snippet": "struct lws_context"}, {"node_id": 83, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 89, "universal_type": "class", "name": "lws_vhost", "text_snippet": "struct lws_vhost"}, {"node_id": 90, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 96, "universal_type": "class", "name": "lws_protocols", "text_snippet": "struct lws_protocols"}, {"node_id": 97, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 103, "universal_type": "class", "name": "per_session_data__minimal", "text_snippet": "struct per_session_data__minimal"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 110, "universal_type": "class", "name": "lws_ring", "text_snippet": "struct lws_ring"}, {"node_id": 111, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 117, "universal_type": "class", "name": "lws", "text_snippet": "struct lws"}, {"node_id": 118, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <libwebsockets.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef CCXS_DATA_H\n#define CCXS_DATA_H\n\n#include <libwebsockets.h>\n\nstruct client_user_data {\n const char *name; /* should be a constant */\n\n void (*subscribe)(struct lws *wsi);\n\n char *(*parse_json)(const void *const in);\n};\n\n/* one of these created for each message */\n\nstruct msg {\n void *payload; /* is malloc'd */\n size_t len;\n};\n\n/* one of these is created for each client connecting to us */\n\nstruct per_session_data__minimal {\n struct per_session_data__minimal *pss_list;\n struct lws *wsi;\n uint32_t tail;\n};\n\n/* one of these is created for each vhost our protocol is used with */\n\nstruct per_vhost_data__minimal {\n struct lws_context *context;\n struct lws_vhost *vhost;\n const struct lws_protocols *protocol;\n\n struct per_session_data__minimal *pss_list; /* linked-list of live pss*/\n\n struct lws_ring *ring; /* ringbuffer holding unsent messages */\n struct lws *client_wsi;\n};\n\n#endif //CCXS_DATA_H\n"}
80,859
c
// Copyright (c) Eltechs. // All rights reserved. // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software"), to deal in the Software without restriction, // including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do // so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or substantial // portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT // NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #pragma once #include "common.h" // Filesystem node (FSNode) class FSNode { public: // Node type enum Type { FILE, // regular file DIR, // directory LOGICAL_DRIVE, // logical drive SPECIAL, // special TYPE_LAST }; // Special node types (for SPECIAL type) enum SpecialType { NONE, // none (non-special) DESKTOP, // Desktop MY_DOCUMENTS, // My Documents MY_COMPUTER, // My Computer SPECIAL_TYPE_LAST }; public: FSNode() {} // Non-special node constructor FSNode(Type type, std::wstring path) { mType = type; mSpecialType = NONE; mPath = path; mParent = nullptr; mHasChildFolders = false; } // Special node constructor FSNode(SpecialType specialType) { mType = SPECIAL; mSpecialType = specialType; mPath = SpecialPaths[specialType]; mParent = nullptr; mHasChildFolders = false; } public: static void initCommon(); public: // Get type Type getType() const { return mType; } // Get special type SpecialType getSpecialType() const { return mSpecialType; } // Get parent node FSNode* getParent() const { return mParent; } // Set parent node void setParent(FSNode* parent) { mParent = parent; } // Get relative (from parent node) path std::wstring const& getRelPath() const { return mPath; } // Get childs list std::vector<FSNode> const& getChildsList() const { return mChilds; } std::vector<FSNode>& getChildsList() { return mChilds; } // Is node has child folders bool hasChildFolders() const { return mHasChildFolders; } std::wstring const& getDisplayName() const; void rebuildChildsListMyComputer(std::vector<FSNode>& resList); void rebuildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly = false); void rebuildChildsList(std::vector<FSNode>& resList, bool dirsOnly = false); void rebuildChildsList(bool dirsOnly = false); void clearChildsList(); void checkIfHasChilds(bool rec); private: Type mType:3; // type SpecialType mSpecialType:3; // special type bool mHasChildFolders:1; // is node has child folders std::wstring mPath; // relative path FSNode* mParent; // parent node std::vector<FSNode> mChilds; // child nodes static std::wstring SpecialDisplayNames[]; static std::wstring SpecialPaths[]; }; bool IsPathExists(fs::path path); bool IsPathReadable(fs::path path); void CheckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec); void MakeFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList); fs::path GetFSNodeFullPath(FSNode const& node);
37.2
105
(translation_unit) " Copyright (c) Eltechs.\n// All rights reserved.\n//\n// This code is licensed under the MIT License.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software\n// and associated documentation files (the "Software"), to deal in the Software without restriction,\n// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do\n// so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all copies or substantial\n// portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT\n// NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n#pragma once\n\n#include "common.h"\n\n// Filesystem node (FSNode)\nclass FSNode\n{\npublic:\n // Node type\n enum Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n // Special node types (for SPECIAL type)\n enum SpecialType\n {\n NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n\npublic:\n FSNode() {}\n\n // Non-special node constructor\n FSNode(Type type, std::wstring path)\n {\n mType = type;\n mSpecialType = NONE;\n mPath = path;\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\n // Special node constructor\n FSNode(SpecialType specialType)\n {\n mType = SPECIAL;\n mSpecialType = specialType;\n mPath = SpecialPaths[specialType];\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\npublic:\n static void initCommon();\n\npublic:\n // Get type\n Type getType() const { return mType; }\n\n // Get special type\n SpecialType getSpecialType() const { return mSpecialType; }\n\n // Get parent node\n FSNode* getParent() const { return mParent; }\n // Set parent node\n void setParent(FSNode* parent) { mParent = parent; }\n\n // Get relative (from parent node) path\n std::wstring const& getRelPath() const { return mPath; }\n\n // Get childs list\n std::vector<FSNode> const& getChildsList() const { return mChilds; }\n std::vector<FSNode>& getChildsList() { return mChilds; }\n\n // Is node has child folders\n bool hasChildFolders() const { return mHasChildFolders; }\n\n\n std::wstring const& getDisplayName() const;\n\n void rebuildChildsListMyComputer(std::vector<FSNode>& resList);\n void rebuildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly = false);\n void rebuildChildsList(std::vector<FSNode>& resList, bool dirsOnly = false);\n void rebuildChildsList(bool dirsOnly = false);\n void clearChildsList();\n\n void checkIfHasChilds(bool rec);\n\nprivate:\n Type mType:3; // type\n SpecialType mSpecialType:3; // special type\n bool mHasChildFolders:1; // is node has child folders\n std::wstring mPath; // relative path\n FSNode* mParent; // parent node\n std::vector<FSNode> mChilds; // child nodes\n\n static std::wstring SpecialDisplayNames[];\n static std::wstring SpecialPaths[];\n};\n\n\nbool IsPathExists(fs::path path);\nbool IsPathReadable(fs::path path);\n\nvoid CheckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec);\nvoid MakeFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList);\nfs::path GetFSNodeFullPath(FSNode const& node);\n" (comment) " Copyright (c) Eltechs.\n/" (comment) " All rights reserved.\n/" (comment) "\n/" (comment) " This code is licensed under the MIT License.\n/" (comment) "\n/" (comment) " Permission is hereby granted, free of charge, to any person obtaining a copy of this software\n/" (comment) " and associated documentation files (the "Software"), to deal in the Software without restriction,\n/" (comment) " including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n/" (comment) " and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do\n/" (comment) " so, subject to the following conditions:\n/" (comment) "\n/" (comment) " The above copyright notice and this permission notice shall be included in all copies or substantial\n/" (comment) " portions of the Software.\n/" (comment) "\n/" (comment) " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT\n/" (comment) " NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n/" (comment) " IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n/" (comment) " WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n/" (comment) " SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n" (preproc_call) "ragma once\n\n#" (preproc_directive) "ragma o" (preproc_arg) "ce\n\n" (preproc_include) "nclude "common.h"\n\n/" (#include) "nclude "" (string_literal) "ommon.h"\n\n" (") "o" (string_content) "mmon.h"\n" (") "\n" (comment) " Filesystem node (FSNode)\nc" (function_definition) "ass FSNode\n{\npublic:\n // Node type\n enum Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n // Special node types (for SPECIAL type)\n enum SpecialType\n {\n NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n\npublic:\n FSNode() {}\n\n // Non-special node constructor\n FSNode(Type type, std::wstring path)\n {\n mType = type;\n mSpecialType = NONE;\n mPath = path;\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\n" (type_identifier) "ass F" (identifier) "Node\n{" (compound_statement) "public:\n // Node type\n enum Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n // Special node types (for SPECIAL type)\n enum SpecialType\n {\n NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n\npublic:\n FSNode() {}\n\n // Non-special node constructor\n FSNode(Type type, std::wstring path)\n {\n mType = type;\n mSpecialType = NONE;\n mPath = path;\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\n" ({) "p" (labeled_statement) "blic:\n // Node type\n enum Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n" (statement_identifier) "blic:\n" (:) " " (comment) " Node type\n " (declaration) "um Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n" (enum_specifier) "um Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n" (enum) "um T" (type_identifier) "pe\n " (enumerator_list) " FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n" ({) " " (enumerator) "LE, " (identifier) "LE, " (,) " " (comment) " regular file\n " (enumerator) "R, " (identifier) "R, " (,) " " (comment) " directory\n " (enumerator) "GICAL_DRIVE, " (identifier) "GICAL_DRIVE, " (,) " " (comment) " logical drive\n " (enumerator) "ECIAL, " (identifier) "ECIAL, " (,) " " (comment) " special\n " (enumerator) "PE_LAST\n " (identifier) "PE_LAST\n " (}) "\n" (identifier) "" (;) "\n" (comment) " Special node types (for SPECIAL type)\n " (enum_specifier) "um SpecialType\n {\n NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n" (enum) "um S" (type_identifier) "ecialType\n " (enumerator_list) " NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n" ({) " " (enumerator) "NE, " (identifier) "NE, " (,) " " (comment) " none (non-special)\n " (enumerator) "SKTOP, " (identifier) "SKTOP, " (,) " " (comment) " Desktop\n " (enumerator) "_DOCUMENTS, " (identifier) "_DOCUMENTS, " (,) " " (comment) " My Documents\n " (enumerator) "_COMPUTER, " (identifier) "_COMPUTER, " (,) " " (comment) " My Computer\n " (enumerator) "ECIAL_TYPE_LAST\n " (identifier) "ECIAL_TYPE_LAST\n " (}) "\n" (;) "\n" (labeled_statement) "blic:\n FSNode() {}\n\n" (statement_identifier) "blic:\n" (:) " " (ERROR) "Node() {" (call_expression) "Node() {" (identifier) "Node()" (argument_list) " {" (() " " ()) "{" (compound_statement) "\n\n" ({) "\n" (}) "\n" (comment) " Non-special node constructor\n " (declaration) "Node(Type type, std::wstring path)\n {\n mType = type;\n " (macro_type_specifier) "Node(Type t" (identifier) "Node(T" (() "y" (type_descriptor) "pe t" (type_identifier) "pe t" ()) "" (identifier) "pe, " (,) "s" (ERROR) "d::wstring path)\n {\n " (identifier) "d::" (:) "w" (:) "s" (identifier) "tring p" (identifier) "th)\n" ()) " " ({) " " (init_declarator) "ype = type;\n" (identifier) "ype =" (=) "t" (identifier) "pe;\n" (;) " " (expression_statement) "pecialType = NONE;\n " (assignment_expression) "pecialType = NONE;\n" (identifier) "pecialType =" (=) "N" (identifier) "NE;\n" (;) " " (expression_statement) "ath = path;\n " (assignment_expression) "ath = path;\n" (identifier) "ath =" (=) "p" (identifier) "th;\n" (;) " " (expression_statement) "arent = nullptr;\n " (assignment_expression) "arent = nullptr;\n" (identifier) "arent =" (=) "n" (null) "llptr;\n" (nullptr) "llptr;\n" (;) " " (expression_statement) "asChildFolders = false;\n " (assignment_expression) "asChildFolders = false;\n" (identifier) "asChildFolders =" (=) "f" (false) "lse;\n" (;) " " (}) "\n" (comment) " Special node constructor\n " (macro_type_specifier) "Node(SpecialType specialType)\n " (identifier) "Node(S" (() "p" (type_descriptor) "ecialType s" (type_identifier) "ecialType s" (ERROR) "ecialType)\n" (identifier) "ecialType)\n" ()) " " (;) "" (compound_statement) " mType = SPECIAL;\n mSpecialType = specialType;\n mPath = SpecialPaths[specialType];\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\n" ({) " " (expression_statement) "ype = SPECIAL;\n " (assignment_expression) "ype = SPECIAL;\n" (identifier) "ype =" (=) "S" (identifier) "ECIAL;\n" (;) " " (expression_statement) "pecialType = specialType;\n " (assignment_expression) "pecialType = specialType;\n" (identifier) "pecialType =" (=) "s" (identifier) "ecialType;\n" (;) " " (expression_statement) "ath = SpecialPaths[specialType];\n " (assignment_expression) "ath = SpecialPaths[specialType];\n" (identifier) "ath =" (=) "S" (subscript_expression) "ecialPaths[specialType];\n" (identifier) "ecialPaths[s" ([) "p" (identifier) "ecialType];" (]) "\n" (;) " " (expression_statement) "arent = nullptr;\n " (assignment_expression) "arent = nullptr;\n" (identifier) "arent =" (=) "n" (null) "llptr;\n" (nullptr) "llptr;\n" (;) " " (expression_statement) "asChildFolders = false;\n " (assignment_expression) "asChildFolders = false;\n" (identifier) "asChildFolders =" (=) "f" (false) "lse;\n" (;) " " (}) "\n" (labeled_statement) "blic:\n static void initCommon();\n\n" (statement_identifier) "blic:\n" (:) " " (declaration) "atic void initCommon();\n\n" (storage_class_specifier) "atic v" (static) "atic v" (primitive_type) "id i" (function_declarator) "itCommon();\n" (identifier) "itCommon()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "\n" (labeled_statement) "blic:\n // Get type\n Type getType() const { return mType; }\n\n" (statement_identifier) "blic:\n" (:) " " (comment) " Get type\n " (ERROR) "pe getType() const " (type_identifier) "pe g" (function_declarator) "tType() const " (identifier) "tType()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst " (compound_statement) "return mType; }\n\n" ({) "r" (return_statement) "turn mType; }" (return) "turn m" (identifier) "ype; " (;) "}" (}) "\n" (comment) " Get special type\n " (ERROR) "ecialType getSpecialType() const {" (type_identifier) "ecialType g" (function_declarator) "tSpecialType() c" (identifier) "tSpecialType()" (parameter_list) " c" (() " " ()) "c" (type_qualifier) "nst {" (const) "nst {" (compound_statement) "return mSpecialType; }\n\n" ({) "r" (return_statement) "turn mSpecialType; }" (return) "turn m" (identifier) "pecialType; " (;) "}" (}) "\n" (comment) " Get parent node\n " (function_definition) "Node* getParent() const { return mParent; }\n " (type_identifier) "Node* " (pointer_declarator) "getParent() const {" (*) "g" (function_declarator) "tParent() const {" (identifier) "tParent()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst {" (compound_statement) "return mParent; }\n " ({) "r" (return_statement) "turn mParent; }" (return) "turn m" (identifier) "arent; " (;) "}" (}) " " (comment) " Set parent node\n " (function_definition) "id setParent(FSNode* parent) { mParent = parent; }\n\n" (primitive_type) "id s" (function_declarator) "tParent(FSNode* parent) {" (identifier) "tParent(F" (parameter_list) "SNode* parent) {" (() "S" (parameter_declaration) "Node* parent) " (type_identifier) "Node* " (pointer_declarator) "parent) " (*) "p" (identifier) "rent) " ()) "{" (compound_statement) "mParent = parent; }\n\n" ({) "m" (expression_statement) "arent = parent; }" (assignment_expression) "arent = parent; " (identifier) "arent =" (=) "p" (identifier) "rent; " (;) "}" (}) "\n" (comment) " Get relative (from parent node) path\n " (labeled_statement) "d::wstring const& getRelPath() const { return mPath; }\n\n" (statement_identifier) "d::" (:) "w" (ERROR) "string const& getRelPath() const {" (:) "s" (type_identifier) "tring c" (type_qualifier) "nst& " (const) "nst& " (pointer_expression) "getRelPath() c" (&) "g" (call_expression) "tRelPath() c" (identifier) "tRelPath()" (argument_list) " c" (() " " ()) "c" (identifier) "nst {" (compound_statement) "return mPath; }\n\n" ({) "r" (return_statement) "turn mPath; }" (return) "turn m" (identifier) "ath; " (;) "}" (}) "\n" (comment) " Get childs list\n " (labeled_statement) "d::vector<FSNode> const& getChildsList() const { return mChilds; }\n " (statement_identifier) "d::" (:) "v" (ERROR) "ector<FSNode> const& getChildsList() const {" (:) "e" (binary_expression) "ctor<FSNode> const& getChildsList() c" (binary_expression) "ctor<FSNode> const& " (binary_expression) "ctor<FSNode> " (identifier) "ctor<F" (<) "S" (identifier) "Node> " (>) "c" (identifier) "nst& " (&) "g" (call_expression) "tChildsList() c" (identifier) "tChildsList()" (argument_list) " c" (() " " ()) "c" (identifier) "nst {" (compound_statement) "return mChilds; }\n " ({) "r" (return_statement) "turn mChilds; }" (return) "turn m" (identifier) "hilds; " (;) "}" (}) " " (labeled_statement) "d::vector<FSNode>& getChildsList() { return mChilds; }\n\n" (statement_identifier) "d::" (:) "v" (ERROR) "ector<FSNode>& getChildsList() {" (:) "e" (binary_expression) "ctor<FSNode>& getChildsList() {" (binary_expression) "ctor<FSNode>&" (identifier) "ctor<F" (<) "S" (identifier) "Node>&" (>) " " (pointer_expression) "getChildsList() {" (&) "g" (call_expression) "tChildsList() {" (identifier) "tChildsList()" (argument_list) " {" (() " " ()) "{" (compound_statement) "return mChilds; }\n\n" ({) "r" (return_statement) "turn mChilds; }" (return) "turn m" (identifier) "hilds; " (;) "}" (}) "\n" (comment) " Is node has child folders\n " (ERROR) "ol hasChildFolders() const {" (primitive_type) "ol h" (function_declarator) "sChildFolders() c" (identifier) "sChildFolders()" (parameter_list) " c" (() " " ()) "c" (type_qualifier) "nst {" (const) "nst {" (compound_statement) "return mHasChildFolders; }\n\n" ({) "r" (return_statement) "turn mHasChildFolders; }" (return) "turn m" (identifier) "asChildFolders; " (;) "}" (}) "\n" (labeled_statement) "d::wstring const& getDisplayName() const;\n\n" (statement_identifier) "d::" (:) "w" (ERROR) "string const& " (:) "s" (type_identifier) "tring c" (type_qualifier) "nst& " (const) "nst& " (expression_statement) "getDisplayName() const;\n\n" (pointer_expression) "getDisplayName() c" (&) "g" (call_expression) "tDisplayName() c" (identifier) "tDisplayName()" (argument_list) " c" (() " " ()) "c" (ERROR) "nst;\n" (identifier) "nst;\n" (;) "\n" (declaration) "id rebuildChildsListMyComputer(std::vector<FSNode>& resList);\n " (primitive_type) "id r" (function_declarator) "buildChildsListMyComputer(std::vector<FSNode>& resList);\n" (identifier) "buildChildsListMyComputer(s" (parameter_list) "td::vector<FSNode>& resList);\n" (() "t" (parameter_declaration) "d::vector<FSNode>& resList);" (type_identifier) "d::" (ERROR) "vector<FSNode>& r" (:) "v" (:) "e" (identifier) "ctor<F" (<) "S" (identifier) "Node>&" (>) " " (&) "r" (identifier) "sList);" ()) "\n" (;) " " (declaration) "id rebuildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly = false);\n " (primitive_type) "id r" (init_declarator) "buildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly = false);" (function_declarator) "buildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly =" (identifier) "buildChildsListDir(s" (parameter_list) "td::vector<FSNode>& resList, bool dirsOnly =" (() "t" (parameter_declaration) "d::vector<FSNode>& resList, " (type_identifier) "d::" (ERROR) "vector<FSNode>& r" (:) "v" (:) "e" (identifier) "ctor<F" (<) "S" (identifier) "Node>&" (>) " " (&) "r" (identifier) "sList, " (,) "b" (parameter_declaration) "ol dirsOnly =" (primitive_type) "ol d" (identifier) "rsOnly =" ()) "" (=) "f" (false) "lse);" (ERROR) "\n" ()) "\n" (;) " " (declaration) "id rebuildChildsList(std::vector<FSNode>& resList, bool dirsOnly = false);\n " (primitive_type) "id r" (init_declarator) "buildChildsList(std::vector<FSNode>& resList, bool dirsOnly = false);" (function_declarator) "buildChildsList(std::vector<FSNode>& resList, bool dirsOnly =" (identifier) "buildChildsList(s" (parameter_list) "td::vector<FSNode>& resList, bool dirsOnly =" (() "t" (parameter_declaration) "d::vector<FSNode>& resList, " (type_identifier) "d::" (ERROR) "vector<FSNode>& r" (:) "v" (:) "e" (identifier) "ctor<F" (<) "S" (identifier) "Node>&" (>) " " (&) "r" (identifier) "sList, " (,) "b" (parameter_declaration) "ol dirsOnly =" (primitive_type) "ol d" (identifier) "rsOnly =" ()) "" (=) "f" (false) "lse);" (ERROR) "\n" ()) "\n" (;) " " (declaration) "id rebuildChildsList(bool dirsOnly = false);\n " (primitive_type) "id r" (init_declarator) "buildChildsList(bool dirsOnly = false);" (function_declarator) "buildChildsList(bool dirsOnly =" (identifier) "buildChildsList(b" (parameter_list) "ool dirsOnly =" (() "o" (parameter_declaration) "ol dirsOnly =" (primitive_type) "ol d" (identifier) "rsOnly =" ()) "" (=) "f" (false) "lse);" (ERROR) "\n" ()) "\n" (;) " " (declaration) "id clearChildsList();\n\n" (primitive_type) "id c" (function_declarator) "earChildsList();\n" (identifier) "earChildsList()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "\n" (declaration) "id checkIfHasChilds(bool rec);\n\n" (primitive_type) "id c" (function_declarator) "eckIfHasChilds(bool rec);\n" (identifier) "eckIfHasChilds(b" (parameter_list) "ool rec);\n" (() "o" (parameter_declaration) "ol rec);" (primitive_type) "ol r" (identifier) "c);" ()) "\n" (;) "\n" (labeled_statement) "ivate:\n Type mType:3; " (statement_identifier) "ivate:\n" (:) " " (declaration) "pe mType:3; " (type_identifier) "pe m" (identifier) "ype:3" (ERROR) "; " (:) ";" (number_literal) " " (;) " " (comment) " type\n " (declaration) "ecialType mSpecialType:3; " (type_identifier) "ecialType m" (identifier) "pecialType:3" (ERROR) "; " (:) ";" (number_literal) " " (;) " " (comment) " special type\n " (declaration) "ol mHasChildFolders:1; " (primitive_type) "ol m" (identifier) "asChildFolders:1" (ERROR) "; " (:) ";" (number_literal) " " (;) " " (comment) " is node has child folders\n " (labeled_statement) "d::wstring mPath; " (statement_identifier) "d::" (:) "w" (ERROR) "s" (:) "s" (declaration) "tring mPath; " (type_identifier) "tring m" (identifier) "ath; " (;) " " (comment) " relative path\n " (declaration) "Node* mParent; " (type_identifier) "Node* " (pointer_declarator) "mParent; " (*) "m" (identifier) "arent; " (;) " " (comment) " parent node\n " (labeled_statement) "d::vector<FSNode> mChilds; " (statement_identifier) "d::" (:) "v" (ERROR) "e" (:) "e" (expression_statement) "ctor<FSNode> mChilds; " (binary_expression) "ctor<FSNode> mChilds; " (binary_expression) "ctor<FSNode> " (identifier) "ctor<F" (<) "S" (identifier) "Node> " (>) "m" (identifier) "hilds; " (;) " " (comment) " child nodes\n\n" (declaration) "atic std::wstring SpecialDisplayNames[];\n " (storage_class_specifier) "atic s" (static) "atic s" (type_identifier) "d::" (ERROR) "wstring S" (:) "w" (:) "s" (identifier) "tring S" (array_declarator) "ecialDisplayNames[];\n" (identifier) "ecialDisplayNames[]" ([) ";" (]) "\n" (;) " " (declaration) "atic std::wstring SpecialPaths[];\n}" (storage_class_specifier) "atic s" (static) "atic s" (type_identifier) "d::" (ERROR) "wstring S" (:) "w" (:) "s" (identifier) "tring S" (array_declarator) "ecialPaths[];\n" (identifier) "ecialPaths[]" ([) ";" (]) "\n" (;) "}" (ERROR) "\n" (}) "\n" (expression_statement) "\n" (;) "\n" (declaration) "ol IsPathExists(fs::path path);\nb" (primitive_type) "ol I" (function_declarator) "PathExists(fs::path path);\n" (identifier) "PathExists(f" (parameter_list) "s::path path);\n" (() "s" (parameter_declaration) "::path path);" (type_identifier) "::" (ERROR) "path p" (:) "p" (:) "a" (identifier) "th p" (identifier) "th);" ()) "\n" (;) "b" (declaration) "ol IsPathReadable(fs::path path);\n\n" (primitive_type) "ol I" (function_declarator) "PathReadable(fs::path path);\n" (identifier) "PathReadable(f" (parameter_list) "s::path path);\n" (() "s" (parameter_declaration) "::path path);" (type_identifier) "::" (ERROR) "path p" (:) "p" (:) "a" (identifier) "th p" (identifier) "th);" ()) "\n" (;) "\n" (declaration) "id CheckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec);\nv" (primitive_type) "id C" (function_declarator) "eckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec);\n" (identifier) "eckIfNodesHasChilds(s" (parameter_list) "td::vector<FSNode>& nodes, bool rec);\n" (() "t" (parameter_declaration) "d::vector<FSNode>& nodes, " (type_identifier) "d::" (ERROR) "vector<FSNode>& n" (:) "v" (:) "e" (identifier) "ctor<F" (<) "S" (identifier) "Node>&" (>) " " (&) "n" (identifier) "des, " (,) "b" (parameter_declaration) "ol rec);" (primitive_type) "ol r" (identifier) "c);" ()) "\n" (;) "v" (declaration) "id MakeFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList);\nf" (primitive_type) "id M" (function_declarator) "keFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList);\n" (identifier) "keFSNodesListFromPath(s" (parameter_list) "td::wstring path, std::vector<FSNode>& resList);\n" (() "t" (parameter_declaration) "d::wstring path, " (type_identifier) "d::" (ERROR) "wstring p" (:) "w" (:) "s" (identifier) "tring p" (identifier) "th, " (,) "s" (parameter_declaration) "d::vector<FSNode>& resList);" (type_identifier) "d::" (ERROR) "vector<FSNode>& r" (:) "v" (:) "e" (identifier) "ctor<F" (<) "S" (identifier) "Node>&" (>) " " (&) "r" (identifier) "sList);" ()) "\n" (;) "f" (labeled_statement) "::path GetFSNodeFullPath(FSNode const& node);\n" (statement_identifier) "::" (:) "p" (ERROR) "a" (:) "a" (declaration) "th GetFSNodeFullPath(FSNode const& node);\n" (type_identifier) "th G" (function_declarator) "tFSNodeFullPath(FSNode const& node);\n" (identifier) "tFSNodeFullPath(F" (parameter_list) "SNode const& node);\n" (() "S" (parameter_declaration) "Node const& node);" (type_identifier) "Node c" (type_qualifier) "nst& " (const) "nst& " (ERROR) "n" (&) "n" (identifier) "de);" ()) "\n" (;) ""
702
32
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 37.2, "nodes": 418, "errors": 0, "source_hash": "96285576f2f44941d7a9e9b42db5c9ef0a1ccb500031505c1eef83e49df072d3", "categorized_nodes": 275}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\n\n#", "parent": null, "children": [1, 2], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ragma o", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "ce\n\n", "parent": 0, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "nclude \"common.h\"\n\n/", "parent": null, "children": [4, 5], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude \"", "parent": 3, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 5, "type": "string_literal", "text": "ommon.h\"\n\n", "parent": 3, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 19}}, {"id": 6, "type": "function_definition", "text": "ass FSNode\n{\npublic:\n // Node type\n enum Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n // Special node types (for SPECIAL type)\n enum SpecialType\n {\n NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n\npublic:\n FSNode() {}\n\n // Non-special node constructor\n FSNode(Type type, std::wstring path)\n {\n mType = type;\n mSpecialType = NONE;\n mPath = path;\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\n", "parent": null, "children": [7, 8], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 59, "column": 5}}, {"id": 7, "type": "type_identifier", "text": "ass F", "parent": 6, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 5}}, {"id": 8, "type": "identifier", "text": "Node\n{", "parent": 6, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 12}}, {"id": 9, "type": "labeled_statement", "text": "blic:\n // Node type\n enum Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n", "parent": 6, "children": [10, 11], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 10, "type": "statement_identifier", "text": "blic:\n", "parent": 9, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 11, "type": "declaration", "text": "um Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n", "parent": 9, "children": [12, 26], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 36, "column": 6}}, {"id": 12, "type": "enum_specifier", "text": "um Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n", "parent": 11, "children": [13, 14, 15], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 36, "column": 5}}, {"id": 13, "type": "enum", "text": "um T", "parent": 12, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 14, "type": "type_identifier", "text": "pe\n ", "parent": 12, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 13}}, {"id": 15, "type": "enumerator_list", "text": " FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n", "parent": 12, "children": [16, 18, 20, 22, 24], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 36, "column": 5}}, {"id": 16, "type": "enumerator", "text": "LE, ", "parent": 15, "children": [17], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 17, "type": "identifier", "text": "LE, ", "parent": 16, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 18, "type": "enumerator", "text": "R, ", "parent": 15, "children": [19], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 11}}, {"id": 19, "type": "identifier", "text": "R, ", "parent": 18, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 11}}, {"id": 20, "type": "enumerator", "text": "GICAL_DRIVE, ", "parent": 15, "children": [21], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 21}}, {"id": 21, "type": "identifier", "text": "GICAL_DRIVE, ", "parent": 20, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 21}}, {"id": 22, "type": "enumerator", "text": "ECIAL, ", "parent": 15, "children": [23], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 15}}, {"id": 23, "type": "identifier", "text": "ECIAL, ", "parent": 22, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 15}}, {"id": 24, "type": "enumerator", "text": "PE_LAST\n ", "parent": 15, "children": [25], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 17}}, {"id": 25, "type": "identifier", "text": "PE_LAST\n ", "parent": 24, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 17}}, {"id": 26, "type": "identifier", "text": "", "parent": 11, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 5}}, {"id": 27, "type": "enum_specifier", "text": "um SpecialType\n {\n NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n", "parent": 6, "children": [28, 29, 30], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 28, "type": "enum", "text": "um S", "parent": 27, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 29, "type": "type_identifier", "text": "ecialType\n ", "parent": 27, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 20}}, {"id": 30, "type": "enumerator_list", "text": " NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n", "parent": 27, "children": [31, 33, 35, 37, 39], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 31, "type": "enumerator", "text": "NE, ", "parent": 30, "children": [32], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 32, "type": "identifier", "text": "NE, ", "parent": 31, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 33, "type": "enumerator", "text": "SKTOP, ", "parent": 30, "children": [34], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 15}}, {"id": 34, "type": "identifier", "text": "SKTOP, ", "parent": 33, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 15}}, {"id": 35, "type": "enumerator", "text": "_DOCUMENTS, ", "parent": 30, "children": [36], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 20}}, {"id": 36, "type": "identifier", "text": "_DOCUMENTS, ", "parent": 35, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 20}}, {"id": 37, "type": "enumerator", "text": "_COMPUTER, ", "parent": 30, "children": [38], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 19}}, {"id": 38, "type": "identifier", "text": "_COMPUTER, ", "parent": 37, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 19}}, {"id": 39, "type": "enumerator", "text": "ECIAL_TYPE_LAST\n ", "parent": 30, "children": [40], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 25}}, {"id": 40, "type": "identifier", "text": "ECIAL_TYPE_LAST\n ", "parent": 39, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 25}}, {"id": 41, "type": "labeled_statement", "text": "blic:\n FSNode() {}\n\n", "parent": 6, "children": [42, 43], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 15}}, {"id": 42, "type": "statement_identifier", "text": "blic:\n", "parent": 41, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 43, "type": "ERROR", "text": "Node() {", "parent": 41, "children": [44], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 12}}, {"id": 44, "type": "call_expression", "text": "Node() {", "parent": 43, "children": [45], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 12}}, {"id": 45, "type": "identifier", "text": "Node()", "parent": 44, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 46, "type": "declaration", "text": "Node(Type type, std::wstring path)\n {\n mType = type;\n ", "parent": 6, "children": [47, 51, 52, 56], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 54, "column": 21}}, {"id": 47, "type": "macro_type_specifier", "text": "Node(Type t", "parent": 46, "children": [48, 49], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 15}}, {"id": 48, "type": "identifier", "text": "Node(T", "parent": 47, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 49, "type": "type_descriptor", "text": "pe t", "parent": 47, "children": [50], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 15}}, {"id": 50, "type": "type_identifier", "text": "pe t", "parent": 49, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 15}}, {"id": 51, "type": "identifier", "text": "pe, ", "parent": 46, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 20}}, {"id": 52, "type": "ERROR", "text": "d::wstring path)\n {\n ", "parent": 46, "children": [53, 54, 55], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 53, "column": 5}}, {"id": 53, "type": "identifier", "text": "d::", "parent": 52, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 25}}, {"id": 54, "type": "identifier", "text": "tring p", "parent": 52, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 34}}, {"id": 55, "type": "identifier", "text": "th)\n", "parent": 52, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 39}}, {"id": 56, "type": "init_declarator", "text": "ype = type;\n", "parent": 46, "children": [57, 58, 59], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 20}}, {"id": 57, "type": "identifier", "text": "ype =", "parent": 56, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 13}}, {"id": 58, "type": "=", "text": "t", "parent": 56, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 15}}, {"id": 59, "type": "identifier", "text": "pe;\n", "parent": 56, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 20}}, {"id": 60, "type": "assignment_expression", "text": "pecialType = NONE;\n", "parent": 6, "children": [61, 62, 63], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 27}}, {"id": 61, "type": "identifier", "text": "pecialType =", "parent": 60, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 20}}, {"id": 62, "type": "=", "text": "N", "parent": 60, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 22}}, {"id": 63, "type": "identifier", "text": "NE;\n", "parent": 60, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 27}}, {"id": 64, "type": "assignment_expression", "text": "ath = path;\n", "parent": 6, "children": [65, 66, 67], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 20}}, {"id": 65, "type": "identifier", "text": "ath =", "parent": 64, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 13}}, {"id": 66, "type": "=", "text": "p", "parent": 64, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 15}}, {"id": 67, "type": "identifier", "text": "th;\n", "parent": 64, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 20}}, {"id": 68, "type": "assignment_expression", "text": "arent = nullptr;\n", "parent": 6, "children": [69, 70, 71], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 25}}, {"id": 69, "type": "identifier", "text": "arent =", "parent": 68, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 15}}, {"id": 70, "type": "=", "text": "n", "parent": 68, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 17}}, {"id": 71, "type": "null", "text": "llptr;\n", "parent": 68, "children": [72], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 25}}, {"id": 72, "type": "nullptr", "text": "llptr;\n", "parent": 71, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 25}}, {"id": 73, "type": "assignment_expression", "text": "asChildFolders = false;\n", "parent": 6, "children": [74, 75, 76], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 32}}, {"id": 74, "type": "identifier", "text": "asChildFolders =", "parent": 73, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 24}}, {"id": 75, "type": "=", "text": "f", "parent": 73, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 26}}, {"id": 76, "type": "false", "text": "lse;\n", "parent": 73, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 32}}, {"id": 77, "type": "macro_type_specifier", "text": "Node(SpecialType specialType)\n ", "parent": null, "children": [78, 79, 81], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 35}}, {"id": 78, "type": "identifier", "text": "Node(S", "parent": 77, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 10}}, {"id": 79, "type": "type_descriptor", "text": "ecialType s", "parent": 77, "children": [80], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 22}}, {"id": 80, "type": "type_identifier", "text": "ecialType s", "parent": 79, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 22}}, {"id": 81, "type": "ERROR", "text": "ecialType)\n", "parent": 77, "children": [82], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 34}}, {"id": 82, "type": "identifier", "text": "ecialType)\n", "parent": 81, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 34}}, {"id": 83, "type": "assignment_expression", "text": "ype = SPECIAL;\n", "parent": null, "children": [84, 85, 86], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 23}}, {"id": 84, "type": "identifier", "text": "ype =", "parent": 83, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 13}}, {"id": 85, "type": "=", "text": "S", "parent": 83, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 15}}, {"id": 86, "type": "identifier", "text": "ECIAL;\n", "parent": 83, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 23}}, {"id": 87, "type": "assignment_expression", "text": "pecialType = specialType;\n", "parent": null, "children": [88, 89, 90], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 34}}, {"id": 88, "type": "identifier", "text": "pecialType =", "parent": 87, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 20}}, {"id": 89, "type": "=", "text": "s", "parent": 87, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 22}}, {"id": 90, "type": "identifier", "text": "ecialType;\n", "parent": 87, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 34}}, {"id": 91, "type": "assignment_expression", "text": "ath = SpecialPaths[specialType];\n", "parent": null, "children": [92, 93, 94], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 41}}, {"id": 92, "type": "identifier", "text": "ath =", "parent": 91, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 13}}, {"id": 93, "type": "=", "text": "S", "parent": 91, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 94, "type": "subscript_expression", "text": "ecialPaths[specialType];\n", "parent": 91, "children": [95, 96], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 41}}, {"id": 95, "type": "identifier", "text": "ecialPaths[s", "parent": 94, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 28}}, {"id": 96, "type": "identifier", "text": "ecialType];", "parent": 94, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 40}}, {"id": 97, "type": "assignment_expression", "text": "arent = nullptr;\n", "parent": null, "children": [98, 99, 100], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 25}}, {"id": 98, "type": "identifier", "text": "arent =", "parent": 97, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 15}}, {"id": 99, "type": "=", "text": "n", "parent": 97, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 17}}, {"id": 100, "type": "null", "text": "llptr;\n", "parent": 97, "children": [101], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 25}}, {"id": 101, "type": "nullptr", "text": "llptr;\n", "parent": 100, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 25}}, {"id": 102, "type": "assignment_expression", "text": "asChildFolders = false;\n", "parent": null, "children": [103, 104, 105], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 32}}, {"id": 103, "type": "identifier", "text": "asChildFolders =", "parent": 102, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 24}}, {"id": 104, "type": "=", "text": "f", "parent": 102, "children": [], "start_point": {"row": 68, "column": 25}, "end_point": {"row": 68, "column": 26}}, {"id": 105, "type": "false", "text": "lse;\n", "parent": 102, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 32}}, {"id": 106, "type": "labeled_statement", "text": "blic:\n static void initCommon();\n\n", "parent": null, "children": [107, 108], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 72, "column": 29}}, {"id": 107, "type": "statement_identifier", "text": "blic:\n", "parent": 106, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 6}}, {"id": 108, "type": "declaration", "text": "atic void initCommon();\n\n", "parent": 106, "children": [109, 110, 111], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 29}}, {"id": 109, "type": "storage_class_specifier", "text": "atic v", "parent": 108, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 10}}, {"id": 110, "type": "primitive_type", "text": "id i", "parent": 108, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 15}}, {"id": 111, "type": "function_declarator", "text": "itCommon();\n", "parent": 108, "children": [112], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 28}}, {"id": 112, "type": "identifier", "text": "itCommon()", "parent": 111, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 26}}, {"id": 113, "type": "labeled_statement", "text": "blic:\n // Get type\n Type getType() const { return mType; }\n\n", "parent": null, "children": [114, 115], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 76, "column": 43}}, {"id": 114, "type": "statement_identifier", "text": "blic:\n", "parent": 113, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 115, "type": "ERROR", "text": "pe getType() const ", "parent": 113, "children": [116, 117], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 24}}, {"id": 116, "type": "type_identifier", "text": "pe g", "parent": 115, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 8}}, {"id": 117, "type": "function_declarator", "text": "tType() const ", "parent": 115, "children": [118, 119, 120], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 24}}, {"id": 118, "type": "identifier", "text": "tType()", "parent": 117, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 16}}, {"id": 119, "type": "parameter_list", "text": " c", "parent": 117, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 18}}, {"id": 120, "type": "identifier", "text": "nst ", "parent": 117, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 24}}, {"id": 121, "type": "return_statement", "text": "turn mType; }", "parent": 113, "children": [122], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 41}}, {"id": 122, "type": "identifier", "text": "ype; ", "parent": 121, "children": [], "start_point": {"row": 76, "column": 35}, "end_point": {"row": 76, "column": 40}}, {"id": 123, "type": "ERROR", "text": "ecialType getSpecialType() const {", "parent": null, "children": [124, 125, 128], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 38}}, {"id": 124, "type": "type_identifier", "text": "ecialType g", "parent": 123, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 15}}, {"id": 125, "type": "function_declarator", "text": "tSpecialType() c", "parent": 123, "children": [126, 127], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 32}}, {"id": 126, "type": "identifier", "text": "tSpecialType()", "parent": 125, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 30}}, {"id": 127, "type": "parameter_list", "text": " c", "parent": 125, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 32}}, {"id": 128, "type": "type_qualifier", "text": "nst {", "parent": 123, "children": [], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 38}}, {"id": 129, "type": "return_statement", "text": "turn mSpecialType; }", "parent": null, "children": [130], "start_point": {"row": 79, "column": 41}, "end_point": {"row": 79, "column": 61}}, {"id": 130, "type": "identifier", "text": "pecialType; ", "parent": 129, "children": [], "start_point": {"row": 79, "column": 48}, "end_point": {"row": 79, "column": 60}}, {"id": 131, "type": "function_definition", "text": "Node* getParent() const { return mParent; }\n ", "parent": null, "children": [132, 133], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 49}}, {"id": 132, "type": "type_identifier", "text": "Node* ", "parent": 131, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 10}}, {"id": 133, "type": "pointer_declarator", "text": "getParent() const {", "parent": 131, "children": [134, 135], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 29}}, {"id": 134, "type": "*", "text": "g", "parent": 133, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 11}}, {"id": 135, "type": "function_declarator", "text": "tParent() const {", "parent": 133, "children": [136, 137, 138], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 29}}, {"id": 136, "type": "identifier", "text": "tParent()", "parent": 135, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 21}}, {"id": 137, "type": "parameter_list", "text": " c", "parent": 135, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 23}}, {"id": 138, "type": "identifier", "text": "nst {", "parent": 135, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 29}}, {"id": 139, "type": "return_statement", "text": "turn mParent; }", "parent": 131, "children": [140], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 47}}, {"id": 140, "type": "identifier", "text": "arent; ", "parent": 139, "children": [], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 46}}, {"id": 141, "type": "function_definition", "text": "id setParent(FSNode* parent) { mParent = parent; }\n\n", "parent": null, "children": [142, 143], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 56}}, {"id": 142, "type": "primitive_type", "text": "id s", "parent": 141, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 8}}, {"id": 143, "type": "function_declarator", "text": "tParent(FSNode* parent) {", "parent": 141, "children": [144, 145], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 34}}, {"id": 144, "type": "identifier", "text": "tParent(F", "parent": 143, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 18}}, {"id": 145, "type": "parameter_list", "text": "SNode* parent) {", "parent": 143, "children": [146], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 34}}, {"id": 146, "type": "parameter_declaration", "text": "Node* parent) ", "parent": 145, "children": [147, 148], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 33}}, {"id": 147, "type": "type_identifier", "text": "Node* ", "parent": 146, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 25}}, {"id": 148, "type": "pointer_declarator", "text": "parent) ", "parent": 146, "children": [149, 150], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 33}}, {"id": 149, "type": "*", "text": "p", "parent": 148, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 26}}, {"id": 150, "type": "identifier", "text": "rent) ", "parent": 148, "children": [], "start_point": {"row": 84, "column": 27}, "end_point": {"row": 84, "column": 33}}, {"id": 151, "type": "assignment_expression", "text": "arent = parent; ", "parent": 141, "children": [152, 153, 154], "start_point": {"row": 84, "column": 37}, "end_point": {"row": 84, "column": 53}}, {"id": 152, "type": "identifier", "text": "arent =", "parent": 151, "children": [], "start_point": {"row": 84, "column": 37}, "end_point": {"row": 84, "column": 44}}, {"id": 153, "type": "=", "text": "p", "parent": 151, "children": [], "start_point": {"row": 84, "column": 45}, "end_point": {"row": 84, "column": 46}}, {"id": 154, "type": "identifier", "text": "rent; ", "parent": 151, "children": [], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 53}}, {"id": 155, "type": "labeled_statement", "text": "d::wstring const& getRelPath() const { return mPath; }\n\n", "parent": null, "children": [156, 157], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 60}}, {"id": 156, "type": "statement_identifier", "text": "d::", "parent": 155, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 7}}, {"id": 157, "type": "ERROR", "text": "string const& getRelPath() const {", "parent": 155, "children": [158, 159, 160, 165], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 42}}, {"id": 158, "type": "type_identifier", "text": "tring c", "parent": 157, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 16}}, {"id": 159, "type": "type_qualifier", "text": "nst& ", "parent": 157, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 22}}, {"id": 160, "type": "pointer_expression", "text": "getRelPath() c", "parent": 157, "children": [161, 162], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 36}}, {"id": 161, "type": "&", "text": "g", "parent": 160, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 23}}, {"id": 162, "type": "call_expression", "text": "tRelPath() c", "parent": 160, "children": [163, 164], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 36}}, {"id": 163, "type": "identifier", "text": "tRelPath()", "parent": 162, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 34}}, {"id": 164, "type": "argument_list", "text": " c", "parent": 162, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 36}}, {"id": 165, "type": "identifier", "text": "nst {", "parent": 157, "children": [], "start_point": {"row": 87, "column": 37}, "end_point": {"row": 87, "column": 42}}, {"id": 166, "type": "return_statement", "text": "turn mPath; }", "parent": 155, "children": [167], "start_point": {"row": 87, "column": 45}, "end_point": {"row": 87, "column": 58}}, {"id": 167, "type": "identifier", "text": "ath; ", "parent": 166, "children": [], "start_point": {"row": 87, "column": 52}, "end_point": {"row": 87, "column": 57}}, {"id": 168, "type": "labeled_statement", "text": "d::vector<FSNode> const& getChildsList() const { return mChilds; }\n ", "parent": null, "children": [169, 170], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 72}}, {"id": 169, "type": "statement_identifier", "text": "d::", "parent": 168, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 7}}, {"id": 170, "type": "ERROR", "text": "ector<FSNode> const& getChildsList() const {", "parent": 168, "children": [171, 183], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 52}}, {"id": 171, "type": "binary_expression", "text": "ctor<FSNode> const& getChildsList() c", "parent": 170, "children": [172, 179, 180], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 46}}, {"id": 172, "type": "binary_expression", "text": "ctor<FSNode> const& ", "parent": 171, "children": [173, 177, 178], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 29}}, {"id": 173, "type": "binary_expression", "text": "ctor<FSNode> ", "parent": 172, "children": [174, 175, 176], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 22}}, {"id": 174, "type": "identifier", "text": "ctor<F", "parent": 173, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 15}}, {"id": 175, "type": "<", "text": "S", "parent": 173, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 16}}, {"id": 176, "type": "identifier", "text": "Node> ", "parent": 173, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 22}}, {"id": 177, "type": ">", "text": "c", "parent": 172, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 23}}, {"id": 178, "type": "identifier", "text": "nst& ", "parent": 172, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 29}}, {"id": 179, "type": "&", "text": "g", "parent": 171, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 30}}, {"id": 180, "type": "call_expression", "text": "tChildsList() c", "parent": 171, "children": [181, 182], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 46}}, {"id": 181, "type": "identifier", "text": "tChildsList()", "parent": 180, "children": [], "start_point": {"row": 90, "column": 31}, "end_point": {"row": 90, "column": 44}}, {"id": 182, "type": "argument_list", "text": " c", "parent": 180, "children": [], "start_point": {"row": 90, "column": 44}, "end_point": {"row": 90, "column": 46}}, {"id": 183, "type": "identifier", "text": "nst {", "parent": 170, "children": [], "start_point": {"row": 90, "column": 47}, "end_point": {"row": 90, "column": 52}}, {"id": 184, "type": "return_statement", "text": "turn mChilds; }", "parent": 168, "children": [185], "start_point": {"row": 90, "column": 55}, "end_point": {"row": 90, "column": 70}}, {"id": 185, "type": "identifier", "text": "hilds; ", "parent": 184, "children": [], "start_point": {"row": 90, "column": 62}, "end_point": {"row": 90, "column": 69}}, {"id": 186, "type": "labeled_statement", "text": "d::vector<FSNode>& getChildsList() { return mChilds; }\n\n", "parent": null, "children": [187, 188], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 60}}, {"id": 187, "type": "statement_identifier", "text": "d::", "parent": 186, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 7}}, {"id": 188, "type": "ERROR", "text": "ector<FSNode>& getChildsList() {", "parent": 186, "children": [189], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 40}}, {"id": 189, "type": "binary_expression", "text": "ctor<FSNode>& getChildsList() {", "parent": 188, "children": [190, 194, 195], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 40}}, {"id": 190, "type": "binary_expression", "text": "ctor<FSNode>&", "parent": 189, "children": [191, 192, 193], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 22}}, {"id": 191, "type": "identifier", "text": "ctor<F", "parent": 190, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 15}}, {"id": 192, "type": "<", "text": "S", "parent": 190, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 16}}, {"id": 193, "type": "identifier", "text": "Node>&", "parent": 190, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 22}}, {"id": 194, "type": ">", "text": " ", "parent": 189, "children": [], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 23}}, {"id": 195, "type": "pointer_expression", "text": "getChildsList() {", "parent": 189, "children": [196, 197], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 40}}, {"id": 196, "type": "&", "text": "g", "parent": 195, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 24}}, {"id": 197, "type": "call_expression", "text": "tChildsList() {", "parent": 195, "children": [198], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 40}}, {"id": 198, "type": "identifier", "text": "tChildsList()", "parent": 197, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 38}}, {"id": 199, "type": "return_statement", "text": "turn mChilds; }", "parent": 186, "children": [200], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 58}}, {"id": 200, "type": "identifier", "text": "hilds; ", "parent": 199, "children": [], "start_point": {"row": 91, "column": 50}, "end_point": {"row": 91, "column": 57}}, {"id": 201, "type": "ERROR", "text": "ol hasChildFolders() const {", "parent": null, "children": [202, 203, 206], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 32}}, {"id": 202, "type": "primitive_type", "text": "ol h", "parent": 201, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 8}}, {"id": 203, "type": "function_declarator", "text": "sChildFolders() c", "parent": 201, "children": [204, 205], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 26}}, {"id": 204, "type": "identifier", "text": "sChildFolders()", "parent": 203, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 24}}, {"id": 205, "type": "parameter_list", "text": " c", "parent": 203, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 26}}, {"id": 206, "type": "type_qualifier", "text": "nst {", "parent": 201, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 32}}, {"id": 207, "type": "return_statement", "text": "turn mHasChildFolders; }", "parent": null, "children": [208], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 59}}, {"id": 208, "type": "identifier", "text": "asChildFolders; ", "parent": 207, "children": [], "start_point": {"row": 94, "column": 42}, "end_point": {"row": 94, "column": 58}}, {"id": 209, "type": "labeled_statement", "text": "d::wstring const& getDisplayName() const;\n\n", "parent": null, "children": [210, 211], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 47}}, {"id": 210, "type": "statement_identifier", "text": "d::", "parent": 209, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 7}}, {"id": 211, "type": "ERROR", "text": "string const& ", "parent": 209, "children": [212, 213], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 22}}, {"id": 212, "type": "type_identifier", "text": "tring c", "parent": 211, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 16}}, {"id": 213, "type": "type_qualifier", "text": "nst& ", "parent": 211, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 22}}, {"id": 214, "type": "pointer_expression", "text": "getDisplayName() c", "parent": 209, "children": [215, 216], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 40}}, {"id": 215, "type": "&", "text": "g", "parent": 214, "children": [], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 23}}, {"id": 216, "type": "call_expression", "text": "tDisplayName() c", "parent": 214, "children": [217, 218], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 40}}, {"id": 217, "type": "identifier", "text": "tDisplayName()", "parent": 216, "children": [], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 38}}, {"id": 218, "type": "argument_list", "text": " c", "parent": 216, "children": [], "start_point": {"row": 97, "column": 38}, "end_point": {"row": 97, "column": 40}}, {"id": 219, "type": "ERROR", "text": "nst;\n", "parent": 209, "children": [220], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 46}}, {"id": 220, "type": "identifier", "text": "nst;\n", "parent": 219, "children": [], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 46}}, {"id": 221, "type": "declaration", "text": "id rebuildChildsListMyComputer(std::vector<FSNode>& resList);\n ", "parent": null, "children": [222, 223], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 67}}, {"id": 222, "type": "primitive_type", "text": "id r", "parent": 221, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 8}}, {"id": 223, "type": "function_declarator", "text": "buildChildsListMyComputer(std::vector<FSNode>& resList);\n", "parent": 221, "children": [224, 225], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 66}}, {"id": 224, "type": "identifier", "text": "buildChildsListMyComputer(s", "parent": 223, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 36}}, {"id": 225, "type": "parameter_list", "text": "td::vector<FSNode>& resList);\n", "parent": 223, "children": [226], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 66}}, {"id": 226, "type": "parameter_declaration", "text": "d::vector<FSNode>& resList);", "parent": 225, "children": [227, 228, 234], "start_point": {"row": 99, "column": 37}, "end_point": {"row": 99, "column": 65}}, {"id": 227, "type": "type_identifier", "text": "d::", "parent": 226, "children": [], "start_point": {"row": 99, "column": 37}, "end_point": {"row": 99, "column": 40}}, {"id": 228, "type": "ERROR", "text": "vector<FSNode>& r", "parent": 226, "children": [229, 230, 231, 232, 233], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 57}}, {"id": 229, "type": "identifier", "text": "ctor<F", "parent": 228, "children": [], "start_point": {"row": 99, "column": 42}, "end_point": {"row": 99, "column": 48}}, {"id": 230, "type": "<", "text": "S", "parent": 228, "children": [], "start_point": {"row": 99, "column": 48}, "end_point": {"row": 99, "column": 49}}, {"id": 231, "type": "identifier", "text": "Node>&", "parent": 228, "children": [], "start_point": {"row": 99, "column": 49}, "end_point": {"row": 99, "column": 55}}, {"id": 232, "type": ">", "text": " ", "parent": 228, "children": [], "start_point": {"row": 99, "column": 55}, "end_point": {"row": 99, "column": 56}}, {"id": 233, "type": "&", "text": "r", "parent": 228, "children": [], "start_point": {"row": 99, "column": 56}, "end_point": {"row": 99, "column": 57}}, {"id": 234, "type": "identifier", "text": "sList);", "parent": 226, "children": [], "start_point": {"row": 99, "column": 58}, "end_point": {"row": 99, "column": 65}}, {"id": 235, "type": "declaration", "text": "id rebuildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly = false);\n ", "parent": null, "children": [236, 237, 255], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 83}}, {"id": 236, "type": "primitive_type", "text": "id r", "parent": 235, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 8}}, {"id": 237, "type": "init_declarator", "text": "buildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly = false);", "parent": 235, "children": [238, 253, 254], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 81}}, {"id": 238, "type": "function_declarator", "text": "buildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly =", "parent": 237, "children": [239, 240], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 73}}, {"id": 239, "type": "identifier", "text": "buildChildsListDir(s", "parent": 238, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 29}}, {"id": 240, "type": "parameter_list", "text": "td::vector<FSNode>& resList, bool dirsOnly =", "parent": 238, "children": [241, 250], "start_point": {"row": 100, "column": 29}, "end_point": {"row": 100, "column": 73}}, {"id": 241, "type": "parameter_declaration", "text": "d::vector<FSNode>& resList, ", "parent": 240, "children": [242, 243, 249], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 58}}, {"id": 242, "type": "type_identifier", "text": "d::", "parent": 241, "children": [], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 33}}, {"id": 243, "type": "ERROR", "text": "vector<FSNode>& r", "parent": 241, "children": [244, 245, 246, 247, 248], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 50}}, {"id": 244, "type": "identifier", "text": "ctor<F", "parent": 243, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 41}}, {"id": 245, "type": "<", "text": "S", "parent": 243, "children": [], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 42}}, {"id": 246, "type": "identifier", "text": "Node>&", "parent": 243, "children": [], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 48}}, {"id": 247, "type": ">", "text": " ", "parent": 243, "children": [], "start_point": {"row": 100, "column": 48}, "end_point": {"row": 100, "column": 49}}, {"id": 248, "type": "&", "text": "r", "parent": 243, "children": [], "start_point": {"row": 100, "column": 49}, "end_point": {"row": 100, "column": 50}}, {"id": 249, "type": "identifier", "text": "sList, ", "parent": 241, "children": [], "start_point": {"row": 100, "column": 51}, "end_point": {"row": 100, "column": 58}}, {"id": 250, "type": "parameter_declaration", "text": "ol dirsOnly =", "parent": 240, "children": [251, 252], "start_point": {"row": 100, "column": 60}, "end_point": {"row": 100, "column": 73}}, {"id": 251, "type": "primitive_type", "text": "ol d", "parent": 250, "children": [], "start_point": {"row": 100, "column": 60}, "end_point": {"row": 100, "column": 64}}, {"id": 252, "type": "identifier", "text": "rsOnly =", "parent": 250, "children": [], "start_point": {"row": 100, "column": 65}, "end_point": {"row": 100, "column": 73}}, {"id": 253, "type": "=", "text": "f", "parent": 237, "children": [], "start_point": {"row": 100, "column": 74}, "end_point": {"row": 100, "column": 75}}, {"id": 254, "type": "false", "text": "lse);", "parent": 237, "children": [], "start_point": {"row": 100, "column": 76}, "end_point": {"row": 100, "column": 81}}, {"id": 255, "type": "ERROR", "text": "\n", "parent": 235, "children": [], "start_point": {"row": 100, "column": 81}, "end_point": {"row": 100, "column": 82}}, {"id": 256, "type": "declaration", "text": "id rebuildChildsList(std::vector<FSNode>& resList, bool dirsOnly = false);\n ", "parent": null, "children": [257, 258, 276], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 80}}, {"id": 257, "type": "primitive_type", "text": "id r", "parent": 256, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 8}}, {"id": 258, "type": "init_declarator", "text": "buildChildsList(std::vector<FSNode>& resList, bool dirsOnly = false);", "parent": 256, "children": [259, 274, 275], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 78}}, {"id": 259, "type": "function_declarator", "text": "buildChildsList(std::vector<FSNode>& resList, bool dirsOnly =", "parent": 258, "children": [260, 261], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 70}}, {"id": 260, "type": "identifier", "text": "buildChildsList(s", "parent": 259, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 26}}, {"id": 261, "type": "parameter_list", "text": "td::vector<FSNode>& resList, bool dirsOnly =", "parent": 259, "children": [262, 271], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 70}}, {"id": 262, "type": "parameter_declaration", "text": "d::vector<FSNode>& resList, ", "parent": 261, "children": [263, 264, 270], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 55}}, {"id": 263, "type": "type_identifier", "text": "d::", "parent": 262, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 30}}, {"id": 264, "type": "ERROR", "text": "vector<FSNode>& r", "parent": 262, "children": [265, 266, 267, 268, 269], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 47}}, {"id": 265, "type": "identifier", "text": "ctor<F", "parent": 264, "children": [], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 38}}, {"id": 266, "type": "<", "text": "S", "parent": 264, "children": [], "start_point": {"row": 101, "column": 38}, "end_point": {"row": 101, "column": 39}}, {"id": 267, "type": "identifier", "text": "Node>&", "parent": 264, "children": [], "start_point": {"row": 101, "column": 39}, "end_point": {"row": 101, "column": 45}}, {"id": 268, "type": ">", "text": " ", "parent": 264, "children": [], "start_point": {"row": 101, "column": 45}, "end_point": {"row": 101, "column": 46}}, {"id": 269, "type": "&", "text": "r", "parent": 264, "children": [], "start_point": {"row": 101, "column": 46}, "end_point": {"row": 101, "column": 47}}, {"id": 270, "type": "identifier", "text": "sList, ", "parent": 262, "children": [], "start_point": {"row": 101, "column": 48}, "end_point": {"row": 101, "column": 55}}, {"id": 271, "type": "parameter_declaration", "text": "ol dirsOnly =", "parent": 261, "children": [272, 273], "start_point": {"row": 101, "column": 57}, "end_point": {"row": 101, "column": 70}}, {"id": 272, "type": "primitive_type", "text": "ol d", "parent": 271, "children": [], "start_point": {"row": 101, "column": 57}, "end_point": {"row": 101, "column": 61}}, {"id": 273, "type": "identifier", "text": "rsOnly =", "parent": 271, "children": [], "start_point": {"row": 101, "column": 62}, "end_point": {"row": 101, "column": 70}}, {"id": 274, "type": "=", "text": "f", "parent": 258, "children": [], "start_point": {"row": 101, "column": 71}, "end_point": {"row": 101, "column": 72}}, {"id": 275, "type": "false", "text": "lse);", "parent": 258, "children": [], "start_point": {"row": 101, "column": 73}, "end_point": {"row": 101, "column": 78}}, {"id": 276, "type": "ERROR", "text": "\n", "parent": 256, "children": [], "start_point": {"row": 101, "column": 78}, "end_point": {"row": 101, "column": 79}}, {"id": 277, "type": "declaration", "text": "id rebuildChildsList(bool dirsOnly = false);\n ", "parent": null, "children": [278, 279, 288], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 50}}, {"id": 278, "type": "primitive_type", "text": "id r", "parent": 277, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 8}}, {"id": 279, "type": "init_declarator", "text": "buildChildsList(bool dirsOnly = false);", "parent": 277, "children": [280, 286, 287], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 48}}, {"id": 280, "type": "function_declarator", "text": "buildChildsList(bool dirsOnly =", "parent": 279, "children": [281, 282], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 40}}, {"id": 281, "type": "identifier", "text": "buildChildsList(b", "parent": 280, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 26}}, {"id": 282, "type": "parameter_list", "text": "ool dirsOnly =", "parent": 280, "children": [283], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 40}}, {"id": 283, "type": "parameter_declaration", "text": "ol dirsOnly =", "parent": 282, "children": [284, 285], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 40}}, {"id": 284, "type": "primitive_type", "text": "ol d", "parent": 283, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 31}}, {"id": 285, "type": "identifier", "text": "rsOnly =", "parent": 283, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 40}}, {"id": 286, "type": "=", "text": "f", "parent": 279, "children": [], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 42}}, {"id": 287, "type": "false", "text": "lse);", "parent": 279, "children": [], "start_point": {"row": 102, "column": 43}, "end_point": {"row": 102, "column": 48}}, {"id": 288, "type": "ERROR", "text": "\n", "parent": 277, "children": [], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 49}}, {"id": 289, "type": "declaration", "text": "id clearChildsList();\n\n", "parent": null, "children": [290, 291], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 27}}, {"id": 290, "type": "primitive_type", "text": "id c", "parent": 289, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 8}}, {"id": 291, "type": "function_declarator", "text": "earChildsList();\n", "parent": 289, "children": [292], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 26}}, {"id": 292, "type": "identifier", "text": "earChildsList()", "parent": 291, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 24}}, {"id": 293, "type": "declaration", "text": "id checkIfHasChilds(bool rec);\n\n", "parent": null, "children": [294, 295], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 36}}, {"id": 294, "type": "primitive_type", "text": "id c", "parent": 293, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 8}}, {"id": 295, "type": "function_declarator", "text": "eckIfHasChilds(bool rec);\n", "parent": 293, "children": [296, 297], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 35}}, {"id": 296, "type": "identifier", "text": "eckIfHasChilds(b", "parent": 295, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 25}}, {"id": 297, "type": "parameter_list", "text": "ool rec);\n", "parent": 295, "children": [298], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 35}}, {"id": 298, "type": "parameter_declaration", "text": "ol rec);", "parent": 297, "children": [299, 300], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 34}}, {"id": 299, "type": "primitive_type", "text": "ol r", "parent": 298, "children": [], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 30}}, {"id": 300, "type": "identifier", "text": "c);", "parent": 298, "children": [], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 34}}, {"id": 301, "type": "labeled_statement", "text": "ivate:\n Type mType:3; ", "parent": null, "children": [302, 303], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 108, "column": 17}}, {"id": 302, "type": "statement_identifier", "text": "ivate:\n", "parent": 301, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 7}}, {"id": 303, "type": "declaration", "text": "pe mType:3; ", "parent": 301, "children": [304, 305], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 17}}, {"id": 304, "type": "type_identifier", "text": "pe m", "parent": 303, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 8}}, {"id": 305, "type": "identifier", "text": "ype:3", "parent": 303, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 14}}, {"id": 306, "type": "number_literal", "text": " ", "parent": 303, "children": [], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 16}}, {"id": 307, "type": "declaration", "text": "ecialType mSpecialType:3; ", "parent": null, "children": [308, 309], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 31}}, {"id": 308, "type": "type_identifier", "text": "ecialType m", "parent": 307, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 15}}, {"id": 309, "type": "identifier", "text": "pecialType:3", "parent": 307, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 28}}, {"id": 310, "type": "number_literal", "text": " ", "parent": 307, "children": [], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 30}}, {"id": 311, "type": "declaration", "text": "ol mHasChildFolders:1; ", "parent": null, "children": [312, 313], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 28}}, {"id": 312, "type": "primitive_type", "text": "ol m", "parent": 311, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 8}}, {"id": 313, "type": "identifier", "text": "asChildFolders:1", "parent": 311, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 25}}, {"id": 314, "type": "number_literal", "text": " ", "parent": 311, "children": [], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 27}}, {"id": 315, "type": "labeled_statement", "text": "d::wstring mPath; ", "parent": null, "children": [316, 317, 318], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 23}}, {"id": 316, "type": "statement_identifier", "text": "d::", "parent": 315, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 7}}, {"id": 317, "type": "ERROR", "text": "s", "parent": 315, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 9}}, {"id": 318, "type": "declaration", "text": "tring mPath; ", "parent": 315, "children": [319, 320], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 23}}, {"id": 319, "type": "type_identifier", "text": "tring m", "parent": 318, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 16}}, {"id": 320, "type": "identifier", "text": "ath; ", "parent": 318, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 22}}, {"id": 321, "type": "declaration", "text": "Node* mParent; ", "parent": null, "children": [322, 323], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 20}}, {"id": 322, "type": "type_identifier", "text": "Node* ", "parent": 321, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 10}}, {"id": 323, "type": "pointer_declarator", "text": "mParent; ", "parent": 321, "children": [324, 325], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 19}}, {"id": 324, "type": "*", "text": "m", "parent": 323, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 11}}, {"id": 325, "type": "identifier", "text": "arent; ", "parent": 323, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 19}}, {"id": 326, "type": "labeled_statement", "text": "d::vector<FSNode> mChilds; ", "parent": null, "children": [327, 328], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 32}}, {"id": 327, "type": "statement_identifier", "text": "d::", "parent": 326, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 7}}, {"id": 328, "type": "ERROR", "text": "e", "parent": 326, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 9}}, {"id": 329, "type": "binary_expression", "text": "ctor<FSNode> mChilds; ", "parent": 326, "children": [330, 334, 335], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 31}}, {"id": 330, "type": "binary_expression", "text": "ctor<FSNode> ", "parent": 329, "children": [331, 332, 333], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 22}}, {"id": 331, "type": "identifier", "text": "ctor<F", "parent": 330, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 15}}, {"id": 332, "type": "<", "text": "S", "parent": 330, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 16}}, {"id": 333, "type": "identifier", "text": "Node> ", "parent": 330, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 22}}, {"id": 334, "type": ">", "text": "m", "parent": 329, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 23}}, {"id": 335, "type": "identifier", "text": "hilds; ", "parent": 329, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 31}}, {"id": 336, "type": "declaration", "text": "atic std::wstring SpecialDisplayNames[];\n ", "parent": null, "children": [337, 338, 339, 341], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 46}}, {"id": 337, "type": "storage_class_specifier", "text": "atic s", "parent": 336, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 10}}, {"id": 338, "type": "type_identifier", "text": "d::", "parent": 336, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 14}}, {"id": 339, "type": "ERROR", "text": "wstring S", "parent": 336, "children": [340], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 23}}, {"id": 340, "type": "identifier", "text": "tring S", "parent": 339, "children": [], "start_point": {"row": 115, "column": 16}, "end_point": {"row": 115, "column": 23}}, {"id": 341, "type": "array_declarator", "text": "ecialDisplayNames[];\n", "parent": 336, "children": [342], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 45}}, {"id": 342, "type": "identifier", "text": "ecialDisplayNames[]", "parent": 341, "children": [], "start_point": {"row": 115, "column": 24}, "end_point": {"row": 115, "column": 43}}, {"id": 343, "type": "declaration", "text": "atic std::wstring SpecialPaths[];\n}", "parent": null, "children": [344, 345, 346, 348], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 39}}, {"id": 344, "type": "storage_class_specifier", "text": "atic s", "parent": 343, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 10}}, {"id": 345, "type": "type_identifier", "text": "d::", "parent": 343, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 14}}, {"id": 346, "type": "ERROR", "text": "wstring S", "parent": 343, "children": [347], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 23}}, {"id": 347, "type": "identifier", "text": "tring S", "parent": 346, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 23}}, {"id": 348, "type": "array_declarator", "text": "ecialPaths[];\n", "parent": 343, "children": [349], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 38}}, {"id": 349, "type": "identifier", "text": "ecialPaths[]", "parent": 348, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 36}}, {"id": 350, "type": "ERROR", "text": "\n", "parent": null, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 1}}, {"id": 351, "type": "declaration", "text": "ol IsPathExists(fs::path path);\nb", "parent": null, "children": [352, 353], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 33}}, {"id": 352, "type": "primitive_type", "text": "ol I", "parent": 351, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 4}}, {"id": 353, "type": "function_declarator", "text": "PathExists(fs::path path);\n", "parent": 351, "children": [354, 355], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 32}}, {"id": 354, "type": "identifier", "text": "PathExists(f", "parent": 353, "children": [], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 17}}, {"id": 355, "type": "parameter_list", "text": "s::path path);\n", "parent": 353, "children": [356], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 32}}, {"id": 356, "type": "parameter_declaration", "text": "::path path);", "parent": 355, "children": [357, 359], "start_point": {"row": 120, "column": 18}, "end_point": {"row": 120, "column": 31}}, {"id": 357, "type": "ERROR", "text": "path p", "parent": 356, "children": [358], "start_point": {"row": 120, "column": 20}, "end_point": {"row": 120, "column": 26}}, {"id": 358, "type": "identifier", "text": "th p", "parent": 357, "children": [], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 26}}, {"id": 359, "type": "identifier", "text": "th);", "parent": 356, "children": [], "start_point": {"row": 120, "column": 27}, "end_point": {"row": 120, "column": 31}}, {"id": 360, "type": "declaration", "text": "ol IsPathReadable(fs::path path);\n\n", "parent": null, "children": [361, 362], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 35}}, {"id": 361, "type": "primitive_type", "text": "ol I", "parent": 360, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 4}}, {"id": 362, "type": "function_declarator", "text": "PathReadable(fs::path path);\n", "parent": 360, "children": [363, 364], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 34}}, {"id": 363, "type": "identifier", "text": "PathReadable(f", "parent": 362, "children": [], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 19}}, {"id": 364, "type": "parameter_list", "text": "s::path path);\n", "parent": 362, "children": [365], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 34}}, {"id": 365, "type": "parameter_declaration", "text": "::path path);", "parent": 364, "children": [366, 368], "start_point": {"row": 121, "column": 20}, "end_point": {"row": 121, "column": 33}}, {"id": 366, "type": "ERROR", "text": "path p", "parent": 365, "children": [367], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 28}}, {"id": 367, "type": "identifier", "text": "th p", "parent": 366, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 28}}, {"id": 368, "type": "identifier", "text": "th);", "parent": 365, "children": [], "start_point": {"row": 121, "column": 29}, "end_point": {"row": 121, "column": 33}}, {"id": 369, "type": "declaration", "text": "id CheckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec);\nv", "parent": null, "children": [370, 371], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 65}}, {"id": 370, "type": "primitive_type", "text": "id C", "parent": 369, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 4}}, {"id": 371, "type": "function_declarator", "text": "eckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec);\n", "parent": 369, "children": [372, 373], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 64}}, {"id": 372, "type": "identifier", "text": "eckIfNodesHasChilds(s", "parent": 371, "children": [], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 26}}, {"id": 373, "type": "parameter_list", "text": "td::vector<FSNode>& nodes, bool rec);\n", "parent": 371, "children": [374, 383], "start_point": {"row": 123, "column": 26}, "end_point": {"row": 123, "column": 64}}, {"id": 374, "type": "parameter_declaration", "text": "d::vector<FSNode>& nodes, ", "parent": 373, "children": [375, 376, 382], "start_point": {"row": 123, "column": 27}, "end_point": {"row": 123, "column": 53}}, {"id": 375, "type": "type_identifier", "text": "d::", "parent": 374, "children": [], "start_point": {"row": 123, "column": 27}, "end_point": {"row": 123, "column": 30}}, {"id": 376, "type": "ERROR", "text": "vector<FSNode>& n", "parent": 374, "children": [377, 378, 379, 380, 381], "start_point": {"row": 123, "column": 30}, "end_point": {"row": 123, "column": 47}}, {"id": 377, "type": "identifier", "text": "ctor<F", "parent": 376, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 38}}, {"id": 378, "type": "<", "text": "S", "parent": 376, "children": [], "start_point": {"row": 123, "column": 38}, "end_point": {"row": 123, "column": 39}}, {"id": 379, "type": "identifier", "text": "Node>&", "parent": 376, "children": [], "start_point": {"row": 123, "column": 39}, "end_point": {"row": 123, "column": 45}}, {"id": 380, "type": ">", "text": " ", "parent": 376, "children": [], "start_point": {"row": 123, "column": 45}, "end_point": {"row": 123, "column": 46}}, {"id": 381, "type": "&", "text": "n", "parent": 376, "children": [], "start_point": {"row": 123, "column": 46}, "end_point": {"row": 123, "column": 47}}, {"id": 382, "type": "identifier", "text": "des, ", "parent": 374, "children": [], "start_point": {"row": 123, "column": 48}, "end_point": {"row": 123, "column": 53}}, {"id": 383, "type": "parameter_declaration", "text": "ol rec);", "parent": 373, "children": [384, 385], "start_point": {"row": 123, "column": 55}, "end_point": {"row": 123, "column": 63}}, {"id": 384, "type": "primitive_type", "text": "ol r", "parent": 383, "children": [], "start_point": {"row": 123, "column": 55}, "end_point": {"row": 123, "column": 59}}, {"id": 385, "type": "identifier", "text": "c);", "parent": 383, "children": [], "start_point": {"row": 123, "column": 60}, "end_point": {"row": 123, "column": 63}}, {"id": 386, "type": "declaration", "text": "id MakeFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList);\nf", "parent": null, "children": [387, 388], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 78}}, {"id": 387, "type": "primitive_type", "text": "id M", "parent": 386, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 4}}, {"id": 388, "type": "function_declarator", "text": "keFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList);\n", "parent": 386, "children": [389, 390], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 77}}, {"id": 389, "type": "identifier", "text": "keFSNodesListFromPath(s", "parent": 388, "children": [], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 28}}, {"id": 390, "type": "parameter_list", "text": "td::wstring path, std::vector<FSNode>& resList);\n", "parent": 388, "children": [391, 396], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 77}}, {"id": 391, "type": "parameter_declaration", "text": "d::wstring path, ", "parent": 390, "children": [392, 393, 395], "start_point": {"row": 124, "column": 29}, "end_point": {"row": 124, "column": 46}}, {"id": 392, "type": "type_identifier", "text": "d::", "parent": 391, "children": [], "start_point": {"row": 124, "column": 29}, "end_point": {"row": 124, "column": 32}}, {"id": 393, "type": "ERROR", "text": "wstring p", "parent": 391, "children": [394], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 41}}, {"id": 394, "type": "identifier", "text": "tring p", "parent": 393, "children": [], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 124, "column": 41}}, {"id": 395, "type": "identifier", "text": "th, ", "parent": 391, "children": [], "start_point": {"row": 124, "column": 42}, "end_point": {"row": 124, "column": 46}}, {"id": 396, "type": "parameter_declaration", "text": "d::vector<FSNode>& resList);", "parent": 390, "children": [397, 398, 404], "start_point": {"row": 124, "column": 48}, "end_point": {"row": 124, "column": 76}}, {"id": 397, "type": "type_identifier", "text": "d::", "parent": 396, "children": [], "start_point": {"row": 124, "column": 48}, "end_point": {"row": 124, "column": 51}}, {"id": 398, "type": "ERROR", "text": "vector<FSNode>& r", "parent": 396, "children": [399, 400, 401, 402, 403], "start_point": {"row": 124, "column": 51}, "end_point": {"row": 124, "column": 68}}, {"id": 399, "type": "identifier", "text": "ctor<F", "parent": 398, "children": [], "start_point": {"row": 124, "column": 53}, "end_point": {"row": 124, "column": 59}}, {"id": 400, "type": "<", "text": "S", "parent": 398, "children": [], "start_point": {"row": 124, "column": 59}, "end_point": {"row": 124, "column": 60}}, {"id": 401, "type": "identifier", "text": "Node>&", "parent": 398, "children": [], "start_point": {"row": 124, "column": 60}, "end_point": {"row": 124, "column": 66}}, {"id": 402, "type": ">", "text": " ", "parent": 398, "children": [], "start_point": {"row": 124, "column": 66}, "end_point": {"row": 124, "column": 67}}, {"id": 403, "type": "&", "text": "r", "parent": 398, "children": [], "start_point": {"row": 124, "column": 67}, "end_point": {"row": 124, "column": 68}}, {"id": 404, "type": "identifier", "text": "sList);", "parent": 396, "children": [], "start_point": {"row": 124, "column": 69}, "end_point": {"row": 124, "column": 76}}, {"id": 405, "type": "labeled_statement", "text": "::path GetFSNodeFullPath(FSNode const& node);\n", "parent": null, "children": [406, 407], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 47}}, {"id": 406, "type": "ERROR", "text": "a", "parent": 405, "children": [], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 4}}, {"id": 407, "type": "declaration", "text": "th GetFSNodeFullPath(FSNode const& node);\n", "parent": 405, "children": [408, 409], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 47}}, {"id": 408, "type": "type_identifier", "text": "th G", "parent": 407, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 8}}, {"id": 409, "type": "function_declarator", "text": "tFSNodeFullPath(FSNode const& node);\n", "parent": 407, "children": [410, 411], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 46}}, {"id": 410, "type": "identifier", "text": "tFSNodeFullPath(F", "parent": 409, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 26}}, {"id": 411, "type": "parameter_list", "text": "SNode const& node);\n", "parent": 409, "children": [412], "start_point": {"row": 125, "column": 26}, "end_point": {"row": 125, "column": 46}}, {"id": 412, "type": "parameter_declaration", "text": "Node const& node);", "parent": 411, "children": [413, 414, 415, 417], "start_point": {"row": 125, "column": 27}, "end_point": {"row": 125, "column": 45}}, {"id": 413, "type": "type_identifier", "text": "Node c", "parent": 412, "children": [], "start_point": {"row": 125, "column": 27}, "end_point": {"row": 125, "column": 33}}, {"id": 414, "type": "type_qualifier", "text": "nst& ", "parent": 412, "children": [], "start_point": {"row": 125, "column": 34}, "end_point": {"row": 125, "column": 39}}, {"id": 415, "type": "ERROR", "text": "n", "parent": 412, "children": [416], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 40}}, {"id": 416, "type": "&", "text": "n", "parent": 415, "children": [], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 40}}, {"id": 417, "type": "identifier", "text": "de);", "parent": 412, "children": [], "start_point": {"row": 125, "column": 41}, "end_point": {"row": 125, "column": 45}}]}, "node_categories": {"declarations": {"functions": [6, 111, 117, 125, 131, 135, 141, 143, 203, 223, 238, 259, 280, 291, 295, 353, 362, 371, 388, 409], "variables": [11, 46, 108, 146, 221, 226, 235, 241, 250, 256, 262, 271, 277, 283, 289, 293, 298, 303, 307, 311, 318, 321, 336, 343, 351, 356, 360, 365, 369, 374, 383, 386, 391, 396, 407, 412], "classes": [109, 337, 344], "imports": [3, 4], "modules": [], "enums": [12, 13, 15, 16, 18, 20, 22, 24, 27, 28, 30, 31, 33, 35, 37, 39]}, "statements": {"expressions": [44, 94, 160, 162, 171, 172, 173, 180, 189, 190, 195, 197, 214, 216, 329, 330], "assignments": [60, 64, 68, 73, 83, 87, 91, 97, 102, 151], "loops": [], "conditionals": [7, 8, 10, 14, 17, 19, 21, 23, 25, 26, 29, 32, 34, 36, 38, 40, 42, 45, 47, 48, 50, 51, 53, 54, 55, 57, 59, 61, 63, 65, 67, 69, 74, 77, 78, 80, 82, 84, 86, 88, 90, 92, 95, 96, 98, 103, 107, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 136, 138, 140, 144, 147, 150, 152, 154, 156, 158, 159, 163, 165, 167, 169, 174, 176, 178, 181, 183, 185, 187, 191, 193, 198, 200, 204, 206, 208, 210, 212, 213, 217, 220, 224, 227, 229, 231, 234, 239, 242, 244, 246, 249, 252, 260, 263, 265, 267, 270, 273, 281, 285, 292, 296, 300, 302, 304, 305, 308, 309, 313, 316, 319, 320, 322, 325, 327, 331, 333, 335, 338, 340, 342, 345, 347, 349, 354, 358, 359, 363, 367, 368, 372, 375, 377, 379, 382, 385, 389, 392, 394, 395, 397, 399, 401, 404, 408, 410, 413, 414, 417], "returns": [121, 129, 139, 166, 184, 199, 207], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 306, 310, 314], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "ass FSNode\n{\npublic:\n // Node type\n enum Type\n {\n FILE, // regular file\n "}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "itCommon();\n"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "tType() const "}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "tSpecialType() c"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "Node* getParent() const { return mParent; }\n "}, {"node_id": 135, "universal_type": "function", "name": "unknown", "text_snippet": "tParent() const {"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "id setParent(FSNode* parent) { mParent = parent; }\n\n"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "tParent(FSNode* parent) {"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "sChildFolders() c"}, {"node_id": 223, "universal_type": "function", "name": "unknown", "text_snippet": "buildChildsListMyComputer(std::vector<FSNode>& resList);\n"}, {"node_id": 238, "universal_type": "function", "name": "dirsOnly", "text_snippet": "buildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly ="}, {"node_id": 259, "universal_type": "function", "name": "dirsOnly", "text_snippet": "buildChildsList(std::vector<FSNode>& resList, bool dirsOnly ="}, {"node_id": 280, "universal_type": "function", "name": "unknown", "text_snippet": "buildChildsList(bool dirsOnly ="}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "earChildsList();\n"}, {"node_id": 295, "universal_type": "function", "name": "unknown", "text_snippet": "eckIfHasChilds(bool rec);\n"}, {"node_id": 353, "universal_type": "function", "name": "unknown", "text_snippet": "PathExists(fs::path path);\n"}, {"node_id": 362, "universal_type": "function", "name": "unknown", "text_snippet": "PathReadable(fs::path path);\n"}, {"node_id": 371, "universal_type": "function", "name": "rec);", "text_snippet": "eckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec);\n"}, {"node_id": 388, "universal_type": "function", "name": "unknown", "text_snippet": "keFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList);\n"}, {"node_id": 409, "universal_type": "function", "name": "unknown", "text_snippet": "tFSNodeFullPath(FSNode const& node);\n"}], "class_declarations": [{"node_id": 109, "universal_type": "class", "name": "unknown", "text_snippet": "atic v"}, {"node_id": 337, "universal_type": "class", "name": "unknown", "text_snippet": "atic s"}, {"node_id": 344, "universal_type": "class", "name": "unknown", "text_snippet": "atic s"}], "import_statements": [{"node_id": 3, "text": "nclude \"common.h\"\n\n/"}, {"node_id": 4, "text": "nclude \""}]}, "original_source_code": "\ufeff// Copyright (c) Eltechs.\n// All rights reserved.\n//\n// This code is licensed under the MIT License.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software\n// and associated documentation files (the \"Software\"), to deal in the Software without restriction,\n// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n// and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do\n// so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all copies or substantial\n// portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT\n// NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n#pragma once\n\n#include \"common.h\"\n\n// Filesystem node (FSNode)\nclass FSNode\n{\npublic:\n // Node type\n enum Type\n {\n FILE, // regular file\n DIR, // directory\n LOGICAL_DRIVE, // logical drive\n SPECIAL, // special\n TYPE_LAST\n };\n\n // Special node types (for SPECIAL type)\n enum SpecialType\n {\n NONE, // none (non-special)\n DESKTOP, // Desktop\n MY_DOCUMENTS, // My Documents\n MY_COMPUTER, // My Computer\n SPECIAL_TYPE_LAST\n };\n\npublic:\n FSNode() {}\n\n // Non-special node constructor\n FSNode(Type type, std::wstring path)\n {\n mType = type;\n mSpecialType = NONE;\n mPath = path;\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\n // Special node constructor\n FSNode(SpecialType specialType)\n {\n mType = SPECIAL;\n mSpecialType = specialType;\n mPath = SpecialPaths[specialType];\n mParent = nullptr;\n mHasChildFolders = false;\n }\n\npublic:\n static void initCommon();\n\npublic:\n // Get type\n Type getType() const { return mType; }\n\n // Get special type\n SpecialType getSpecialType() const { return mSpecialType; }\n\n // Get parent node\n FSNode* getParent() const { return mParent; }\n // Set parent node\n void setParent(FSNode* parent) { mParent = parent; }\n\n // Get relative (from parent node) path\n std::wstring const& getRelPath() const { return mPath; }\n\n // Get childs list\n std::vector<FSNode> const& getChildsList() const { return mChilds; }\n std::vector<FSNode>& getChildsList() { return mChilds; }\n\n // Is node has child folders\n bool hasChildFolders() const { return mHasChildFolders; }\n\n\n std::wstring const& getDisplayName() const;\n\n void rebuildChildsListMyComputer(std::vector<FSNode>& resList);\n void rebuildChildsListDir(std::vector<FSNode>& resList, bool dirsOnly = false);\n void rebuildChildsList(std::vector<FSNode>& resList, bool dirsOnly = false);\n void rebuildChildsList(bool dirsOnly = false);\n void clearChildsList();\n\n void checkIfHasChilds(bool rec);\n\nprivate:\n Type mType:3; // type\n SpecialType mSpecialType:3; // special type\n bool mHasChildFolders:1; // is node has child folders\n std::wstring mPath; // relative path\n FSNode* mParent; // parent node\n std::vector<FSNode> mChilds; // child nodes\n\n static std::wstring SpecialDisplayNames[];\n static std::wstring SpecialPaths[];\n};\n\n\nbool IsPathExists(fs::path path);\nbool IsPathReadable(fs::path path);\n\nvoid CheckIfNodesHasChilds(std::vector<FSNode>& nodes, bool rec);\nvoid MakeFSNodesListFromPath(std::wstring path, std::vector<FSNode>& resList);\nfs::path GetFSNodeFullPath(FSNode const& node);\n"}
80,860
c
#ifndef _REGEX_CONFIG_H_ #define _REGEX_CONFIG_H_ # define GAWK # define NO_MBSUPPORT #endif
17.6
5
(translation_unit) "#ifndef _REGEX_CONFIG_H_\n#define _REGEX_CONFIG_H_\n\n# define GAWK\n# define NO_MBSUPPORT\n\n#endif\n" (preproc_ifdef) "#ifndef _REGEX_CONFIG_H_\n#define _REGEX_CONFIG_H_\n\n# define GAWK\n# define NO_MBSUPPORT\n\n#endif" (#ifndef) "#ifndef" (identifier) "_REGEX_CONFIG_H_" (preproc_def) "#define _REGEX_CONFIG_H_\n" (#define) "#define" (identifier) "_REGEX_CONFIG_H_" (preproc_def) "# define GAWK\n" (#define) "# define" (identifier) "GAWK" (preproc_def) "# define NO_MBSUPPORT\n" (#define) "# define" (identifier) "NO_MBSUPPORT" (#endif) "#endif"
14
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 17.6, "nodes": 13, "errors": 0, "source_hash": "b2ec3e082719b4bfec507594ab1f8a5f8b27cd58095e1c88a64869f0a07ffcfe", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _REGEX_CONFIG_H_\n#define _REGEX_CONFIG_H_\n\n# define GAWK\n# define NO_MBSUPPORT\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12], "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": "_REGEX_CONFIG_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define _REGEX_CONFIG_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "_REGEX_CONFIG_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_def", "text": "# define GAWK\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#define", "text": "# define", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "identifier", "text": "GAWK", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 13}}, {"id": 9, "type": "preproc_def", "text": "# define NO_MBSUPPORT\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#define", "text": "# define", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "identifier", "text": "NO_MBSUPPORT", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 21}}, {"id": 12, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 11, 12], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef _REGEX_CONFIG_H_\n#define _REGEX_CONFIG_H_\n\n# define GAWK\n# define NO_MBSUPPORT\n\n#endif\n"}
80,861
c
#include <stdio.h> #include "my shlib/my util.h" void foo2() { printf("test passed\n"); }
15
6
(translation_unit) "#include <stdio.h>\n#include "my shlib/my util.h"\n\nvoid foo2() \n{ \n printf("test passed\n");\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "my shlib/my util.h"\n" (#include) "#include" (string_literal) ""my shlib/my util.h"" (") """ (string_content) "my shlib/my util.h" (") """ (function_definition) "void foo2() \n{ \n printf("test passed\n");\n}" (primitive_type) "void" (function_declarator) "foo2()" (identifier) "foo2" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ \n printf("test passed\n");\n}" ({) "{" (expression_statement) "printf("test passed\n");" (call_expression) "printf("test passed\n")" (identifier) "printf" (argument_list) "("test passed\n")" (() "(" (string_literal) ""test passed\n"" (") """ (string_content) "test passed" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}"
32
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 15.0, "nodes": 16, "errors": 0, "source_hash": "f63d36acc793891ae66e0fd29d7efde9409a75e5664903c85f8b1f9ba44976ee", "categorized_nodes": 12}, "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 \"my shlib/my util.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": "\"my shlib/my util.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 29}}, {"id": 6, "type": "function_definition", "text": "void foo2() \n{ \n printf(\"test passed\\n\");\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"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": "foo2()", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 11}}, {"id": 9, "type": "identifier", "text": "foo2", "parent": 8, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 9}}, {"id": 10, "type": "parameter_list", "text": "()", "parent": 8, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 11}}, {"id": 11, "type": "call_expression", "text": "printf(\"test passed\\n\")", "parent": 6, "children": [12, 13], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 27}}, {"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": "(\"test passed\\n\")", "parent": 11, "children": [14], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 27}}, {"id": 14, "type": "string_literal", "text": "\"test passed\\n\"", "parent": 13, "children": [15], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 26}}, {"id": 15, "type": "escape_sequence", "text": "\\n", "parent": 14, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 25}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [11], "assignments": [], "loops": [], "conditionals": [9, 12], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "foo2", "text_snippet": "void foo2() \n{ \n printf(\"test passed\\n\");\n}"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "foo2()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"my shlib/my util.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include \"my shlib/my util.h\"\n\nvoid foo2() \n{ \n printf(\"test passed\\n\");\n}\n"}
80,862
c
/* * This file is part of OpenModelica. * * Copyright (c) 1998-2014, Open Source Modelica Consortium (OSMC), * c/o Linköpings universitet, Department of Computer and Information Science, * SE-58183 Linköping, Sweden. * * All rights reserved. * * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF THE BSD NEW LICENSE OR THE * GPL VERSION 3 LICENSE OR THE OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2. * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES * RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, * ACCORDING TO RECIPIENTS CHOICE. * * The OpenModelica software and the OSMC (Open Source Modelica Consortium) * Public License (OSMC-PL) are obtained from OSMC, either from the above * address, from the URLs: http://www.openmodelica.org or * http://www.ida.liu.se/projects/OpenModelica, and in the OpenModelica * distribution. GNU version 3 is obtained from: * http://www.gnu.org/copyleft/gpl.html. The New BSD License is obtained from: * http://www.opensource.org/licenses/BSD-3-Clause. * * This program is distributed WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, EXCEPT AS * EXPRESSLY SET FORTH IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE * CONDITIONS OF OSMC-PL. * */ #include <string.h> #include <stdint.h> #include "generic_array.h" #include "omc_error.h" #pragma GCC diagnostic error "-Werror" static void* generic_ptrget(const base_array_t *a, size_t sze, size_t i) { return ((char*)a->data) + (i*sze); } static int generic_array_ndims_eq(const base_array_t* src, const base_array_t* dst) { if(src->ndims != dst->ndims) { fprintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims); return 0; } return 1; } static int generic_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error) { int i; for(i = 0; i < src->ndims; ++i) { if(src->dim_size[i] != dst->dim_size[i]) { if (print_error) { fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n", i, i, src->dim_size[i], dst->dim_size[i]); } return 0; } } return 1; } static size_t check_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) { size_t i; // TODO wrap me in debug. No need to do this in release. omc_assert_macro(base_array_ok(src)); omc_assert_macro(generic_array_ndims_eq(src, dst)); size_t nr_of_elements = base_array_nr_of_elements(*src); // Check if shape is equal. int shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/); if(shape_eq) { return nr_of_elements; } // Shape not equal and destination is flexible array. // Adjust the dim sizes and realloc the destination if(dst->flexible) { for(i = 0; i < dst->ndims; ++i) { dst->dim_size[i] = src->dim_size[i]; } // let GC collect the old data. dst->data = generic_alloc(nr_of_elements, sze); return nr_of_elements; } // Shape not equal and destination is not flexible array. generic_array_dimsizes_eq(src, dst, 1 /*print error*/); // Just to print more info. throwStreamPrint(NULL, "Failed to copy array. Dimension sizes are not equal and destination array is not flexible."); // omc_assert_macro(0 && "Failed to copy array. Dimension sizes are not equal and destination array is not flexible."); return -1; } void generic_array_create_flexible(base_array_t* dst, int ndims) { dst->ndims = ndims; dst->dim_size = size_alloc(ndims); dst->flexible = 1; size_t i; for(i = 0; i < ndims; ++i) { dst->dim_size[i] = -1; } } void generic_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...) { size_t i, nr_of_elements; va_list ap; va_start(ap, sze); nr_of_elements = alloc_base_array(dst, ndims, ap); va_end(ap); dst->data = generic_alloc(nr_of_elements, sze); // If we get here then the dst array has known dims // Whcih means it is not flexible. dst->flexible = 0; // Initialize each element of the complex array char* d_data = (char*)(dst->data); for(i = 0; i < nr_of_elements; ++i) { ctr_func(td, d_data + (i*sze)); } } void simple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...) { size_t i, nr_of_elements; va_list ap; va_start(ap, sze); nr_of_elements = alloc_base_array(dst, ndims, ap); va_end(ap); dst->data = generic_alloc(nr_of_elements, sze); // If we get here then the dst array has known dims // Whcih means it is not flexible. dst->flexible = 0; // Init to 0. IDK if this is what Modelica expects // I guess it is better than garbage values. memset(dst->data, 0, nr_of_elements*sze); } void generic_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze) { const base_array_t* src = &src_cp; clone_base_array_spec(src, dst); // If we get here then it means the dst array had a default value (i.e., binding to src array) // Whcih means even if it was unknown size, it is not flexible anymore and is // same shape as the src array. dst->flexible = 0; size_t nr_of_elements = base_array_nr_of_elements(*dst); dst->data = generic_alloc(nr_of_elements, sze); size_t i; char* d_data = (char*)(dst->data); char* s_data = (char*)(src->data); for(i = 0; i < nr_of_elements; ++i) { cp_func(s_data + (i*sze), d_data + (i*sze)); } } void simple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze) { const base_array_t* src = &src_cp; clone_base_array_spec(src, dst); // If we get here then it means the dst array had a default value (i.e., binding to src array) // Whcih means even if it was unknown size, it is not flexible anymore and is // same shape as the src array. dst->flexible = 0; size_t nr_of_elements = base_array_nr_of_elements(*dst); dst->data = generic_alloc(nr_of_elements, sze); memcpy(dst->data, src->data, sze*nr_of_elements); } void generic_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze) { const base_array_t* src = &src_cp; size_t nr_of_elements = check_copy_sanity(src, dst, sze); size_t i; char* d_data = (char*)(dst->data); char* s_data = (char*)(src->data); for(i = 0; i < nr_of_elements; ++i) { cp_func(s_data + (i*sze), d_data + (i*sze)); } } void simple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze) { const base_array_t* src = &src_cp; size_t nr_of_elements = check_copy_sanity(src, dst, sze); memcpy(dst->data, src->data, sze*nr_of_elements); } void* generic_array_get(const base_array_t* src, size_t sze, ...) { va_list ap; va_start(ap,sze); // TODO assert va_list is as long as ndims. Otherwise we have slicing void* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze); va_end(ap); return trgt; } void generic_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) { va_list ap; va_start(ap,sze); // TODO assert va_list is as long as ndims. Otherwise we have slicing void* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze); cp_func(val,trgt); va_end(ap); } // TODO remove me. not needed anymore. superseded by generic_array_get // TODO: ndims is not needed to be passed here. void* generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) { va_list ap; void* tmp; va_start(ap,ndims); tmp = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze); va_end(ap); return tmp; } void* generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) { return generic_ptrget(source, dim1-1, sze); }
37.68
207
(translation_unit) "/*\n * This file is part of OpenModelica.\n *\n * Copyright (c) 1998-2014, Open Source Modelica Consortium (OSMC),\n * c/o Linköpings universitet, Department of Computer and Information Science,\n * SE-58183 Linköping, Sweden.\n *\n * All rights reserved.\n *\n * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF THE BSD NEW LICENSE OR THE\n * GPL VERSION 3 LICENSE OR THE OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.\n * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES\n * RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3,\n * ACCORDING TO RECIPIENTS CHOICE.\n *\n * The OpenModelica software and the OSMC (Open Source Modelica Consortium)\n * Public License (OSMC-PL) are obtained from OSMC, either from the above\n * address, from the URLs: http://www.openmodelica.org or\n * http://www.ida.liu.se/projects/OpenModelica, and in the OpenModelica\n * distribution. GNU version 3 is obtained from:\n * http://www.gnu.org/copyleft/gpl.html. The New BSD License is obtained from:\n * http://www.opensource.org/licenses/BSD-3-Clause.\n *\n * This program is distributed WITHOUT ANY WARRANTY; without even the implied\n * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, EXCEPT AS\n * EXPRESSLY SET FORTH IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE\n * CONDITIONS OF OSMC-PL.\n *\n */\n\n#include <string.h>\n#include <stdint.h>\n\n#include "generic_array.h"\n#include "omc_error.h"\n\n#pragma GCC diagnostic error "-Werror"\n\nstatic void* generic_ptrget(const base_array_t *a, size_t sze, size_t i) {\n return ((char*)a->data) + (i*sze);\n}\n\nstatic int generic_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {\n if(src->ndims != dst->ndims) {\n fprintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n return 0;\n }\n return 1;\n}\n\nstatic int generic_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error)\n{\n int i;\n for(i = 0; i < src->ndims; ++i) {\n if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n return 1;\n}\n\n\nstatic size_t check_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {\n size_t i;\n // TODO wrap me in debug. No need to do this in release.\n omc_assert_macro(base_array_ok(src));\n omc_assert_macro(generic_array_ndims_eq(src, dst));\n\n size_t nr_of_elements = base_array_nr_of_elements(*src);\n\n // Check if shape is equal.\n int shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n\n if(shape_eq) {\n return nr_of_elements;\n }\n\n // Shape not equal and destination is flexible array.\n // Adjust the dim sizes and realloc the destination\n if(dst->flexible) {\n for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n // Shape not equal and destination is not flexible array.\n generic_array_dimsizes_eq(src, dst, 1 /*print error*/); // Just to print more info.\n throwStreamPrint(NULL, "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n // omc_assert_macro(0 && "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n\n return -1;\n}\n\nvoid generic_array_create_flexible(base_array_t* dst, int ndims)\n{\n dst->ndims = ndims;\n dst->dim_size = size_alloc(ndims);\n\n dst->flexible = 1;\n\n size_t i;\n for(i = 0; i < ndims; ++i) {\n dst->dim_size[i] = -1;\n }\n}\n\nvoid generic_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Initialize each element of the complex array\n char* d_data = (char*)(dst->data);\n for(i = 0; i < nr_of_elements; ++i) {\n ctr_func(td, d_data + (i*sze));\n }\n}\n\nvoid simple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Init to 0. IDK if this is what Modelica expects\n // I guess it is better than garbage values.\n memset(dst->data, 0, nr_of_elements*sze);\n}\n\n\nvoid generic_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\nvoid simple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n\nvoid generic_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\nvoid simple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n\n\nvoid* generic_array_get(const base_array_t* src, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n va_end(ap);\n return trgt;\n}\n\nvoid generic_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n cp_func(val,trgt);\n va_end(ap);\n}\n\n\n\n// TODO remove me. not needed anymore. superseded by generic_array_get\n// TODO: ndims is not needed to be passed here.\nvoid* generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {\n va_list ap;\n void* tmp;\n va_start(ap,ndims);\n tmp = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n va_end(ap);\n return tmp;\n}\n\nvoid* generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {\n return generic_ptrget(source, dim1-1, sze);\n}\n\n\n\n" (comment) "/*\n * This file is part of OpenModelica.\n *\n * Copyright (c) 1998-2014, Open Source Modelica Consortium (OSMC),\n * c/o Linköpings universitet, Department of Computer and Information Science,\n * SE-58183 Linköping, Sweden.\n *\n * All rights reserved.\n *\n * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF THE BSD NEW LICENSE OR THE\n * GPL VERSION 3 LICENSE OR THE OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.\n * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES\n * RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3,\n * ACCORDING TO RECIPIENTS CHOICE.\n *\n * The OpenModelica software and the OSMC (Open Source Modelica Consortium)\n * Public License (OSMC-PL) are obtained from OSMC, either from the above\n * address, from the URLs: http://www.openmodelica.org or\n * http://www.ida.liu.se/projects/OpenModelica, and in the OpenModelica\n * distribution. GNU version 3 is obtained from:\n * http://www.gnu.org/copyleft/gpl.html. The New BSD License is obtained from:\n * http://www.opensource.org/licenses/BSD-3-Clause.\n *\n * This program is distributed WITHOUT ANY WARRANTY; without even the implied\n * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, EXCEPT AS\n * EXPRESSLY SET FORTH IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE\n * CONDITIONS OF OSMC-PL.\n *\n */\n\n" (preproc_include) "nclude <string.h>\n#i" (#include) "nclude <" (system_lib_string) "tring.h>\n#" (preproc_include) "nclude <stdint.h>\n\n#" (#include) "nclude <" (system_lib_string) "tdint.h>\n\n" (preproc_include) "nclude "generic_array.h"\n#i" (#include) "nclude "" (string_literal) "eneric_array.h"\n#" (") "e" (string_content) "neric_array.h"\n" (") "#" (preproc_include) "nclude "omc_error.h"\n\n#" (#include) "nclude "" (string_literal) "mc_error.h"\n\n" (") "m" (string_content) "c_error.h"\n" (") "\n" (preproc_call) "ragma GCC diagnostic error "-Werror"\n\ns" (preproc_directive) "ragma G" (preproc_arg) "C diagnostic error "-Werror"\n\n" (function_definition) "atic void* generic_ptrget(const base_array_t *a, size_t sze, size_t i) {\n return ((char*)a->data) + (i*sze);\n}\n\n" (storage_class_specifier) "atic v" (static) "atic v" (primitive_type) "id* " (pointer_declarator) "generic_ptrget(const base_array_t *a, size_t sze, size_t i) {" (*) "g" (function_declarator) "neric_ptrget(const base_array_t *a, size_t sze, size_t i) {" (identifier) "neric_ptrget(c" (parameter_list) "onst base_array_t *a, size_t sze, size_t i) {" (() "o" (parameter_declaration) "nst base_array_t *a, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t *" (pointer_declarator) ", " (*) "," (identifier) " " (,) "s" (parameter_declaration) "ze_t sze, " (primitive_type) "ze_t s" (identifier) "e, " (,) "s" (parameter_declaration) "ze_t i) " (primitive_type) "ze_t i" (identifier) " " ()) "{" (compound_statement) " return ((char*)a->data) + (i*sze);\n}\n\n" ({) " " (return_statement) "turn ((char*)a->data) + (i*sze);\n}" (return) "turn (" (binary_expression) "char*)a->data) + (i*sze);\n" (parenthesized_expression) "char*)a->data) +" (() "c" (cast_expression) "har*)a->data) " (() "h" (type_descriptor) "ar*)a" (primitive_type) "ar*)" (abstract_pointer_declarator) "a" (*) "a" ()) "-" (field_expression) ">data) " (identifier) ">" (->) "da" (field_identifier) "ta) " ()) "+" (+) "(" (parenthesized_expression) "*sze);\n" (() "*" (binary_expression) "sze);" (identifier) "s" (*) "z" (identifier) "e);" ()) "\n" (;) "}" (}) "\n" (function_definition) "atic int generic_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {\n if(src->ndims != dst->ndims) {\n fprintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n return 0;\n }\n return 1;\n}\n\n" (storage_class_specifier) "atic i" (static) "atic i" (primitive_type) "t g" (function_declarator) "neric_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {" (identifier) "neric_array_ndims_eq(c" (parameter_list) "onst base_array_t* src, const base_array_t* dst) {" (() "o" (parameter_declaration) "nst base_array_t* src, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "src, " (*) "s" (identifier) "c, " (,) "c" (parameter_declaration) "nst base_array_t* dst) " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "dst) " (*) "d" (identifier) "t) " ()) "{" (compound_statement) " if(src->ndims != dst->ndims) {\n fprintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n return 0;\n }\n return 1;\n}\n\n" ({) " " (if_statement) "(src->ndims != dst->ndims) {\n fprintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n return 0;\n }\n " (if) "(s" (parenthesized_expression) "rc->ndims != dst->ndims) {" (() "r" (binary_expression) "c->ndims != dst->ndims) " (field_expression) "c->ndims !" (identifier) "c->" (->) "nd" (field_identifier) "ims !" (!=) " d" (field_expression) "t->ndims) " (identifier) "t->" (->) "nd" (field_identifier) "ims) " ()) "{" (compound_statement) " fprintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n return 0;\n }\n " ({) " " (expression_statement) "rintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n " (call_expression) "rintf(stderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n" (identifier) "rintf(s" (argument_list) "tderr, "src->ndims != dst->ndims, %d != %d\n", src->ndims, dst->ndims);\n" (() "t" (identifier) "derr, " (,) """ (string_literal) "rc->ndims != dst->ndims, %d != %d\n", " (") "r" (string_content) "c->ndims != dst->ndims, %d != %d\n" (escape_sequence) ""," (") " " (,) "s" (field_expression) "c->ndims, " (identifier) "c->" (->) "nd" (field_identifier) "ims, " (,) "d" (field_expression) "t->ndims);" (identifier) "t->" (->) "nd" (field_identifier) "ims);" ()) "\n" (;) " " (return_statement) "turn 0;\n " (return) "turn 0" (number_literal) "\n" (;) " " (}) " " (return_statement) "turn 1;\n}" (return) "turn 1" (number_literal) "\n" (;) "}" (}) "\n" (function_definition) "atic int generic_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error)\n{\n int i;\n for(i = 0; i < src->ndims; ++i) {\n if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n return 1;\n}\n\n" (storage_class_specifier) "atic i" (static) "atic i" (primitive_type) "t g" (function_declarator) "neric_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error)\n{" (identifier) "neric_array_dimsizes_eq(c" (parameter_list) "onst base_array_t* src, const base_array_t* dst, int print_error)\n{" (() "o" (parameter_declaration) "nst base_array_t* src, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "src, " (*) "s" (identifier) "c, " (,) "c" (parameter_declaration) "nst base_array_t* dst, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "i" (parameter_declaration) "t print_error)\n" (primitive_type) "t p" (identifier) "int_error)\n" ()) "{" (compound_statement) " int i;\n for(i = 0; i < src->ndims; ++i) {\n if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n return 1;\n}\n\n" ({) " " (declaration) "t i;\n " (primitive_type) "t i" (identifier) "\n" (;) " " (for_statement) "r(i = 0; i < src->ndims; ++i) {\n if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n" (for) "r(i" (() " " (assignment_expression) "= 0; " (identifier) "=" (=) "0" (number_literal) " " (;) "i" (binary_expression) "< src->ndims; " (identifier) "<" (<) "s" (field_expression) "c->ndims; " (identifier) "c->" (->) "nd" (field_identifier) "ims; " (;) "+" (update_expression) "i) " (++) "i)" (identifier) " " ()) "{" (compound_statement) " if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n" ({) " " (if_statement) "(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n " (if) "(s" (parenthesized_expression) "rc->dim_size[i] != dst->dim_size[i]) {" (() "r" (binary_expression) "c->dim_size[i] != dst->dim_size[i]) " (subscript_expression) "c->dim_size[i] !" (field_expression) "c->dim_size[i" (identifier) "c->" (->) "di" (field_identifier) "m_size[i" ([) "]" (identifier) " " (]) "!" (!=) " d" (subscript_expression) "t->dim_size[i]) " (field_expression) "t->dim_size[i" (identifier) "t->" (->) "di" (field_identifier) "m_size[i" ([) "]" (identifier) ")" (]) " " ()) "{" (compound_statement) " if (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n " ({) " " (if_statement) " (print_error) {\n fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n " (if) " (" (parenthesized_expression) "rint_error) {" (() "r" (identifier) "int_error) " ()) "{" (compound_statement) " fprintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n " ({) " " (expression_statement) "rintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n " (call_expression) "rintf(stderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n" (identifier) "rintf(s" (argument_list) "tderr, "src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n i, i, src->dim_size[i], dst->dim_size[i]);\n" (() "t" (identifier) "derr, " (,) """ (string_literal) "rc->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n",\n" (") "r" (string_content) "c->dim_size[%d] != dst->dim_size[%d], %ld != %ld\n" (escape_sequence) ""," (") "\n" (,) " " (identifier) " " (,) "i" (identifier) " " (,) "s" (subscript_expression) "c->dim_size[i], " (field_expression) "c->dim_size[i" (identifier) "c->" (->) "di" (field_identifier) "m_size[i" ([) "]" (identifier) "," (]) " " (,) "d" (subscript_expression) "t->dim_size[i]);" (field_expression) "t->dim_size[i" (identifier) "t->" (->) "di" (field_identifier) "m_size[i" ([) "]" (identifier) ")" (]) ";" ()) "\n" (;) " " (}) " " (return_statement) "turn 0;\n " (return) "turn 0" (number_literal) "\n" (;) " " (}) " " (}) "\n" (return_statement) "turn 1;\n}" (return) "turn 1" (number_literal) "\n" (;) "}" (}) "\n" (function_definition) "atic size_t check_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {\n size_t i;\n // TODO wrap me in debug. No need to do this in release.\n omc_assert_macro(base_array_ok(src));\n omc_assert_macro(generic_array_ndims_eq(src, dst));\n\n size_t nr_of_elements = base_array_nr_of_elements(*src);\n\n // Check if shape is equal.\n int shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n\n if(shape_eq) {\n return nr_of_elements;\n }\n\n // Shape not equal and destination is flexible array.\n // Adjust the dim sizes and realloc the destination\n if(dst->flexible) {\n for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n // Shape not equal and destination is not flexible array.\n generic_array_dimsizes_eq(src, dst, 1 /*print error*/); // Just to print more info.\n throwStreamPrint(NULL, "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n // omc_assert_macro(0 && "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n\n return -1;\n}\n\n" (storage_class_specifier) "atic s" (static) "atic s" (primitive_type) "ze_t c" (function_declarator) "eck_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {" (identifier) "eck_copy_sanity(c" (parameter_list) "onst base_array_t* src, base_array_t* dst, size_t sze) {" (() "o" (parameter_declaration) "nst base_array_t* src, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "src, " (*) "s" (identifier) "c, " (,) "b" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "s" (parameter_declaration) "ze_t sze) " (primitive_type) "ze_t s" (identifier) "e) " ()) "{" (compound_statement) " size_t i;\n // TODO wrap me in debug. No need to do this in release.\n omc_assert_macro(base_array_ok(src));\n omc_assert_macro(generic_array_ndims_eq(src, dst));\n\n size_t nr_of_elements = base_array_nr_of_elements(*src);\n\n // Check if shape is equal.\n int shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n\n if(shape_eq) {\n return nr_of_elements;\n }\n\n // Shape not equal and destination is flexible array.\n // Adjust the dim sizes and realloc the destination\n if(dst->flexible) {\n for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n // Shape not equal and destination is not flexible array.\n generic_array_dimsizes_eq(src, dst, 1 /*print error*/); // Just to print more info.\n throwStreamPrint(NULL, "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n // omc_assert_macro(0 && "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n\n return -1;\n}\n\n" ({) " " (declaration) "ze_t i;\n " (primitive_type) "ze_t i" (identifier) "\n" (;) " " (comment) " TODO wrap me in debug. No need to do this in release.\n " (expression_statement) "c_assert_macro(base_array_ok(src));\n " (call_expression) "c_assert_macro(base_array_ok(src));\n" (identifier) "c_assert_macro(b" (argument_list) "ase_array_ok(src));\n" (() "a" (call_expression) "se_array_ok(src));" (identifier) "se_array_ok(s" (argument_list) "rc));" (() "r" (identifier) "c))" ()) ";" ()) "\n" (;) " " (expression_statement) "c_assert_macro(generic_array_ndims_eq(src, dst));\n\n" (call_expression) "c_assert_macro(generic_array_ndims_eq(src, dst));\n" (identifier) "c_assert_macro(g" (argument_list) "eneric_array_ndims_eq(src, dst));\n" (() "e" (call_expression) "neric_array_ndims_eq(src, dst));" (identifier) "neric_array_ndims_eq(s" (argument_list) "rc, dst));" (() "r" (identifier) "c, " (,) "d" (identifier) "t))" ()) ";" ()) "\n" (;) "\n" (declaration) "ze_t nr_of_elements = base_array_nr_of_elements(*src);\n\n" (primitive_type) "ze_t n" (init_declarator) "_of_elements = base_array_nr_of_elements(*src);\n" (identifier) "_of_elements =" (=) "b" (call_expression) "se_array_nr_of_elements(*src);\n" (identifier) "se_array_nr_of_elements(*" (argument_list) "src);\n" (() "s" (pointer_expression) "rc);" (*) "r" (identifier) "c);" ()) "\n" (;) "\n" (comment) " Check if shape is equal.\n " (declaration) "t shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n\n" (primitive_type) "t s" (init_declarator) "ape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n" (identifier) "ape_eq =" (=) "g" (call_expression) "neric_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n" (identifier) "neric_array_dimsizes_eq(s" (argument_list) "rc, dst, 0 /*do not print error yet*/);\n" (() "r" (identifier) "c, " (,) "d" (identifier) "t, " (,) "0" (number_literal) "/" (comment) "do not print error yet*/);" ()) "\n" (;) "\n" (if_statement) "(shape_eq) {\n return nr_of_elements;\n }\n\n" (if) "(s" (parenthesized_expression) "hape_eq) {" (() "h" (identifier) "ape_eq) " ()) "{" (compound_statement) " return nr_of_elements;\n }\n\n" ({) " " (return_statement) "turn nr_of_elements;\n " (return) "turn n" (identifier) "_of_elements;\n" (;) " " (}) "\n" (comment) " Shape not equal and destination is flexible array.\n " (comment) " Adjust the dim sizes and realloc the destination\n " (if_statement) "(dst->flexible) {\n for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n" (if) "(d" (parenthesized_expression) "st->flexible) {" (() "s" (field_expression) "t->flexible) " (identifier) "t->" (->) "fl" (field_identifier) "exible) " ()) "{" (compound_statement) " for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n" ({) " " (for_statement) "r(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n " (for) "r(i" (() " " (assignment_expression) "= 0; " (identifier) "=" (=) "0" (number_literal) " " (;) "i" (binary_expression) "< dst->ndims; " (identifier) "<" (<) "d" (field_expression) "t->ndims; " (identifier) "t->" (->) "nd" (field_identifier) "ims; " (;) "+" (update_expression) "i) " (++) "i)" (identifier) " " ()) "{" (compound_statement) " dst->dim_size[i] = src->dim_size[i];\n }\n " ({) " " (expression_statement) "t->dim_size[i] = src->dim_size[i];\n " (assignment_expression) "t->dim_size[i] = src->dim_size[i];\n" (subscript_expression) "t->dim_size[i] =" (field_expression) "t->dim_size[i" (identifier) "t->" (->) "di" (field_identifier) "m_size[i" ([) "]" (identifier) " " (]) "=" (=) "s" (subscript_expression) "c->dim_size[i];\n" (field_expression) "c->dim_size[i" (identifier) "c->" (->) "di" (field_identifier) "m_size[i" ([) "]" (identifier) ";" (]) "\n" (;) " " (}) " " (comment) " let GC collect the old data.\n " (expression_statement) "t->data = generic_alloc(nr_of_elements, sze);\n\n" (assignment_expression) "t->data = generic_alloc(nr_of_elements, sze);\n" (field_expression) "t->data =" (identifier) "t->" (->) "da" (field_identifier) "ta =" (=) "g" (call_expression) "neric_alloc(nr_of_elements, sze);\n" (identifier) "neric_alloc(n" (argument_list) "r_of_elements, sze);\n" (() "r" (identifier) "_of_elements, " (,) "s" (identifier) "e);" ()) "\n" (;) "\n" (return_statement) "turn nr_of_elements;\n " (return) "turn n" (identifier) "_of_elements;\n" (;) " " (}) "\n" (comment) " Shape not equal and destination is not flexible array.\n " (expression_statement) "neric_array_dimsizes_eq(src, dst, 1 /*print error*/); /" (call_expression) "neric_array_dimsizes_eq(src, dst, 1 /*print error*/); " (identifier) "neric_array_dimsizes_eq(s" (argument_list) "rc, dst, 1 /*print error*/); " (() "r" (identifier) "c, " (,) "d" (identifier) "t, " (,) "1" (number_literal) "/" (comment) "print error*/);" ()) " " (;) "/" (comment) " Just to print more info.\n " (expression_statement) "rowStreamPrint(NULL, "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n " (call_expression) "rowStreamPrint(NULL, "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n" (identifier) "rowStreamPrint(N" (argument_list) "ULL, "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n" (() "U" (null) "LL, " (NULL) "LL, " (,) """ (string_literal) "ailed to copy array. Dimension sizes are not equal and destination array is not flexible.");" (") "a" (string_content) "iled to copy array. Dimension sizes are not equal and destination array is not flexible.")" (") ";" ()) "\n" (;) " " (comment) " omc_assert_macro(0 && "Failed to copy array. Dimension sizes are not equal and destination array is not flexible.");\n\n" (return_statement) "turn -1;\n}" (return) "turn -" (number_literal) ";\n" (;) "}" (}) "\n" (function_definition) "id generic_array_create_flexible(base_array_t* dst, int ndims)\n{\n dst->ndims = ndims;\n dst->dim_size = size_alloc(ndims);\n\n dst->flexible = 1;\n\n size_t i;\n for(i = 0; i < ndims; ++i) {\n dst->dim_size[i] = -1;\n }\n}\n\n" (primitive_type) "id g" (function_declarator) "neric_array_create_flexible(base_array_t* dst, int ndims)\n{" (identifier) "neric_array_create_flexible(b" (parameter_list) "ase_array_t* dst, int ndims)\n{" (() "a" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "i" (parameter_declaration) "t ndims)\n" (primitive_type) "t n" (identifier) "ims)\n" ()) "{" (compound_statement) " dst->ndims = ndims;\n dst->dim_size = size_alloc(ndims);\n\n dst->flexible = 1;\n\n size_t i;\n for(i = 0; i < ndims; ++i) {\n dst->dim_size[i] = -1;\n }\n}\n\n" ({) " " (expression_statement) "t->ndims = ndims;\n " (assignment_expression) "t->ndims = ndims;\n" (field_expression) "t->ndims =" (identifier) "t->" (->) "nd" (field_identifier) "ims =" (=) "n" (identifier) "ims;\n" (;) " " (expression_statement) "t->dim_size = size_alloc(ndims);\n\n" (assignment_expression) "t->dim_size = size_alloc(ndims);\n" (field_expression) "t->dim_size =" (identifier) "t->" (->) "di" (field_identifier) "m_size =" (=) "s" (call_expression) "ze_alloc(ndims);\n" (identifier) "ze_alloc(n" (argument_list) "dims);\n" (() "d" (identifier) "ims);" ()) "\n" (;) "\n" (expression_statement) "t->flexible = 1;\n\n" (assignment_expression) "t->flexible = 1;\n" (field_expression) "t->flexible =" (identifier) "t->" (->) "fl" (field_identifier) "exible =" (=) "1" (number_literal) "\n" (;) "\n" (declaration) "ze_t i;\n " (primitive_type) "ze_t i" (identifier) "\n" (;) " " (for_statement) "r(i = 0; i < ndims; ++i) {\n dst->dim_size[i] = -1;\n }\n}" (for) "r(i" (() " " (assignment_expression) "= 0; " (identifier) "=" (=) "0" (number_literal) " " (;) "i" (binary_expression) "< ndims; " (identifier) "<" (<) "n" (identifier) "ims; " (;) "+" (update_expression) "i) " (++) "i)" (identifier) " " ()) "{" (compound_statement) " dst->dim_size[i] = -1;\n }\n}" ({) " " (expression_statement) "t->dim_size[i] = -1;\n " (assignment_expression) "t->dim_size[i] = -1;\n" (subscript_expression) "t->dim_size[i] =" (field_expression) "t->dim_size[i" (identifier) "t->" (->) "di" (field_identifier) "m_size[i" ([) "]" (identifier) " " (]) "=" (=) "-" (number_literal) ";\n" (;) " " (}) "}" (}) "\n" (function_definition) "id generic_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Initialize each element of the complex array\n char* d_data = (char*)(dst->data);\n for(i = 0; i < nr_of_elements; ++i) {\n ctr_func(td, d_data + (i*sze));\n }\n}\n\n" (primitive_type) "id g" (function_declarator) "neric_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{" (identifier) "neric_array_create(t" (parameter_list) "hreadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{" (() "h" (parameter_declaration) "readData_t* td, " (type_identifier) "readData_t* " (pointer_declarator) "td, " (*) "t" (identifier) ", " (,) "b" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "c" (parameter_declaration) "nstructor_func ctr_func, " (type_identifier) "nstructor_func c" (identifier) "r_func, " (,) "i" (parameter_declaration) "t ndims, " (primitive_type) "t n" (identifier) "ims, " (,) "s" (parameter_declaration) "ze_t sze, " (primitive_type) "ze_t s" (identifier) "e, " (,) "." (variadic_parameter) ".)\n" (...) ".)\n" ()) "{" (compound_statement) " size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Initialize each element of the complex array\n char* d_data = (char*)(dst->data);\n for(i = 0; i < nr_of_elements; ++i) {\n ctr_func(td, d_data + (i*sze));\n }\n}\n\n" ({) " " (declaration) "ze_t i, nr_of_elements;\n\n" (primitive_type) "ze_t i" (identifier) " " (,) "n" (identifier) "_of_elements;\n" (;) "\n" (declaration) "_list ap;\n " (type_identifier) "_list a" (identifier) ";\n" (;) " " (expression_statement) "_start(ap, sze);\n " (call_expression) "_start(ap, sze);\n" (identifier) "_start(a" (argument_list) "p, sze);\n" (() "p" (identifier) ", " (,) "s" (identifier) "e);" ()) "\n" (;) " " (expression_statement) "_of_elements = alloc_base_array(dst, ndims, ap);\n " (assignment_expression) "_of_elements = alloc_base_array(dst, ndims, ap);\n" (identifier) "_of_elements =" (=) "a" (call_expression) "loc_base_array(dst, ndims, ap);\n" (identifier) "loc_base_array(d" (argument_list) "st, ndims, ap);\n" (() "s" (identifier) "t, " (,) "n" (identifier) "ims, " (,) "a" (identifier) ");" ()) "\n" (;) " " (expression_statement) "_end(ap);\n " (call_expression) "_end(ap);\n" (identifier) "_end(a" (argument_list) "p);\n" (() "p" (identifier) ");" ()) "\n" (;) " " (expression_statement) "t->data = generic_alloc(nr_of_elements, sze);\n\n" (assignment_expression) "t->data = generic_alloc(nr_of_elements, sze);\n" (field_expression) "t->data =" (identifier) "t->" (->) "da" (field_identifier) "ta =" (=) "g" (call_expression) "neric_alloc(nr_of_elements, sze);\n" (identifier) "neric_alloc(n" (argument_list) "r_of_elements, sze);\n" (() "r" (identifier) "_of_elements, " (,) "s" (identifier) "e);" ()) "\n" (;) "\n" (comment) " If we get here then the dst array has known dims\n " (comment) " Whcih means it is not flexible.\n " (expression_statement) "t->flexible = 0;\n\n" (assignment_expression) "t->flexible = 0;\n" (field_expression) "t->flexible =" (identifier) "t->" (->) "fl" (field_identifier) "exible =" (=) "0" (number_literal) "\n" (;) "\n" (comment) " Initialize each element of the complex array\n " (declaration) "ar* d_data = (char*)(dst->data);\n " (primitive_type) "ar* " (init_declarator) "d_data = (char*)(dst->data);\n" (pointer_declarator) "d_data =" (*) "d" (identifier) "data =" (=) "(" (cast_expression) "har*)(dst->data);\n" (() "h" (type_descriptor) "ar*)(" (primitive_type) "ar*)" (abstract_pointer_declarator) "(" (*) "(" ()) "d" (parenthesized_expression) "st->data);\n" (() "s" (field_expression) "t->data);" (identifier) "t->" (->) "da" (field_identifier) "ta);" ()) "\n" (;) " " (for_statement) "r(i = 0; i < nr_of_elements; ++i) {\n ctr_func(td, d_data + (i*sze));\n }\n}" (for) "r(i" (() " " (assignment_expression) "= 0; " (identifier) "=" (=) "0" (number_literal) " " (;) "i" (binary_expression) "< nr_of_elements; " (identifier) "<" (<) "n" (identifier) "_of_elements; " (;) "+" (update_expression) "i) " (++) "i)" (identifier) " " ()) "{" (compound_statement) " ctr_func(td, d_data + (i*sze));\n }\n}" ({) " " (expression_statement) "r_func(td, d_data + (i*sze));\n " (call_expression) "r_func(td, d_data + (i*sze));\n" (identifier) "r_func(t" (argument_list) "d, d_data + (i*sze));\n" (() "d" (identifier) ", " (,) "d" (binary_expression) "data + (i*sze));" (identifier) "data +" (+) "(" (parenthesized_expression) "*sze));" (() "*" (binary_expression) "sze))" (identifier) "s" (*) "z" (identifier) "e))" ()) ";" ()) "\n" (;) " " (}) "}" (}) "\n" (function_definition) "id simple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Init to 0. IDK if this is what Modelica expects\n // I guess it is better than garbage values.\n memset(dst->data, 0, nr_of_elements*sze);\n}\n\n" (primitive_type) "id s" (function_declarator) "mple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{" (identifier) "mple_array_create(t" (parameter_list) "hreadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{" (() "h" (parameter_declaration) "readData_t* td, " (type_identifier) "readData_t* " (pointer_declarator) "td, " (*) "t" (identifier) ", " (,) "b" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "i" (parameter_declaration) "t ndims, " (primitive_type) "t n" (identifier) "ims, " (,) "s" (parameter_declaration) "ze_t sze, " (primitive_type) "ze_t s" (identifier) "e, " (,) "." (variadic_parameter) ".)\n" (...) ".)\n" ()) "{" (compound_statement) " size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Init to 0. IDK if this is what Modelica expects\n // I guess it is better than garbage values.\n memset(dst->data, 0, nr_of_elements*sze);\n}\n\n" ({) " " (declaration) "ze_t i, nr_of_elements;\n\n" (primitive_type) "ze_t i" (identifier) " " (,) "n" (identifier) "_of_elements;\n" (;) "\n" (declaration) "_list ap;\n " (type_identifier) "_list a" (identifier) ";\n" (;) " " (expression_statement) "_start(ap, sze);\n " (call_expression) "_start(ap, sze);\n" (identifier) "_start(a" (argument_list) "p, sze);\n" (() "p" (identifier) ", " (,) "s" (identifier) "e);" ()) "\n" (;) " " (expression_statement) "_of_elements = alloc_base_array(dst, ndims, ap);\n " (assignment_expression) "_of_elements = alloc_base_array(dst, ndims, ap);\n" (identifier) "_of_elements =" (=) "a" (call_expression) "loc_base_array(dst, ndims, ap);\n" (identifier) "loc_base_array(d" (argument_list) "st, ndims, ap);\n" (() "s" (identifier) "t, " (,) "n" (identifier) "ims, " (,) "a" (identifier) ");" ()) "\n" (;) " " (expression_statement) "_end(ap);\n " (call_expression) "_end(ap);\n" (identifier) "_end(a" (argument_list) "p);\n" (() "p" (identifier) ");" ()) "\n" (;) " " (expression_statement) "t->data = generic_alloc(nr_of_elements, sze);\n\n" (assignment_expression) "t->data = generic_alloc(nr_of_elements, sze);\n" (field_expression) "t->data =" (identifier) "t->" (->) "da" (field_identifier) "ta =" (=) "g" (call_expression) "neric_alloc(nr_of_elements, sze);\n" (identifier) "neric_alloc(n" (argument_list) "r_of_elements, sze);\n" (() "r" (identifier) "_of_elements, " (,) "s" (identifier) "e);" ()) "\n" (;) "\n" (comment) " If we get here then the dst array has known dims\n " (comment) " Whcih means it is not flexible.\n " (expression_statement) "t->flexible = 0;\n\n" (assignment_expression) "t->flexible = 0;\n" (field_expression) "t->flexible =" (identifier) "t->" (->) "fl" (field_identifier) "exible =" (=) "0" (number_literal) "\n" (;) "\n" (comment) " Init to 0. IDK if this is what Modelica expects\n " (comment) " I guess it is better than garbage values.\n " (expression_statement) "mset(dst->data, 0, nr_of_elements*sze);\n}" (call_expression) "mset(dst->data, 0, nr_of_elements*sze);\n" (identifier) "mset(d" (argument_list) "st->data, 0, nr_of_elements*sze);\n" (() "s" (field_expression) "t->data, " (identifier) "t->" (->) "da" (field_identifier) "ta, " (,) "0" (number_literal) " " (,) "n" (binary_expression) "_of_elements*sze);" (identifier) "_of_elements*s" (*) "z" (identifier) "e);" ()) "\n" (;) "}" (}) "\n" (function_definition) "id generic_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\n" (primitive_type) "id g" (function_declarator) "neric_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{" (identifier) "neric_array_alloc_copy(c" (parameter_list) "onst base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{" (() "o" (parameter_declaration) "nst base_array_t src_cp, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t s" (identifier) "c_cp, " (,) "b" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "c" (parameter_declaration) "py_func cp_func, " (type_identifier) "py_func c" (identifier) "_func, " (,) "s" (parameter_declaration) "ze_t sze)\n" (primitive_type) "ze_t s" (identifier) "e)\n" ()) "{" (compound_statement) " const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\n" ({) " " (declaration) "nst base_array_t* src = &src_cp;\n\n" (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (init_declarator) "src = &src_cp;\n" (pointer_declarator) "src =" (*) "s" (identifier) "c =" (=) "&" (pointer_expression) "rc_cp;\n" (&) "r" (identifier) "c_cp;\n" (;) "\n" (expression_statement) "one_base_array_spec(src, dst);\n\n" (call_expression) "one_base_array_spec(src, dst);\n" (identifier) "one_base_array_spec(s" (argument_list) "rc, dst);\n" (() "r" (identifier) "c, " (,) "d" (identifier) "t);" ()) "\n" (;) "\n" (comment) " If we get here then it means the dst array had a default value (i.e., binding to src array)\n " (comment) " Whcih means even if it was unknown size, it is not flexible anymore and is\n " (comment) " same shape as the src array.\n " (expression_statement) "t->flexible = 0;\n\n" (assignment_expression) "t->flexible = 0;\n" (field_expression) "t->flexible =" (identifier) "t->" (->) "fl" (field_identifier) "exible =" (=) "0" (number_literal) "\n" (;) "\n" (declaration) "ze_t nr_of_elements = base_array_nr_of_elements(*dst);\n " (primitive_type) "ze_t n" (init_declarator) "_of_elements = base_array_nr_of_elements(*dst);\n" (identifier) "_of_elements =" (=) "b" (call_expression) "se_array_nr_of_elements(*dst);\n" (identifier) "se_array_nr_of_elements(*" (argument_list) "dst);\n" (() "d" (pointer_expression) "st);" (*) "s" (identifier) "t);" ()) "\n" (;) " " (expression_statement) "t->data = generic_alloc(nr_of_elements, sze);\n\n" (assignment_expression) "t->data = generic_alloc(nr_of_elements, sze);\n" (field_expression) "t->data =" (identifier) "t->" (->) "da" (field_identifier) "ta =" (=) "g" (call_expression) "neric_alloc(nr_of_elements, sze);\n" (identifier) "neric_alloc(n" (argument_list) "r_of_elements, sze);\n" (() "r" (identifier) "_of_elements, " (,) "s" (identifier) "e);" ()) "\n" (;) "\n" (declaration) "ze_t i;\n " (primitive_type) "ze_t i" (identifier) "\n" (;) " " (declaration) "ar* d_data = (char*)(dst->data);\n " (primitive_type) "ar* " (init_declarator) "d_data = (char*)(dst->data);\n" (pointer_declarator) "d_data =" (*) "d" (identifier) "data =" (=) "(" (cast_expression) "har*)(dst->data);\n" (() "h" (type_descriptor) "ar*)(" (primitive_type) "ar*)" (abstract_pointer_declarator) "(" (*) "(" ()) "d" (parenthesized_expression) "st->data);\n" (() "s" (field_expression) "t->data);" (identifier) "t->" (->) "da" (field_identifier) "ta);" ()) "\n" (;) " " (declaration) "ar* s_data = (char*)(src->data);\n " (primitive_type) "ar* " (init_declarator) "s_data = (char*)(src->data);\n" (pointer_declarator) "s_data =" (*) "s" (identifier) "data =" (=) "(" (cast_expression) "har*)(src->data);\n" (() "h" (type_descriptor) "ar*)(" (primitive_type) "ar*)" (abstract_pointer_declarator) "(" (*) "(" ()) "s" (parenthesized_expression) "rc->data);\n" (() "r" (field_expression) "c->data);" (identifier) "c->" (->) "da" (field_identifier) "ta);" ()) "\n" (;) " " (for_statement) "r(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}" (for) "r(i" (() " " (assignment_expression) "= 0; " (identifier) "=" (=) "0" (number_literal) " " (;) "i" (binary_expression) "< nr_of_elements; " (identifier) "<" (<) "n" (identifier) "_of_elements; " (;) "+" (update_expression) "i) " (++) "i)" (identifier) " " ()) "{" (compound_statement) " cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}" ({) " " (expression_statement) "_func(s_data + (i*sze), d_data + (i*sze));\n " (call_expression) "_func(s_data + (i*sze), d_data + (i*sze));\n" (identifier) "_func(s" (argument_list) "_data + (i*sze), d_data + (i*sze));\n" (() "_" (binary_expression) "data + (i*sze), " (identifier) "data +" (+) "(" (parenthesized_expression) "*sze), " (() "*" (binary_expression) "sze)," (identifier) "s" (*) "z" (identifier) "e)," ()) " " (,) "d" (binary_expression) "data + (i*sze));" (identifier) "data +" (+) "(" (parenthesized_expression) "*sze));" (() "*" (binary_expression) "sze))" (identifier) "s" (*) "z" (identifier) "e))" ()) ";" ()) "\n" (;) " " (}) "}" (}) "\n" (function_definition) "id simple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n" (primitive_type) "id s" (function_declarator) "mple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{" (identifier) "mple_array_alloc_copy(c" (parameter_list) "onst base_array_t src_cp, base_array_t* dst, size_t sze)\n{" (() "o" (parameter_declaration) "nst base_array_t src_cp, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t s" (identifier) "c_cp, " (,) "b" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "s" (parameter_declaration) "ze_t sze)\n" (primitive_type) "ze_t s" (identifier) "e)\n" ()) "{" (compound_statement) " const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n" ({) " " (declaration) "nst base_array_t* src = &src_cp;\n\n" (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (init_declarator) "src = &src_cp;\n" (pointer_declarator) "src =" (*) "s" (identifier) "c =" (=) "&" (pointer_expression) "rc_cp;\n" (&) "r" (identifier) "c_cp;\n" (;) "\n" (expression_statement) "one_base_array_spec(src, dst);\n\n" (call_expression) "one_base_array_spec(src, dst);\n" (identifier) "one_base_array_spec(s" (argument_list) "rc, dst);\n" (() "r" (identifier) "c, " (,) "d" (identifier) "t);" ()) "\n" (;) "\n" (comment) " If we get here then it means the dst array had a default value (i.e., binding to src array)\n " (comment) " Whcih means even if it was unknown size, it is not flexible anymore and is\n " (comment) " same shape as the src array.\n " (expression_statement) "t->flexible = 0;\n\n" (assignment_expression) "t->flexible = 0;\n" (field_expression) "t->flexible =" (identifier) "t->" (->) "fl" (field_identifier) "exible =" (=) "0" (number_literal) "\n" (;) "\n" (declaration) "ze_t nr_of_elements = base_array_nr_of_elements(*dst);\n " (primitive_type) "ze_t n" (init_declarator) "_of_elements = base_array_nr_of_elements(*dst);\n" (identifier) "_of_elements =" (=) "b" (call_expression) "se_array_nr_of_elements(*dst);\n" (identifier) "se_array_nr_of_elements(*" (argument_list) "dst);\n" (() "d" (pointer_expression) "st);" (*) "s" (identifier) "t);" ()) "\n" (;) " " (expression_statement) "t->data = generic_alloc(nr_of_elements, sze);\n\n" (assignment_expression) "t->data = generic_alloc(nr_of_elements, sze);\n" (field_expression) "t->data =" (identifier) "t->" (->) "da" (field_identifier) "ta =" (=) "g" (call_expression) "neric_alloc(nr_of_elements, sze);\n" (identifier) "neric_alloc(n" (argument_list) "r_of_elements, sze);\n" (() "r" (identifier) "_of_elements, " (,) "s" (identifier) "e);" ()) "\n" (;) "\n" (expression_statement) "mcpy(dst->data, src->data, sze*nr_of_elements);\n}" (call_expression) "mcpy(dst->data, src->data, sze*nr_of_elements);\n" (identifier) "mcpy(d" (argument_list) "st->data, src->data, sze*nr_of_elements);\n" (() "s" (field_expression) "t->data, " (identifier) "t->" (->) "da" (field_identifier) "ta, " (,) "s" (field_expression) "c->data, " (identifier) "c->" (->) "da" (field_identifier) "ta, " (,) "s" (binary_expression) "e*nr_of_elements);" (identifier) "e*n" (*) "r" (identifier) "_of_elements);" ()) "\n" (;) "}" (}) "\n" (function_definition) "id generic_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\n" (primitive_type) "id g" (function_declarator) "neric_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{" (identifier) "neric_array_copy_data(c" (parameter_list) "onst base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{" (() "o" (parameter_declaration) "nst base_array_t src_cp, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t s" (identifier) "c_cp, " (,) "b" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "c" (parameter_declaration) "py_func cp_func, " (type_identifier) "py_func c" (identifier) "_func, " (,) "s" (parameter_declaration) "ze_t sze)\n" (primitive_type) "ze_t s" (identifier) "e)\n" ()) "{" (compound_statement) " const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\n" ({) " " (declaration) "nst base_array_t* src = &src_cp;\n\n" (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (init_declarator) "src = &src_cp;\n" (pointer_declarator) "src =" (*) "s" (identifier) "c =" (=) "&" (pointer_expression) "rc_cp;\n" (&) "r" (identifier) "c_cp;\n" (;) "\n" (declaration) "ze_t nr_of_elements = check_copy_sanity(src, dst, sze);\n\n" (primitive_type) "ze_t n" (init_declarator) "_of_elements = check_copy_sanity(src, dst, sze);\n" (identifier) "_of_elements =" (=) "c" (call_expression) "eck_copy_sanity(src, dst, sze);\n" (identifier) "eck_copy_sanity(s" (argument_list) "rc, dst, sze);\n" (() "r" (identifier) "c, " (,) "d" (identifier) "t, " (,) "s" (identifier) "e);" ()) "\n" (;) "\n" (declaration) "ze_t i;\n " (primitive_type) "ze_t i" (identifier) "\n" (;) " " (declaration) "ar* d_data = (char*)(dst->data);\n " (primitive_type) "ar* " (init_declarator) "d_data = (char*)(dst->data);\n" (pointer_declarator) "d_data =" (*) "d" (identifier) "data =" (=) "(" (cast_expression) "har*)(dst->data);\n" (() "h" (type_descriptor) "ar*)(" (primitive_type) "ar*)" (abstract_pointer_declarator) "(" (*) "(" ()) "d" (parenthesized_expression) "st->data);\n" (() "s" (field_expression) "t->data);" (identifier) "t->" (->) "da" (field_identifier) "ta);" ()) "\n" (;) " " (declaration) "ar* s_data = (char*)(src->data);\n " (primitive_type) "ar* " (init_declarator) "s_data = (char*)(src->data);\n" (pointer_declarator) "s_data =" (*) "s" (identifier) "data =" (=) "(" (cast_expression) "har*)(src->data);\n" (() "h" (type_descriptor) "ar*)(" (primitive_type) "ar*)" (abstract_pointer_declarator) "(" (*) "(" ()) "s" (parenthesized_expression) "rc->data);\n" (() "r" (field_expression) "c->data);" (identifier) "c->" (->) "da" (field_identifier) "ta);" ()) "\n" (;) " " (for_statement) "r(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}" (for) "r(i" (() " " (assignment_expression) "= 0; " (identifier) "=" (=) "0" (number_literal) " " (;) "i" (binary_expression) "< nr_of_elements; " (identifier) "<" (<) "n" (identifier) "_of_elements; " (;) "+" (update_expression) "i) " (++) "i)" (identifier) " " ()) "{" (compound_statement) " cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}" ({) " " (expression_statement) "_func(s_data + (i*sze), d_data + (i*sze));\n " (call_expression) "_func(s_data + (i*sze), d_data + (i*sze));\n" (identifier) "_func(s" (argument_list) "_data + (i*sze), d_data + (i*sze));\n" (() "_" (binary_expression) "data + (i*sze), " (identifier) "data +" (+) "(" (parenthesized_expression) "*sze), " (() "*" (binary_expression) "sze)," (identifier) "s" (*) "z" (identifier) "e)," ()) " " (,) "d" (binary_expression) "data + (i*sze));" (identifier) "data +" (+) "(" (parenthesized_expression) "*sze));" (() "*" (binary_expression) "sze))" (identifier) "s" (*) "z" (identifier) "e))" ()) ";" ()) "\n" (;) " " (}) "}" (}) "\n" (function_definition) "id simple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n" (primitive_type) "id s" (function_declarator) "mple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{" (identifier) "mple_array_copy_data(c" (parameter_list) "onst base_array_t src_cp, base_array_t* dst, size_t sze)\n{" (() "o" (parameter_declaration) "nst base_array_t src_cp, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t s" (identifier) "c_cp, " (,) "b" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "s" (parameter_declaration) "ze_t sze)\n" (primitive_type) "ze_t s" (identifier) "e)\n" ()) "{" (compound_statement) " const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n" ({) " " (declaration) "nst base_array_t* src = &src_cp;\n\n" (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (init_declarator) "src = &src_cp;\n" (pointer_declarator) "src =" (*) "s" (identifier) "c =" (=) "&" (pointer_expression) "rc_cp;\n" (&) "r" (identifier) "c_cp;\n" (;) "\n" (declaration) "ze_t nr_of_elements = check_copy_sanity(src, dst, sze);\n " (primitive_type) "ze_t n" (init_declarator) "_of_elements = check_copy_sanity(src, dst, sze);\n" (identifier) "_of_elements =" (=) "c" (call_expression) "eck_copy_sanity(src, dst, sze);\n" (identifier) "eck_copy_sanity(s" (argument_list) "rc, dst, sze);\n" (() "r" (identifier) "c, " (,) "d" (identifier) "t, " (,) "s" (identifier) "e);" ()) "\n" (;) " " (expression_statement) "mcpy(dst->data, src->data, sze*nr_of_elements);\n}" (call_expression) "mcpy(dst->data, src->data, sze*nr_of_elements);\n" (identifier) "mcpy(d" (argument_list) "st->data, src->data, sze*nr_of_elements);\n" (() "s" (field_expression) "t->data, " (identifier) "t->" (->) "da" (field_identifier) "ta, " (,) "s" (field_expression) "c->data, " (identifier) "c->" (->) "da" (field_identifier) "ta, " (,) "s" (binary_expression) "e*nr_of_elements);" (identifier) "e*n" (*) "r" (identifier) "_of_elements);" ()) "\n" (;) "}" (}) "\n" (function_definition) "id* generic_array_get(const base_array_t* src, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n va_end(ap);\n return trgt;\n}\n\n" (primitive_type) "id* " (pointer_declarator) "generic_array_get(const base_array_t* src, size_t sze, ...) {" (*) "g" (function_declarator) "neric_array_get(const base_array_t* src, size_t sze, ...) {" (identifier) "neric_array_get(c" (parameter_list) "onst base_array_t* src, size_t sze, ...) {" (() "o" (parameter_declaration) "nst base_array_t* src, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "src, " (*) "s" (identifier) "c, " (,) "s" (parameter_declaration) "ze_t sze, " (primitive_type) "ze_t s" (identifier) "e, " (,) "." (variadic_parameter) ".) " (...) ".) " ()) "{" (compound_statement) " va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n va_end(ap);\n return trgt;\n}\n\n" ({) " " (declaration) "_list ap;\n " (type_identifier) "_list a" (identifier) ";\n" (;) " " (expression_statement) "_start(ap,sze);\n " (call_expression) "_start(ap,sze);\n" (identifier) "_start(a" (argument_list) "p,sze);\n" (() "p" (identifier) ",s" (,) "z" (identifier) "e);" ()) "\n" (;) " " (comment) " TODO assert va_list is as long as ndims. Otherwise we have slicing\n " (declaration) "id* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n " (primitive_type) "id* " (init_declarator) "trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n" (pointer_declarator) "trgt =" (*) "t" (identifier) "gt =" (=) "g" (call_expression) "neric_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n" (identifier) "neric_ptrget(s" (argument_list) "rc, calc_base_index_va(src, src->ndims, ap), sze);\n" (() "r" (identifier) "c, " (,) "c" (call_expression) "lc_base_index_va(src, src->ndims, ap), " (identifier) "lc_base_index_va(s" (argument_list) "rc, src->ndims, ap), " (() "r" (identifier) "c, " (,) "s" (field_expression) "c->ndims, " (identifier) "c->" (->) "nd" (field_identifier) "ims, " (,) "a" (identifier) ")," ()) " " (,) "s" (identifier) "e);" ()) "\n" (;) " " (expression_statement) "_end(ap);\n " (call_expression) "_end(ap);\n" (identifier) "_end(a" (argument_list) "p);\n" (() "p" (identifier) ");" ()) "\n" (;) " " (return_statement) "turn trgt;\n}" (return) "turn t" (identifier) "gt;\n" (;) "}" (}) "\n" (function_definition) "id generic_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n cp_func(val,trgt);\n va_end(ap);\n}\n\n" (primitive_type) "id g" (function_declarator) "neric_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {" (identifier) "neric_array_set(b" (parameter_list) "ase_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {" (() "a" (parameter_declaration) "se_array_t* dst, " (type_identifier) "se_array_t* " (pointer_declarator) "dst, " (*) "d" (identifier) "t, " (,) "v" (parameter_declaration) "id* val, " (primitive_type) "id* " (pointer_declarator) "val, " (*) "v" (identifier) "l, " (,) "c" (parameter_declaration) "py_func cp_func, " (type_identifier) "py_func c" (identifier) "_func, " (,) "s" (parameter_declaration) "ze_t sze, " (primitive_type) "ze_t s" (identifier) "e, " (,) "." (variadic_parameter) ".) " (...) ".) " ()) "{" (compound_statement) " va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n cp_func(val,trgt);\n va_end(ap);\n}\n\n" ({) " " (declaration) "_list ap;\n " (type_identifier) "_list a" (identifier) ";\n" (;) " " (expression_statement) "_start(ap,sze);\n " (call_expression) "_start(ap,sze);\n" (identifier) "_start(a" (argument_list) "p,sze);\n" (() "p" (identifier) ",s" (,) "z" (identifier) "e);" ()) "\n" (;) " " (comment) " TODO assert va_list is as long as ndims. Otherwise we have slicing\n " (declaration) "id* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n " (primitive_type) "id* " (init_declarator) "trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n" (pointer_declarator) "trgt =" (*) "t" (identifier) "gt =" (=) "g" (call_expression) "neric_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n" (identifier) "neric_ptrget(d" (argument_list) "st, calc_base_index_va(dst, dst->ndims, ap), sze);\n" (() "s" (identifier) "t, " (,) "c" (call_expression) "lc_base_index_va(dst, dst->ndims, ap), " (identifier) "lc_base_index_va(d" (argument_list) "st, dst->ndims, ap), " (() "s" (identifier) "t, " (,) "d" (field_expression) "t->ndims, " (identifier) "t->" (->) "nd" (field_identifier) "ims, " (,) "a" (identifier) ")," ()) " " (,) "s" (identifier) "e);" ()) "\n" (;) " " (expression_statement) "_func(val,trgt);\n " (call_expression) "_func(val,trgt);\n" (identifier) "_func(v" (argument_list) "al,trgt);\n" (() "a" (identifier) "l,t" (,) "r" (identifier) "gt);" ()) "\n" (;) " " (expression_statement) "_end(ap);\n}" (call_expression) "_end(ap);\n" (identifier) "_end(a" (argument_list) "p);\n" (() "p" (identifier) ");" ()) "\n" (;) "}" (}) "\n" (comment) " TODO remove me. not needed anymore. superseded by generic_array_get\n/" (comment) " TODO: ndims is not needed to be passed here.\nv" (function_definition) "id* generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {\n va_list ap;\n void* tmp;\n va_start(ap,ndims);\n tmp = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n va_end(ap);\n return tmp;\n}\n\n" (primitive_type) "id* " (pointer_declarator) "generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {" (*) "g" (function_declarator) "neric_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {" (identifier) "neric_array_element_addr(c" (parameter_list) "onst base_array_t* source, size_t sze, int ndims,...) {" (() "o" (parameter_declaration) "nst base_array_t* source, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "source, " (*) "s" (identifier) "urce, " (,) "s" (parameter_declaration) "ze_t sze, " (primitive_type) "ze_t s" (identifier) "e, " (,) "i" (parameter_declaration) "t ndims,." (primitive_type) "t n" (identifier) "ims,." (,) "." (variadic_parameter) ".) " (...) ".) " ()) "{" (compound_statement) " va_list ap;\n void* tmp;\n va_start(ap,ndims);\n tmp = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n va_end(ap);\n return tmp;\n}\n\n" ({) " " (declaration) "_list ap;\n " (type_identifier) "_list a" (identifier) ";\n" (;) " " (declaration) "id* tmp;\n " (primitive_type) "id* " (pointer_declarator) "tmp;\n" (*) "t" (identifier) "p;\n" (;) " " (expression_statement) "_start(ap,ndims);\n " (call_expression) "_start(ap,ndims);\n" (identifier) "_start(a" (argument_list) "p,ndims);\n" (() "p" (identifier) ",n" (,) "d" (identifier) "ims);" ()) "\n" (;) " " (expression_statement) "p = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n " (assignment_expression) "p = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n" (identifier) "p =" (=) "g" (call_expression) "neric_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n" (identifier) "neric_ptrget(s" (argument_list) "ource, calc_base_index_va(source, ndims, ap), sze);\n" (() "o" (identifier) "urce, " (,) "c" (call_expression) "lc_base_index_va(source, ndims, ap), " (identifier) "lc_base_index_va(s" (argument_list) "ource, ndims, ap), " (() "o" (identifier) "urce, " (,) "n" (identifier) "ims, " (,) "a" (identifier) ")," ()) " " (,) "s" (identifier) "e);" ()) "\n" (;) " " (expression_statement) "_end(ap);\n " (call_expression) "_end(ap);\n" (identifier) "_end(a" (argument_list) "p);\n" (() "p" (identifier) ");" ()) "\n" (;) " " (return_statement) "turn tmp;\n}" (return) "turn t" (identifier) "p;\n" (;) "}" (}) "\n" (function_definition) "id* generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {\n return generic_ptrget(source, dim1-1, sze);\n}\n\n" (primitive_type) "id* " (pointer_declarator) "generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {" (*) "g" (function_declarator) "neric_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {" (identifier) "neric_array_element_addr1(c" (parameter_list) "onst base_array_t* source, size_t sze, int dim1) {" (() "o" (parameter_declaration) "nst base_array_t* source, " (type_qualifier) "nst b" (const) "nst b" (type_identifier) "se_array_t* " (pointer_declarator) "source, " (*) "s" (identifier) "urce, " (,) "s" (parameter_declaration) "ze_t sze, " (primitive_type) "ze_t s" (identifier) "e, " (,) "i" (parameter_declaration) "t dim1) " (primitive_type) "t d" (identifier) "m1) " ()) "{" (compound_statement) " return generic_ptrget(source, dim1-1, sze);\n}\n\n" ({) " " (return_statement) "turn generic_ptrget(source, dim1-1, sze);\n}" (return) "turn g" (call_expression) "neric_ptrget(source, dim1-1, sze);\n" (identifier) "neric_ptrget(s" (argument_list) "ource, dim1-1, sze);\n" (() "o" (identifier) "urce, " (,) "d" (binary_expression) "m1-1, " (identifier) "m1-1" (-) "," (number_literal) " " (,) "s" (identifier) "e);" ()) "\n" (;) "}" (}) "\n"
1,728
0
{"language": "c", "success": true, "metadata": {"lines": 207, "avg_line_length": 37.68, "nodes": 1086, "errors": 0, "source_hash": "9bb48d0e030d7ff04112aaf3e28f096a050f0ea2ed41f86e75e90f0955a07e97", "categorized_nodes": 748}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude <string.h>\n#i", "parent": null, "children": [1, 2], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 1, "type": "#include", "text": "nclude <", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "tring.h>\n#", "parent": 0, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "nclude <stdint.h>\n\n#", "parent": null, "children": [4, 5], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude <", "parent": 3, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "tdint.h>\n\n", "parent": 3, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "nclude \"generic_array.h\"\n#i", "parent": null, "children": [7, 8], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 7, "type": "#include", "text": "nclude \"", "parent": 6, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 8, "type": "string_literal", "text": "eneric_array.h\"\n#", "parent": 6, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "nclude \"omc_error.h\"\n\n#", "parent": null, "children": [10, 11], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 10, "type": "#include", "text": "nclude \"", "parent": 9, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 11, "type": "string_literal", "text": "mc_error.h\"\n\n", "parent": 9, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 22}}, {"id": 12, "type": "preproc_call", "text": "ragma GCC diagnostic error \"-Werror\"\n\ns", "parent": null, "children": [13, 14], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "ragma G", "parent": 12, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 14, "type": "preproc_arg", "text": "C diagnostic error \"-Werror\"\n\n", "parent": 12, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 38}}, {"id": 15, "type": "function_definition", "text": "atic void* generic_ptrget(const base_array_t *a, size_t sze, size_t i) {\n return ((char*)a->data) + (i*sze);\n}\n\n", "parent": null, "children": [16, 17, 18], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 16, "type": "storage_class_specifier", "text": "atic v", "parent": 15, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 17, "type": "primitive_type", "text": "id* ", "parent": 15, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 11}}, {"id": 18, "type": "pointer_declarator", "text": "generic_ptrget(const base_array_t *a, size_t sze, size_t i) {", "parent": 15, "children": [19, 20], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 72}}, {"id": 19, "type": "*", "text": "g", "parent": 18, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 12}}, {"id": 20, "type": "function_declarator", "text": "neric_ptrget(const base_array_t *a, size_t sze, size_t i) {", "parent": 18, "children": [21, 22], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 72}}, {"id": 21, "type": "identifier", "text": "neric_ptrget(c", "parent": 20, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 27}}, {"id": 22, "type": "parameter_list", "text": "onst base_array_t *a, size_t sze, size_t i) {", "parent": 20, "children": [23, 27, 30], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 72}}, {"id": 23, "type": "parameter_declaration", "text": "nst base_array_t *a, ", "parent": 22, "children": [24, 25], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 49}}, {"id": 24, "type": "type_qualifier", "text": "nst b", "parent": 23, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 33}}, {"id": 25, "type": "type_identifier", "text": "se_array_t *", "parent": 23, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 46}}, {"id": 26, "type": "identifier", "text": " ", "parent": 23, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 49}}, {"id": 27, "type": "parameter_declaration", "text": "ze_t sze, ", "parent": 22, "children": [28, 29], "start_point": {"row": 38, "column": 51}, "end_point": {"row": 38, "column": 61}}, {"id": 28, "type": "primitive_type", "text": "ze_t s", "parent": 27, "children": [], "start_point": {"row": 38, "column": 51}, "end_point": {"row": 38, "column": 57}}, {"id": 29, "type": "identifier", "text": "e, ", "parent": 27, "children": [], "start_point": {"row": 38, "column": 58}, "end_point": {"row": 38, "column": 61}}, {"id": 30, "type": "parameter_declaration", "text": "ze_t i) ", "parent": 22, "children": [31, 32], "start_point": {"row": 38, "column": 63}, "end_point": {"row": 38, "column": 71}}, {"id": 31, "type": "primitive_type", "text": "ze_t i", "parent": 30, "children": [], "start_point": {"row": 38, "column": 63}, "end_point": {"row": 38, "column": 69}}, {"id": 32, "type": "identifier", "text": " ", "parent": 30, "children": [], "start_point": {"row": 38, "column": 70}, "end_point": {"row": 38, "column": 71}}, {"id": 33, "type": "return_statement", "text": "turn ((char*)a->data) + (i*sze);\n}", "parent": 15, "children": [34], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 36}}, {"id": 34, "type": "binary_expression", "text": "char*)a->data) + (i*sze);\n", "parent": 33, "children": [35, 45], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 35}}, {"id": 35, "type": "parenthesized_expression", "text": "char*)a->data) +", "parent": 34, "children": [36], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 25}}, {"id": 36, "type": "cast_expression", "text": "har*)a->data) ", "parent": 35, "children": [37, 41], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 24}}, {"id": 37, "type": "type_descriptor", "text": "ar*)a", "parent": 36, "children": [38, 39], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 16}}, {"id": 38, "type": "primitive_type", "text": "ar*)", "parent": 37, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 15}}, {"id": 39, "type": "abstract_pointer_declarator", "text": "a", "parent": 37, "children": [40], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 40, "type": "*", "text": "a", "parent": 39, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 41, "type": "field_expression", "text": ">data) ", "parent": 36, "children": [42, 43, 44], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 24}}, {"id": 42, "type": "identifier", "text": ">", "parent": 41, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 18}}, {"id": 43, "type": "->", "text": "da", "parent": 41, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 20}}, {"id": 44, "type": "field_identifier", "text": "ta) ", "parent": 41, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 24}}, {"id": 45, "type": "parenthesized_expression", "text": "*sze);\n", "parent": 34, "children": [46], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 35}}, {"id": 46, "type": "binary_expression", "text": "sze);", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 34}}, {"id": 47, "type": "identifier", "text": "s", "parent": 46, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 30}}, {"id": 48, "type": "*", "text": "z", "parent": 46, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 31}}, {"id": 49, "type": "identifier", "text": "e);", "parent": 46, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 34}}, {"id": 50, "type": "function_definition", "text": "atic int generic_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {\n if(src->ndims != dst->ndims) {\n fprintf(stderr, \"src->ndims != dst->ndims, %d != %d\\n\", src->ndims, dst->ndims);\n return 0;\n }\n return 1;\n}\n\n", "parent": null, "children": [51, 52, 53], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 51, "type": "storage_class_specifier", "text": "atic i", "parent": 50, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 52, "type": "primitive_type", "text": "t g", "parent": 50, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 10}}, {"id": 53, "type": "function_declarator", "text": "neric_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {", "parent": 50, "children": [54, 55], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 83}}, {"id": 54, "type": "identifier", "text": "neric_array_ndims_eq(c", "parent": 53, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 33}}, {"id": 55, "type": "parameter_list", "text": "onst base_array_t* src, const base_array_t* dst) {", "parent": 53, "children": [56, 62], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 83}}, {"id": 56, "type": "parameter_declaration", "text": "nst base_array_t* src, ", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 57}}, {"id": 57, "type": "type_qualifier", "text": "nst b", "parent": 56, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 42, "column": 39}}, {"id": 58, "type": "type_identifier", "text": "se_array_t* ", "parent": 56, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 52}}, {"id": 59, "type": "pointer_declarator", "text": "src, ", "parent": 56, "children": [60, 61], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 57}}, {"id": 60, "type": "*", "text": "s", "parent": 59, "children": [], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 53}}, {"id": 61, "type": "identifier", "text": "c, ", "parent": 59, "children": [], "start_point": {"row": 42, "column": 54}, "end_point": {"row": 42, "column": 57}}, {"id": 62, "type": "parameter_declaration", "text": "nst base_array_t* dst) ", "parent": 55, "children": [63, 64, 65], "start_point": {"row": 42, "column": 59}, "end_point": {"row": 42, "column": 82}}, {"id": 63, "type": "type_qualifier", "text": "nst b", "parent": 62, "children": [], "start_point": {"row": 42, "column": 59}, "end_point": {"row": 42, "column": 64}}, {"id": 64, "type": "type_identifier", "text": "se_array_t* ", "parent": 62, "children": [], "start_point": {"row": 42, "column": 65}, "end_point": {"row": 42, "column": 77}}, {"id": 65, "type": "pointer_declarator", "text": "dst) ", "parent": 62, "children": [66, 67], "start_point": {"row": 42, "column": 77}, "end_point": {"row": 42, "column": 82}}, {"id": 66, "type": "*", "text": "d", "parent": 65, "children": [], "start_point": {"row": 42, "column": 77}, "end_point": {"row": 42, "column": 78}}, {"id": 67, "type": "identifier", "text": "t) ", "parent": 65, "children": [], "start_point": {"row": 42, "column": 79}, "end_point": {"row": 42, "column": 82}}, {"id": 68, "type": "if_statement", "text": "(src->ndims != dst->ndims) {\n fprintf(stderr, \"src->ndims != dst->ndims, %d != %d\\n\", src->ndims, dst->ndims);\n return 0;\n }\n ", "parent": 50, "children": [69], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 69, "type": "parenthesized_expression", "text": "rc->ndims != dst->ndims) {", "parent": 68, "children": [70], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 32}}, {"id": 70, "type": "binary_expression", "text": "c->ndims != dst->ndims) ", "parent": 69, "children": [71, 75, 76], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 31}}, {"id": 71, "type": "field_expression", "text": "c->ndims !", "parent": 70, "children": [72, 73, 74], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 17}}, {"id": 72, "type": "identifier", "text": "c->", "parent": 71, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 10}}, {"id": 73, "type": "->", "text": "nd", "parent": 71, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 12}}, {"id": 74, "type": "field_identifier", "text": "ims !", "parent": 71, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 17}}, {"id": 75, "type": "!=", "text": " d", "parent": 70, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 20}}, {"id": 76, "type": "field_expression", "text": "t->ndims) ", "parent": 70, "children": [77, 78, 79], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 31}}, {"id": 77, "type": "identifier", "text": "t->", "parent": 76, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 24}}, {"id": 78, "type": "->", "text": "nd", "parent": 76, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 26}}, {"id": 79, "type": "field_identifier", "text": "ims) ", "parent": 76, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 31}}, {"id": 80, "type": "call_expression", "text": "rintf(stderr, \"src->ndims != dst->ndims, %d != %d\\n\", src->ndims, dst->ndims);\n", "parent": 68, "children": [81, 82], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 87}}, {"id": 81, "type": "identifier", "text": "rintf(s", "parent": 80, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 15}}, {"id": 82, "type": "argument_list", "text": "tderr, \"src->ndims != dst->ndims, %d != %d\\n\", src->ndims, dst->ndims);\n", "parent": 80, "children": [83, 84, 86, 90], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 87}}, {"id": 83, "type": "identifier", "text": "derr, ", "parent": 82, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 22}}, {"id": 84, "type": "string_literal", "text": "rc->ndims != dst->ndims, %d != %d\\n\", ", "parent": 82, "children": [85], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 62}}, {"id": 85, "type": "escape_sequence", "text": "\",", "parent": 84, "children": [], "start_point": {"row": 44, "column": 59}, "end_point": {"row": 44, "column": 61}}, {"id": 86, "type": "field_expression", "text": "c->ndims, ", "parent": 82, "children": [87, 88, 89], "start_point": {"row": 44, "column": 64}, "end_point": {"row": 44, "column": 74}}, {"id": 87, "type": "identifier", "text": "c->", "parent": 86, "children": [], "start_point": {"row": 44, "column": 64}, "end_point": {"row": 44, "column": 67}}, {"id": 88, "type": "->", "text": "nd", "parent": 86, "children": [], "start_point": {"row": 44, "column": 67}, "end_point": {"row": 44, "column": 69}}, {"id": 89, "type": "field_identifier", "text": "ims, ", "parent": 86, "children": [], "start_point": {"row": 44, "column": 69}, "end_point": {"row": 44, "column": 74}}, {"id": 90, "type": "field_expression", "text": "t->ndims);", "parent": 82, "children": [91, 92, 93], "start_point": {"row": 44, "column": 76}, "end_point": {"row": 44, "column": 86}}, {"id": 91, "type": "identifier", "text": "t->", "parent": 90, "children": [], "start_point": {"row": 44, "column": 76}, "end_point": {"row": 44, "column": 79}}, {"id": 92, "type": "->", "text": "nd", "parent": 90, "children": [], "start_point": {"row": 44, "column": 79}, "end_point": {"row": 44, "column": 81}}, {"id": 93, "type": "field_identifier", "text": "ims);", "parent": 90, "children": [], "start_point": {"row": 44, "column": 81}, "end_point": {"row": 44, "column": 86}}, {"id": 94, "type": "return_statement", "text": "turn 0;\n ", "parent": 68, "children": [95], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 17}}, {"id": 95, "type": "number_literal", "text": "\n", "parent": 94, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 16}}, {"id": 96, "type": "return_statement", "text": "turn 1;\n}", "parent": 50, "children": [97], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 13}}, {"id": 97, "type": "number_literal", "text": "\n", "parent": 96, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 12}}, {"id": 98, "type": "function_definition", "text": "atic int generic_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error)\n{\n int i;\n for(i = 0; i < src->ndims; ++i) {\n if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, \"src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n return 1;\n}\n\n", "parent": null, "children": [99, 100, 101], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 99, "type": "storage_class_specifier", "text": "atic i", "parent": 98, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 100, "type": "primitive_type", "text": "t g", "parent": 98, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 10}}, {"id": 101, "type": "function_declarator", "text": "neric_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error)\n{", "parent": 98, "children": [102, 103], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 103}}, {"id": 102, "type": "identifier", "text": "neric_array_dimsizes_eq(c", "parent": 101, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 36}}, {"id": 103, "type": "parameter_list", "text": "onst base_array_t* src, const base_array_t* dst, int print_error)\n{", "parent": 101, "children": [104, 110, 116], "start_point": {"row": 50, "column": 36}, "end_point": {"row": 50, "column": 103}}, {"id": 104, "type": "parameter_declaration", "text": "nst base_array_t* src, ", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 60}}, {"id": 105, "type": "type_qualifier", "text": "nst b", "parent": 104, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 42}}, {"id": 106, "type": "type_identifier", "text": "se_array_t* ", "parent": 104, "children": [], "start_point": {"row": 50, "column": 43}, "end_point": {"row": 50, "column": 55}}, {"id": 107, "type": "pointer_declarator", "text": "src, ", "parent": 104, "children": [108, 109], "start_point": {"row": 50, "column": 55}, "end_point": {"row": 50, "column": 60}}, {"id": 108, "type": "*", "text": "s", "parent": 107, "children": [], "start_point": {"row": 50, "column": 55}, "end_point": {"row": 50, "column": 56}}, {"id": 109, "type": "identifier", "text": "c, ", "parent": 107, "children": [], "start_point": {"row": 50, "column": 57}, "end_point": {"row": 50, "column": 60}}, {"id": 110, "type": "parameter_declaration", "text": "nst base_array_t* dst, ", "parent": 103, "children": [111, 112, 113], "start_point": {"row": 50, "column": 62}, "end_point": {"row": 50, "column": 85}}, {"id": 111, "type": "type_qualifier", "text": "nst b", "parent": 110, "children": [], "start_point": {"row": 50, "column": 62}, "end_point": {"row": 50, "column": 67}}, {"id": 112, "type": "type_identifier", "text": "se_array_t* ", "parent": 110, "children": [], "start_point": {"row": 50, "column": 68}, "end_point": {"row": 50, "column": 80}}, {"id": 113, "type": "pointer_declarator", "text": "dst, ", "parent": 110, "children": [114, 115], "start_point": {"row": 50, "column": 80}, "end_point": {"row": 50, "column": 85}}, {"id": 114, "type": "*", "text": "d", "parent": 113, "children": [], "start_point": {"row": 50, "column": 80}, "end_point": {"row": 50, "column": 81}}, {"id": 115, "type": "identifier", "text": "t, ", "parent": 113, "children": [], "start_point": {"row": 50, "column": 82}, "end_point": {"row": 50, "column": 85}}, {"id": 116, "type": "parameter_declaration", "text": "t print_error)\n", "parent": 103, "children": [117, 118], "start_point": {"row": 50, "column": 87}, "end_point": {"row": 50, "column": 102}}, {"id": 117, "type": "primitive_type", "text": "t p", "parent": 116, "children": [], "start_point": {"row": 50, "column": 87}, "end_point": {"row": 50, "column": 90}}, {"id": 118, "type": "identifier", "text": "int_error)\n", "parent": 116, "children": [], "start_point": {"row": 50, "column": 91}, "end_point": {"row": 50, "column": 102}}, {"id": 119, "type": "declaration", "text": "t i;\n ", "parent": 98, "children": [120, 121], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 120, "type": "primitive_type", "text": "t i", "parent": 119, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 7}}, {"id": 121, "type": "identifier", "text": "\n", "parent": 119, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 9}}, {"id": 122, "type": "for_statement", "text": "r(i = 0; i < src->ndims; ++i) {\n if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, \"src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n", "parent": 98, "children": [123, 127, 134], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 123, "type": "assignment_expression", "text": "= 0; ", "parent": 122, "children": [124, 125, 126], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 13}}, {"id": 124, "type": "identifier", "text": "=", "parent": 123, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 9}}, {"id": 125, "type": "=", "text": "0", "parent": 123, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 11}}, {"id": 126, "type": "number_literal", "text": " ", "parent": 123, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 127, "type": "binary_expression", "text": "< src->ndims; ", "parent": 122, "children": [128, 129, 130], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 29}}, {"id": 128, "type": "identifier", "text": "<", "parent": 127, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 129, "type": "<", "text": "s", "parent": 127, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 130, "type": "field_expression", "text": "c->ndims; ", "parent": 127, "children": [131, 132, 133], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 29}}, {"id": 131, "type": "identifier", "text": "c->", "parent": 130, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 22}}, {"id": 132, "type": "->", "text": "nd", "parent": 130, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 24}}, {"id": 133, "type": "field_identifier", "text": "ims; ", "parent": 130, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 29}}, {"id": 134, "type": "update_expression", "text": "i) ", "parent": 122, "children": [135, 136], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 34}}, {"id": 135, "type": "++", "text": "i)", "parent": 134, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 33}}, {"id": 136, "type": "identifier", "text": " ", "parent": 134, "children": [], "start_point": {"row": 53, "column": 33}, "end_point": {"row": 53, "column": 34}}, {"id": 137, "type": "if_statement", "text": "(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, \"src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n ", "parent": 122, "children": [138], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 138, "type": "parenthesized_expression", "text": "rc->dim_size[i] != dst->dim_size[i]) {", "parent": 137, "children": [139], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 48}}, {"id": 139, "type": "binary_expression", "text": "c->dim_size[i] != dst->dim_size[i]) ", "parent": 138, "children": [140, 146, 147], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 47}}, {"id": 140, "type": "subscript_expression", "text": "c->dim_size[i] !", "parent": 139, "children": [141, 145], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 27}}, {"id": 141, "type": "field_expression", "text": "c->dim_size[i", "parent": 140, "children": [142, 143, 144], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 24}}, {"id": 142, "type": "identifier", "text": "c->", "parent": 141, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 14}}, {"id": 143, "type": "->", "text": "di", "parent": 141, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 16}}, {"id": 144, "type": "field_identifier", "text": "m_size[i", "parent": 141, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 24}}, {"id": 145, "type": "identifier", "text": " ", "parent": 140, "children": [], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 26}}, {"id": 146, "type": "!=", "text": " d", "parent": 139, "children": [], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 30}}, {"id": 147, "type": "subscript_expression", "text": "t->dim_size[i]) ", "parent": 139, "children": [148], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 47}}, {"id": 148, "type": "field_expression", "text": "t->dim_size[i", "parent": 147, "children": [149, 150, 151], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 44}}, {"id": 149, "type": "identifier", "text": "t->", "parent": 148, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 34}}, {"id": 150, "type": "->", "text": "di", "parent": 148, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 36}}, {"id": 151, "type": "field_identifier", "text": "m_size[i", "parent": 148, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 44}}, {"id": 152, "type": "if_statement", "text": " (print_error) {\n fprintf(stderr, \"src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n ", "parent": 137, "children": [153], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 153, "type": "parenthesized_expression", "text": "rint_error) {", "parent": 152, "children": [154], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 28}}, {"id": 154, "type": "identifier", "text": "int_error) ", "parent": 153, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 27}}, {"id": 155, "type": "call_expression", "text": "rintf(stderr, \"src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n i, i, src->dim_size[i], dst->dim_size[i]);\n", "parent": 152, "children": [156, 157], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 57, "column": 65}}, {"id": 156, "type": "identifier", "text": "rintf(s", "parent": 155, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 23}}, {"id": 157, "type": "argument_list", "text": "tderr, \"src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n i, i, src->dim_size[i], dst->dim_size[i]);\n", "parent": 155, "children": [158, 159, 161, 162, 163, 168], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 57, "column": 65}}, {"id": 158, "type": "identifier", "text": "derr, ", "parent": 157, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 30}}, {"id": 159, "type": "string_literal", "text": "rc->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n", "parent": 157, "children": [160], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 86}}, {"id": 160, "type": "escape_sequence", "text": "\",", "parent": 159, "children": [], "start_point": {"row": 56, "column": 83}, "end_point": {"row": 56, "column": 85}}, {"id": 161, "type": "identifier", "text": " ", "parent": 157, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 25}}, {"id": 162, "type": "identifier", "text": " ", "parent": 157, "children": [], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 28}}, {"id": 163, "type": "subscript_expression", "text": "c->dim_size[i], ", "parent": 157, "children": [164], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 46}}, {"id": 164, "type": "field_expression", "text": "c->dim_size[i", "parent": 163, "children": [165, 166, 167], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 43}}, {"id": 165, "type": "identifier", "text": "c->", "parent": 164, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 33}}, {"id": 166, "type": "->", "text": "di", "parent": 164, "children": [], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 35}}, {"id": 167, "type": "field_identifier", "text": "m_size[i", "parent": 164, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 43}}, {"id": 168, "type": "subscript_expression", "text": "t->dim_size[i]);", "parent": 157, "children": [169], "start_point": {"row": 57, "column": 48}, "end_point": {"row": 57, "column": 64}}, {"id": 169, "type": "field_expression", "text": "t->dim_size[i", "parent": 168, "children": [170, 171, 172], "start_point": {"row": 57, "column": 48}, "end_point": {"row": 57, "column": 61}}, {"id": 170, "type": "identifier", "text": "t->", "parent": 169, "children": [], "start_point": {"row": 57, "column": 48}, "end_point": {"row": 57, "column": 51}}, {"id": 171, "type": "->", "text": "di", "parent": 169, "children": [], "start_point": {"row": 57, "column": 51}, "end_point": {"row": 57, "column": 53}}, {"id": 172, "type": "field_identifier", "text": "m_size[i", "parent": 169, "children": [], "start_point": {"row": 57, "column": 53}, "end_point": {"row": 57, "column": 61}}, {"id": 173, "type": "return_statement", "text": "turn 0;\n ", "parent": 137, "children": [174], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 21}}, {"id": 174, "type": "number_literal", "text": "\n", "parent": 173, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 20}}, {"id": 175, "type": "return_statement", "text": "turn 1;\n}", "parent": 98, "children": [176], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 13}}, {"id": 176, "type": "number_literal", "text": "\n", "parent": 175, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 177, "type": "function_definition", "text": "atic size_t check_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {\n size_t i;\n // TODO wrap me in debug. No need to do this in release.\n omc_assert_macro(base_array_ok(src));\n omc_assert_macro(generic_array_ndims_eq(src, dst));\n\n size_t nr_of_elements = base_array_nr_of_elements(*src);\n\n // Check if shape is equal.\n int shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n\n if(shape_eq) {\n return nr_of_elements;\n }\n\n // Shape not equal and destination is flexible array.\n // Adjust the dim sizes and realloc the destination\n if(dst->flexible) {\n for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n // Shape not equal and destination is not flexible array.\n generic_array_dimsizes_eq(src, dst, 1 /*print error*/); // Just to print more info.\n throwStreamPrint(NULL, \"Failed to copy array. Dimension sizes are not equal and destination array is not flexible.\");\n // omc_assert_macro(0 && \"Failed to copy array. Dimension sizes are not equal and destination array is not flexible.\");\n\n return -1;\n}\n\n", "parent": null, "children": [178, 179, 180], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 178, "type": "storage_class_specifier", "text": "atic s", "parent": 177, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 179, "type": "primitive_type", "text": "ze_t c", "parent": 177, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 13}}, {"id": 180, "type": "function_declarator", "text": "eck_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {", "parent": 177, "children": [181, 182], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 87}}, {"id": 181, "type": "identifier", "text": "eck_copy_sanity(c", "parent": 180, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 31}}, {"id": 182, "type": "parameter_list", "text": "onst base_array_t* src, base_array_t* dst, size_t sze) {", "parent": 180, "children": [183, 189, 194], "start_point": {"row": 67, "column": 31}, "end_point": {"row": 67, "column": 87}}, {"id": 183, "type": "parameter_declaration", "text": "nst base_array_t* src, ", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 55}}, {"id": 184, "type": "type_qualifier", "text": "nst b", "parent": 183, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 37}}, {"id": 185, "type": "type_identifier", "text": "se_array_t* ", "parent": 183, "children": [], "start_point": {"row": 67, "column": 38}, "end_point": {"row": 67, "column": 50}}, {"id": 186, "type": "pointer_declarator", "text": "src, ", "parent": 183, "children": [187, 188], "start_point": {"row": 67, "column": 50}, "end_point": {"row": 67, "column": 55}}, {"id": 187, "type": "*", "text": "s", "parent": 186, "children": [], "start_point": {"row": 67, "column": 50}, "end_point": {"row": 67, "column": 51}}, {"id": 188, "type": "identifier", "text": "c, ", "parent": 186, "children": [], "start_point": {"row": 67, "column": 52}, "end_point": {"row": 67, "column": 55}}, {"id": 189, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 182, "children": [190, 191], "start_point": {"row": 67, "column": 57}, "end_point": {"row": 67, "column": 74}}, {"id": 190, "type": "type_identifier", "text": "se_array_t* ", "parent": 189, "children": [], "start_point": {"row": 67, "column": 57}, "end_point": {"row": 67, "column": 69}}, {"id": 191, "type": "pointer_declarator", "text": "dst, ", "parent": 189, "children": [192, 193], "start_point": {"row": 67, "column": 69}, "end_point": {"row": 67, "column": 74}}, {"id": 192, "type": "*", "text": "d", "parent": 191, "children": [], "start_point": {"row": 67, "column": 69}, "end_point": {"row": 67, "column": 70}}, {"id": 193, "type": "identifier", "text": "t, ", "parent": 191, "children": [], "start_point": {"row": 67, "column": 71}, "end_point": {"row": 67, "column": 74}}, {"id": 194, "type": "parameter_declaration", "text": "ze_t sze) ", "parent": 182, "children": [195, 196], "start_point": {"row": 67, "column": 76}, "end_point": {"row": 67, "column": 86}}, {"id": 195, "type": "primitive_type", "text": "ze_t s", "parent": 194, "children": [], "start_point": {"row": 67, "column": 76}, "end_point": {"row": 67, "column": 82}}, {"id": 196, "type": "identifier", "text": "e) ", "parent": 194, "children": [], "start_point": {"row": 67, "column": 83}, "end_point": {"row": 67, "column": 86}}, {"id": 197, "type": "declaration", "text": "ze_t i;\n ", "parent": 177, "children": [198, 199], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 13}}, {"id": 198, "type": "primitive_type", "text": "ze_t i", "parent": 197, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 10}}, {"id": 199, "type": "identifier", "text": "\n", "parent": 197, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 12}}, {"id": 200, "type": "call_expression", "text": "c_assert_macro(base_array_ok(src));\n", "parent": 177, "children": [201, 202], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 40}}, {"id": 201, "type": "identifier", "text": "c_assert_macro(b", "parent": 200, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 20}}, {"id": 202, "type": "argument_list", "text": "ase_array_ok(src));\n", "parent": 200, "children": [203], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 40}}, {"id": 203, "type": "call_expression", "text": "se_array_ok(src));", "parent": 202, "children": [204, 205], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 39}}, {"id": 204, "type": "identifier", "text": "se_array_ok(s", "parent": 203, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 34}}, {"id": 205, "type": "argument_list", "text": "rc));", "parent": 203, "children": [206], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 39}}, {"id": 206, "type": "identifier", "text": "c))", "parent": 205, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 38}}, {"id": 207, "type": "call_expression", "text": "c_assert_macro(generic_array_ndims_eq(src, dst));\n", "parent": 177, "children": [208, 209], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 54}}, {"id": 208, "type": "identifier", "text": "c_assert_macro(g", "parent": 207, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 20}}, {"id": 209, "type": "argument_list", "text": "eneric_array_ndims_eq(src, dst));\n", "parent": 207, "children": [210], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 54}}, {"id": 210, "type": "call_expression", "text": "neric_array_ndims_eq(src, dst));", "parent": 209, "children": [211, 212], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 53}}, {"id": 211, "type": "identifier", "text": "neric_array_ndims_eq(s", "parent": 210, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 43}}, {"id": 212, "type": "argument_list", "text": "rc, dst));", "parent": 210, "children": [213, 214], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 53}}, {"id": 213, "type": "identifier", "text": "c, ", "parent": 212, "children": [], "start_point": {"row": 71, "column": 44}, "end_point": {"row": 71, "column": 47}}, {"id": 214, "type": "identifier", "text": "t))", "parent": 212, "children": [], "start_point": {"row": 71, "column": 49}, "end_point": {"row": 71, "column": 52}}, {"id": 215, "type": "declaration", "text": "ze_t nr_of_elements = base_array_nr_of_elements(*src);\n\n", "parent": 177, "children": [216, 217], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 60}}, {"id": 216, "type": "primitive_type", "text": "ze_t n", "parent": 215, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 10}}, {"id": 217, "type": "init_declarator", "text": "_of_elements = base_array_nr_of_elements(*src);\n", "parent": 215, "children": [218, 219, 220], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 59}}, {"id": 218, "type": "identifier", "text": "_of_elements =", "parent": 217, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 25}}, {"id": 219, "type": "=", "text": "b", "parent": 217, "children": [], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 27}}, {"id": 220, "type": "call_expression", "text": "se_array_nr_of_elements(*src);\n", "parent": 217, "children": [221, 222], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 59}}, {"id": 221, "type": "identifier", "text": "se_array_nr_of_elements(*", "parent": 220, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 53}}, {"id": 222, "type": "argument_list", "text": "src);\n", "parent": 220, "children": [223], "start_point": {"row": 73, "column": 53}, "end_point": {"row": 73, "column": 59}}, {"id": 223, "type": "pointer_expression", "text": "rc);", "parent": 222, "children": [224, 225], "start_point": {"row": 73, "column": 54}, "end_point": {"row": 73, "column": 58}}, {"id": 224, "type": "*", "text": "r", "parent": 223, "children": [], "start_point": {"row": 73, "column": 54}, "end_point": {"row": 73, "column": 55}}, {"id": 225, "type": "identifier", "text": "c);", "parent": 223, "children": [], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 58}}, {"id": 226, "type": "declaration", "text": "t shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n\n", "parent": 177, "children": [227, 228], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 85}}, {"id": 227, "type": "primitive_type", "text": "t s", "parent": 226, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 7}}, {"id": 228, "type": "init_declarator", "text": "ape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n", "parent": 226, "children": [229, 230, 231], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 84}}, {"id": 229, "type": "identifier", "text": "ape_eq =", "parent": 228, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 16}}, {"id": 230, "type": "=", "text": "g", "parent": 228, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 18}}, {"id": 231, "type": "call_expression", "text": "neric_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n", "parent": 228, "children": [232, 233], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 84}}, {"id": 232, "type": "identifier", "text": "neric_array_dimsizes_eq(s", "parent": 231, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 44}}, {"id": 233, "type": "argument_list", "text": "rc, dst, 0 /*do not print error yet*/);\n", "parent": 231, "children": [234, 235, 236], "start_point": {"row": 76, "column": 44}, "end_point": {"row": 76, "column": 84}}, {"id": 234, "type": "identifier", "text": "c, ", "parent": 233, "children": [], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 48}}, {"id": 235, "type": "identifier", "text": "t, ", "parent": 233, "children": [], "start_point": {"row": 76, "column": 50}, "end_point": {"row": 76, "column": 53}}, {"id": 236, "type": "number_literal", "text": "/", "parent": 233, "children": [], "start_point": {"row": 76, "column": 55}, "end_point": {"row": 76, "column": 56}}, {"id": 237, "type": "if_statement", "text": "(shape_eq) {\n return nr_of_elements;\n }\n\n", "parent": 177, "children": [238], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 80, "column": 5}}, {"id": 238, "type": "parenthesized_expression", "text": "hape_eq) {", "parent": 237, "children": [239], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 16}}, {"id": 239, "type": "identifier", "text": "ape_eq) ", "parent": 238, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 15}}, {"id": 240, "type": "return_statement", "text": "turn nr_of_elements;\n ", "parent": 237, "children": [241], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 30}}, {"id": 241, "type": "identifier", "text": "_of_elements;\n", "parent": 240, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 29}}, {"id": 242, "type": "if_statement", "text": "(dst->flexible) {\n for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n", "parent": 177, "children": [243], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 92, "column": 5}}, {"id": 243, "type": "parenthesized_expression", "text": "st->flexible) {", "parent": 242, "children": [244], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 21}}, {"id": 244, "type": "field_expression", "text": "t->flexible) ", "parent": 243, "children": [245, 246, 247], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 20}}, {"id": 245, "type": "identifier", "text": "t->", "parent": 244, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 10}}, {"id": 246, "type": "->", "text": "fl", "parent": 244, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 12}}, {"id": 247, "type": "field_identifier", "text": "exible) ", "parent": 244, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 20}}, {"id": 248, "type": "for_statement", "text": "r(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n ", "parent": 242, "children": [249, 253, 260], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 249, "type": "assignment_expression", "text": "= 0; ", "parent": 248, "children": [250, 251, 252], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 17}}, {"id": 250, "type": "identifier", "text": "=", "parent": 249, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 13}}, {"id": 251, "type": "=", "text": "0", "parent": 249, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 15}}, {"id": 252, "type": "number_literal", "text": " ", "parent": 249, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 17}}, {"id": 253, "type": "binary_expression", "text": "< dst->ndims; ", "parent": 248, "children": [254, 255, 256], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 33}}, {"id": 254, "type": "identifier", "text": "<", "parent": 253, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 20}}, {"id": 255, "type": "<", "text": "d", "parent": 253, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 22}}, {"id": 256, "type": "field_expression", "text": "t->ndims; ", "parent": 253, "children": [257, 258, 259], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 33}}, {"id": 257, "type": "identifier", "text": "t->", "parent": 256, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 26}}, {"id": 258, "type": "->", "text": "nd", "parent": 256, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 28}}, {"id": 259, "type": "field_identifier", "text": "ims; ", "parent": 256, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 33}}, {"id": 260, "type": "update_expression", "text": "i) ", "parent": 248, "children": [261, 262], "start_point": {"row": 85, "column": 35}, "end_point": {"row": 85, "column": 38}}, {"id": 261, "type": "++", "text": "i)", "parent": 260, "children": [], "start_point": {"row": 85, "column": 35}, "end_point": {"row": 85, "column": 37}}, {"id": 262, "type": "identifier", "text": " ", "parent": 260, "children": [], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 38}}, {"id": 263, "type": "assignment_expression", "text": "t->dim_size[i] = src->dim_size[i];\n", "parent": 248, "children": [264, 270, 271], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 45}}, {"id": 264, "type": "subscript_expression", "text": "t->dim_size[i] =", "parent": 263, "children": [265, 269], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 26}}, {"id": 265, "type": "field_expression", "text": "t->dim_size[i", "parent": 264, "children": [266, 267, 268], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 23}}, {"id": 266, "type": "identifier", "text": "t->", "parent": 265, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 13}}, {"id": 267, "type": "->", "text": "di", "parent": 265, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 15}}, {"id": 268, "type": "field_identifier", "text": "m_size[i", "parent": 265, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 23}}, {"id": 269, "type": "identifier", "text": " ", "parent": 264, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 25}}, {"id": 270, "type": "=", "text": "s", "parent": 263, "children": [], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 28}}, {"id": 271, "type": "subscript_expression", "text": "c->dim_size[i];\n", "parent": 263, "children": [272], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 45}}, {"id": 272, "type": "field_expression", "text": "c->dim_size[i", "parent": 271, "children": [273, 274, 275], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 42}}, {"id": 273, "type": "identifier", "text": "c->", "parent": 272, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 32}}, {"id": 274, "type": "->", "text": "di", "parent": 272, "children": [], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 34}}, {"id": 275, "type": "field_identifier", "text": "m_size[i", "parent": 272, "children": [], "start_point": {"row": 86, "column": 34}, "end_point": {"row": 86, "column": 42}}, {"id": 276, "type": "assignment_expression", "text": "t->data = generic_alloc(nr_of_elements, sze);\n", "parent": 242, "children": [277, 281, 282], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 54}}, {"id": 277, "type": "field_expression", "text": "t->data =", "parent": 276, "children": [278, 279, 280], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 17}}, {"id": 278, "type": "identifier", "text": "t->", "parent": 277, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 11}}, {"id": 279, "type": "->", "text": "da", "parent": 277, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 13}}, {"id": 280, "type": "field_identifier", "text": "ta =", "parent": 277, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 17}}, {"id": 281, "type": "=", "text": "g", "parent": 276, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 19}}, {"id": 282, "type": "call_expression", "text": "neric_alloc(nr_of_elements, sze);\n", "parent": 276, "children": [283, 284], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 54}}, {"id": 283, "type": "identifier", "text": "neric_alloc(n", "parent": 282, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 33}}, {"id": 284, "type": "argument_list", "text": "r_of_elements, sze);\n", "parent": 282, "children": [285, 286], "start_point": {"row": 89, "column": 33}, "end_point": {"row": 89, "column": 54}}, {"id": 285, "type": "identifier", "text": "_of_elements, ", "parent": 284, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 48}}, {"id": 286, "type": "identifier", "text": "e);", "parent": 284, "children": [], "start_point": {"row": 89, "column": 50}, "end_point": {"row": 89, "column": 53}}, {"id": 287, "type": "return_statement", "text": "turn nr_of_elements;\n ", "parent": 242, "children": [288], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 30}}, {"id": 288, "type": "identifier", "text": "_of_elements;\n", "parent": 287, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 29}}, {"id": 289, "type": "call_expression", "text": "neric_array_dimsizes_eq(src, dst, 1 /*print error*/); ", "parent": 177, "children": [290, 291], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 58}}, {"id": 290, "type": "identifier", "text": "neric_array_dimsizes_eq(s", "parent": 289, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 29}}, {"id": 291, "type": "argument_list", "text": "rc, dst, 1 /*print error*/); ", "parent": 289, "children": [292, 293, 294], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 58}}, {"id": 292, "type": "identifier", "text": "c, ", "parent": 291, "children": [], "start_point": {"row": 95, "column": 30}, "end_point": {"row": 95, "column": 33}}, {"id": 293, "type": "identifier", "text": "t, ", "parent": 291, "children": [], "start_point": {"row": 95, "column": 35}, "end_point": {"row": 95, "column": 38}}, {"id": 294, "type": "number_literal", "text": "/", "parent": 291, "children": [], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 41}}, {"id": 295, "type": "call_expression", "text": "rowStreamPrint(NULL, \"Failed to copy array. Dimension sizes are not equal and destination array is not flexible.\");\n", "parent": 177, "children": [296, 297], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 120}}, {"id": 296, "type": "identifier", "text": "rowStreamPrint(N", "parent": 295, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 20}}, {"id": 297, "type": "argument_list", "text": "ULL, \"Failed to copy array. Dimension sizes are not equal and destination array is not flexible.\");\n", "parent": 295, "children": [298, 300], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 120}}, {"id": 298, "type": "null", "text": "LL, ", "parent": 297, "children": [299], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 25}}, {"id": 299, "type": "NULL", "text": "LL, ", "parent": 298, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 25}}, {"id": 300, "type": "string_literal", "text": "ailed to copy array. Dimension sizes are not equal and destination array is not flexible.\");", "parent": 297, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 119}}, {"id": 301, "type": "return_statement", "text": "turn -1;\n}", "parent": 177, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 14}}, {"id": 302, "type": "function_definition", "text": "id generic_array_create_flexible(base_array_t* dst, int ndims)\n{\n dst->ndims = ndims;\n dst->dim_size = size_alloc(ndims);\n\n dst->flexible = 1;\n\n size_t i;\n for(i = 0; i < ndims; ++i) {\n dst->dim_size[i] = -1;\n }\n}\n\n", "parent": null, "children": [303, 304], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 113, "column": 1}}, {"id": 303, "type": "primitive_type", "text": "id g", "parent": 302, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 4}}, {"id": 304, "type": "function_declarator", "text": "neric_array_create_flexible(base_array_t* dst, int ndims)\n{", "parent": 302, "children": [305, 306], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 64}}, {"id": 305, "type": "identifier", "text": "neric_array_create_flexible(b", "parent": 304, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 34}}, {"id": 306, "type": "parameter_list", "text": "ase_array_t* dst, int ndims)\n{", "parent": 304, "children": [307, 312], "start_point": {"row": 102, "column": 34}, "end_point": {"row": 102, "column": 64}}, {"id": 307, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 306, "children": [308, 309], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 52}}, {"id": 308, "type": "type_identifier", "text": "se_array_t* ", "parent": 307, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 47}}, {"id": 309, "type": "pointer_declarator", "text": "dst, ", "parent": 307, "children": [310, 311], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 52}}, {"id": 310, "type": "*", "text": "d", "parent": 309, "children": [], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 48}}, {"id": 311, "type": "identifier", "text": "t, ", "parent": 309, "children": [], "start_point": {"row": 102, "column": 49}, "end_point": {"row": 102, "column": 52}}, {"id": 312, "type": "parameter_declaration", "text": "t ndims)\n", "parent": 306, "children": [313, 314], "start_point": {"row": 102, "column": 54}, "end_point": {"row": 102, "column": 63}}, {"id": 313, "type": "primitive_type", "text": "t n", "parent": 312, "children": [], "start_point": {"row": 102, "column": 54}, "end_point": {"row": 102, "column": 57}}, {"id": 314, "type": "identifier", "text": "ims)\n", "parent": 312, "children": [], "start_point": {"row": 102, "column": 58}, "end_point": {"row": 102, "column": 63}}, {"id": 315, "type": "assignment_expression", "text": "t->ndims = ndims;\n", "parent": 302, "children": [316, 320, 321], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 22}}, {"id": 316, "type": "field_expression", "text": "t->ndims =", "parent": 315, "children": [317, 318, 319], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 14}}, {"id": 317, "type": "identifier", "text": "t->", "parent": 316, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 7}}, {"id": 318, "type": "->", "text": "nd", "parent": 316, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 9}}, {"id": 319, "type": "field_identifier", "text": "ims =", "parent": 316, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 14}}, {"id": 320, "type": "=", "text": "n", "parent": 315, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 16}}, {"id": 321, "type": "identifier", "text": "ims;\n", "parent": 315, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 22}}, {"id": 322, "type": "assignment_expression", "text": "t->dim_size = size_alloc(ndims);\n", "parent": 302, "children": [323, 327, 328], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 37}}, {"id": 323, "type": "field_expression", "text": "t->dim_size =", "parent": 322, "children": [324, 325, 326], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 17}}, {"id": 324, "type": "identifier", "text": "t->", "parent": 323, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 7}}, {"id": 325, "type": "->", "text": "di", "parent": 323, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 9}}, {"id": 326, "type": "field_identifier", "text": "m_size =", "parent": 323, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 17}}, {"id": 327, "type": "=", "text": "s", "parent": 322, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 19}}, {"id": 328, "type": "call_expression", "text": "ze_alloc(ndims);\n", "parent": 322, "children": [329, 330], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 37}}, {"id": 329, "type": "identifier", "text": "ze_alloc(n", "parent": 328, "children": [], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 30}}, {"id": 330, "type": "argument_list", "text": "dims);\n", "parent": 328, "children": [331], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 37}}, {"id": 331, "type": "identifier", "text": "ims);", "parent": 330, "children": [], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 36}}, {"id": 332, "type": "assignment_expression", "text": "t->flexible = 1;\n", "parent": 302, "children": [333, 337, 338], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 21}}, {"id": 333, "type": "field_expression", "text": "t->flexible =", "parent": 332, "children": [334, 335, 336], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 17}}, {"id": 334, "type": "identifier", "text": "t->", "parent": 333, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 7}}, {"id": 335, "type": "->", "text": "fl", "parent": 333, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 9}}, {"id": 336, "type": "field_identifier", "text": "exible =", "parent": 333, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 17}}, {"id": 337, "type": "=", "text": "1", "parent": 332, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 19}}, {"id": 338, "type": "number_literal", "text": "\n", "parent": 332, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 21}}, {"id": 339, "type": "declaration", "text": "ze_t i;\n ", "parent": 302, "children": [340, 341], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 13}}, {"id": 340, "type": "primitive_type", "text": "ze_t i", "parent": 339, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 10}}, {"id": 341, "type": "identifier", "text": "\n", "parent": 339, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 12}}, {"id": 342, "type": "for_statement", "text": "r(i = 0; i < ndims; ++i) {\n dst->dim_size[i] = -1;\n }\n}", "parent": 302, "children": [343, 347, 351], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 112, "column": 5}}, {"id": 343, "type": "assignment_expression", "text": "= 0; ", "parent": 342, "children": [344, 345, 346], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 13}}, {"id": 344, "type": "identifier", "text": "=", "parent": 343, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 9}}, {"id": 345, "type": "=", "text": "0", "parent": 343, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 11}}, {"id": 346, "type": "number_literal", "text": " ", "parent": 343, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 13}}, {"id": 347, "type": "binary_expression", "text": "< ndims; ", "parent": 342, "children": [348, 349, 350], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 24}}, {"id": 348, "type": "identifier", "text": "<", "parent": 347, "children": [], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 16}}, {"id": 349, "type": "<", "text": "n", "parent": 347, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 18}}, {"id": 350, "type": "identifier", "text": "ims; ", "parent": 347, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 24}}, {"id": 351, "type": "update_expression", "text": "i) ", "parent": 342, "children": [352, 353], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 29}}, {"id": 352, "type": "++", "text": "i)", "parent": 351, "children": [], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 28}}, {"id": 353, "type": "identifier", "text": " ", "parent": 351, "children": [], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 29}}, {"id": 354, "type": "assignment_expression", "text": "t->dim_size[i] = -1;\n", "parent": 342, "children": [355, 361], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 29}}, {"id": 355, "type": "subscript_expression", "text": "t->dim_size[i] =", "parent": 354, "children": [356, 360], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 24}}, {"id": 356, "type": "field_expression", "text": "t->dim_size[i", "parent": 355, "children": [357, 358, 359], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 21}}, {"id": 357, "type": "identifier", "text": "t->", "parent": 356, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 11}}, {"id": 358, "type": "->", "text": "di", "parent": 356, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 13}}, {"id": 359, "type": "field_identifier", "text": "m_size[i", "parent": 356, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 21}}, {"id": 360, "type": "identifier", "text": " ", "parent": 355, "children": [], "start_point": {"row": 111, "column": 22}, "end_point": {"row": 111, "column": 23}}, {"id": 361, "type": "=", "text": "-", "parent": 354, "children": [], "start_point": {"row": 111, "column": 25}, "end_point": {"row": 111, "column": 26}}, {"id": 362, "type": "function_definition", "text": "id generic_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Initialize each element of the complex array\n char* d_data = (char*)(dst->data);\n for(i = 0; i < nr_of_elements; ++i) {\n ctr_func(td, d_data + (i*sze));\n }\n}\n\n", "parent": null, "children": [363, 364], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 134, "column": 1}}, {"id": 363, "type": "primitive_type", "text": "id g", "parent": 362, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 4}}, {"id": 364, "type": "function_declarator", "text": "neric_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{", "parent": 362, "children": [365, 366], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 117}}, {"id": 365, "type": "identifier", "text": "neric_array_create(t", "parent": 364, "children": [], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 25}}, {"id": 366, "type": "parameter_list", "text": "hreadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{", "parent": 364, "children": [367, 371, 376, 379, 382, 385], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 117}}, {"id": 367, "type": "parameter_declaration", "text": "readData_t* td, ", "parent": 366, "children": [368, 369], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 42}}, {"id": 368, "type": "type_identifier", "text": "readData_t* ", "parent": 367, "children": [], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 38}}, {"id": 369, "type": "pointer_declarator", "text": "td, ", "parent": 367, "children": [370], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 42}}, {"id": 370, "type": "*", "text": "t", "parent": 369, "children": [], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 39}}, {"id": 371, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 366, "children": [372, 373], "start_point": {"row": 115, "column": 44}, "end_point": {"row": 115, "column": 61}}, {"id": 372, "type": "type_identifier", "text": "se_array_t* ", "parent": 371, "children": [], "start_point": {"row": 115, "column": 44}, "end_point": {"row": 115, "column": 56}}, {"id": 373, "type": "pointer_declarator", "text": "dst, ", "parent": 371, "children": [374, 375], "start_point": {"row": 115, "column": 56}, "end_point": {"row": 115, "column": 61}}, {"id": 374, "type": "*", "text": "d", "parent": 373, "children": [], "start_point": {"row": 115, "column": 56}, "end_point": {"row": 115, "column": 57}}, {"id": 375, "type": "identifier", "text": "t, ", "parent": 373, "children": [], "start_point": {"row": 115, "column": 58}, "end_point": {"row": 115, "column": 61}}, {"id": 376, "type": "parameter_declaration", "text": "nstructor_func ctr_func, ", "parent": 366, "children": [377, 378], "start_point": {"row": 115, "column": 63}, "end_point": {"row": 115, "column": 88}}, {"id": 377, "type": "type_identifier", "text": "nstructor_func c", "parent": 376, "children": [], "start_point": {"row": 115, "column": 63}, "end_point": {"row": 115, "column": 79}}, {"id": 378, "type": "identifier", "text": "r_func, ", "parent": 376, "children": [], "start_point": {"row": 115, "column": 80}, "end_point": {"row": 115, "column": 88}}, {"id": 379, "type": "parameter_declaration", "text": "t ndims, ", "parent": 366, "children": [380, 381], "start_point": {"row": 115, "column": 90}, "end_point": {"row": 115, "column": 99}}, {"id": 380, "type": "primitive_type", "text": "t n", "parent": 379, "children": [], "start_point": {"row": 115, "column": 90}, "end_point": {"row": 115, "column": 93}}, {"id": 381, "type": "identifier", "text": "ims, ", "parent": 379, "children": [], "start_point": {"row": 115, "column": 94}, "end_point": {"row": 115, "column": 99}}, {"id": 382, "type": "parameter_declaration", "text": "ze_t sze, ", "parent": 366, "children": [383, 384], "start_point": {"row": 115, "column": 101}, "end_point": {"row": 115, "column": 111}}, {"id": 383, "type": "primitive_type", "text": "ze_t s", "parent": 382, "children": [], "start_point": {"row": 115, "column": 101}, "end_point": {"row": 115, "column": 107}}, {"id": 384, "type": "identifier", "text": "e, ", "parent": 382, "children": [], "start_point": {"row": 115, "column": 108}, "end_point": {"row": 115, "column": 111}}, {"id": 385, "type": "variadic_parameter", "text": ".)\n", "parent": 366, "children": [386], "start_point": {"row": 115, "column": 113}, "end_point": {"row": 115, "column": 116}}, {"id": 386, "type": "...", "text": ".)\n", "parent": 385, "children": [], "start_point": {"row": 115, "column": 113}, "end_point": {"row": 115, "column": 116}}, {"id": 387, "type": "declaration", "text": "ze_t i, nr_of_elements;\n\n", "parent": 362, "children": [388, 389, 390], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 29}}, {"id": 388, "type": "primitive_type", "text": "ze_t i", "parent": 387, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 10}}, {"id": 389, "type": "identifier", "text": " ", "parent": 387, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 12}}, {"id": 390, "type": "identifier", "text": "_of_elements;\n", "parent": 387, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 28}}, {"id": 391, "type": "declaration", "text": "_list ap;\n ", "parent": 362, "children": [392], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 15}}, {"id": 392, "type": "type_identifier", "text": "_list a", "parent": 391, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 11}}, {"id": 393, "type": "call_expression", "text": "_start(ap, sze);\n", "parent": 362, "children": [394, 395], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 21}}, {"id": 394, "type": "identifier", "text": "_start(a", "parent": 393, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 12}}, {"id": 395, "type": "argument_list", "text": "p, sze);\n", "parent": 393, "children": [396], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 21}}, {"id": 396, "type": "identifier", "text": "e);", "parent": 395, "children": [], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 20}}, {"id": 397, "type": "assignment_expression", "text": "_of_elements = alloc_base_array(dst, ndims, ap);\n", "parent": 362, "children": [398, 399, 400], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 53}}, {"id": 398, "type": "identifier", "text": "_of_elements =", "parent": 397, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 18}}, {"id": 399, "type": "=", "text": "a", "parent": 397, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 20}}, {"id": 400, "type": "call_expression", "text": "loc_base_array(dst, ndims, ap);\n", "parent": 397, "children": [401, 402], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 53}}, {"id": 401, "type": "identifier", "text": "loc_base_array(d", "parent": 400, "children": [], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 37}}, {"id": 402, "type": "argument_list", "text": "st, ndims, ap);\n", "parent": 400, "children": [403, 404, 405], "start_point": {"row": 121, "column": 37}, "end_point": {"row": 121, "column": 53}}, {"id": 403, "type": "identifier", "text": "t, ", "parent": 402, "children": [], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 41}}, {"id": 404, "type": "identifier", "text": "ims, ", "parent": 402, "children": [], "start_point": {"row": 121, "column": 43}, "end_point": {"row": 121, "column": 48}}, {"id": 405, "type": "identifier", "text": ");", "parent": 402, "children": [], "start_point": {"row": 121, "column": 50}, "end_point": {"row": 121, "column": 52}}, {"id": 406, "type": "call_expression", "text": "_end(ap);\n", "parent": 362, "children": [407, 408], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 14}}, {"id": 407, "type": "identifier", "text": "_end(a", "parent": 406, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 10}}, {"id": 408, "type": "argument_list", "text": "p);\n", "parent": 406, "children": [409], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 14}}, {"id": 409, "type": "identifier", "text": ");", "parent": 408, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 13}}, {"id": 410, "type": "assignment_expression", "text": "t->data = generic_alloc(nr_of_elements, sze);\n", "parent": 362, "children": [411, 415, 416], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 50}}, {"id": 411, "type": "field_expression", "text": "t->data =", "parent": 410, "children": [412, 413, 414], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 13}}, {"id": 412, "type": "identifier", "text": "t->", "parent": 411, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 7}}, {"id": 413, "type": "->", "text": "da", "parent": 411, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 9}}, {"id": 414, "type": "field_identifier", "text": "ta =", "parent": 411, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 13}}, {"id": 415, "type": "=", "text": "g", "parent": 410, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 15}}, {"id": 416, "type": "call_expression", "text": "neric_alloc(nr_of_elements, sze);\n", "parent": 410, "children": [417, 418], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 50}}, {"id": 417, "type": "identifier", "text": "neric_alloc(n", "parent": 416, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 29}}, {"id": 418, "type": "argument_list", "text": "r_of_elements, sze);\n", "parent": 416, "children": [419, 420], "start_point": {"row": 123, "column": 29}, "end_point": {"row": 123, "column": 50}}, {"id": 419, "type": "identifier", "text": "_of_elements, ", "parent": 418, "children": [], "start_point": {"row": 123, "column": 30}, "end_point": {"row": 123, "column": 44}}, {"id": 420, "type": "identifier", "text": "e);", "parent": 418, "children": [], "start_point": {"row": 123, "column": 46}, "end_point": {"row": 123, "column": 49}}, {"id": 421, "type": "assignment_expression", "text": "t->flexible = 0;\n", "parent": 362, "children": [422, 426, 427], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 21}}, {"id": 422, "type": "field_expression", "text": "t->flexible =", "parent": 421, "children": [423, 424, 425], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 17}}, {"id": 423, "type": "identifier", "text": "t->", "parent": 422, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 7}}, {"id": 424, "type": "->", "text": "fl", "parent": 422, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 9}}, {"id": 425, "type": "field_identifier", "text": "exible =", "parent": 422, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 17}}, {"id": 426, "type": "=", "text": "0", "parent": 421, "children": [], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 19}}, {"id": 427, "type": "number_literal", "text": "\n", "parent": 421, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 21}}, {"id": 428, "type": "declaration", "text": "ar* d_data = (char*)(dst->data);\n ", "parent": 362, "children": [429, 430], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 38}}, {"id": 429, "type": "primitive_type", "text": "ar* ", "parent": 428, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 8}}, {"id": 430, "type": "init_declarator", "text": "d_data = (char*)(dst->data);\n", "parent": 428, "children": [431, 434], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 37}}, {"id": 431, "type": "pointer_declarator", "text": "d_data =", "parent": 430, "children": [432, 433], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 16}}, {"id": 432, "type": "*", "text": "d", "parent": 431, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 9}}, {"id": 433, "type": "identifier", "text": "data =", "parent": 431, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 16}}, {"id": 434, "type": "cast_expression", "text": "har*)(dst->data);\n", "parent": 430, "children": [435, 437], "start_point": {"row": 130, "column": 19}, "end_point": {"row": 130, "column": 37}}, {"id": 435, "type": "type_descriptor", "text": "ar*)(", "parent": 434, "children": [436], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 25}}, {"id": 436, "type": "primitive_type", "text": "ar*)", "parent": 435, "children": [], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 24}}, {"id": 437, "type": "parenthesized_expression", "text": "st->data);\n", "parent": 434, "children": [438], "start_point": {"row": 130, "column": 26}, "end_point": {"row": 130, "column": 37}}, {"id": 438, "type": "field_expression", "text": "t->data);", "parent": 437, "children": [439, 440, 441], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 36}}, {"id": 439, "type": "identifier", "text": "t->", "parent": 438, "children": [], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 30}}, {"id": 440, "type": "->", "text": "da", "parent": 438, "children": [], "start_point": {"row": 130, "column": 30}, "end_point": {"row": 130, "column": 32}}, {"id": 441, "type": "field_identifier", "text": "ta);", "parent": 438, "children": [], "start_point": {"row": 130, "column": 32}, "end_point": {"row": 130, "column": 36}}, {"id": 442, "type": "for_statement", "text": "r(i = 0; i < nr_of_elements; ++i) {\n ctr_func(td, d_data + (i*sze));\n }\n}", "parent": 362, "children": [443, 447, 451], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 133, "column": 5}}, {"id": 443, "type": "assignment_expression", "text": "= 0; ", "parent": 442, "children": [444, 445, 446], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 13}}, {"id": 444, "type": "identifier", "text": "=", "parent": 443, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 9}}, {"id": 445, "type": "=", "text": "0", "parent": 443, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 11}}, {"id": 446, "type": "number_literal", "text": " ", "parent": 443, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 13}}, {"id": 447, "type": "binary_expression", "text": "< nr_of_elements; ", "parent": 442, "children": [448, 449, 450], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 33}}, {"id": 448, "type": "identifier", "text": "<", "parent": 447, "children": [], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 16}}, {"id": 449, "type": "<", "text": "n", "parent": 447, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 18}}, {"id": 450, "type": "identifier", "text": "_of_elements; ", "parent": 447, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 33}}, {"id": 451, "type": "update_expression", "text": "i) ", "parent": 442, "children": [452, 453], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 38}}, {"id": 452, "type": "++", "text": "i)", "parent": 451, "children": [], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 37}}, {"id": 453, "type": "identifier", "text": " ", "parent": 451, "children": [], "start_point": {"row": 131, "column": 37}, "end_point": {"row": 131, "column": 38}}, {"id": 454, "type": "call_expression", "text": "r_func(td, d_data + (i*sze));\n", "parent": 442, "children": [455, 456], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 38}}, {"id": 455, "type": "identifier", "text": "r_func(t", "parent": 454, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 16}}, {"id": 456, "type": "argument_list", "text": "d, d_data + (i*sze));\n", "parent": 454, "children": [457], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 38}}, {"id": 457, "type": "binary_expression", "text": "data + (i*sze));", "parent": 456, "children": [458, 459], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 37}}, {"id": 458, "type": "identifier", "text": "data +", "parent": 457, "children": [], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 27}}, {"id": 459, "type": "parenthesized_expression", "text": "*sze));", "parent": 457, "children": [460], "start_point": {"row": 132, "column": 30}, "end_point": {"row": 132, "column": 37}}, {"id": 460, "type": "binary_expression", "text": "sze))", "parent": 459, "children": [461, 462, 463], "start_point": {"row": 132, "column": 31}, "end_point": {"row": 132, "column": 36}}, {"id": 461, "type": "identifier", "text": "s", "parent": 460, "children": [], "start_point": {"row": 132, "column": 31}, "end_point": {"row": 132, "column": 32}}, {"id": 462, "type": "*", "text": "z", "parent": 460, "children": [], "start_point": {"row": 132, "column": 32}, "end_point": {"row": 132, "column": 33}}, {"id": 463, "type": "identifier", "text": "e))", "parent": 460, "children": [], "start_point": {"row": 132, "column": 33}, "end_point": {"row": 132, "column": 36}}, {"id": 464, "type": "function_definition", "text": "id simple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Init to 0. IDK if this is what Modelica expects\n // I guess it is better than garbage values.\n memset(dst->data, 0, nr_of_elements*sze);\n}\n\n", "parent": null, "children": [465, 466], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 465, "type": "primitive_type", "text": "id s", "parent": 464, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 4}}, {"id": 466, "type": "function_declarator", "text": "mple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{", "parent": 464, "children": [467, 468], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 89}}, {"id": 467, "type": "identifier", "text": "mple_array_create(t", "parent": 466, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 24}}, {"id": 468, "type": "parameter_list", "text": "hreadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{", "parent": 466, "children": [469, 473, 478, 481, 484], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 89}}, {"id": 469, "type": "parameter_declaration", "text": "readData_t* td, ", "parent": 468, "children": [470, 471], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 41}}, {"id": 470, "type": "type_identifier", "text": "readData_t* ", "parent": 469, "children": [], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 37}}, {"id": 471, "type": "pointer_declarator", "text": "td, ", "parent": 469, "children": [472], "start_point": {"row": 136, "column": 37}, "end_point": {"row": 136, "column": 41}}, {"id": 472, "type": "*", "text": "t", "parent": 471, "children": [], "start_point": {"row": 136, "column": 37}, "end_point": {"row": 136, "column": 38}}, {"id": 473, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 468, "children": [474, 475], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 60}}, {"id": 474, "type": "type_identifier", "text": "se_array_t* ", "parent": 473, "children": [], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 55}}, {"id": 475, "type": "pointer_declarator", "text": "dst, ", "parent": 473, "children": [476, 477], "start_point": {"row": 136, "column": 55}, "end_point": {"row": 136, "column": 60}}, {"id": 476, "type": "*", "text": "d", "parent": 475, "children": [], "start_point": {"row": 136, "column": 55}, "end_point": {"row": 136, "column": 56}}, {"id": 477, "type": "identifier", "text": "t, ", "parent": 475, "children": [], "start_point": {"row": 136, "column": 57}, "end_point": {"row": 136, "column": 60}}, {"id": 478, "type": "parameter_declaration", "text": "t ndims, ", "parent": 468, "children": [479, 480], "start_point": {"row": 136, "column": 62}, "end_point": {"row": 136, "column": 71}}, {"id": 479, "type": "primitive_type", "text": "t n", "parent": 478, "children": [], "start_point": {"row": 136, "column": 62}, "end_point": {"row": 136, "column": 65}}, {"id": 480, "type": "identifier", "text": "ims, ", "parent": 478, "children": [], "start_point": {"row": 136, "column": 66}, "end_point": {"row": 136, "column": 71}}, {"id": 481, "type": "parameter_declaration", "text": "ze_t sze, ", "parent": 468, "children": [482, 483], "start_point": {"row": 136, "column": 73}, "end_point": {"row": 136, "column": 83}}, {"id": 482, "type": "primitive_type", "text": "ze_t s", "parent": 481, "children": [], "start_point": {"row": 136, "column": 73}, "end_point": {"row": 136, "column": 79}}, {"id": 483, "type": "identifier", "text": "e, ", "parent": 481, "children": [], "start_point": {"row": 136, "column": 80}, "end_point": {"row": 136, "column": 83}}, {"id": 484, "type": "variadic_parameter", "text": ".)\n", "parent": 468, "children": [485], "start_point": {"row": 136, "column": 85}, "end_point": {"row": 136, "column": 88}}, {"id": 485, "type": "...", "text": ".)\n", "parent": 484, "children": [], "start_point": {"row": 136, "column": 85}, "end_point": {"row": 136, "column": 88}}, {"id": 486, "type": "declaration", "text": "ze_t i, nr_of_elements;\n\n", "parent": 464, "children": [487, 488, 489], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 29}}, {"id": 487, "type": "primitive_type", "text": "ze_t i", "parent": 486, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 10}}, {"id": 488, "type": "identifier", "text": " ", "parent": 486, "children": [], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 12}}, {"id": 489, "type": "identifier", "text": "_of_elements;\n", "parent": 486, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 28}}, {"id": 490, "type": "declaration", "text": "_list ap;\n ", "parent": 464, "children": [491], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 15}}, {"id": 491, "type": "type_identifier", "text": "_list a", "parent": 490, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 11}}, {"id": 492, "type": "call_expression", "text": "_start(ap, sze);\n", "parent": 464, "children": [493, 494], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 21}}, {"id": 493, "type": "identifier", "text": "_start(a", "parent": 492, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 12}}, {"id": 494, "type": "argument_list", "text": "p, sze);\n", "parent": 492, "children": [495], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 21}}, {"id": 495, "type": "identifier", "text": "e);", "parent": 494, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 20}}, {"id": 496, "type": "assignment_expression", "text": "_of_elements = alloc_base_array(dst, ndims, ap);\n", "parent": 464, "children": [497, 498, 499], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 53}}, {"id": 497, "type": "identifier", "text": "_of_elements =", "parent": 496, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 18}}, {"id": 498, "type": "=", "text": "a", "parent": 496, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 20}}, {"id": 499, "type": "call_expression", "text": "loc_base_array(dst, ndims, ap);\n", "parent": 496, "children": [500, 501], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 53}}, {"id": 500, "type": "identifier", "text": "loc_base_array(d", "parent": 499, "children": [], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 37}}, {"id": 501, "type": "argument_list", "text": "st, ndims, ap);\n", "parent": 499, "children": [502, 503, 504], "start_point": {"row": 142, "column": 37}, "end_point": {"row": 142, "column": 53}}, {"id": 502, "type": "identifier", "text": "t, ", "parent": 501, "children": [], "start_point": {"row": 142, "column": 38}, "end_point": {"row": 142, "column": 41}}, {"id": 503, "type": "identifier", "text": "ims, ", "parent": 501, "children": [], "start_point": {"row": 142, "column": 43}, "end_point": {"row": 142, "column": 48}}, {"id": 504, "type": "identifier", "text": ");", "parent": 501, "children": [], "start_point": {"row": 142, "column": 50}, "end_point": {"row": 142, "column": 52}}, {"id": 505, "type": "call_expression", "text": "_end(ap);\n", "parent": 464, "children": [506, 507], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 14}}, {"id": 506, "type": "identifier", "text": "_end(a", "parent": 505, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 10}}, {"id": 507, "type": "argument_list", "text": "p);\n", "parent": 505, "children": [508], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 14}}, {"id": 508, "type": "identifier", "text": ");", "parent": 507, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 13}}, {"id": 509, "type": "assignment_expression", "text": "t->data = generic_alloc(nr_of_elements, sze);\n", "parent": 464, "children": [510, 514, 515], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 50}}, {"id": 510, "type": "field_expression", "text": "t->data =", "parent": 509, "children": [511, 512, 513], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 13}}, {"id": 511, "type": "identifier", "text": "t->", "parent": 510, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 7}}, {"id": 512, "type": "->", "text": "da", "parent": 510, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 9}}, {"id": 513, "type": "field_identifier", "text": "ta =", "parent": 510, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 13}}, {"id": 514, "type": "=", "text": "g", "parent": 509, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 15}}, {"id": 515, "type": "call_expression", "text": "neric_alloc(nr_of_elements, sze);\n", "parent": 509, "children": [516, 517], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 50}}, {"id": 516, "type": "identifier", "text": "neric_alloc(n", "parent": 515, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 29}}, {"id": 517, "type": "argument_list", "text": "r_of_elements, sze);\n", "parent": 515, "children": [518, 519], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 50}}, {"id": 518, "type": "identifier", "text": "_of_elements, ", "parent": 517, "children": [], "start_point": {"row": 144, "column": 30}, "end_point": {"row": 144, "column": 44}}, {"id": 519, "type": "identifier", "text": "e);", "parent": 517, "children": [], "start_point": {"row": 144, "column": 46}, "end_point": {"row": 144, "column": 49}}, {"id": 520, "type": "assignment_expression", "text": "t->flexible = 0;\n", "parent": 464, "children": [521, 525, 526], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 21}}, {"id": 521, "type": "field_expression", "text": "t->flexible =", "parent": 520, "children": [522, 523, 524], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 17}}, {"id": 522, "type": "identifier", "text": "t->", "parent": 521, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 7}}, {"id": 523, "type": "->", "text": "fl", "parent": 521, "children": [], "start_point": {"row": 148, "column": 7}, "end_point": {"row": 148, "column": 9}}, {"id": 524, "type": "field_identifier", "text": "exible =", "parent": 521, "children": [], "start_point": {"row": 148, "column": 9}, "end_point": {"row": 148, "column": 17}}, {"id": 525, "type": "=", "text": "0", "parent": 520, "children": [], "start_point": {"row": 148, "column": 18}, "end_point": {"row": 148, "column": 19}}, {"id": 526, "type": "number_literal", "text": "\n", "parent": 520, "children": [], "start_point": {"row": 148, "column": 20}, "end_point": {"row": 148, "column": 21}}, {"id": 527, "type": "call_expression", "text": "mset(dst->data, 0, nr_of_elements*sze);\n", "parent": 464, "children": [528, 529], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 44}}, {"id": 528, "type": "identifier", "text": "mset(d", "parent": 527, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 10}}, {"id": 529, "type": "argument_list", "text": "st->data, 0, nr_of_elements*sze);\n", "parent": 527, "children": [530, 534, 535], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 44}}, {"id": 530, "type": "field_expression", "text": "t->data, ", "parent": 529, "children": [531, 532, 533], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 20}}, {"id": 531, "type": "identifier", "text": "t->", "parent": 530, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 14}}, {"id": 532, "type": "->", "text": "da", "parent": 530, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 16}}, {"id": 533, "type": "field_identifier", "text": "ta, ", "parent": 530, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 20}}, {"id": 534, "type": "number_literal", "text": " ", "parent": 529, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 23}}, {"id": 535, "type": "binary_expression", "text": "_of_elements*sze);", "parent": 529, "children": [536, 537, 538], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 43}}, {"id": 536, "type": "identifier", "text": "_of_elements*s", "parent": 535, "children": [], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 39}}, {"id": 537, "type": "*", "text": "z", "parent": 535, "children": [], "start_point": {"row": 152, "column": 39}, "end_point": {"row": 152, "column": 40}}, {"id": 538, "type": "identifier", "text": "e);", "parent": 535, "children": [], "start_point": {"row": 152, "column": 40}, "end_point": {"row": 152, "column": 43}}, {"id": 539, "type": "function_definition", "text": "id generic_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\n", "parent": null, "children": [540, 541], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 176, "column": 1}}, {"id": 540, "type": "primitive_type", "text": "id g", "parent": 539, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 4}}, {"id": 541, "type": "function_declarator", "text": "neric_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{", "parent": 539, "children": [542, 543], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 106}}, {"id": 542, "type": "identifier", "text": "neric_array_alloc_copy(c", "parent": 541, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 29}}, {"id": 543, "type": "parameter_list", "text": "onst base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{", "parent": 541, "children": [544, 548, 553, 556], "start_point": {"row": 156, "column": 29}, "end_point": {"row": 156, "column": 106}}, {"id": 544, "type": "parameter_declaration", "text": "nst base_array_t src_cp, ", "parent": 543, "children": [545, 546, 547], "start_point": {"row": 156, "column": 30}, "end_point": {"row": 156, "column": 55}}, {"id": 545, "type": "type_qualifier", "text": "nst b", "parent": 544, "children": [], "start_point": {"row": 156, "column": 30}, "end_point": {"row": 156, "column": 35}}, {"id": 546, "type": "type_identifier", "text": "se_array_t s", "parent": 544, "children": [], "start_point": {"row": 156, "column": 36}, "end_point": {"row": 156, "column": 48}}, {"id": 547, "type": "identifier", "text": "c_cp, ", "parent": 544, "children": [], "start_point": {"row": 156, "column": 49}, "end_point": {"row": 156, "column": 55}}, {"id": 548, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 543, "children": [549, 550], "start_point": {"row": 156, "column": 57}, "end_point": {"row": 156, "column": 74}}, {"id": 549, "type": "type_identifier", "text": "se_array_t* ", "parent": 548, "children": [], "start_point": {"row": 156, "column": 57}, "end_point": {"row": 156, "column": 69}}, {"id": 550, "type": "pointer_declarator", "text": "dst, ", "parent": 548, "children": [551, 552], "start_point": {"row": 156, "column": 69}, "end_point": {"row": 156, "column": 74}}, {"id": 551, "type": "*", "text": "d", "parent": 550, "children": [], "start_point": {"row": 156, "column": 69}, "end_point": {"row": 156, "column": 70}}, {"id": 552, "type": "identifier", "text": "t, ", "parent": 550, "children": [], "start_point": {"row": 156, "column": 71}, "end_point": {"row": 156, "column": 74}}, {"id": 553, "type": "parameter_declaration", "text": "py_func cp_func, ", "parent": 543, "children": [554, 555], "start_point": {"row": 156, "column": 76}, "end_point": {"row": 156, "column": 93}}, {"id": 554, "type": "type_identifier", "text": "py_func c", "parent": 553, "children": [], "start_point": {"row": 156, "column": 76}, "end_point": {"row": 156, "column": 85}}, {"id": 555, "type": "identifier", "text": "_func, ", "parent": 553, "children": [], "start_point": {"row": 156, "column": 86}, "end_point": {"row": 156, "column": 93}}, {"id": 556, "type": "parameter_declaration", "text": "ze_t sze)\n", "parent": 543, "children": [557, 558], "start_point": {"row": 156, "column": 95}, "end_point": {"row": 156, "column": 105}}, {"id": 557, "type": "primitive_type", "text": "ze_t s", "parent": 556, "children": [], "start_point": {"row": 156, "column": 95}, "end_point": {"row": 156, "column": 101}}, {"id": 558, "type": "identifier", "text": "e)\n", "parent": 556, "children": [], "start_point": {"row": 156, "column": 102}, "end_point": {"row": 156, "column": 105}}, {"id": 559, "type": "declaration", "text": "nst base_array_t* src = &src_cp;\n\n", "parent": 539, "children": [560, 561, 562], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 38}}, {"id": 560, "type": "type_qualifier", "text": "nst b", "parent": 559, "children": [], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 9}}, {"id": 561, "type": "type_identifier", "text": "se_array_t* ", "parent": 559, "children": [], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 22}}, {"id": 562, "type": "init_declarator", "text": "src = &src_cp;\n", "parent": 559, "children": [563, 566], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 37}}, {"id": 563, "type": "pointer_declarator", "text": "src =", "parent": 562, "children": [564, 565], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 27}}, {"id": 564, "type": "*", "text": "s", "parent": 563, "children": [], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 23}}, {"id": 565, "type": "identifier", "text": "c =", "parent": 563, "children": [], "start_point": {"row": 158, "column": 24}, "end_point": {"row": 158, "column": 27}}, {"id": 566, "type": "pointer_expression", "text": "rc_cp;\n", "parent": 562, "children": [567, 568], "start_point": {"row": 158, "column": 30}, "end_point": {"row": 158, "column": 37}}, {"id": 567, "type": "&", "text": "r", "parent": 566, "children": [], "start_point": {"row": 158, "column": 30}, "end_point": {"row": 158, "column": 31}}, {"id": 568, "type": "identifier", "text": "c_cp;\n", "parent": 566, "children": [], "start_point": {"row": 158, "column": 31}, "end_point": {"row": 158, "column": 37}}, {"id": 569, "type": "call_expression", "text": "one_base_array_spec(src, dst);\n", "parent": 539, "children": [570, 571], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 35}}, {"id": 570, "type": "identifier", "text": "one_base_array_spec(s", "parent": 569, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 25}}, {"id": 571, "type": "argument_list", "text": "rc, dst);\n", "parent": 569, "children": [572, 573], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 35}}, {"id": 572, "type": "identifier", "text": "c, ", "parent": 571, "children": [], "start_point": {"row": 160, "column": 26}, "end_point": {"row": 160, "column": 29}}, {"id": 573, "type": "identifier", "text": "t);", "parent": 571, "children": [], "start_point": {"row": 160, "column": 31}, "end_point": {"row": 160, "column": 34}}, {"id": 574, "type": "assignment_expression", "text": "t->flexible = 0;\n", "parent": 539, "children": [575, 579, 580], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 21}}, {"id": 575, "type": "field_expression", "text": "t->flexible =", "parent": 574, "children": [576, 577, 578], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 17}}, {"id": 576, "type": "identifier", "text": "t->", "parent": 575, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 7}}, {"id": 577, "type": "->", "text": "fl", "parent": 575, "children": [], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 9}}, {"id": 578, "type": "field_identifier", "text": "exible =", "parent": 575, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 17}}, {"id": 579, "type": "=", "text": "0", "parent": 574, "children": [], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 19}}, {"id": 580, "type": "number_literal", "text": "\n", "parent": 574, "children": [], "start_point": {"row": 165, "column": 20}, "end_point": {"row": 165, "column": 21}}, {"id": 581, "type": "declaration", "text": "ze_t nr_of_elements = base_array_nr_of_elements(*dst);\n ", "parent": 539, "children": [582, 583], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 60}}, {"id": 582, "type": "primitive_type", "text": "ze_t n", "parent": 581, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 10}}, {"id": 583, "type": "init_declarator", "text": "_of_elements = base_array_nr_of_elements(*dst);\n", "parent": 581, "children": [584, 585, 586], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 59}}, {"id": 584, "type": "identifier", "text": "_of_elements =", "parent": 583, "children": [], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 25}}, {"id": 585, "type": "=", "text": "b", "parent": 583, "children": [], "start_point": {"row": 167, "column": 26}, "end_point": {"row": 167, "column": 27}}, {"id": 586, "type": "call_expression", "text": "se_array_nr_of_elements(*dst);\n", "parent": 583, "children": [587, 588], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 59}}, {"id": 587, "type": "identifier", "text": "se_array_nr_of_elements(*", "parent": 586, "children": [], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 53}}, {"id": 588, "type": "argument_list", "text": "dst);\n", "parent": 586, "children": [589], "start_point": {"row": 167, "column": 53}, "end_point": {"row": 167, "column": 59}}, {"id": 589, "type": "pointer_expression", "text": "st);", "parent": 588, "children": [590, 591], "start_point": {"row": 167, "column": 54}, "end_point": {"row": 167, "column": 58}}, {"id": 590, "type": "*", "text": "s", "parent": 589, "children": [], "start_point": {"row": 167, "column": 54}, "end_point": {"row": 167, "column": 55}}, {"id": 591, "type": "identifier", "text": "t);", "parent": 589, "children": [], "start_point": {"row": 167, "column": 55}, "end_point": {"row": 167, "column": 58}}, {"id": 592, "type": "assignment_expression", "text": "t->data = generic_alloc(nr_of_elements, sze);\n", "parent": 539, "children": [593, 597, 598], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 50}}, {"id": 593, "type": "field_expression", "text": "t->data =", "parent": 592, "children": [594, 595, 596], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 13}}, {"id": 594, "type": "identifier", "text": "t->", "parent": 593, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 7}}, {"id": 595, "type": "->", "text": "da", "parent": 593, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 9}}, {"id": 596, "type": "field_identifier", "text": "ta =", "parent": 593, "children": [], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 13}}, {"id": 597, "type": "=", "text": "g", "parent": 592, "children": [], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 15}}, {"id": 598, "type": "call_expression", "text": "neric_alloc(nr_of_elements, sze);\n", "parent": 592, "children": [599, 600], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 50}}, {"id": 599, "type": "identifier", "text": "neric_alloc(n", "parent": 598, "children": [], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 29}}, {"id": 600, "type": "argument_list", "text": "r_of_elements, sze);\n", "parent": 598, "children": [601, 602], "start_point": {"row": 168, "column": 29}, "end_point": {"row": 168, "column": 50}}, {"id": 601, "type": "identifier", "text": "_of_elements, ", "parent": 600, "children": [], "start_point": {"row": 168, "column": 30}, "end_point": {"row": 168, "column": 44}}, {"id": 602, "type": "identifier", "text": "e);", "parent": 600, "children": [], "start_point": {"row": 168, "column": 46}, "end_point": {"row": 168, "column": 49}}, {"id": 603, "type": "declaration", "text": "ze_t i;\n ", "parent": 539, "children": [604, 605], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 13}}, {"id": 604, "type": "primitive_type", "text": "ze_t i", "parent": 603, "children": [], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 10}}, {"id": 605, "type": "identifier", "text": "\n", "parent": 603, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 12}}, {"id": 606, "type": "declaration", "text": "ar* d_data = (char*)(dst->data);\n ", "parent": 539, "children": [607, 608], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 38}}, {"id": 607, "type": "primitive_type", "text": "ar* ", "parent": 606, "children": [], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 8}}, {"id": 608, "type": "init_declarator", "text": "d_data = (char*)(dst->data);\n", "parent": 606, "children": [609, 612], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 37}}, {"id": 609, "type": "pointer_declarator", "text": "d_data =", "parent": 608, "children": [610, 611], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 16}}, {"id": 610, "type": "*", "text": "d", "parent": 609, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 9}}, {"id": 611, "type": "identifier", "text": "data =", "parent": 609, "children": [], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 16}}, {"id": 612, "type": "cast_expression", "text": "har*)(dst->data);\n", "parent": 608, "children": [613, 615], "start_point": {"row": 171, "column": 19}, "end_point": {"row": 171, "column": 37}}, {"id": 613, "type": "type_descriptor", "text": "ar*)(", "parent": 612, "children": [614], "start_point": {"row": 171, "column": 20}, "end_point": {"row": 171, "column": 25}}, {"id": 614, "type": "primitive_type", "text": "ar*)", "parent": 613, "children": [], "start_point": {"row": 171, "column": 20}, "end_point": {"row": 171, "column": 24}}, {"id": 615, "type": "parenthesized_expression", "text": "st->data);\n", "parent": 612, "children": [616], "start_point": {"row": 171, "column": 26}, "end_point": {"row": 171, "column": 37}}, {"id": 616, "type": "field_expression", "text": "t->data);", "parent": 615, "children": [617, 618, 619], "start_point": {"row": 171, "column": 27}, "end_point": {"row": 171, "column": 36}}, {"id": 617, "type": "identifier", "text": "t->", "parent": 616, "children": [], "start_point": {"row": 171, "column": 27}, "end_point": {"row": 171, "column": 30}}, {"id": 618, "type": "->", "text": "da", "parent": 616, "children": [], "start_point": {"row": 171, "column": 30}, "end_point": {"row": 171, "column": 32}}, {"id": 619, "type": "field_identifier", "text": "ta);", "parent": 616, "children": [], "start_point": {"row": 171, "column": 32}, "end_point": {"row": 171, "column": 36}}, {"id": 620, "type": "declaration", "text": "ar* s_data = (char*)(src->data);\n ", "parent": 539, "children": [621, 622], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 38}}, {"id": 621, "type": "primitive_type", "text": "ar* ", "parent": 620, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 8}}, {"id": 622, "type": "init_declarator", "text": "s_data = (char*)(src->data);\n", "parent": 620, "children": [623, 626], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 37}}, {"id": 623, "type": "pointer_declarator", "text": "s_data =", "parent": 622, "children": [624, 625], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 16}}, {"id": 624, "type": "*", "text": "s", "parent": 623, "children": [], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 9}}, {"id": 625, "type": "identifier", "text": "data =", "parent": 623, "children": [], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 16}}, {"id": 626, "type": "cast_expression", "text": "har*)(src->data);\n", "parent": 622, "children": [627, 629], "start_point": {"row": 172, "column": 19}, "end_point": {"row": 172, "column": 37}}, {"id": 627, "type": "type_descriptor", "text": "ar*)(", "parent": 626, "children": [628], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 25}}, {"id": 628, "type": "primitive_type", "text": "ar*)", "parent": 627, "children": [], "start_point": {"row": 172, "column": 20}, "end_point": {"row": 172, "column": 24}}, {"id": 629, "type": "parenthesized_expression", "text": "rc->data);\n", "parent": 626, "children": [630], "start_point": {"row": 172, "column": 26}, "end_point": {"row": 172, "column": 37}}, {"id": 630, "type": "field_expression", "text": "c->data);", "parent": 629, "children": [631, 632, 633], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 36}}, {"id": 631, "type": "identifier", "text": "c->", "parent": 630, "children": [], "start_point": {"row": 172, "column": 27}, "end_point": {"row": 172, "column": 30}}, {"id": 632, "type": "->", "text": "da", "parent": 630, "children": [], "start_point": {"row": 172, "column": 30}, "end_point": {"row": 172, "column": 32}}, {"id": 633, "type": "field_identifier", "text": "ta);", "parent": 630, "children": [], "start_point": {"row": 172, "column": 32}, "end_point": {"row": 172, "column": 36}}, {"id": 634, "type": "for_statement", "text": "r(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}", "parent": 539, "children": [635, 639, 643], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 175, "column": 5}}, {"id": 635, "type": "assignment_expression", "text": "= 0; ", "parent": 634, "children": [636, 637, 638], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 13}}, {"id": 636, "type": "identifier", "text": "=", "parent": 635, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 9}}, {"id": 637, "type": "=", "text": "0", "parent": 635, "children": [], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 11}}, {"id": 638, "type": "number_literal", "text": " ", "parent": 635, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 13}}, {"id": 639, "type": "binary_expression", "text": "< nr_of_elements; ", "parent": 634, "children": [640, 641, 642], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 33}}, {"id": 640, "type": "identifier", "text": "<", "parent": 639, "children": [], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 16}}, {"id": 641, "type": "<", "text": "n", "parent": 639, "children": [], "start_point": {"row": 173, "column": 17}, "end_point": {"row": 173, "column": 18}}, {"id": 642, "type": "identifier", "text": "_of_elements; ", "parent": 639, "children": [], "start_point": {"row": 173, "column": 19}, "end_point": {"row": 173, "column": 33}}, {"id": 643, "type": "update_expression", "text": "i) ", "parent": 634, "children": [644, 645], "start_point": {"row": 173, "column": 35}, "end_point": {"row": 173, "column": 38}}, {"id": 644, "type": "++", "text": "i)", "parent": 643, "children": [], "start_point": {"row": 173, "column": 35}, "end_point": {"row": 173, "column": 37}}, {"id": 645, "type": "identifier", "text": " ", "parent": 643, "children": [], "start_point": {"row": 173, "column": 37}, "end_point": {"row": 173, "column": 38}}, {"id": 646, "type": "call_expression", "text": "_func(s_data + (i*sze), d_data + (i*sze));\n", "parent": 634, "children": [647, 648], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 51}}, {"id": 647, "type": "identifier", "text": "_func(s", "parent": 646, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 15}}, {"id": 648, "type": "argument_list", "text": "_data + (i*sze), d_data + (i*sze));\n", "parent": 646, "children": [649, 656], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 51}}, {"id": 649, "type": "binary_expression", "text": "data + (i*sze), ", "parent": 648, "children": [650, 651], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 32}}, {"id": 650, "type": "identifier", "text": "data +", "parent": 649, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 22}}, {"id": 651, "type": "parenthesized_expression", "text": "*sze), ", "parent": 649, "children": [652], "start_point": {"row": 174, "column": 25}, "end_point": {"row": 174, "column": 32}}, {"id": 652, "type": "binary_expression", "text": "sze),", "parent": 651, "children": [653, 654, 655], "start_point": {"row": 174, "column": 26}, "end_point": {"row": 174, "column": 31}}, {"id": 653, "type": "identifier", "text": "s", "parent": 652, "children": [], "start_point": {"row": 174, "column": 26}, "end_point": {"row": 174, "column": 27}}, {"id": 654, "type": "*", "text": "z", "parent": 652, "children": [], "start_point": {"row": 174, "column": 27}, "end_point": {"row": 174, "column": 28}}, {"id": 655, "type": "identifier", "text": "e),", "parent": 652, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 31}}, {"id": 656, "type": "binary_expression", "text": "data + (i*sze));", "parent": 648, "children": [657, 658], "start_point": {"row": 174, "column": 34}, "end_point": {"row": 174, "column": 50}}, {"id": 657, "type": "identifier", "text": "data +", "parent": 656, "children": [], "start_point": {"row": 174, "column": 34}, "end_point": {"row": 174, "column": 40}}, {"id": 658, "type": "parenthesized_expression", "text": "*sze));", "parent": 656, "children": [659], "start_point": {"row": 174, "column": 43}, "end_point": {"row": 174, "column": 50}}, {"id": 659, "type": "binary_expression", "text": "sze))", "parent": 658, "children": [660, 661, 662], "start_point": {"row": 174, "column": 44}, "end_point": {"row": 174, "column": 49}}, {"id": 660, "type": "identifier", "text": "s", "parent": 659, "children": [], "start_point": {"row": 174, "column": 44}, "end_point": {"row": 174, "column": 45}}, {"id": 661, "type": "*", "text": "z", "parent": 659, "children": [], "start_point": {"row": 174, "column": 45}, "end_point": {"row": 174, "column": 46}}, {"id": 662, "type": "identifier", "text": "e))", "parent": 659, "children": [], "start_point": {"row": 174, "column": 46}, "end_point": {"row": 174, "column": 49}}, {"id": 663, "type": "function_definition", "text": "id simple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n", "parent": null, "children": [664, 665], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 193, "column": 1}}, {"id": 664, "type": "primitive_type", "text": "id s", "parent": 663, "children": [], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 4}}, {"id": 665, "type": "function_declarator", "text": "mple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{", "parent": 663, "children": [666, 667], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 86}}, {"id": 666, "type": "identifier", "text": "mple_array_alloc_copy(c", "parent": 665, "children": [], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 28}}, {"id": 667, "type": "parameter_list", "text": "onst base_array_t src_cp, base_array_t* dst, size_t sze)\n{", "parent": 665, "children": [668, 672, 677], "start_point": {"row": 178, "column": 28}, "end_point": {"row": 178, "column": 86}}, {"id": 668, "type": "parameter_declaration", "text": "nst base_array_t src_cp, ", "parent": 667, "children": [669, 670, 671], "start_point": {"row": 178, "column": 29}, "end_point": {"row": 178, "column": 54}}, {"id": 669, "type": "type_qualifier", "text": "nst b", "parent": 668, "children": [], "start_point": {"row": 178, "column": 29}, "end_point": {"row": 178, "column": 34}}, {"id": 670, "type": "type_identifier", "text": "se_array_t s", "parent": 668, "children": [], "start_point": {"row": 178, "column": 35}, "end_point": {"row": 178, "column": 47}}, {"id": 671, "type": "identifier", "text": "c_cp, ", "parent": 668, "children": [], "start_point": {"row": 178, "column": 48}, "end_point": {"row": 178, "column": 54}}, {"id": 672, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 667, "children": [673, 674], "start_point": {"row": 178, "column": 56}, "end_point": {"row": 178, "column": 73}}, {"id": 673, "type": "type_identifier", "text": "se_array_t* ", "parent": 672, "children": [], "start_point": {"row": 178, "column": 56}, "end_point": {"row": 178, "column": 68}}, {"id": 674, "type": "pointer_declarator", "text": "dst, ", "parent": 672, "children": [675, 676], "start_point": {"row": 178, "column": 68}, "end_point": {"row": 178, "column": 73}}, {"id": 675, "type": "*", "text": "d", "parent": 674, "children": [], "start_point": {"row": 178, "column": 68}, "end_point": {"row": 178, "column": 69}}, {"id": 676, "type": "identifier", "text": "t, ", "parent": 674, "children": [], "start_point": {"row": 178, "column": 70}, "end_point": {"row": 178, "column": 73}}, {"id": 677, "type": "parameter_declaration", "text": "ze_t sze)\n", "parent": 667, "children": [678, 679], "start_point": {"row": 178, "column": 75}, "end_point": {"row": 178, "column": 85}}, {"id": 678, "type": "primitive_type", "text": "ze_t s", "parent": 677, "children": [], "start_point": {"row": 178, "column": 75}, "end_point": {"row": 178, "column": 81}}, {"id": 679, "type": "identifier", "text": "e)\n", "parent": 677, "children": [], "start_point": {"row": 178, "column": 82}, "end_point": {"row": 178, "column": 85}}, {"id": 680, "type": "declaration", "text": "nst base_array_t* src = &src_cp;\n\n", "parent": 663, "children": [681, 682, 683], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 38}}, {"id": 681, "type": "type_qualifier", "text": "nst b", "parent": 680, "children": [], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 9}}, {"id": 682, "type": "type_identifier", "text": "se_array_t* ", "parent": 680, "children": [], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 22}}, {"id": 683, "type": "init_declarator", "text": "src = &src_cp;\n", "parent": 680, "children": [684, 687], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 37}}, {"id": 684, "type": "pointer_declarator", "text": "src =", "parent": 683, "children": [685, 686], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 27}}, {"id": 685, "type": "*", "text": "s", "parent": 684, "children": [], "start_point": {"row": 180, "column": 22}, "end_point": {"row": 180, "column": 23}}, {"id": 686, "type": "identifier", "text": "c =", "parent": 684, "children": [], "start_point": {"row": 180, "column": 24}, "end_point": {"row": 180, "column": 27}}, {"id": 687, "type": "pointer_expression", "text": "rc_cp;\n", "parent": 683, "children": [688, 689], "start_point": {"row": 180, "column": 30}, "end_point": {"row": 180, "column": 37}}, {"id": 688, "type": "&", "text": "r", "parent": 687, "children": [], "start_point": {"row": 180, "column": 30}, "end_point": {"row": 180, "column": 31}}, {"id": 689, "type": "identifier", "text": "c_cp;\n", "parent": 687, "children": [], "start_point": {"row": 180, "column": 31}, "end_point": {"row": 180, "column": 37}}, {"id": 690, "type": "call_expression", "text": "one_base_array_spec(src, dst);\n", "parent": 663, "children": [691, 692], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 35}}, {"id": 691, "type": "identifier", "text": "one_base_array_spec(s", "parent": 690, "children": [], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 25}}, {"id": 692, "type": "argument_list", "text": "rc, dst);\n", "parent": 690, "children": [693, 694], "start_point": {"row": 182, "column": 25}, "end_point": {"row": 182, "column": 35}}, {"id": 693, "type": "identifier", "text": "c, ", "parent": 692, "children": [], "start_point": {"row": 182, "column": 26}, "end_point": {"row": 182, "column": 29}}, {"id": 694, "type": "identifier", "text": "t);", "parent": 692, "children": [], "start_point": {"row": 182, "column": 31}, "end_point": {"row": 182, "column": 34}}, {"id": 695, "type": "assignment_expression", "text": "t->flexible = 0;\n", "parent": 663, "children": [696, 700, 701], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 21}}, {"id": 696, "type": "field_expression", "text": "t->flexible =", "parent": 695, "children": [697, 698, 699], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 17}}, {"id": 697, "type": "identifier", "text": "t->", "parent": 696, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 7}}, {"id": 698, "type": "->", "text": "fl", "parent": 696, "children": [], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 9}}, {"id": 699, "type": "field_identifier", "text": "exible =", "parent": 696, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 17}}, {"id": 700, "type": "=", "text": "0", "parent": 695, "children": [], "start_point": {"row": 187, "column": 18}, "end_point": {"row": 187, "column": 19}}, {"id": 701, "type": "number_literal", "text": "\n", "parent": 695, "children": [], "start_point": {"row": 187, "column": 20}, "end_point": {"row": 187, "column": 21}}, {"id": 702, "type": "declaration", "text": "ze_t nr_of_elements = base_array_nr_of_elements(*dst);\n ", "parent": 663, "children": [703, 704], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 60}}, {"id": 703, "type": "primitive_type", "text": "ze_t n", "parent": 702, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 10}}, {"id": 704, "type": "init_declarator", "text": "_of_elements = base_array_nr_of_elements(*dst);\n", "parent": 702, "children": [705, 706, 707], "start_point": {"row": 189, "column": 11}, "end_point": {"row": 189, "column": 59}}, {"id": 705, "type": "identifier", "text": "_of_elements =", "parent": 704, "children": [], "start_point": {"row": 189, "column": 11}, "end_point": {"row": 189, "column": 25}}, {"id": 706, "type": "=", "text": "b", "parent": 704, "children": [], "start_point": {"row": 189, "column": 26}, "end_point": {"row": 189, "column": 27}}, {"id": 707, "type": "call_expression", "text": "se_array_nr_of_elements(*dst);\n", "parent": 704, "children": [708, 709], "start_point": {"row": 189, "column": 28}, "end_point": {"row": 189, "column": 59}}, {"id": 708, "type": "identifier", "text": "se_array_nr_of_elements(*", "parent": 707, "children": [], "start_point": {"row": 189, "column": 28}, "end_point": {"row": 189, "column": 53}}, {"id": 709, "type": "argument_list", "text": "dst);\n", "parent": 707, "children": [710], "start_point": {"row": 189, "column": 53}, "end_point": {"row": 189, "column": 59}}, {"id": 710, "type": "pointer_expression", "text": "st);", "parent": 709, "children": [711, 712], "start_point": {"row": 189, "column": 54}, "end_point": {"row": 189, "column": 58}}, {"id": 711, "type": "*", "text": "s", "parent": 710, "children": [], "start_point": {"row": 189, "column": 54}, "end_point": {"row": 189, "column": 55}}, {"id": 712, "type": "identifier", "text": "t);", "parent": 710, "children": [], "start_point": {"row": 189, "column": 55}, "end_point": {"row": 189, "column": 58}}, {"id": 713, "type": "assignment_expression", "text": "t->data = generic_alloc(nr_of_elements, sze);\n", "parent": 663, "children": [714, 718, 719], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 50}}, {"id": 714, "type": "field_expression", "text": "t->data =", "parent": 713, "children": [715, 716, 717], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 13}}, {"id": 715, "type": "identifier", "text": "t->", "parent": 714, "children": [], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 7}}, {"id": 716, "type": "->", "text": "da", "parent": 714, "children": [], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 9}}, {"id": 717, "type": "field_identifier", "text": "ta =", "parent": 714, "children": [], "start_point": {"row": 190, "column": 9}, "end_point": {"row": 190, "column": 13}}, {"id": 718, "type": "=", "text": "g", "parent": 713, "children": [], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 15}}, {"id": 719, "type": "call_expression", "text": "neric_alloc(nr_of_elements, sze);\n", "parent": 713, "children": [720, 721], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 50}}, {"id": 720, "type": "identifier", "text": "neric_alloc(n", "parent": 719, "children": [], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 29}}, {"id": 721, "type": "argument_list", "text": "r_of_elements, sze);\n", "parent": 719, "children": [722, 723], "start_point": {"row": 190, "column": 29}, "end_point": {"row": 190, "column": 50}}, {"id": 722, "type": "identifier", "text": "_of_elements, ", "parent": 721, "children": [], "start_point": {"row": 190, "column": 30}, "end_point": {"row": 190, "column": 44}}, {"id": 723, "type": "identifier", "text": "e);", "parent": 721, "children": [], "start_point": {"row": 190, "column": 46}, "end_point": {"row": 190, "column": 49}}, {"id": 724, "type": "call_expression", "text": "mcpy(dst->data, src->data, sze*nr_of_elements);\n", "parent": 663, "children": [725, 726], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 52}}, {"id": 725, "type": "identifier", "text": "mcpy(d", "parent": 724, "children": [], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 10}}, {"id": 726, "type": "argument_list", "text": "st->data, src->data, sze*nr_of_elements);\n", "parent": 724, "children": [727, 731, 735], "start_point": {"row": 192, "column": 10}, "end_point": {"row": 192, "column": 52}}, {"id": 727, "type": "field_expression", "text": "t->data, ", "parent": 726, "children": [728, 729, 730], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 20}}, {"id": 728, "type": "identifier", "text": "t->", "parent": 727, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 14}}, {"id": 729, "type": "->", "text": "da", "parent": 727, "children": [], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 16}}, {"id": 730, "type": "field_identifier", "text": "ta, ", "parent": 727, "children": [], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 20}}, {"id": 731, "type": "field_expression", "text": "c->data, ", "parent": 726, "children": [732, 733, 734], "start_point": {"row": 192, "column": 22}, "end_point": {"row": 192, "column": 31}}, {"id": 732, "type": "identifier", "text": "c->", "parent": 731, "children": [], "start_point": {"row": 192, "column": 22}, "end_point": {"row": 192, "column": 25}}, {"id": 733, "type": "->", "text": "da", "parent": 731, "children": [], "start_point": {"row": 192, "column": 25}, "end_point": {"row": 192, "column": 27}}, {"id": 734, "type": "field_identifier", "text": "ta, ", "parent": 731, "children": [], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 31}}, {"id": 735, "type": "binary_expression", "text": "e*nr_of_elements);", "parent": 726, "children": [736, 737, 738], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 51}}, {"id": 736, "type": "identifier", "text": "e*n", "parent": 735, "children": [], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 36}}, {"id": 737, "type": "*", "text": "r", "parent": 735, "children": [], "start_point": {"row": 192, "column": 36}, "end_point": {"row": 192, "column": 37}}, {"id": 738, "type": "identifier", "text": "_of_elements);", "parent": 735, "children": [], "start_point": {"row": 192, "column": 37}, "end_point": {"row": 192, "column": 51}}, {"id": 739, "type": "function_definition", "text": "id generic_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\n", "parent": null, "children": [740, 741], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 208, "column": 1}}, {"id": 740, "type": "primitive_type", "text": "id g", "parent": 739, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 4}}, {"id": 741, "type": "function_declarator", "text": "neric_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{", "parent": 739, "children": [742, 743], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 105}}, {"id": 742, "type": "identifier", "text": "neric_array_copy_data(c", "parent": 741, "children": [], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 28}}, {"id": 743, "type": "parameter_list", "text": "onst base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{", "parent": 741, "children": [744, 748, 753, 756], "start_point": {"row": 196, "column": 28}, "end_point": {"row": 196, "column": 105}}, {"id": 744, "type": "parameter_declaration", "text": "nst base_array_t src_cp, ", "parent": 743, "children": [745, 746, 747], "start_point": {"row": 196, "column": 29}, "end_point": {"row": 196, "column": 54}}, {"id": 745, "type": "type_qualifier", "text": "nst b", "parent": 744, "children": [], "start_point": {"row": 196, "column": 29}, "end_point": {"row": 196, "column": 34}}, {"id": 746, "type": "type_identifier", "text": "se_array_t s", "parent": 744, "children": [], "start_point": {"row": 196, "column": 35}, "end_point": {"row": 196, "column": 47}}, {"id": 747, "type": "identifier", "text": "c_cp, ", "parent": 744, "children": [], "start_point": {"row": 196, "column": 48}, "end_point": {"row": 196, "column": 54}}, {"id": 748, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 743, "children": [749, 750], "start_point": {"row": 196, "column": 56}, "end_point": {"row": 196, "column": 73}}, {"id": 749, "type": "type_identifier", "text": "se_array_t* ", "parent": 748, "children": [], "start_point": {"row": 196, "column": 56}, "end_point": {"row": 196, "column": 68}}, {"id": 750, "type": "pointer_declarator", "text": "dst, ", "parent": 748, "children": [751, 752], "start_point": {"row": 196, "column": 68}, "end_point": {"row": 196, "column": 73}}, {"id": 751, "type": "*", "text": "d", "parent": 750, "children": [], "start_point": {"row": 196, "column": 68}, "end_point": {"row": 196, "column": 69}}, {"id": 752, "type": "identifier", "text": "t, ", "parent": 750, "children": [], "start_point": {"row": 196, "column": 70}, "end_point": {"row": 196, "column": 73}}, {"id": 753, "type": "parameter_declaration", "text": "py_func cp_func, ", "parent": 743, "children": [754, 755], "start_point": {"row": 196, "column": 75}, "end_point": {"row": 196, "column": 92}}, {"id": 754, "type": "type_identifier", "text": "py_func c", "parent": 753, "children": [], "start_point": {"row": 196, "column": 75}, "end_point": {"row": 196, "column": 84}}, {"id": 755, "type": "identifier", "text": "_func, ", "parent": 753, "children": [], "start_point": {"row": 196, "column": 85}, "end_point": {"row": 196, "column": 92}}, {"id": 756, "type": "parameter_declaration", "text": "ze_t sze)\n", "parent": 743, "children": [757, 758], "start_point": {"row": 196, "column": 94}, "end_point": {"row": 196, "column": 104}}, {"id": 757, "type": "primitive_type", "text": "ze_t s", "parent": 756, "children": [], "start_point": {"row": 196, "column": 94}, "end_point": {"row": 196, "column": 100}}, {"id": 758, "type": "identifier", "text": "e)\n", "parent": 756, "children": [], "start_point": {"row": 196, "column": 101}, "end_point": {"row": 196, "column": 104}}, {"id": 759, "type": "declaration", "text": "nst base_array_t* src = &src_cp;\n\n", "parent": 739, "children": [760, 761, 762], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 38}}, {"id": 760, "type": "type_qualifier", "text": "nst b", "parent": 759, "children": [], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 9}}, {"id": 761, "type": "type_identifier", "text": "se_array_t* ", "parent": 759, "children": [], "start_point": {"row": 198, "column": 10}, "end_point": {"row": 198, "column": 22}}, {"id": 762, "type": "init_declarator", "text": "src = &src_cp;\n", "parent": 759, "children": [763, 766], "start_point": {"row": 198, "column": 22}, "end_point": {"row": 198, "column": 37}}, {"id": 763, "type": "pointer_declarator", "text": "src =", "parent": 762, "children": [764, 765], "start_point": {"row": 198, "column": 22}, "end_point": {"row": 198, "column": 27}}, {"id": 764, "type": "*", "text": "s", "parent": 763, "children": [], "start_point": {"row": 198, "column": 22}, "end_point": {"row": 198, "column": 23}}, {"id": 765, "type": "identifier", "text": "c =", "parent": 763, "children": [], "start_point": {"row": 198, "column": 24}, "end_point": {"row": 198, "column": 27}}, {"id": 766, "type": "pointer_expression", "text": "rc_cp;\n", "parent": 762, "children": [767, 768], "start_point": {"row": 198, "column": 30}, "end_point": {"row": 198, "column": 37}}, {"id": 767, "type": "&", "text": "r", "parent": 766, "children": [], "start_point": {"row": 198, "column": 30}, "end_point": {"row": 198, "column": 31}}, {"id": 768, "type": "identifier", "text": "c_cp;\n", "parent": 766, "children": [], "start_point": {"row": 198, "column": 31}, "end_point": {"row": 198, "column": 37}}, {"id": 769, "type": "declaration", "text": "ze_t nr_of_elements = check_copy_sanity(src, dst, sze);\n\n", "parent": 739, "children": [770, 771], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 61}}, {"id": 770, "type": "primitive_type", "text": "ze_t n", "parent": 769, "children": [], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 10}}, {"id": 771, "type": "init_declarator", "text": "_of_elements = check_copy_sanity(src, dst, sze);\n", "parent": 769, "children": [772, 773, 774], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 60}}, {"id": 772, "type": "identifier", "text": "_of_elements =", "parent": 771, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 25}}, {"id": 773, "type": "=", "text": "c", "parent": 771, "children": [], "start_point": {"row": 200, "column": 26}, "end_point": {"row": 200, "column": 27}}, {"id": 774, "type": "call_expression", "text": "eck_copy_sanity(src, dst, sze);\n", "parent": 771, "children": [775, 776], "start_point": {"row": 200, "column": 28}, "end_point": {"row": 200, "column": 60}}, {"id": 775, "type": "identifier", "text": "eck_copy_sanity(s", "parent": 774, "children": [], "start_point": {"row": 200, "column": 28}, "end_point": {"row": 200, "column": 45}}, {"id": 776, "type": "argument_list", "text": "rc, dst, sze);\n", "parent": 774, "children": [777, 778, 779], "start_point": {"row": 200, "column": 45}, "end_point": {"row": 200, "column": 60}}, {"id": 777, "type": "identifier", "text": "c, ", "parent": 776, "children": [], "start_point": {"row": 200, "column": 46}, "end_point": {"row": 200, "column": 49}}, {"id": 778, "type": "identifier", "text": "t, ", "parent": 776, "children": [], "start_point": {"row": 200, "column": 51}, "end_point": {"row": 200, "column": 54}}, {"id": 779, "type": "identifier", "text": "e);", "parent": 776, "children": [], "start_point": {"row": 200, "column": 56}, "end_point": {"row": 200, "column": 59}}, {"id": 780, "type": "declaration", "text": "ze_t i;\n ", "parent": 739, "children": [781, 782], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 13}}, {"id": 781, "type": "primitive_type", "text": "ze_t i", "parent": 780, "children": [], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 10}}, {"id": 782, "type": "identifier", "text": "\n", "parent": 780, "children": [], "start_point": {"row": 202, "column": 11}, "end_point": {"row": 202, "column": 12}}, {"id": 783, "type": "declaration", "text": "ar* d_data = (char*)(dst->data);\n ", "parent": 739, "children": [784, 785], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 38}}, {"id": 784, "type": "primitive_type", "text": "ar* ", "parent": 783, "children": [], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 8}}, {"id": 785, "type": "init_declarator", "text": "d_data = (char*)(dst->data);\n", "parent": 783, "children": [786, 789], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 37}}, {"id": 786, "type": "pointer_declarator", "text": "d_data =", "parent": 785, "children": [787, 788], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 16}}, {"id": 787, "type": "*", "text": "d", "parent": 786, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 9}}, {"id": 788, "type": "identifier", "text": "data =", "parent": 786, "children": [], "start_point": {"row": 203, "column": 10}, "end_point": {"row": 203, "column": 16}}, {"id": 789, "type": "cast_expression", "text": "har*)(dst->data);\n", "parent": 785, "children": [790, 792], "start_point": {"row": 203, "column": 19}, "end_point": {"row": 203, "column": 37}}, {"id": 790, "type": "type_descriptor", "text": "ar*)(", "parent": 789, "children": [791], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 25}}, {"id": 791, "type": "primitive_type", "text": "ar*)", "parent": 790, "children": [], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 24}}, {"id": 792, "type": "parenthesized_expression", "text": "st->data);\n", "parent": 789, "children": [793], "start_point": {"row": 203, "column": 26}, "end_point": {"row": 203, "column": 37}}, {"id": 793, "type": "field_expression", "text": "t->data);", "parent": 792, "children": [794, 795, 796], "start_point": {"row": 203, "column": 27}, "end_point": {"row": 203, "column": 36}}, {"id": 794, "type": "identifier", "text": "t->", "parent": 793, "children": [], "start_point": {"row": 203, "column": 27}, "end_point": {"row": 203, "column": 30}}, {"id": 795, "type": "->", "text": "da", "parent": 793, "children": [], "start_point": {"row": 203, "column": 30}, "end_point": {"row": 203, "column": 32}}, {"id": 796, "type": "field_identifier", "text": "ta);", "parent": 793, "children": [], "start_point": {"row": 203, "column": 32}, "end_point": {"row": 203, "column": 36}}, {"id": 797, "type": "declaration", "text": "ar* s_data = (char*)(src->data);\n ", "parent": 739, "children": [798, 799], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 204, "column": 38}}, {"id": 798, "type": "primitive_type", "text": "ar* ", "parent": 797, "children": [], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 204, "column": 8}}, {"id": 799, "type": "init_declarator", "text": "s_data = (char*)(src->data);\n", "parent": 797, "children": [800, 803], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 37}}, {"id": 800, "type": "pointer_declarator", "text": "s_data =", "parent": 799, "children": [801, 802], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 16}}, {"id": 801, "type": "*", "text": "s", "parent": 800, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 9}}, {"id": 802, "type": "identifier", "text": "data =", "parent": 800, "children": [], "start_point": {"row": 204, "column": 10}, "end_point": {"row": 204, "column": 16}}, {"id": 803, "type": "cast_expression", "text": "har*)(src->data);\n", "parent": 799, "children": [804, 806], "start_point": {"row": 204, "column": 19}, "end_point": {"row": 204, "column": 37}}, {"id": 804, "type": "type_descriptor", "text": "ar*)(", "parent": 803, "children": [805], "start_point": {"row": 204, "column": 20}, "end_point": {"row": 204, "column": 25}}, {"id": 805, "type": "primitive_type", "text": "ar*)", "parent": 804, "children": [], "start_point": {"row": 204, "column": 20}, "end_point": {"row": 204, "column": 24}}, {"id": 806, "type": "parenthesized_expression", "text": "rc->data);\n", "parent": 803, "children": [807], "start_point": {"row": 204, "column": 26}, "end_point": {"row": 204, "column": 37}}, {"id": 807, "type": "field_expression", "text": "c->data);", "parent": 806, "children": [808, 809, 810], "start_point": {"row": 204, "column": 27}, "end_point": {"row": 204, "column": 36}}, {"id": 808, "type": "identifier", "text": "c->", "parent": 807, "children": [], "start_point": {"row": 204, "column": 27}, "end_point": {"row": 204, "column": 30}}, {"id": 809, "type": "->", "text": "da", "parent": 807, "children": [], "start_point": {"row": 204, "column": 30}, "end_point": {"row": 204, "column": 32}}, {"id": 810, "type": "field_identifier", "text": "ta);", "parent": 807, "children": [], "start_point": {"row": 204, "column": 32}, "end_point": {"row": 204, "column": 36}}, {"id": 811, "type": "for_statement", "text": "r(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}", "parent": 739, "children": [812, 816, 820], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 207, "column": 5}}, {"id": 812, "type": "assignment_expression", "text": "= 0; ", "parent": 811, "children": [813, 814, 815], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 13}}, {"id": 813, "type": "identifier", "text": "=", "parent": 812, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 9}}, {"id": 814, "type": "=", "text": "0", "parent": 812, "children": [], "start_point": {"row": 205, "column": 10}, "end_point": {"row": 205, "column": 11}}, {"id": 815, "type": "number_literal", "text": " ", "parent": 812, "children": [], "start_point": {"row": 205, "column": 12}, "end_point": {"row": 205, "column": 13}}, {"id": 816, "type": "binary_expression", "text": "< nr_of_elements; ", "parent": 811, "children": [817, 818, 819], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 33}}, {"id": 817, "type": "identifier", "text": "<", "parent": 816, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 16}}, {"id": 818, "type": "<", "text": "n", "parent": 816, "children": [], "start_point": {"row": 205, "column": 17}, "end_point": {"row": 205, "column": 18}}, {"id": 819, "type": "identifier", "text": "_of_elements; ", "parent": 816, "children": [], "start_point": {"row": 205, "column": 19}, "end_point": {"row": 205, "column": 33}}, {"id": 820, "type": "update_expression", "text": "i) ", "parent": 811, "children": [821, 822], "start_point": {"row": 205, "column": 35}, "end_point": {"row": 205, "column": 38}}, {"id": 821, "type": "++", "text": "i)", "parent": 820, "children": [], "start_point": {"row": 205, "column": 35}, "end_point": {"row": 205, "column": 37}}, {"id": 822, "type": "identifier", "text": " ", "parent": 820, "children": [], "start_point": {"row": 205, "column": 37}, "end_point": {"row": 205, "column": 38}}, {"id": 823, "type": "call_expression", "text": "_func(s_data + (i*sze), d_data + (i*sze));\n", "parent": 811, "children": [824, 825], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 51}}, {"id": 824, "type": "identifier", "text": "_func(s", "parent": 823, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 15}}, {"id": 825, "type": "argument_list", "text": "_data + (i*sze), d_data + (i*sze));\n", "parent": 823, "children": [826, 833], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 51}}, {"id": 826, "type": "binary_expression", "text": "data + (i*sze), ", "parent": 825, "children": [827, 828], "start_point": {"row": 206, "column": 16}, "end_point": {"row": 206, "column": 32}}, {"id": 827, "type": "identifier", "text": "data +", "parent": 826, "children": [], "start_point": {"row": 206, "column": 16}, "end_point": {"row": 206, "column": 22}}, {"id": 828, "type": "parenthesized_expression", "text": "*sze), ", "parent": 826, "children": [829], "start_point": {"row": 206, "column": 25}, "end_point": {"row": 206, "column": 32}}, {"id": 829, "type": "binary_expression", "text": "sze),", "parent": 828, "children": [830, 831, 832], "start_point": {"row": 206, "column": 26}, "end_point": {"row": 206, "column": 31}}, {"id": 830, "type": "identifier", "text": "s", "parent": 829, "children": [], "start_point": {"row": 206, "column": 26}, "end_point": {"row": 206, "column": 27}}, {"id": 831, "type": "*", "text": "z", "parent": 829, "children": [], "start_point": {"row": 206, "column": 27}, "end_point": {"row": 206, "column": 28}}, {"id": 832, "type": "identifier", "text": "e),", "parent": 829, "children": [], "start_point": {"row": 206, "column": 28}, "end_point": {"row": 206, "column": 31}}, {"id": 833, "type": "binary_expression", "text": "data + (i*sze));", "parent": 825, "children": [834, 835], "start_point": {"row": 206, "column": 34}, "end_point": {"row": 206, "column": 50}}, {"id": 834, "type": "identifier", "text": "data +", "parent": 833, "children": [], "start_point": {"row": 206, "column": 34}, "end_point": {"row": 206, "column": 40}}, {"id": 835, "type": "parenthesized_expression", "text": "*sze));", "parent": 833, "children": [836], "start_point": {"row": 206, "column": 43}, "end_point": {"row": 206, "column": 50}}, {"id": 836, "type": "binary_expression", "text": "sze))", "parent": 835, "children": [837, 838, 839], "start_point": {"row": 206, "column": 44}, "end_point": {"row": 206, "column": 49}}, {"id": 837, "type": "identifier", "text": "s", "parent": 836, "children": [], "start_point": {"row": 206, "column": 44}, "end_point": {"row": 206, "column": 45}}, {"id": 838, "type": "*", "text": "z", "parent": 836, "children": [], "start_point": {"row": 206, "column": 45}, "end_point": {"row": 206, "column": 46}}, {"id": 839, "type": "identifier", "text": "e))", "parent": 836, "children": [], "start_point": {"row": 206, "column": 46}, "end_point": {"row": 206, "column": 49}}, {"id": 840, "type": "function_definition", "text": "id simple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n", "parent": null, "children": [841, 842], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 216, "column": 1}}, {"id": 841, "type": "primitive_type", "text": "id s", "parent": 840, "children": [], "start_point": {"row": 210, "column": 0}, "end_point": {"row": 210, "column": 4}}, {"id": 842, "type": "function_declarator", "text": "mple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{", "parent": 840, "children": [843, 844], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 85}}, {"id": 843, "type": "identifier", "text": "mple_array_copy_data(c", "parent": 842, "children": [], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 27}}, {"id": 844, "type": "parameter_list", "text": "onst base_array_t src_cp, base_array_t* dst, size_t sze)\n{", "parent": 842, "children": [845, 849, 854], "start_point": {"row": 210, "column": 27}, "end_point": {"row": 210, "column": 85}}, {"id": 845, "type": "parameter_declaration", "text": "nst base_array_t src_cp, ", "parent": 844, "children": [846, 847, 848], "start_point": {"row": 210, "column": 28}, "end_point": {"row": 210, "column": 53}}, {"id": 846, "type": "type_qualifier", "text": "nst b", "parent": 845, "children": [], "start_point": {"row": 210, "column": 28}, "end_point": {"row": 210, "column": 33}}, {"id": 847, "type": "type_identifier", "text": "se_array_t s", "parent": 845, "children": [], "start_point": {"row": 210, "column": 34}, "end_point": {"row": 210, "column": 46}}, {"id": 848, "type": "identifier", "text": "c_cp, ", "parent": 845, "children": [], "start_point": {"row": 210, "column": 47}, "end_point": {"row": 210, "column": 53}}, {"id": 849, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 844, "children": [850, 851], "start_point": {"row": 210, "column": 55}, "end_point": {"row": 210, "column": 72}}, {"id": 850, "type": "type_identifier", "text": "se_array_t* ", "parent": 849, "children": [], "start_point": {"row": 210, "column": 55}, "end_point": {"row": 210, "column": 67}}, {"id": 851, "type": "pointer_declarator", "text": "dst, ", "parent": 849, "children": [852, 853], "start_point": {"row": 210, "column": 67}, "end_point": {"row": 210, "column": 72}}, {"id": 852, "type": "*", "text": "d", "parent": 851, "children": [], "start_point": {"row": 210, "column": 67}, "end_point": {"row": 210, "column": 68}}, {"id": 853, "type": "identifier", "text": "t, ", "parent": 851, "children": [], "start_point": {"row": 210, "column": 69}, "end_point": {"row": 210, "column": 72}}, {"id": 854, "type": "parameter_declaration", "text": "ze_t sze)\n", "parent": 844, "children": [855, 856], "start_point": {"row": 210, "column": 74}, "end_point": {"row": 210, "column": 84}}, {"id": 855, "type": "primitive_type", "text": "ze_t s", "parent": 854, "children": [], "start_point": {"row": 210, "column": 74}, "end_point": {"row": 210, "column": 80}}, {"id": 856, "type": "identifier", "text": "e)\n", "parent": 854, "children": [], "start_point": {"row": 210, "column": 81}, "end_point": {"row": 210, "column": 84}}, {"id": 857, "type": "declaration", "text": "nst base_array_t* src = &src_cp;\n\n", "parent": 840, "children": [858, 859, 860], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 38}}, {"id": 858, "type": "type_qualifier", "text": "nst b", "parent": 857, "children": [], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 9}}, {"id": 859, "type": "type_identifier", "text": "se_array_t* ", "parent": 857, "children": [], "start_point": {"row": 212, "column": 10}, "end_point": {"row": 212, "column": 22}}, {"id": 860, "type": "init_declarator", "text": "src = &src_cp;\n", "parent": 857, "children": [861, 864], "start_point": {"row": 212, "column": 22}, "end_point": {"row": 212, "column": 37}}, {"id": 861, "type": "pointer_declarator", "text": "src =", "parent": 860, "children": [862, 863], "start_point": {"row": 212, "column": 22}, "end_point": {"row": 212, "column": 27}}, {"id": 862, "type": "*", "text": "s", "parent": 861, "children": [], "start_point": {"row": 212, "column": 22}, "end_point": {"row": 212, "column": 23}}, {"id": 863, "type": "identifier", "text": "c =", "parent": 861, "children": [], "start_point": {"row": 212, "column": 24}, "end_point": {"row": 212, "column": 27}}, {"id": 864, "type": "pointer_expression", "text": "rc_cp;\n", "parent": 860, "children": [865, 866], "start_point": {"row": 212, "column": 30}, "end_point": {"row": 212, "column": 37}}, {"id": 865, "type": "&", "text": "r", "parent": 864, "children": [], "start_point": {"row": 212, "column": 30}, "end_point": {"row": 212, "column": 31}}, {"id": 866, "type": "identifier", "text": "c_cp;\n", "parent": 864, "children": [], "start_point": {"row": 212, "column": 31}, "end_point": {"row": 212, "column": 37}}, {"id": 867, "type": "declaration", "text": "ze_t nr_of_elements = check_copy_sanity(src, dst, sze);\n ", "parent": 840, "children": [868, 869], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 61}}, {"id": 868, "type": "primitive_type", "text": "ze_t n", "parent": 867, "children": [], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 10}}, {"id": 869, "type": "init_declarator", "text": "_of_elements = check_copy_sanity(src, dst, sze);\n", "parent": 867, "children": [870, 871, 872], "start_point": {"row": 214, "column": 11}, "end_point": {"row": 214, "column": 60}}, {"id": 870, "type": "identifier", "text": "_of_elements =", "parent": 869, "children": [], "start_point": {"row": 214, "column": 11}, "end_point": {"row": 214, "column": 25}}, {"id": 871, "type": "=", "text": "c", "parent": 869, "children": [], "start_point": {"row": 214, "column": 26}, "end_point": {"row": 214, "column": 27}}, {"id": 872, "type": "call_expression", "text": "eck_copy_sanity(src, dst, sze);\n", "parent": 869, "children": [873, 874], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 60}}, {"id": 873, "type": "identifier", "text": "eck_copy_sanity(s", "parent": 872, "children": [], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 45}}, {"id": 874, "type": "argument_list", "text": "rc, dst, sze);\n", "parent": 872, "children": [875, 876, 877], "start_point": {"row": 214, "column": 45}, "end_point": {"row": 214, "column": 60}}, {"id": 875, "type": "identifier", "text": "c, ", "parent": 874, "children": [], "start_point": {"row": 214, "column": 46}, "end_point": {"row": 214, "column": 49}}, {"id": 876, "type": "identifier", "text": "t, ", "parent": 874, "children": [], "start_point": {"row": 214, "column": 51}, "end_point": {"row": 214, "column": 54}}, {"id": 877, "type": "identifier", "text": "e);", "parent": 874, "children": [], "start_point": {"row": 214, "column": 56}, "end_point": {"row": 214, "column": 59}}, {"id": 878, "type": "call_expression", "text": "mcpy(dst->data, src->data, sze*nr_of_elements);\n", "parent": 840, "children": [879, 880], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 52}}, {"id": 879, "type": "identifier", "text": "mcpy(d", "parent": 878, "children": [], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 10}}, {"id": 880, "type": "argument_list", "text": "st->data, src->data, sze*nr_of_elements);\n", "parent": 878, "children": [881, 885, 889], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 52}}, {"id": 881, "type": "field_expression", "text": "t->data, ", "parent": 880, "children": [882, 883, 884], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 20}}, {"id": 882, "type": "identifier", "text": "t->", "parent": 881, "children": [], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 14}}, {"id": 883, "type": "->", "text": "da", "parent": 881, "children": [], "start_point": {"row": 215, "column": 14}, "end_point": {"row": 215, "column": 16}}, {"id": 884, "type": "field_identifier", "text": "ta, ", "parent": 881, "children": [], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 20}}, {"id": 885, "type": "field_expression", "text": "c->data, ", "parent": 880, "children": [886, 887, 888], "start_point": {"row": 215, "column": 22}, "end_point": {"row": 215, "column": 31}}, {"id": 886, "type": "identifier", "text": "c->", "parent": 885, "children": [], "start_point": {"row": 215, "column": 22}, "end_point": {"row": 215, "column": 25}}, {"id": 887, "type": "->", "text": "da", "parent": 885, "children": [], "start_point": {"row": 215, "column": 25}, "end_point": {"row": 215, "column": 27}}, {"id": 888, "type": "field_identifier", "text": "ta, ", "parent": 885, "children": [], "start_point": {"row": 215, "column": 27}, "end_point": {"row": 215, "column": 31}}, {"id": 889, "type": "binary_expression", "text": "e*nr_of_elements);", "parent": 880, "children": [890, 891, 892], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 51}}, {"id": 890, "type": "identifier", "text": "e*n", "parent": 889, "children": [], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 36}}, {"id": 891, "type": "*", "text": "r", "parent": 889, "children": [], "start_point": {"row": 215, "column": 36}, "end_point": {"row": 215, "column": 37}}, {"id": 892, "type": "identifier", "text": "_of_elements);", "parent": 889, "children": [], "start_point": {"row": 215, "column": 37}, "end_point": {"row": 215, "column": 51}}, {"id": 893, "type": "function_definition", "text": "id* generic_array_get(const base_array_t* src, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n va_end(ap);\n return trgt;\n}\n\n", "parent": null, "children": [894, 895], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 227, "column": 1}}, {"id": 894, "type": "primitive_type", "text": "id* ", "parent": 893, "children": [], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 4}}, {"id": 895, "type": "pointer_declarator", "text": "generic_array_get(const base_array_t* src, size_t sze, ...) {", "parent": 893, "children": [896, 897], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 65}}, {"id": 896, "type": "*", "text": "g", "parent": 895, "children": [], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 5}}, {"id": 897, "type": "function_declarator", "text": "neric_array_get(const base_array_t* src, size_t sze, ...) {", "parent": 895, "children": [898, 899], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 65}}, {"id": 898, "type": "identifier", "text": "neric_array_get(c", "parent": 897, "children": [], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 23}}, {"id": 899, "type": "parameter_list", "text": "onst base_array_t* src, size_t sze, ...) {", "parent": 897, "children": [900, 906, 909], "start_point": {"row": 220, "column": 23}, "end_point": {"row": 220, "column": 65}}, {"id": 900, "type": "parameter_declaration", "text": "nst base_array_t* src, ", "parent": 899, "children": [901, 902, 903], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 47}}, {"id": 901, "type": "type_qualifier", "text": "nst b", "parent": 900, "children": [], "start_point": {"row": 220, "column": 24}, "end_point": {"row": 220, "column": 29}}, {"id": 902, "type": "type_identifier", "text": "se_array_t* ", "parent": 900, "children": [], "start_point": {"row": 220, "column": 30}, "end_point": {"row": 220, "column": 42}}, {"id": 903, "type": "pointer_declarator", "text": "src, ", "parent": 900, "children": [904, 905], "start_point": {"row": 220, "column": 42}, "end_point": {"row": 220, "column": 47}}, {"id": 904, "type": "*", "text": "s", "parent": 903, "children": [], "start_point": {"row": 220, "column": 42}, "end_point": {"row": 220, "column": 43}}, {"id": 905, "type": "identifier", "text": "c, ", "parent": 903, "children": [], "start_point": {"row": 220, "column": 44}, "end_point": {"row": 220, "column": 47}}, {"id": 906, "type": "parameter_declaration", "text": "ze_t sze, ", "parent": 899, "children": [907, 908], "start_point": {"row": 220, "column": 49}, "end_point": {"row": 220, "column": 59}}, {"id": 907, "type": "primitive_type", "text": "ze_t s", "parent": 906, "children": [], "start_point": {"row": 220, "column": 49}, "end_point": {"row": 220, "column": 55}}, {"id": 908, "type": "identifier", "text": "e, ", "parent": 906, "children": [], "start_point": {"row": 220, "column": 56}, "end_point": {"row": 220, "column": 59}}, {"id": 909, "type": "variadic_parameter", "text": ".) ", "parent": 899, "children": [910], "start_point": {"row": 220, "column": 61}, "end_point": {"row": 220, "column": 64}}, {"id": 910, "type": "...", "text": ".) ", "parent": 909, "children": [], "start_point": {"row": 220, "column": 61}, "end_point": {"row": 220, "column": 64}}, {"id": 911, "type": "declaration", "text": "_list ap;\n ", "parent": 893, "children": [912], "start_point": {"row": 221, "column": 2}, "end_point": {"row": 221, "column": 13}}, {"id": 912, "type": "type_identifier", "text": "_list a", "parent": 911, "children": [], "start_point": {"row": 221, "column": 2}, "end_point": {"row": 221, "column": 9}}, {"id": 913, "type": "call_expression", "text": "_start(ap,sze);\n", "parent": 893, "children": [914, 915], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 18}}, {"id": 914, "type": "identifier", "text": "_start(a", "parent": 913, "children": [], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 10}}, {"id": 915, "type": "argument_list", "text": "p,sze);\n", "parent": 913, "children": [916, 917], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 18}}, {"id": 916, "type": "identifier", "text": ",s", "parent": 915, "children": [], "start_point": {"row": 222, "column": 11}, "end_point": {"row": 222, "column": 13}}, {"id": 917, "type": "identifier", "text": "e);", "parent": 915, "children": [], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 17}}, {"id": 918, "type": "declaration", "text": "id* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n ", "parent": 893, "children": [919, 920], "start_point": {"row": 224, "column": 2}, "end_point": {"row": 224, "column": 81}}, {"id": 919, "type": "primitive_type", "text": "id* ", "parent": 918, "children": [], "start_point": {"row": 224, "column": 2}, "end_point": {"row": 224, "column": 6}}, {"id": 920, "type": "init_declarator", "text": "trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n", "parent": 918, "children": [921, 924, 925], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 80}}, {"id": 921, "type": "pointer_declarator", "text": "trgt =", "parent": 920, "children": [922, 923], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 12}}, {"id": 922, "type": "*", "text": "t", "parent": 921, "children": [], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 7}}, {"id": 923, "type": "identifier", "text": "gt =", "parent": 921, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 12}}, {"id": 924, "type": "=", "text": "g", "parent": 920, "children": [], "start_point": {"row": 224, "column": 13}, "end_point": {"row": 224, "column": 14}}, {"id": 925, "type": "call_expression", "text": "neric_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n", "parent": 920, "children": [926, 927], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 80}}, {"id": 926, "type": "identifier", "text": "neric_ptrget(s", "parent": 925, "children": [], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 29}}, {"id": 927, "type": "argument_list", "text": "rc, calc_base_index_va(src, src->ndims, ap), sze);\n", "parent": 925, "children": [928, 929, 938], "start_point": {"row": 224, "column": 29}, "end_point": {"row": 224, "column": 80}}, {"id": 928, "type": "identifier", "text": "c, ", "parent": 927, "children": [], "start_point": {"row": 224, "column": 30}, "end_point": {"row": 224, "column": 33}}, {"id": 929, "type": "call_expression", "text": "lc_base_index_va(src, src->ndims, ap), ", "parent": 927, "children": [930, 931], "start_point": {"row": 224, "column": 35}, "end_point": {"row": 224, "column": 74}}, {"id": 930, "type": "identifier", "text": "lc_base_index_va(s", "parent": 929, "children": [], "start_point": {"row": 224, "column": 35}, "end_point": {"row": 224, "column": 53}}, {"id": 931, "type": "argument_list", "text": "rc, src->ndims, ap), ", "parent": 929, "children": [932, 933, 937], "start_point": {"row": 224, "column": 53}, "end_point": {"row": 224, "column": 74}}, {"id": 932, "type": "identifier", "text": "c, ", "parent": 931, "children": [], "start_point": {"row": 224, "column": 54}, "end_point": {"row": 224, "column": 57}}, {"id": 933, "type": "field_expression", "text": "c->ndims, ", "parent": 931, "children": [934, 935, 936], "start_point": {"row": 224, "column": 59}, "end_point": {"row": 224, "column": 69}}, {"id": 934, "type": "identifier", "text": "c->", "parent": 933, "children": [], "start_point": {"row": 224, "column": 59}, "end_point": {"row": 224, "column": 62}}, {"id": 935, "type": "->", "text": "nd", "parent": 933, "children": [], "start_point": {"row": 224, "column": 62}, "end_point": {"row": 224, "column": 64}}, {"id": 936, "type": "field_identifier", "text": "ims, ", "parent": 933, "children": [], "start_point": {"row": 224, "column": 64}, "end_point": {"row": 224, "column": 69}}, {"id": 937, "type": "identifier", "text": "),", "parent": 931, "children": [], "start_point": {"row": 224, "column": 71}, "end_point": {"row": 224, "column": 73}}, {"id": 938, "type": "identifier", "text": "e);", "parent": 927, "children": [], "start_point": {"row": 224, "column": 76}, "end_point": {"row": 224, "column": 79}}, {"id": 939, "type": "call_expression", "text": "_end(ap);\n", "parent": 893, "children": [940, 941], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 12}}, {"id": 940, "type": "identifier", "text": "_end(a", "parent": 939, "children": [], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 8}}, {"id": 941, "type": "argument_list", "text": "p);\n", "parent": 939, "children": [942], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 12}}, {"id": 942, "type": "identifier", "text": ");", "parent": 941, "children": [], "start_point": {"row": 225, "column": 9}, "end_point": {"row": 225, "column": 11}}, {"id": 943, "type": "return_statement", "text": "turn trgt;\n}", "parent": 893, "children": [944], "start_point": {"row": 226, "column": 2}, "end_point": {"row": 226, "column": 14}}, {"id": 944, "type": "identifier", "text": "gt;\n", "parent": 943, "children": [], "start_point": {"row": 226, "column": 9}, "end_point": {"row": 226, "column": 13}}, {"id": 945, "type": "function_definition", "text": "id generic_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n cp_func(val,trgt);\n va_end(ap);\n}\n\n", "parent": null, "children": [946, 947], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 236, "column": 1}}, {"id": 946, "type": "primitive_type", "text": "id g", "parent": 945, "children": [], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 4}}, {"id": 947, "type": "function_declarator", "text": "neric_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {", "parent": 945, "children": [948, 949], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 88}}, {"id": 948, "type": "identifier", "text": "neric_array_set(b", "parent": 947, "children": [], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 22}}, {"id": 949, "type": "parameter_list", "text": "ase_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {", "parent": 947, "children": [950, 955, 960, 963, 966], "start_point": {"row": 229, "column": 22}, "end_point": {"row": 229, "column": 88}}, {"id": 950, "type": "parameter_declaration", "text": "se_array_t* dst, ", "parent": 949, "children": [951, 952], "start_point": {"row": 229, "column": 23}, "end_point": {"row": 229, "column": 40}}, {"id": 951, "type": "type_identifier", "text": "se_array_t* ", "parent": 950, "children": [], "start_point": {"row": 229, "column": 23}, "end_point": {"row": 229, "column": 35}}, {"id": 952, "type": "pointer_declarator", "text": "dst, ", "parent": 950, "children": [953, 954], "start_point": {"row": 229, "column": 35}, "end_point": {"row": 229, "column": 40}}, {"id": 953, "type": "*", "text": "d", "parent": 952, "children": [], "start_point": {"row": 229, "column": 35}, "end_point": {"row": 229, "column": 36}}, {"id": 954, "type": "identifier", "text": "t, ", "parent": 952, "children": [], "start_point": {"row": 229, "column": 37}, "end_point": {"row": 229, "column": 40}}, {"id": 955, "type": "parameter_declaration", "text": "id* val, ", "parent": 949, "children": [956, 957], "start_point": {"row": 229, "column": 42}, "end_point": {"row": 229, "column": 51}}, {"id": 956, "type": "primitive_type", "text": "id* ", "parent": 955, "children": [], "start_point": {"row": 229, "column": 42}, "end_point": {"row": 229, "column": 46}}, {"id": 957, "type": "pointer_declarator", "text": "val, ", "parent": 955, "children": [958, 959], "start_point": {"row": 229, "column": 46}, "end_point": {"row": 229, "column": 51}}, {"id": 958, "type": "*", "text": "v", "parent": 957, "children": [], "start_point": {"row": 229, "column": 46}, "end_point": {"row": 229, "column": 47}}, {"id": 959, "type": "identifier", "text": "l, ", "parent": 957, "children": [], "start_point": {"row": 229, "column": 48}, "end_point": {"row": 229, "column": 51}}, {"id": 960, "type": "parameter_declaration", "text": "py_func cp_func, ", "parent": 949, "children": [961, 962], "start_point": {"row": 229, "column": 53}, "end_point": {"row": 229, "column": 70}}, {"id": 961, "type": "type_identifier", "text": "py_func c", "parent": 960, "children": [], "start_point": {"row": 229, "column": 53}, "end_point": {"row": 229, "column": 62}}, {"id": 962, "type": "identifier", "text": "_func, ", "parent": 960, "children": [], "start_point": {"row": 229, "column": 63}, "end_point": {"row": 229, "column": 70}}, {"id": 963, "type": "parameter_declaration", "text": "ze_t sze, ", "parent": 949, "children": [964, 965], "start_point": {"row": 229, "column": 72}, "end_point": {"row": 229, "column": 82}}, {"id": 964, "type": "primitive_type", "text": "ze_t s", "parent": 963, "children": [], "start_point": {"row": 229, "column": 72}, "end_point": {"row": 229, "column": 78}}, {"id": 965, "type": "identifier", "text": "e, ", "parent": 963, "children": [], "start_point": {"row": 229, "column": 79}, "end_point": {"row": 229, "column": 82}}, {"id": 966, "type": "variadic_parameter", "text": ".) ", "parent": 949, "children": [967], "start_point": {"row": 229, "column": 84}, "end_point": {"row": 229, "column": 87}}, {"id": 967, "type": "...", "text": ".) ", "parent": 966, "children": [], "start_point": {"row": 229, "column": 84}, "end_point": {"row": 229, "column": 87}}, {"id": 968, "type": "declaration", "text": "_list ap;\n ", "parent": 945, "children": [969], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 13}}, {"id": 969, "type": "type_identifier", "text": "_list a", "parent": 968, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 9}}, {"id": 970, "type": "call_expression", "text": "_start(ap,sze);\n", "parent": 945, "children": [971, 972], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 18}}, {"id": 971, "type": "identifier", "text": "_start(a", "parent": 970, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 10}}, {"id": 972, "type": "argument_list", "text": "p,sze);\n", "parent": 970, "children": [973, 974], "start_point": {"row": 231, "column": 10}, "end_point": {"row": 231, "column": 18}}, {"id": 973, "type": "identifier", "text": ",s", "parent": 972, "children": [], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 13}}, {"id": 974, "type": "identifier", "text": "e);", "parent": 972, "children": [], "start_point": {"row": 231, "column": 14}, "end_point": {"row": 231, "column": 17}}, {"id": 975, "type": "declaration", "text": "id* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n ", "parent": 945, "children": [976, 977], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 81}}, {"id": 976, "type": "primitive_type", "text": "id* ", "parent": 975, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 6}}, {"id": 977, "type": "init_declarator", "text": "trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n", "parent": 975, "children": [978, 981, 982], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 80}}, {"id": 978, "type": "pointer_declarator", "text": "trgt =", "parent": 977, "children": [979, 980], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 12}}, {"id": 979, "type": "*", "text": "t", "parent": 978, "children": [], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 7}}, {"id": 980, "type": "identifier", "text": "gt =", "parent": 978, "children": [], "start_point": {"row": 233, "column": 8}, "end_point": {"row": 233, "column": 12}}, {"id": 981, "type": "=", "text": "g", "parent": 977, "children": [], "start_point": {"row": 233, "column": 13}, "end_point": {"row": 233, "column": 14}}, {"id": 982, "type": "call_expression", "text": "neric_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n", "parent": 977, "children": [983, 984], "start_point": {"row": 233, "column": 15}, "end_point": {"row": 233, "column": 80}}, {"id": 983, "type": "identifier", "text": "neric_ptrget(d", "parent": 982, "children": [], "start_point": {"row": 233, "column": 15}, "end_point": {"row": 233, "column": 29}}, {"id": 984, "type": "argument_list", "text": "st, calc_base_index_va(dst, dst->ndims, ap), sze);\n", "parent": 982, "children": [985, 986, 995], "start_point": {"row": 233, "column": 29}, "end_point": {"row": 233, "column": 80}}, {"id": 985, "type": "identifier", "text": "t, ", "parent": 984, "children": [], "start_point": {"row": 233, "column": 30}, "end_point": {"row": 233, "column": 33}}, {"id": 986, "type": "call_expression", "text": "lc_base_index_va(dst, dst->ndims, ap), ", "parent": 984, "children": [987, 988], "start_point": {"row": 233, "column": 35}, "end_point": {"row": 233, "column": 74}}, {"id": 987, "type": "identifier", "text": "lc_base_index_va(d", "parent": 986, "children": [], "start_point": {"row": 233, "column": 35}, "end_point": {"row": 233, "column": 53}}, {"id": 988, "type": "argument_list", "text": "st, dst->ndims, ap), ", "parent": 986, "children": [989, 990, 994], "start_point": {"row": 233, "column": 53}, "end_point": {"row": 233, "column": 74}}, {"id": 989, "type": "identifier", "text": "t, ", "parent": 988, "children": [], "start_point": {"row": 233, "column": 54}, "end_point": {"row": 233, "column": 57}}, {"id": 990, "type": "field_expression", "text": "t->ndims, ", "parent": 988, "children": [991, 992, 993], "start_point": {"row": 233, "column": 59}, "end_point": {"row": 233, "column": 69}}, {"id": 991, "type": "identifier", "text": "t->", "parent": 990, "children": [], "start_point": {"row": 233, "column": 59}, "end_point": {"row": 233, "column": 62}}, {"id": 992, "type": "->", "text": "nd", "parent": 990, "children": [], "start_point": {"row": 233, "column": 62}, "end_point": {"row": 233, "column": 64}}, {"id": 993, "type": "field_identifier", "text": "ims, ", "parent": 990, "children": [], "start_point": {"row": 233, "column": 64}, "end_point": {"row": 233, "column": 69}}, {"id": 994, "type": "identifier", "text": "),", "parent": 988, "children": [], "start_point": {"row": 233, "column": 71}, "end_point": {"row": 233, "column": 73}}, {"id": 995, "type": "identifier", "text": "e);", "parent": 984, "children": [], "start_point": {"row": 233, "column": 76}, "end_point": {"row": 233, "column": 79}}, {"id": 996, "type": "call_expression", "text": "_func(val,trgt);\n", "parent": 945, "children": [997, 998], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 19}}, {"id": 997, "type": "identifier", "text": "_func(v", "parent": 996, "children": [], "start_point": {"row": 234, "column": 2}, "end_point": {"row": 234, "column": 9}}, {"id": 998, "type": "argument_list", "text": "al,trgt);\n", "parent": 996, "children": [999, 1000], "start_point": {"row": 234, "column": 9}, "end_point": {"row": 234, "column": 19}}, {"id": 999, "type": "identifier", "text": "l,t", "parent": 998, "children": [], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 13}}, {"id": 1000, "type": "identifier", "text": "gt);", "parent": 998, "children": [], "start_point": {"row": 234, "column": 14}, "end_point": {"row": 234, "column": 18}}, {"id": 1001, "type": "call_expression", "text": "_end(ap);\n", "parent": 945, "children": [1002, 1003], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 12}}, {"id": 1002, "type": "identifier", "text": "_end(a", "parent": 1001, "children": [], "start_point": {"row": 235, "column": 2}, "end_point": {"row": 235, "column": 8}}, {"id": 1003, "type": "argument_list", "text": "p);\n", "parent": 1001, "children": [1004], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 235, "column": 12}}, {"id": 1004, "type": "identifier", "text": ");", "parent": 1003, "children": [], "start_point": {"row": 235, "column": 9}, "end_point": {"row": 235, "column": 11}}, {"id": 1005, "type": "function_definition", "text": "id* generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {\n va_list ap;\n void* tmp;\n va_start(ap,ndims);\n tmp = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n va_end(ap);\n return tmp;\n}\n\n", "parent": null, "children": [1006, 1007], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 249, "column": 1}}, {"id": 1006, "type": "primitive_type", "text": "id* ", "parent": 1005, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 4}}, {"id": 1007, "type": "pointer_declarator", "text": "generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {", "parent": 1005, "children": [1008, 1009], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 87}}, {"id": 1008, "type": "*", "text": "g", "parent": 1007, "children": [], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 5}}, {"id": 1009, "type": "function_declarator", "text": "neric_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {", "parent": 1007, "children": [1010, 1011], "start_point": {"row": 242, "column": 6}, "end_point": {"row": 242, "column": 87}}, {"id": 1010, "type": "identifier", "text": "neric_array_element_addr(c", "parent": 1009, "children": [], "start_point": {"row": 242, "column": 6}, "end_point": {"row": 242, "column": 32}}, {"id": 1011, "type": "parameter_list", "text": "onst base_array_t* source, size_t sze, int ndims,...) {", "parent": 1009, "children": [1012, 1018, 1021, 1024], "start_point": {"row": 242, "column": 32}, "end_point": {"row": 242, "column": 87}}, {"id": 1012, "type": "parameter_declaration", "text": "nst base_array_t* source, ", "parent": 1011, "children": [1013, 1014, 1015], "start_point": {"row": 242, "column": 33}, "end_point": {"row": 242, "column": 59}}, {"id": 1013, "type": "type_qualifier", "text": "nst b", "parent": 1012, "children": [], "start_point": {"row": 242, "column": 33}, "end_point": {"row": 242, "column": 38}}, {"id": 1014, "type": "type_identifier", "text": "se_array_t* ", "parent": 1012, "children": [], "start_point": {"row": 242, "column": 39}, "end_point": {"row": 242, "column": 51}}, {"id": 1015, "type": "pointer_declarator", "text": "source, ", "parent": 1012, "children": [1016, 1017], "start_point": {"row": 242, "column": 51}, "end_point": {"row": 242, "column": 59}}, {"id": 1016, "type": "*", "text": "s", "parent": 1015, "children": [], "start_point": {"row": 242, "column": 51}, "end_point": {"row": 242, "column": 52}}, {"id": 1017, "type": "identifier", "text": "urce, ", "parent": 1015, "children": [], "start_point": {"row": 242, "column": 53}, "end_point": {"row": 242, "column": 59}}, {"id": 1018, "type": "parameter_declaration", "text": "ze_t sze, ", "parent": 1011, "children": [1019, 1020], "start_point": {"row": 242, "column": 61}, "end_point": {"row": 242, "column": 71}}, {"id": 1019, "type": "primitive_type", "text": "ze_t s", "parent": 1018, "children": [], "start_point": {"row": 242, "column": 61}, "end_point": {"row": 242, "column": 67}}, {"id": 1020, "type": "identifier", "text": "e, ", "parent": 1018, "children": [], "start_point": {"row": 242, "column": 68}, "end_point": {"row": 242, "column": 71}}, {"id": 1021, "type": "parameter_declaration", "text": "t ndims,.", "parent": 1011, "children": [1022, 1023], "start_point": {"row": 242, "column": 73}, "end_point": {"row": 242, "column": 82}}, {"id": 1022, "type": "primitive_type", "text": "t n", "parent": 1021, "children": [], "start_point": {"row": 242, "column": 73}, "end_point": {"row": 242, "column": 76}}, {"id": 1023, "type": "identifier", "text": "ims,.", "parent": 1021, "children": [], "start_point": {"row": 242, "column": 77}, "end_point": {"row": 242, "column": 82}}, {"id": 1024, "type": "variadic_parameter", "text": ".) ", "parent": 1011, "children": [1025], "start_point": {"row": 242, "column": 83}, "end_point": {"row": 242, "column": 86}}, {"id": 1025, "type": "...", "text": ".) ", "parent": 1024, "children": [], "start_point": {"row": 242, "column": 83}, "end_point": {"row": 242, "column": 86}}, {"id": 1026, "type": "declaration", "text": "_list ap;\n ", "parent": 1005, "children": [1027], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 13}}, {"id": 1027, "type": "type_identifier", "text": "_list a", "parent": 1026, "children": [], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 9}}, {"id": 1028, "type": "declaration", "text": "id* tmp;\n ", "parent": 1005, "children": [1029, 1030], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 12}}, {"id": 1029, "type": "primitive_type", "text": "id* ", "parent": 1028, "children": [], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 6}}, {"id": 1030, "type": "pointer_declarator", "text": "tmp;\n", "parent": 1028, "children": [1031, 1032], "start_point": {"row": 244, "column": 6}, "end_point": {"row": 244, "column": 11}}, {"id": 1031, "type": "*", "text": "t", "parent": 1030, "children": [], "start_point": {"row": 244, "column": 6}, "end_point": {"row": 244, "column": 7}}, {"id": 1032, "type": "identifier", "text": "p;\n", "parent": 1030, "children": [], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 11}}, {"id": 1033, "type": "call_expression", "text": "_start(ap,ndims);\n", "parent": 1005, "children": [1034, 1035], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 20}}, {"id": 1034, "type": "identifier", "text": "_start(a", "parent": 1033, "children": [], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 10}}, {"id": 1035, "type": "argument_list", "text": "p,ndims);\n", "parent": 1033, "children": [1036, 1037], "start_point": {"row": 245, "column": 10}, "end_point": {"row": 245, "column": 20}}, {"id": 1036, "type": "identifier", "text": ",n", "parent": 1035, "children": [], "start_point": {"row": 245, "column": 11}, "end_point": {"row": 245, "column": 13}}, {"id": 1037, "type": "identifier", "text": "ims);", "parent": 1035, "children": [], "start_point": {"row": 245, "column": 14}, "end_point": {"row": 245, "column": 19}}, {"id": 1038, "type": "assignment_expression", "text": "p = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n", "parent": 1005, "children": [1039, 1040, 1041], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 74}}, {"id": 1039, "type": "identifier", "text": "p =", "parent": 1038, "children": [], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 5}}, {"id": 1040, "type": "=", "text": "g", "parent": 1038, "children": [], "start_point": {"row": 246, "column": 6}, "end_point": {"row": 246, "column": 7}}, {"id": 1041, "type": "call_expression", "text": "neric_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n", "parent": 1038, "children": [1042, 1043], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 74}}, {"id": 1042, "type": "identifier", "text": "neric_ptrget(s", "parent": 1041, "children": [], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 22}}, {"id": 1043, "type": "argument_list", "text": "ource, calc_base_index_va(source, ndims, ap), sze);\n", "parent": 1041, "children": [1044, 1045, 1051], "start_point": {"row": 246, "column": 22}, "end_point": {"row": 246, "column": 74}}, {"id": 1044, "type": "identifier", "text": "urce, ", "parent": 1043, "children": [], "start_point": {"row": 246, "column": 23}, "end_point": {"row": 246, "column": 29}}, {"id": 1045, "type": "call_expression", "text": "lc_base_index_va(source, ndims, ap), ", "parent": 1043, "children": [1046, 1047], "start_point": {"row": 246, "column": 31}, "end_point": {"row": 246, "column": 68}}, {"id": 1046, "type": "identifier", "text": "lc_base_index_va(s", "parent": 1045, "children": [], "start_point": {"row": 246, "column": 31}, "end_point": {"row": 246, "column": 49}}, {"id": 1047, "type": "argument_list", "text": "ource, ndims, ap), ", "parent": 1045, "children": [1048, 1049, 1050], "start_point": {"row": 246, "column": 49}, "end_point": {"row": 246, "column": 68}}, {"id": 1048, "type": "identifier", "text": "urce, ", "parent": 1047, "children": [], "start_point": {"row": 246, "column": 50}, "end_point": {"row": 246, "column": 56}}, {"id": 1049, "type": "identifier", "text": "ims, ", "parent": 1047, "children": [], "start_point": {"row": 246, "column": 58}, "end_point": {"row": 246, "column": 63}}, {"id": 1050, "type": "identifier", "text": "),", "parent": 1047, "children": [], "start_point": {"row": 246, "column": 65}, "end_point": {"row": 246, "column": 67}}, {"id": 1051, "type": "identifier", "text": "e);", "parent": 1043, "children": [], "start_point": {"row": 246, "column": 70}, "end_point": {"row": 246, "column": 73}}, {"id": 1052, "type": "call_expression", "text": "_end(ap);\n", "parent": 1005, "children": [1053, 1054], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 12}}, {"id": 1053, "type": "identifier", "text": "_end(a", "parent": 1052, "children": [], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 8}}, {"id": 1054, "type": "argument_list", "text": "p);\n", "parent": 1052, "children": [1055], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 12}}, {"id": 1055, "type": "identifier", "text": ");", "parent": 1054, "children": [], "start_point": {"row": 247, "column": 9}, "end_point": {"row": 247, "column": 11}}, {"id": 1056, "type": "return_statement", "text": "turn tmp;\n}", "parent": 1005, "children": [1057], "start_point": {"row": 248, "column": 2}, "end_point": {"row": 248, "column": 13}}, {"id": 1057, "type": "identifier", "text": "p;\n", "parent": 1056, "children": [], "start_point": {"row": 248, "column": 9}, "end_point": {"row": 248, "column": 12}}, {"id": 1058, "type": "function_definition", "text": "id* generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {\n return generic_ptrget(source, dim1-1, sze);\n}\n\n", "parent": null, "children": [1059, 1060], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 253, "column": 1}}, {"id": 1059, "type": "primitive_type", "text": "id* ", "parent": 1058, "children": [], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 4}}, {"id": 1060, "type": "pointer_declarator", "text": "generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {", "parent": 1058, "children": [1061, 1062], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 83}}, {"id": 1061, "type": "*", "text": "g", "parent": 1060, "children": [], "start_point": {"row": 251, "column": 4}, "end_point": {"row": 251, "column": 5}}, {"id": 1062, "type": "function_declarator", "text": "neric_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {", "parent": 1060, "children": [1063, 1064], "start_point": {"row": 251, "column": 6}, "end_point": {"row": 251, "column": 83}}, {"id": 1063, "type": "identifier", "text": "neric_array_element_addr1(c", "parent": 1062, "children": [], "start_point": {"row": 251, "column": 6}, "end_point": {"row": 251, "column": 33}}, {"id": 1064, "type": "parameter_list", "text": "onst base_array_t* source, size_t sze, int dim1) {", "parent": 1062, "children": [1065, 1071, 1074], "start_point": {"row": 251, "column": 33}, "end_point": {"row": 251, "column": 83}}, {"id": 1065, "type": "parameter_declaration", "text": "nst base_array_t* source, ", "parent": 1064, "children": [1066, 1067, 1068], "start_point": {"row": 251, "column": 34}, "end_point": {"row": 251, "column": 60}}, {"id": 1066, "type": "type_qualifier", "text": "nst b", "parent": 1065, "children": [], "start_point": {"row": 251, "column": 34}, "end_point": {"row": 251, "column": 39}}, {"id": 1067, "type": "type_identifier", "text": "se_array_t* ", "parent": 1065, "children": [], "start_point": {"row": 251, "column": 40}, "end_point": {"row": 251, "column": 52}}, {"id": 1068, "type": "pointer_declarator", "text": "source, ", "parent": 1065, "children": [1069, 1070], "start_point": {"row": 251, "column": 52}, "end_point": {"row": 251, "column": 60}}, {"id": 1069, "type": "*", "text": "s", "parent": 1068, "children": [], "start_point": {"row": 251, "column": 52}, "end_point": {"row": 251, "column": 53}}, {"id": 1070, "type": "identifier", "text": "urce, ", "parent": 1068, "children": [], "start_point": {"row": 251, "column": 54}, "end_point": {"row": 251, "column": 60}}, {"id": 1071, "type": "parameter_declaration", "text": "ze_t sze, ", "parent": 1064, "children": [1072, 1073], "start_point": {"row": 251, "column": 62}, "end_point": {"row": 251, "column": 72}}, {"id": 1072, "type": "primitive_type", "text": "ze_t s", "parent": 1071, "children": [], "start_point": {"row": 251, "column": 62}, "end_point": {"row": 251, "column": 68}}, {"id": 1073, "type": "identifier", "text": "e, ", "parent": 1071, "children": [], "start_point": {"row": 251, "column": 69}, "end_point": {"row": 251, "column": 72}}, {"id": 1074, "type": "parameter_declaration", "text": "t dim1) ", "parent": 1064, "children": [1075, 1076], "start_point": {"row": 251, "column": 74}, "end_point": {"row": 251, "column": 82}}, {"id": 1075, "type": "primitive_type", "text": "t d", "parent": 1074, "children": [], "start_point": {"row": 251, "column": 74}, "end_point": {"row": 251, "column": 77}}, {"id": 1076, "type": "identifier", "text": "m1) ", "parent": 1074, "children": [], "start_point": {"row": 251, "column": 78}, "end_point": {"row": 251, "column": 82}}, {"id": 1077, "type": "return_statement", "text": "turn generic_ptrget(source, dim1-1, sze);\n}", "parent": 1058, "children": [1078], "start_point": {"row": 252, "column": 2}, "end_point": {"row": 252, "column": 45}}, {"id": 1078, "type": "call_expression", "text": "neric_ptrget(source, dim1-1, sze);\n", "parent": 1077, "children": [1079, 1080], "start_point": {"row": 252, "column": 9}, "end_point": {"row": 252, "column": 44}}, {"id": 1079, "type": "identifier", "text": "neric_ptrget(s", "parent": 1078, "children": [], "start_point": {"row": 252, "column": 9}, "end_point": {"row": 252, "column": 23}}, {"id": 1080, "type": "argument_list", "text": "ource, dim1-1, sze);\n", "parent": 1078, "children": [1081, 1082, 1085], "start_point": {"row": 252, "column": 23}, "end_point": {"row": 252, "column": 44}}, {"id": 1081, "type": "identifier", "text": "urce, ", "parent": 1080, "children": [], "start_point": {"row": 252, "column": 24}, "end_point": {"row": 252, "column": 30}}, {"id": 1082, "type": "binary_expression", "text": "m1-1, ", "parent": 1080, "children": [1083, 1084], "start_point": {"row": 252, "column": 32}, "end_point": {"row": 252, "column": 38}}, {"id": 1083, "type": "identifier", "text": "m1-1", "parent": 1082, "children": [], "start_point": {"row": 252, "column": 32}, "end_point": {"row": 252, "column": 36}}, {"id": 1084, "type": "number_literal", "text": " ", "parent": 1082, "children": [], "start_point": {"row": 252, "column": 37}, "end_point": {"row": 252, "column": 38}}, {"id": 1085, "type": "identifier", "text": "e);", "parent": 1080, "children": [], "start_point": {"row": 252, "column": 40}, "end_point": {"row": 252, "column": 43}}]}, "node_categories": {"declarations": {"functions": [15, 20, 50, 53, 98, 101, 177, 180, 302, 304, 362, 364, 464, 466, 539, 541, 663, 665, 739, 741, 840, 842, 893, 897, 945, 947, 1005, 1009, 1058, 1062], "variables": [23, 27, 30, 56, 62, 104, 110, 116, 119, 183, 189, 194, 197, 215, 226, 307, 312, 339, 367, 371, 376, 379, 382, 387, 391, 428, 469, 473, 478, 481, 486, 490, 544, 548, 553, 556, 559, 581, 603, 606, 620, 668, 672, 677, 680, 702, 744, 748, 753, 756, 759, 769, 780, 783, 797, 845, 849, 854, 857, 867, 900, 906, 911, 918, 950, 955, 960, 963, 968, 975, 1012, 1018, 1021, 1026, 1028, 1065, 1071, 1074], "classes": [16, 51, 99, 178], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [34, 35, 36, 41, 45, 46, 69, 70, 71, 76, 80, 86, 90, 127, 130, 134, 138, 139, 140, 141, 147, 148, 153, 155, 163, 164, 168, 169, 200, 203, 207, 210, 220, 223, 231, 238, 243, 244, 253, 256, 260, 264, 265, 271, 272, 277, 282, 289, 295, 316, 323, 328, 333, 347, 351, 355, 356, 393, 400, 406, 411, 416, 422, 434, 437, 438, 447, 451, 454, 457, 459, 460, 492, 499, 505, 510, 515, 521, 527, 530, 535, 566, 569, 575, 586, 589, 593, 598, 612, 615, 616, 626, 629, 630, 639, 643, 646, 649, 651, 652, 656, 658, 659, 687, 690, 696, 707, 710, 714, 719, 724, 727, 731, 735, 766, 774, 789, 792, 793, 803, 806, 807, 816, 820, 823, 826, 828, 829, 833, 835, 836, 864, 872, 878, 881, 885, 889, 913, 925, 929, 933, 939, 970, 982, 986, 990, 996, 1001, 1033, 1041, 1045, 1052, 1078, 1082], "assignments": [123, 249, 263, 276, 315, 322, 332, 343, 354, 397, 410, 421, 443, 496, 509, 520, 574, 592, 635, 695, 713, 812, 1038], "loops": [122, 248, 342, 442, 634, 811], "conditionals": [21, 24, 25, 26, 29, 32, 42, 44, 47, 49, 54, 57, 58, 61, 63, 64, 67, 68, 72, 74, 77, 79, 81, 83, 87, 89, 91, 93, 102, 105, 106, 109, 111, 112, 115, 118, 121, 124, 128, 131, 133, 136, 137, 142, 144, 145, 149, 151, 152, 154, 156, 158, 161, 162, 165, 167, 170, 172, 181, 184, 185, 188, 190, 193, 196, 199, 201, 204, 206, 208, 211, 213, 214, 218, 221, 225, 229, 232, 234, 235, 237, 239, 241, 242, 245, 247, 250, 254, 257, 259, 262, 266, 268, 269, 273, 275, 278, 280, 283, 285, 286, 288, 290, 292, 293, 296, 305, 308, 311, 314, 317, 319, 321, 324, 326, 329, 331, 334, 336, 341, 344, 348, 350, 353, 357, 359, 360, 365, 368, 372, 375, 377, 378, 381, 384, 389, 390, 392, 394, 396, 398, 401, 403, 404, 405, 407, 409, 412, 414, 417, 419, 420, 423, 425, 433, 439, 441, 444, 448, 450, 453, 455, 458, 461, 463, 467, 470, 474, 477, 480, 483, 488, 489, 491, 493, 495, 497, 500, 502, 503, 504, 506, 508, 511, 513, 516, 518, 519, 522, 524, 528, 531, 533, 536, 538, 542, 545, 546, 547, 549, 552, 554, 555, 558, 560, 561, 565, 568, 570, 572, 573, 576, 578, 584, 587, 591, 594, 596, 599, 601, 602, 605, 611, 617, 619, 625, 631, 633, 636, 640, 642, 645, 647, 650, 653, 655, 657, 660, 662, 666, 669, 670, 671, 673, 676, 679, 681, 682, 686, 689, 691, 693, 694, 697, 699, 705, 708, 712, 715, 717, 720, 722, 723, 725, 728, 730, 732, 734, 736, 738, 742, 745, 746, 747, 749, 752, 754, 755, 758, 760, 761, 765, 768, 772, 775, 777, 778, 779, 782, 788, 794, 796, 802, 808, 810, 813, 817, 819, 822, 824, 827, 830, 832, 834, 837, 839, 843, 846, 847, 848, 850, 853, 856, 858, 859, 863, 866, 870, 873, 875, 876, 877, 879, 882, 884, 886, 888, 890, 892, 898, 901, 902, 905, 908, 912, 914, 916, 917, 923, 926, 928, 930, 932, 934, 936, 937, 938, 940, 942, 944, 948, 951, 954, 959, 961, 962, 965, 969, 971, 973, 974, 980, 983, 985, 987, 989, 991, 993, 994, 995, 997, 999, 1000, 1002, 1004, 1010, 1013, 1014, 1017, 1020, 1023, 1027, 1032, 1034, 1036, 1037, 1039, 1042, 1044, 1046, 1048, 1049, 1050, 1051, 1053, 1055, 1057, 1063, 1066, 1067, 1070, 1073, 1076, 1079, 1081, 1083, 1085], "returns": [33, 94, 96, 173, 175, 240, 287, 301, 943, 1056, 1077], "exceptions": []}, "expressions": {"calls": [12], "literals": [2, 5, 8, 11, 84, 95, 97, 126, 159, 174, 176, 236, 252, 294, 300, 338, 346, 427, 446, 526, 534, 580, 638, 701, 815, 1084], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "atic void* generic_ptrget(const base_array_t *a, size_t sze, size_t i) {\n return ((char*)a->data) +"}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "neric_ptrget(const base_array_t *a, size_t sze, size_t i) {"}, {"node_id": 50, "universal_type": "function", "name": "generic_array_ndims_eq", "text_snippet": "atic int generic_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {\n if(src->ndim"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "neric_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {"}, {"node_id": 98, "universal_type": "function", "name": "generic_array_dimsizes_eq", "text_snippet": "atic int generic_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error"}, {"node_id": 101, "universal_type": "function", "name": "print_error)", "text_snippet": "neric_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error)\n{"}, {"node_id": 177, "universal_type": "function", "name": "shape_eq", "text_snippet": "atic size_t check_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {\n size_t i"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "eck_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {"}, {"node_id": 302, "universal_type": "function", "name": "ndims)", "text_snippet": "id generic_array_create_flexible(base_array_t* dst, int ndims)\n{\n dst->ndims = ndims;\n dst->di"}, {"node_id": 304, "universal_type": "function", "name": "ndims)", "text_snippet": "neric_array_create_flexible(base_array_t* dst, int ndims)\n{"}, {"node_id": 362, "universal_type": "function", "name": "ndims,", "text_snippet": "id generic_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, s"}, {"node_id": 364, "universal_type": "function", "name": "ndims,", "text_snippet": "neric_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t"}, {"node_id": 464, "universal_type": "function", "name": "ndims,", "text_snippet": "id simple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{\n size_t"}, {"node_id": 466, "universal_type": "function", "name": "ndims,", "text_snippet": "mple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{"}, {"node_id": 539, "universal_type": "function", "name": "unknown", "text_snippet": "id generic_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t "}, {"node_id": 541, "universal_type": "function", "name": "unknown", "text_snippet": "neric_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n"}, {"node_id": 663, "universal_type": "function", "name": "unknown", "text_snippet": "id simple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const bas"}, {"node_id": 665, "universal_type": "function", "name": "unknown", "text_snippet": "mple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{"}, {"node_id": 739, "universal_type": "function", "name": "unknown", "text_snippet": "id generic_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t s"}, {"node_id": 741, "universal_type": "function", "name": "unknown", "text_snippet": "neric_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{"}, {"node_id": 840, "universal_type": "function", "name": "unknown", "text_snippet": "id simple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base"}, {"node_id": 842, "universal_type": "function", "name": "unknown", "text_snippet": "mple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{"}, {"node_id": 893, "universal_type": "function", "name": "unknown", "text_snippet": "id* generic_array_get(const base_array_t* src, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n"}, {"node_id": 897, "universal_type": "function", "name": "unknown", "text_snippet": "neric_array_get(const base_array_t* src, size_t sze, ...) {"}, {"node_id": 945, "universal_type": "function", "name": "unknown", "text_snippet": "id generic_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {\n va_list a"}, {"node_id": 947, "universal_type": "function", "name": "unknown", "text_snippet": "neric_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {"}, {"node_id": 1005, "universal_type": "function", "name": "ndims,...)", "text_snippet": "id* generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {\n va_list ap"}, {"node_id": 1009, "universal_type": "function", "name": "ndims,...)", "text_snippet": "neric_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {"}, {"node_id": 1058, "universal_type": "function", "name": "dim1)", "text_snippet": "id* generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {\n return generic"}, {"node_id": 1062, "universal_type": "function", "name": "dim1)", "text_snippet": "neric_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {"}], "class_declarations": [{"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "atic v"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "atic i"}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "atic i"}, {"node_id": 178, "universal_type": "class", "name": "unknown", "text_snippet": "atic s"}], "import_statements": [{"node_id": 0, "text": "nclude <string.h>\n#i"}, {"node_id": 1, "text": "nclude <"}, {"node_id": 3, "text": "nclude <stdint.h>\n\n#"}, {"node_id": 4, "text": "nclude <"}, {"node_id": 6, "text": "nclude \"generic_array.h\"\n#i"}, {"node_id": 7, "text": "nclude \""}, {"node_id": 9, "text": "nclude \"omc_error.h\"\n\n#"}, {"node_id": 10, "text": "nclude \""}]}, "original_source_code": "/*\n * This file is part of OpenModelica.\n *\n * Copyright (c) 1998-2014, Open Source Modelica Consortium (OSMC),\n * c/o Link\u00f6pings universitet, Department of Computer and Information Science,\n * SE-58183 Link\u00f6ping, Sweden.\n *\n * All rights reserved.\n *\n * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF THE BSD NEW LICENSE OR THE\n * GPL VERSION 3 LICENSE OR THE OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.\n * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES\n * RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3,\n * ACCORDING TO RECIPIENTS CHOICE.\n *\n * The OpenModelica software and the OSMC (Open Source Modelica Consortium)\n * Public License (OSMC-PL) are obtained from OSMC, either from the above\n * address, from the URLs: http://www.openmodelica.org or\n * http://www.ida.liu.se/projects/OpenModelica, and in the OpenModelica\n * distribution. GNU version 3 is obtained from:\n * http://www.gnu.org/copyleft/gpl.html. The New BSD License is obtained from:\n * http://www.opensource.org/licenses/BSD-3-Clause.\n *\n * This program is distributed WITHOUT ANY WARRANTY; without even the implied\n * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, EXCEPT AS\n * EXPRESSLY SET FORTH IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE\n * CONDITIONS OF OSMC-PL.\n *\n */\n\n#include <string.h>\n#include <stdint.h>\n\n#include \"generic_array.h\"\n#include \"omc_error.h\"\n\n#pragma GCC diagnostic error \"-Werror\"\n\nstatic void* generic_ptrget(const base_array_t *a, size_t sze, size_t i) {\n return ((char*)a->data) + (i*sze);\n}\n\nstatic int generic_array_ndims_eq(const base_array_t* src, const base_array_t* dst) {\n if(src->ndims != dst->ndims) {\n fprintf(stderr, \"src->ndims != dst->ndims, %d != %d\\n\", src->ndims, dst->ndims);\n return 0;\n }\n return 1;\n}\n\nstatic int generic_array_dimsizes_eq(const base_array_t* src, const base_array_t* dst, int print_error)\n{\n int i;\n for(i = 0; i < src->ndims; ++i) {\n if(src->dim_size[i] != dst->dim_size[i]) {\n if (print_error) {\n fprintf(stderr, \"src->dim_size[%d] != dst->dim_size[%d], %ld != %ld\\n\",\n i, i, src->dim_size[i], dst->dim_size[i]);\n }\n return 0;\n }\n }\n\n return 1;\n}\n\n\nstatic size_t check_copy_sanity(const base_array_t* src, base_array_t* dst, size_t sze) {\n size_t i;\n // TODO wrap me in debug. No need to do this in release.\n omc_assert_macro(base_array_ok(src));\n omc_assert_macro(generic_array_ndims_eq(src, dst));\n\n size_t nr_of_elements = base_array_nr_of_elements(*src);\n\n // Check if shape is equal.\n int shape_eq = generic_array_dimsizes_eq(src, dst, 0 /*do not print error yet*/);\n\n if(shape_eq) {\n return nr_of_elements;\n }\n\n // Shape not equal and destination is flexible array.\n // Adjust the dim sizes and realloc the destination\n if(dst->flexible) {\n for(i = 0; i < dst->ndims; ++i) {\n dst->dim_size[i] = src->dim_size[i];\n }\n // let GC collect the old data.\n dst->data = generic_alloc(nr_of_elements, sze);\n\n return nr_of_elements;\n }\n\n // Shape not equal and destination is not flexible array.\n generic_array_dimsizes_eq(src, dst, 1 /*print error*/); // Just to print more info.\n throwStreamPrint(NULL, \"Failed to copy array. Dimension sizes are not equal and destination array is not flexible.\");\n // omc_assert_macro(0 && \"Failed to copy array. Dimension sizes are not equal and destination array is not flexible.\");\n\n return -1;\n}\n\nvoid generic_array_create_flexible(base_array_t* dst, int ndims)\n{\n dst->ndims = ndims;\n dst->dim_size = size_alloc(ndims);\n\n dst->flexible = 1;\n\n size_t i;\n for(i = 0; i < ndims; ++i) {\n dst->dim_size[i] = -1;\n }\n}\n\nvoid generic_array_create(threadData_t* td, base_array_t* dst, constructor_func ctr_func, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Initialize each element of the complex array\n char* d_data = (char*)(dst->data);\n for(i = 0; i < nr_of_elements; ++i) {\n ctr_func(td, d_data + (i*sze));\n }\n}\n\nvoid simple_array_create(threadData_t* td, base_array_t* dst, int ndims, size_t sze, ...)\n{\n size_t i, nr_of_elements;\n\n va_list ap;\n va_start(ap, sze);\n nr_of_elements = alloc_base_array(dst, ndims, ap);\n va_end(ap);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n // If we get here then the dst array has known dims\n // Whcih means it is not flexible.\n dst->flexible = 0;\n\n // Init to 0. IDK if this is what Modelica expects\n // I guess it is better than garbage values.\n memset(dst->data, 0, nr_of_elements*sze);\n}\n\n\nvoid generic_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\nvoid simple_array_alloc_copy(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n clone_base_array_spec(src, dst);\n\n // If we get here then it means the dst array had a default value (i.e., binding to src array)\n // Whcih means even if it was unknown size, it is not flexible anymore and is\n // same shape as the src array.\n dst->flexible = 0;\n\n size_t nr_of_elements = base_array_nr_of_elements(*dst);\n dst->data = generic_alloc(nr_of_elements, sze);\n\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n\nvoid generic_array_copy_data(const base_array_t src_cp, base_array_t* dst, copy_func cp_func, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n\n size_t i;\n char* d_data = (char*)(dst->data);\n char* s_data = (char*)(src->data);\n for(i = 0; i < nr_of_elements; ++i) {\n cp_func(s_data + (i*sze), d_data + (i*sze));\n }\n}\n\nvoid simple_array_copy_data(const base_array_t src_cp, base_array_t* dst, size_t sze)\n{\n const base_array_t* src = &src_cp;\n\n size_t nr_of_elements = check_copy_sanity(src, dst, sze);\n memcpy(dst->data, src->data, sze*nr_of_elements);\n}\n\n\n\nvoid* generic_array_get(const base_array_t* src, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(src, calc_base_index_va(src, src->ndims, ap), sze);\n va_end(ap);\n return trgt;\n}\n\nvoid generic_array_set(base_array_t* dst, void* val, copy_func cp_func, size_t sze, ...) {\n va_list ap;\n va_start(ap,sze);\n // TODO assert va_list is as long as ndims. Otherwise we have slicing\n void* trgt = generic_ptrget(dst, calc_base_index_va(dst, dst->ndims, ap), sze);\n cp_func(val,trgt);\n va_end(ap);\n}\n\n\n\n// TODO remove me. not needed anymore. superseded by generic_array_get\n// TODO: ndims is not needed to be passed here.\nvoid* generic_array_element_addr(const base_array_t* source, size_t sze, int ndims,...) {\n va_list ap;\n void* tmp;\n va_start(ap,ndims);\n tmp = generic_ptrget(source, calc_base_index_va(source, ndims, ap), sze);\n va_end(ap);\n return tmp;\n}\n\nvoid* generic_array_element_addr1(const base_array_t* source, size_t sze, int dim1) {\n return generic_ptrget(source, dim1-1, sze);\n}\n\n\n\n"}
80,863
c
/** @file @brief 汎用リングバッファ @date 2017.09.07 @date 2002.03.24 @author <NAME> */ #include "fifo.h" /** @brief fifoを初期化する @param[in] fp 初期化するfifo @param[in] buf fifoとなるバッファポインタ @param[in] size バッファのバイト数 @note バッファ内に保存できるデータは size-1 となる */ void init_fifo(struct st_fifo *fp, unsigned char *buf, unsigned int size) { fp->buf = buf; fp->size = size; fp->wp = buf; fp->rp = buf; } /** @brief fifoにデータを書き込む @param[in] fp データが書き込まれるfifo @param[in] data 書き込むデータ @param[in] length 書き込むデータの長さ @return 書き込みサイズ */ int write_fifo(struct st_fifo *fp, unsigned char *data, unsigned int length) { unsigned int i; if(fifo_free_size(fp) < length) { return 0; } for(i=0; i<length; i++) { unsigned char *np; np = fp->wp + 1; if(np >= &fp->buf[fp->size]) { np = fp->buf; } if(np != fp->rp) { *fp->wp = *data; data ++; fp->wp = np; } else { return (int)i; // バッファフル } } return (int)i; } /** @brief fifoからデータを読み出す @param[in] fp データが読み出されるfifo @param[out] data 読み出されるデータのポインタ @param[in] length 読み出されるデータの長さ @return 読み出しサイズ */ int read_fifo(struct st_fifo *fp, unsigned char *data, unsigned int length) { unsigned int i; for(i=0; i<length; i++) { unsigned char *np; if(fp->rp != fp->wp) { *data = *fp->rp; data ++; np = fp->rp + 1; if(np >= &fp->buf[fp->size]) { np = fp->buf; } fp->rp = np; } else { return (int)i; // バッファエンプティ } } return (int)i; } /** @brief fifoに書き込まれているデータを全て消去する @param[in] fp データを全て消去するfifo */ void clear_fifo(struct st_fifo *fp) { fp->wp = fp->buf; fp->rp = fp->buf; } /** @brief fifoに書き込まれているデータのサイズを返す @param[in] fp データのサイズを読み出すfifo @return fifoに書き込まれているデータサイズ */ unsigned int fifo_size(struct st_fifo *fp) { if(fp->wp >= fp->rp) { return (unsigned int)(fp->wp - fp->rp); } else { return (unsigned int)(fp->size - (fp->rp - fp->wp)); } } /** @brief fifoに書き込み可能なデータのサイズを返す @param[in] fp データのサイズを読み出すfifo @return fifoに書き込み可能なデータサイズ */ unsigned int fifo_free_size(struct st_fifo *fp) { if(fp->wp >= fp->rp) { return (unsigned int)(fp->size - (fp->wp - fp->rp) - 1); } else { return (unsigned int)((fp->rp - fp->wp) - 1); } } /** @brief fifoからデータを捨てる @param[in] fp データが捨てられるfifo @param[in] length 捨てるデータの長さ @return 捨てたサイズ */ int drop_fifo(struct st_fifo *fp, unsigned int length) { unsigned int i; for(i=0; i<length; i++) { unsigned char *np; if(fp->rp != fp->wp) { np = fp->rp + 1; if(np >= &fp->buf[fp->size]) { np = fp->buf; } fp->rp = np; } else { return (int)i; // バッファエンプティ } } return (int)i; }
18.54
134
(translation_unit) "/** @file\n @brief 汎用リングバッファ\n\n @date 2017.09.07\n @date 2002.03.24\n @author <NAME>\n*/\n\n#include "fifo.h"\n\n/**\n @brief fifoを初期化する\n\n @param[in] fp 初期化するfifo\n @param[in] buf fifoとなるバッファポインタ\n @param[in] size バッファのバイト数\n\n @note バッファ内に保存できるデータは size-1 となる\n*/\nvoid init_fifo(struct st_fifo *fp, unsigned char *buf, unsigned int size)\n{\n fp->buf = buf;\n fp->size = size;\n fp->wp = buf;\n fp->rp = buf;\n}\n\n/**\n @brief fifoにデータを書き込む\n\n @param[in] fp データが書き込まれるfifo\n @param[in] data 書き込むデータ\n @param[in] length 書き込むデータの長さ\n\n @return 書き込みサイズ\n*/\nint write_fifo(struct st_fifo *fp, unsigned char *data, unsigned int length)\n{\n unsigned int i;\n\n if(fifo_free_size(fp) < length) {\n return 0;\n }\n\n for(i=0; i<length; i++) {\n unsigned char *np;\n\n np = fp->wp + 1;\n if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n\n if(np != fp->rp) {\n *fp->wp = *data;\n data ++;\n fp->wp = np;\n } else {\n return (int)i; // バッファフル\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoからデータを読み出す\n\n @param[in] fp データが読み出されるfifo\n @param[out] data 読み出されるデータのポインタ\n @param[in] length 読み出されるデータの長さ\n\n @return 読み出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, unsigned char *data, unsigned int length)\n{\n unsigned int i;\n\n for(i=0; i<length; i++) {\n unsigned char *np;\n\n if(fp->rp != fp->wp) {\n *data = *fp->rp;\n data ++;\n\n np = fp->rp + 1;\n if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n fp->rp = np;\n } else {\n return (int)i; // バッファエンプティ\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoに書き込まれているデータを全て消去する\n\n @param[in] fp データを全て消去するfifo\n*/\nvoid clear_fifo(struct st_fifo *fp)\n{\n fp->wp = fp->buf;\n fp->rp = fp->buf;\n}\n\n/**\n @brief fifoに書き込まれているデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込まれているデータサイズ\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->wp >= fp->rp) {\n return (unsigned int)(fp->wp - fp->rp);\n } else {\n return (unsigned int)(fp->size - (fp->rp - fp->wp));\n }\n}\n\n/**\n @brief fifoに書き込み可能なデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込み可能なデータサイズ\n*/\nunsigned int fifo_free_size(struct st_fifo *fp)\n{\n if(fp->wp >= fp->rp) {\n return (unsigned int)(fp->size - (fp->wp - fp->rp) - 1);\n } else {\n return (unsigned int)((fp->rp - fp->wp) - 1);\n }\n}\n\n/**\n @brief fifoからデータを捨てる\n\n @param[in] fp データが捨てられるfifo\n @param[in] length 捨てるデータの長さ\n\n @return 捨てたサイズ\n*/\nint drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n unsigned int i;\n\n for(i=0; i<length; i++) {\n unsigned char *np;\n\n if(fp->rp != fp->wp) {\n np = fp->rp + 1;\n if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n fp->rp = np;\n } else {\n return (int)i; // バッファエンプティ\n }\n }\n\n return (int)i;\n}\n" (comment) "/** @file\n @brief 汎用リングバッファ\n\n @date 2017.09.07\n @date 2002.03.24\n @author <NAME>\n*/\n\n#include "fifo.h" (preproc_include) "\n/**\n @brief fif" (#include) "\n/**\n " (string_literal) "brief fi" (") "b" (string_content) "rief f" (") "i" (comment) "を初期化する\n\n @param[in] fp 初期化するfifo\n @param[in] buf fifoとなるバッファポインタ\n @param[in] size バッファのバイト数\n\n @note バッファ内に保存できるデータは size-1 となる\n*/\nvoid init_fifo(struct st_fifo *fp, unsigned char *buf, unsigned int size)\n{\n fp->buf = buf;\n fp->size = size;\n fp->" (function_definition) "p = buf;\n fp->rp = buf;\n}\n\n/**\n @brief fifoにデータを書き込む\n\n @param[in] fp データが書き込まれるfifo\n @param[in] data 書き込むデータ\n @param[in] length 書き込むデ" (primitive_type) "p = " (function_declarator) "uf;\n fp->rp = buf;\n}\n\n/**\n @brief fifoにデータを書き込む\n\n @param[in] fp " (identifier) "uf;\n fp->" (parameter_list) "rp = buf;\n}\n\n/**\n @brief fifoにデータを書き込む\n\n @param[in] fp " (() "r" (parameter_declaration) "p = buf;\n}\n\n/**\n " (struct_specifier) "p = buf;\n}\n\n/*" (struct) "p = bu" (type_identifier) ";\n}\n\n/*" (pointer_declarator) "\n " (*) "\n" (identifier) " " (,) " " (parameter_declaration) "brief fifoにデータを書き込" (sized_type_specifier) "brief fifoにデー" (unsigned) "brief fi" (primitive_type) "oにデー" (pointer_declarator) "を書き込" (*) "を" (identifier) "書き込" (,) "む" (parameter_declaration) "\n @param[in] fp" (sized_type_specifier) "\n @param[i" (unsigned) "\n @par" (primitive_type) "m[i" (identifier) "] fp" ()) " " (compound_statement) "ータが書き込まれるfifo\n @param[in] data 書き込むデータ\n @param[in] length 書き込むデ" ({) "ー" (expression_statement) "書き込まれるfifo\n " (assignment_expression) "書き込まれるfifo\n " (field_expression) "書き込まれるf" (identifier) "書き" (->) "込ま" (field_identifier) "れるf" (=) "f" (identifier) "\n " (;) " " (expression_statement) "aram[in] data 書き" (assignment_expression) "aram[in] data 書" (field_expression) "aram[in]" (identifier) "ar" (->) "am" (field_identifier) "[in]" (=) "d" (identifier) "ta 書" (;) "き" (expression_statement) "データ\n @param" (assignment_expression) "データ\n @para" (field_expression) "データ\n " (identifier) "デー" (->) "タ\n" (field_identifier) " " (=) "@" (identifier) "ara" (;) "m" (expression_statement) "n] length 書き込" (assignment_expression) "n] length 書き" (field_expression) "n] len" (identifier) "n]" (->) " l" (field_identifier) "en" (=) "t" (identifier) " 書き" (;) "込" (}) "デ" (comment) "の長さ\n\n @return 書き込みサイズ\n*/\nint write_fifo(struct st_fifo *fp, unsigned char *data, unsigned int length)\n{\n unsigned int i;\n\n if(fifo_free_size(fp) < length) {\n return 0;\n }\n\n for(i=0; i<length; i++) {\n unsigned char *np;\n\n np" (function_definition) "= fp->wp + 1;\n if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n\n if(np != fp->rp) {\n *fp->wp = *data;\n data ++;\n fp->wp = np;\n } else {\n return (int)i; // バッファフル\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoからデータを読み出す\n\n @param[in] fp データが読み出されるfifo\n @param[out] data 読み出されるデータのポインタ\n @param[in] length 読み出されるデータの長さ\n\n @return 読み出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, unsigned char *data, uns" (primitive_type) "= f" (function_declarator) "->wp + 1;\n if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n\n if(np" (identifier) "->wp + 1;\n" (parameter_list) " if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n\n if(np" (() " " (parameter_declaration) " if(np >= &fp->buf" (struct_specifier) " if(np >= &fp-" (struct) " if(np" (type_identifier) ">= &fp-" (pointer_declarator) "buf" (*) "b" (identifier) "uf" (,) "[" (parameter_declaration) "p->size]) {\n np =" (sized_type_specifier) "p->size]) {\n " (unsigned) "p->size]" (primitive_type) " {\n " (pointer_declarator) " np =" (*) " " (identifier) "np =" (,) " " (parameter_declaration) "p->buf;\n }\n\n if(n" (sized_type_specifier) "p->buf;\n }\n" (unsigned) "p->buf;\n" (primitive_type) " }\n" (identifier) " if(n" ()) "p" (compound_statement) "!= fp->rp) {\n *fp->wp = *data;\n data ++;\n fp->wp = np;\n } else {\n return (int)i; // バッファフル\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoからデータを読み出す\n\n @param[in] fp データが読み出されるfifo\n @param[out] data 読み出されるデータのポインタ\n @param[in] length 読み出されるデータの長さ\n\n @return 読み出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, unsigned char *data, uns" ({) "!" (declaration) "fp->rp) {\n *f" (sized_type_specifier) "fp->rp) {\n " (unsigned) "fp->rp) " (primitive_type) "\n " (identifier) "*" (;) "f" (if_statement) "wp = *data;\n data ++;\n fp->wp = np;\n } else" (if) "wp" (parenthesized_expression) " = *data;\n data ++;\n fp->" (() " " (binary_expression) "= *data;\n data ++;\n fp-" (call_expression) "= *data;\n data +" (identifier) "= *data;\n da" (argument_list) "ta +" (() "t" (identifier) "a " ()) "+" (<) ";" (identifier) " fp-" ()) ">" (compound_statement) "p = np;\n } else" ({) "p" (return_statement) "np;\n } e" (return) "np;\n " (number_literal) " " (;) "e" (}) "e" (for_statement) " return (int)i; // バッファフル\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoからデータを読み出す\n\n @param[in] fp データが読み出されるfifo\n @param[out] data 読み出されるデータのポインタ\n @param[in] length 読み出されるデータの長さ\n\n @return 読み出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, unsig" (for) " " (() "r" (assignment_expression) "etu" (identifier) "e" (=) "t" (number_literal) "u" (;) "r" (binary_expression) " (int)i;" (identifier) " " (<) "(" (identifier) "int)i;" (;) " " (update_expression) "/ バ" (identifier) "/" (++) " バ" ()) "ッ" (compound_statement) "ァフル\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoからデータを読み出す\n\n @param[in] fp データが読み出されるfifo\n @param[out] data 読み出されるデータのポインタ\n @param[in] length 読み出されるデータの長さ\n\n @return 読み出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, unsig" ({) "ァ" (declaration) " }\n }\n\n return (i" (sized_type_specifier) " }\n }\n\n retu" (unsigned) " }\n }\n\n" (primitive_type) "retu" (pointer_declarator) "n (" (*) "n" (identifier) " (" (;) "i" (expression_statement) ";\n}\n\n/**\n @bri" (assignment_expression) ";\n}\n\n/**\n @br" (identifier) ";\n" (=) "\n" (binary_expression) "/**\n @br" (field_expression) "/**\n " (identifier) "/*" (->) "*\n" (field_identifier) " " (+) "@" (number_literal) "r" (;) "i" (if_statement) "fifoからデータを読み出す\n\n @param[in] fp データが読み出されるfifo\n " (if) "fi" (parenthesized_expression) "foからデータを読み出す\n\n @param[in" (() "f" (binary_expression) "oからデータを読み出す\n\n @param[i" (identifier) "oか" (>=) "デー" (pointer_expression) "を読み出す\n\n @param[i" (&) "を" (subscript_expression) "読み出す\n\n @param[i" (field_expression) "読み出す\n\n " (identifier) "読み" (->) "出す" (field_identifier) "\n\n " ([) " " (field_expression) " @param[" (identifier) " @" (->) "pa" (field_identifier) "ram[" (]) "i" ()) "n" (compound_statement) " fp データが読み出されるfifo\n " ({) " " (expression_statement) "ータが読み出されるfifo" (assignment_expression) "ータが読み出されるfif" (identifier) "ータ" (=) "読" (field_expression) "出されるfif" (identifier) "出さ" (->) "れる" (field_identifier) "fif" (;) "o" (}) " " (if_statement) "am[out] data 読み出されるデータのポインタ\n @param[in] length 読み出されるデータの長さ\n\n @return 読み出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, un" (if) "am" (parenthesized_expression) "[out] data 読み出" (() "[" (binary_expression) "out] data 読み" (identifier) "ou" (!=) "] " (field_expression) "ata 読み" (identifier) "at" (->) "a " (field_identifier) "読み" ()) "出" (compound_statement) "れるデータのポインタ\n @param[in] length 読み出されるデータの長さ\n\n @ret" ({) "れ" (expression_statement) "のポインタ\n @param[" (assignment_expression) "のポインタ\n @param" (pointer_expression) "のポインタ\n " (*) "の" (field_expression) "ポインタ\n " (identifier) "ポイ" (->) "ンタ" (field_identifier) "\n " (=) " " (pointer_expression) "param" (*) "p" (identifier) "aram" (;) "[" (expression_statement) "length 読" (update_expression) "length " (identifier) "leng" (++) "h " (;) "読" (expression_statement) "るデータの長さ\n\n " (assignment_expression) "るデータの長さ\n\n " (field_expression) "るデータの長" (identifier) "るデ" (->) "ータ" (field_identifier) "の長" (=) "\n" (identifier) " " (;) " " (}) "t" (else_clause) "rn 読み出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, un" (else) "rn 読" (compound_statement) "出しサイズ\n*/\nint read_fifo(struct st_fifo *fp, un" ({) "出" (return_statement) "\n*/\nint read_f" (return) "\n*/\nin" (cast_expression) " read_" (() " " (type_descriptor) "rea" (primitive_type) "rea" ()) "d" (identifier) "_" (;) "f" (comment) "fo(struct st_fifo *fp" (}) "n" (}) "g" (return_statement) " char *data, u" (return) " char " (cast_expression) "data, " (() "d" (type_descriptor) "ata" (primitive_type) "ata" ()) "," (identifier) " " (;) "u" (}) "s" (comment) "ned int length)\n{\n unsigned int i;\n\n for(i=0; i<length; i++) {\n unsigned char *np;\n\n if(fp->rp != fp->wp) {\n *data = *fp->rp;\n data ++;\n\n np = fp->rp + 1;\n if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n fp->rp = np;\n } else {\n return (i" (function_definition) "t)i; // バッファエンプティ\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoに書き込まれているデータを全て消去する\n\n @param[in] fp データを全て消去するfifo\n*/\nvoid clear_fifo(struct st_fifo *fp)\n{\n fp->wp = fp->buf;\n fp->rp = fp->buf;\n}\n\n/**\n @brief fifoに書き込まれているデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込まれているデータサイズ\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->wp >= fp->rp) {\n retu" (primitive_type) "t)i" (function_declarator) " // バッファエンプティ\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoに書き込まれているデータ" (identifier) " // バッファエ" (parameter_list) "ンプティ\n }\n }\n\n return (int)i;\n}\n\n/**\n @brief fifoに書き込まれているデータ" (() "ン" (parameter_declaration) "プティ\n }\n }\n\n retur" (struct_specifier) "プティ\n }\n }\n\n r" (struct) "プティ\n " (type_identifier) "\n }\n\n r" (pointer_declarator) "tur" (*) "t" (identifier) "ur" (,) "n" (parameter_declaration) "(int)i;\n}\n\n/**\n @" (sized_type_specifier) "(int)i;\n}\n\n/*" (unsigned) "(int)i;\n" (primitive_type) "\n\n/*" (pointer_declarator) "\n @" (*) "\n" (identifier) " @" (,) "b" (parameter_declaration) "ief fifoに書き込まれているデー" (sized_type_specifier) "ief fifoに書き込" (unsigned) "ief fifo" (primitive_type) "書き込" (identifier) "れているデー" ()) "タ" (compound_statement) "全て消去する\n\n @param[in] fp データを全て消去するfifo\n*/\nvoid clear_fifo(struct st_fifo *fp)\n{\n fp->wp = fp->buf;\n fp->rp = fp->buf;\n}\n\n/**\n @brief fifoに書き込まれているデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込まれているデータサイズ\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->wp >= fp->rp) {\n retu" ({) "全" (declaration) "去する\n\n @param[" (sized_type_specifier) "去する\n\n @par" (unsigned) "去する\n\n " (primitive_type) "par" (identifier) "m" (;) "[" (for_statement) " fp データを全て消去するfifo\n*/\nvoid clear_fifo(struct st_fifo *fp)\n{\n fp->wp = fp->buf;\n fp->rp = fp->buf;\n}\n\n/**\n @brief fifoに書き込まれているデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込まれているデータサイズ\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->wp " (for) " fp" (() " " (assignment_expression) "データ" (identifier) "デ" (=) "ー" (number_literal) "タ" (;) "を" (binary_expression) "て消去するfif" (identifier) "て" (<) "消" (identifier) "去するfif" (;) "o" (update_expression) "*/\n" (identifier) "*" (++) "/\n" ()) "v" (compound_statement) "id clear_fifo(struct st_fifo *fp)\n{\n fp->wp = fp->buf;\n fp->rp = fp->buf;\n}\n\n/**\n @brief fifoに書き込まれているデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込まれているデータサイズ\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->wp " ({) "i" (declaration) "lear_fifo(struct s" (sized_type_specifier) "lear_fifo(str" (unsigned) "lear_fif" (primitive_type) "(str" (pointer_declarator) "ct " (*) "c" (identifier) "t " (;) "s" (if_statement) "fo *fp)\n{\n fp->wp = fp->buf;\n fp->rp = fp->buf;\n}\n\n/**\n @brief fifoに書き込まれているデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込まれているデータサイズ\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->" (if) "fo" (parenthesized_expression) " *fp)\n{\n fp->wp = " (() " " (binary_expression) "*fp)\n{\n fp->wp =" (field_expression) "*fp)\n{" (identifier) "*f" (->) "p)" (field_identifier) "\n{" (!=) " f" (field_expression) "->wp =" (identifier) "->" (->) "wp" (field_identifier) " =" ()) " " (compound_statement) "p->buf;\n fp->rp = fp->buf;\n}\n\n/**\n @brief fifoに書き込まれているデータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込まれているデータ" ({) "p" (expression_statement) "f;\n fp->rp = fp-" (assignment_expression) "f;\n fp->rp = fp" (pointer_expression) "f;\n f" (*) "f" (identifier) ";\n f" (=) "-" (pointer_expression) "rp = fp" (*) "r" (field_expression) "p = fp" (identifier) "p " (->) "= " (field_identifier) "fp" (;) "-" (expression_statement) ";\n}\n\n/**" (update_expression) ";\n}\n\n/*" (identifier) ";\n}\n" (++) "/*" (;) "*" (expression_statement) "brief fifoに書き込まれ" (assignment_expression) "brief fifoに書き込ま" (identifier) "br" (=) "e" (binary_expression) " fifoに書き込ま" (field_expression) " fifoに" (identifier) " f" (->) "if" (field_identifier) "oに" (+) "き" (number_literal) "ま" (;) "れ" (if_statement) "ータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @ret" (if) "ータ" (parenthesized_expression) "のサイズを返す\n\n @param[in] fp " (() "の" (binary_expression) "サイズを返す\n\n @param[in] fp" (identifier) "サイ" (>=) "を返" (pointer_expression) "\n\n @param[in] fp" (&) "\n" (subscript_expression) "\n @param[in] fp" (field_expression) "\n @pa" (identifier) "\n " (->) " " (field_identifier) "@pa" ([) "r" (field_expression) "am[in] f" (identifier) "am" (->) "[i" (field_identifier) "n] f" (]) "p" ()) " " (compound_statement) "ータのサイズを読み出すfifo\n\n @ret" ({) "ー" (expression_statement) "を読み出すfifo\n\n " (assignment_expression) "を読み出すfifo\n\n " (identifier) "を読" (=) "出" (field_expression) "fifo\n\n " (identifier) "fi" (->) "fo" (field_identifier) "\n\n " (;) " " (}) "t" (expression_statement) "fifoに書き込まれてい" (assignment_expression) "fifoに書き込まれて" (field_expression) "fifoに書" (identifier) "fi" (->) "fo" (field_identifier) "に書" (=) "込" (identifier) "れて" (;) "い" (}) "タ" (else_clause) "イズ\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->" (else) "イズ\n*" (compound_statement) "\nunsigned int fifo_size(struct st_fifo *fp)\n{\n if(fp->" ({) "\n" (return_statement) "gned int fifo_" (return) "gned i" (cast_expression) "t fifo" (() "t" (type_descriptor) " fi" (primitive_type) " fi" ()) "f" (identifier) "o" (;) "_" (comment) "ize(struct st_fifo *fp)\n{\n if(" (}) ">" (}) " " (return_statement) "fp->rp) {\n re" (return) "fp->rp" (cast_expression) " {\n r" (() " " (type_descriptor) "{\n " (primitive_type) "{\n " ()) " " (identifier) "r" (;) "e" (}) "u" (comment) " (unsigned int)(fp->wp - fp->rp);\n } else {\n return (unsigned int)(fp->size - (fp->rp - fp->wp));\n }\n}\n\n/**\n @brief fifoに書き込み可能な" (function_definition) "ータのサイズを返す\n\n @param[in] fp データのサイズを読み出すfifo\n\n @return fifoに書き込み可能なデータサイズ\n*" (primitive_type) "ータのサ" (function_declarator) "ズを返す\n\n @param[in] fp データのサイズ" (identifier) "ズを返す\n\n @" (parameter_list) "param[in] fp データのサイズ" (() "p" (parameter_declaration) "aram[in] fp データのサイ" (struct_specifier) "aram[in] fp デー" (struct) "aram[i" (type_identifier) "] fp デー" (pointer_declarator) "のサイ" (*) "の" (identifier) "サイ" ()) "ズ" (compound_statement) "読み出すfifo\n\n @return fifoに書き込み可能なデータサイズ\n*" ({) "読" (expression_statement) "すfifo\n\n @return" (assignment_expression) "すfifo\n\n @retur" (field_expression) "すfifo\n" (identifier) "すf" (->) "if" (field_identifier) "o\n" (=) " " (field_expression) " @retur" (identifier) " @" (->) "re" (field_identifier) "tur" (;) "n" (expression_statement) "ifoに書き込み可能なデータサイズ" (assignment_expression) "ifoに書き込み可能なデータサイ" (field_expression) "ifoに書き" (identifier) "if" (->) "oに" (field_identifier) "書き" (=) "み" (field_expression) "能なデータサイ" (identifier) "能な" (->) "デー" (field_identifier) "タサイ" (;) "ズ" (}) "*" (comment) "unsigned int fifo_free_size(struct st_fifo *fp)\n{\n if(fp->wp >= fp->rp) {\n return (unsigned int)(fp->size - (fp->wp - fp->rp) - 1);\n } else {\n return (unsigned int)((fp->rp - fp->wp) - 1);\n }\n}\n\n/*" (function_definition) "\n @brief fifoからデータを捨てる\n\n @param[in] fp データが捨てられるfifo\n @param[in] length 捨てるデータの長さ\n\n @return 捨てたサイズ\n*/\nint drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n unsigned int" (sized_type_specifier) "\n @brief f" (unsigned) "\n @bri" (primitive_type) "f f" (function_declarator) "foからデータを捨てる\n\n @param[in] fp" (identifier) "foからデータを捨" (parameter_list) "てる\n\n @param[in] fp" (() "て" (parameter_declaration) "る\n\n @param[in] f" (struct_specifier) "る\n\n @param[i" (struct) "る\n\n " (type_identifier) "param[i" (pointer_declarator) "] f" (*) "]" (identifier) " f" ()) "p" (compound_statement) "データが捨てられるfifo\n @param[in] length 捨てるデータの長さ\n\n @return 捨てたサイズ\n*/\nint drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n unsigned int" ({) "デ" (if_statement) "が捨てられるfifo\n @param[in] length 捨てるデータの長さ\n\n @return 捨てたサイズ\n*/\nint drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n unsigned i" (if) "が捨" (parenthesized_expression) "てられるfifo\n @param" (() "て" (binary_expression) "られるfifo\n @para" (field_expression) "られるfif" (identifier) "られ" (->) "るf" (field_identifier) "if" (>=) "\n " (field_expression) " @para" (identifier) " @" (->) "pa" (field_identifier) "ra" ()) "m" (compound_statement) "in] length 捨てるデータの長さ\n\n @return 捨てたサイズ\n*/\nint" ({) "i" (return_statement) "length 捨てるデータの長さ\n\n @return 捨てたサイズ\n*/\n" (return) "length" (cast_expression) "捨てるデータの長さ\n\n @return 捨てたサイズ\n*/" (() "捨" (type_descriptor) "てるデータの長さ\n\n " (sized_type_specifier) "てるデータの長さ\n\n " (unsigned) "てるデータの長さ" (primitive_type) "\n " ()) " " (parenthesized_expression) "@return 捨てたサイズ\n*/" (() "@" (binary_expression) "return 捨てたサイズ\n*" (field_expression) "return" (identifier) "re" (->) "tu" (field_identifier) "rn" (-) "捨" (field_expression) "たサイズ\n*" (identifier) "たサ" (->) "イズ" (field_identifier) "\n*" ()) "/" (;) "\n" (}) "t" (else_clause) "drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n unsigned i" (else) "drop" (compound_statement) "fifo(struct st_fifo *fp, unsigned int length)\n{\n unsigned i" ({) "f" (return_statement) "(struct st_fifo *fp, unsigned int length)\n{\n unsigne" (return) "(struc" (cast_expression) " st_fifo *fp, unsigned int length)\n{\n unsign" (() " " (type_descriptor) "st_fifo *fp," (sized_type_specifier) "st_fifo *fp," (unsigned) "st_fifo " (primitive_type) "fp," ()) " " (parenthesized_expression) "unsigned int length)\n{\n unsign" (() "u" (binary_expression) "nsigned int length)\n{\n unsig" (field_expression) "nsigned " (identifier) "ns" (->) "ig" (field_identifier) "ned " (-) "n" (parenthesized_expression) " length)\n{\n unsig" (() " " (binary_expression) "length)\n{\n unsi" (field_expression) "length" (identifier) "le" (->) "ng" (field_identifier) "th" (-) "\n" (field_expression) "\n unsi" (identifier) "\n " (->) "un" (field_identifier) "si" ()) "g" ()) "n" (;) "e" (}) "i" (}) "t" (comment) ";\n\n for(i=0; i<length; i++) {\n unsigned char *np;\n\n if(fp->rp != fp->wp) {\n np = fp->rp + 1;\n if(np >= &fp->buf[fp->size]) {\n np = fp->buf;\n }\n fp->rp = np;\n } else {\n return (i" (function_definition) "t)i; // バッファエンプティ\n }\n }\n\n return (int)i;\n}\n" (sized_type_specifier) "t)i; // バッファ" (unsigned) "t)i; // " (primitive_type) "ッファ" (function_declarator) "ンプティ\n }\n }\n\n return (int)i;\n}\n" (identifier) "ンプティ\n }\n }\n\n " (parameter_list) "return (int)i;\n}\n" (() "r" (parameter_declaration) "eturn (int)i;\n}\n" (struct_specifier) "eturn (int)i;\n" (struct) "eturn " (type_identifier) "int)i;\n" (pointer_declarator) "\n" (*) "\n" (identifier) "" ()) "" (compound_statement) "" ({) "" (if_statement) "" (if) "" (parenthesized_expression) "" (() "" (binary_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (>=) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" ()) "" (compound_statement) "" ({) "" (return_statement) "" (return) "" (cast_expression) "" (() "" (type_descriptor) "" (sized_type_specifier) "" (unsigned) "" (primitive_type) "" ()) "" (parenthesized_expression) "" (() "" (binary_expression) "" (binary_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (-) "" (parenthesized_expression) "" (() "" (binary_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (-) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" ()) "" (-) "" (number_literal) "" ()) "" (;) "" (}) "" (else_clause) "" (else) "" (compound_statement) "" ({) "" (return_statement) "" (return) "" (cast_expression) "" (() "" (type_descriptor) "" (sized_type_specifier) "" (unsigned) "" (primitive_type) "" ()) "" (parenthesized_expression) "" (() "" (binary_expression) "" (parenthesized_expression) "" (() "" (binary_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (-) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" ()) "" (-) "" (number_literal) "" ()) "" (;) "" (}) "" (}) "" (comment) "" (function_definition) "" (primitive_type) "" (function_declarator) "" (identifier) "" (parameter_list) "" (() "" (parameter_declaration) "" (struct_specifier) "" (struct) "" (type_identifier) "" (pointer_declarator) "" (*) "" (identifier) "" (,) "" (parameter_declaration) "" (sized_type_specifier) "" (unsigned) "" (primitive_type) "" (identifier) "" ()) "" (compound_statement) "" ({) "" (declaration) "" (sized_type_specifier) "" (unsigned) "" (primitive_type) "" (identifier) "" (;) "" (for_statement) "" (for) "" (() "" (assignment_expression) "" (identifier) "" (=) "" (number_literal) "" (;) "" (binary_expression) "" (identifier) "" (<) "" (identifier) "" (;) "" (update_expression) "" (identifier) "" (++) "" ()) "" (compound_statement) "" ({) "" (declaration) "" (sized_type_specifier) "" (unsigned) "" (primitive_type) "" (pointer_declarator) "" (*) "" (identifier) "" (;) "" (if_statement) "" (if) "" (parenthesized_expression) "" (() "" (binary_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (!=) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" ()) "" (compound_statement) "" ({) "" (expression_statement) "" (assignment_expression) "" (identifier) "" (=) "" (binary_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (+) "" (number_literal) "" (;) "" (if_statement) "" (if) "" (parenthesized_expression) "" (() "" (binary_expression) "" (identifier) "" (>=) "" (pointer_expression) "" (&) "" (subscript_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" ([) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (]) "" ()) "" (compound_statement) "" ({) "" (expression_statement) "" (assignment_expression) "" (identifier) "" (=) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (;) "" (}) "" (expression_statement) "" (assignment_expression) "" (field_expression) "" (identifier) "" (->) "" (field_identifier) "" (=) "" (identifier) "" (;) "" (}) "" (else_clause) "" (else) "" (compound_statement) "" ({) "" (return_statement) "" (return) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (;) "" (comment) "" (}) "" (}) "" (return_statement) "" (return) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (;) "" (}) ""
855
0
{"language": "c", "success": true, "metadata": {"lines": 134, "avg_line_length": 18.54, "nodes": 575, "errors": 0, "source_hash": "4773f0f11971cc55387307672aeefc9d919d9dd8cc7b31d61de20acc74685e73", "categorized_nodes": 388}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "\n/**\n @brief\tfif", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "#include", "text": "\n/**\n ", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 2, "type": "string_literal", "text": "brief\tfi", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 3, "type": "function_definition", "text": "p = buf;\n\tfp->rp = buf;\n}\n\n/**\n @brief fifo\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308bfifo\n @param[in]\tdata\t\u66f8\u304d\u8fbc\u3080\u30c7\u30fc\u30bf\n @param[in]\tlength\t\u66f8\u304d\u8fbc\u3080\u30c7", "parent": null, "children": [4, 5], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "p = ", "parent": 3, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 5, "type": "function_declarator", "text": "uf;\n\tfp->rp = buf;\n}\n\n/**\n @brief fifo\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\n\n @param[in]\tfp\t", "parent": 3, "children": [6, 7], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 73}}, {"id": 6, "type": "identifier", "text": "uf;\n\tfp->", "parent": 5, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 14}}, {"id": 7, "type": "parameter_list", "text": "rp = buf;\n}\n\n/**\n @brief fifo\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\n\n @param[in]\tfp\t", "parent": 5, "children": [8, 15, 22], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 73}}, {"id": 8, "type": "parameter_declaration", "text": "p = buf;\n}\n\n/**\n ", "parent": 7, "children": [9, 12], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 33}}, {"id": 9, "type": "struct_specifier", "text": "p = buf;\n}\n\n/*", "parent": 8, "children": [10, 11], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 29}}, {"id": 10, "type": "struct", "text": "p = bu", "parent": 9, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 21}}, {"id": 11, "type": "type_identifier", "text": ";\n}\n\n/*", "parent": 9, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 29}}, {"id": 12, "type": "pointer_declarator", "text": "\n ", "parent": 8, "children": [13, 14], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 33}}, {"id": 13, "type": "*", "text": "\n", "parent": 12, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 31}}, {"id": 14, "type": "identifier", "text": " ", "parent": 12, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 33}}, {"id": 15, "type": "parameter_declaration", "text": "brief fifo\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc", "parent": 7, "children": [16, 19], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 53}}, {"id": 16, "type": "sized_type_specifier", "text": "brief fifo\u306b\u30c7\u30fc", "parent": 15, "children": [17, 18], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 48}}, {"id": 17, "type": "unsigned", "text": "brief fi", "parent": 16, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 43}}, {"id": 18, "type": "primitive_type", "text": "o\u306b\u30c7\u30fc", "parent": 16, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 48}}, {"id": 19, "type": "pointer_declarator", "text": "\u3092\u66f8\u304d\u8fbc", "parent": 15, "children": [20, 21], "start_point": {"row": 19, "column": 49}, "end_point": {"row": 19, "column": 53}}, {"id": 20, "type": "*", "text": "\u3092", "parent": 19, "children": [], "start_point": {"row": 19, "column": 49}, "end_point": {"row": 19, "column": 50}}, {"id": 21, "type": "identifier", "text": "\u66f8\u304d\u8fbc", "parent": 19, "children": [], "start_point": {"row": 19, "column": 50}, "end_point": {"row": 19, "column": 53}}, {"id": 22, "type": "parameter_declaration", "text": "\n @param[in]\tfp", "parent": 7, "children": [23, 26], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 72}}, {"id": 23, "type": "sized_type_specifier", "text": "\n @param[i", "parent": 22, "children": [24, 25], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 67}}, {"id": 24, "type": "unsigned", "text": "\n @par", "parent": 23, "children": [], "start_point": {"row": 19, "column": 55}, "end_point": {"row": 19, "column": 63}}, {"id": 25, "type": "primitive_type", "text": "m[i", "parent": 23, "children": [], "start_point": {"row": 19, "column": 64}, "end_point": {"row": 19, "column": 67}}, {"id": 26, "type": "identifier", "text": "]\tfp", "parent": 22, "children": [], "start_point": {"row": 19, "column": 68}, "end_point": {"row": 19, "column": 72}}, {"id": 27, "type": "assignment_expression", "text": "\u66f8\u304d\u8fbc\u307e\u308c\u308bfifo\n ", "parent": 3, "children": [28, 32, 33], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 14}}, {"id": 28, "type": "field_expression", "text": "\u66f8\u304d\u8fbc\u307e\u308c\u308bf", "parent": 27, "children": [29, 30, 31], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 8}}, {"id": 29, "type": "identifier", "text": "\u66f8\u304d", "parent": 28, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 3}}, {"id": 30, "type": "->", "text": "\u8fbc\u307e", "parent": 28, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 31, "type": "field_identifier", "text": "\u308c\u308bf", "parent": 28, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 8}}, {"id": 32, "type": "=", "text": "f", "parent": 27, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 10}}, {"id": 33, "type": "identifier", "text": "\n ", "parent": 27, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 14}}, {"id": 34, "type": "assignment_expression", "text": "aram[in]\tdata\t\u66f8", "parent": 3, "children": [35, 39, 40], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 16}}, {"id": 35, "type": "field_expression", "text": "aram[in]", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 36, "type": "identifier", "text": "ar", "parent": 35, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 3}}, {"id": 37, "type": "->", "text": "am", "parent": 35, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 5}}, {"id": 38, "type": "field_identifier", "text": "[in]", "parent": 35, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 9}}, {"id": 39, "type": "=", "text": "d", "parent": 34, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 11}}, {"id": 40, "type": "identifier", "text": "ta\t\u66f8", "parent": 34, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 41, "type": "assignment_expression", "text": "\u30c7\u30fc\u30bf\n @para", "parent": 3, "children": [42, 46, 47], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 13}}, {"id": 42, "type": "field_expression", "text": "\u30c7\u30fc\u30bf\n ", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 7}}, {"id": 43, "type": "identifier", "text": "\u30c7\u30fc", "parent": 42, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 3}}, {"id": 44, "type": "->", "text": "\u30bf\n", "parent": 42, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 45, "type": "field_identifier", "text": " ", "parent": 42, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 7}}, {"id": 46, "type": "=", "text": "@", "parent": 41, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 47, "type": "identifier", "text": "ara", "parent": 41, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 13}}, {"id": 48, "type": "assignment_expression", "text": "n]\tlength\t\u66f8\u304d", "parent": 3, "children": [49, 53, 54], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 13}}, {"id": 49, "type": "field_expression", "text": "n]\tlen", "parent": 48, "children": [50, 51, 52], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 7}}, {"id": 50, "type": "identifier", "text": "n]", "parent": 49, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 3}}, {"id": 51, "type": "->", "text": "\tl", "parent": 49, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 5}}, {"id": 52, "type": "field_identifier", "text": "en", "parent": 49, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 7}}, {"id": 53, "type": "=", "text": "t", "parent": 48, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 54, "type": "identifier", "text": "\t\u66f8\u304d", "parent": 48, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 13}}, {"id": 55, "type": "function_definition", "text": "= fp->wp + 1;\n\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\tnp = fp->buf;\n\t\t}\n\n\t\tif(np != fp->rp) {\n\t\t\t*fp->wp = *data;\n\t\t\tdata ++;\n\t\t\tfp->wp = np;\n\t\t} else {\n\t\t\treturn (int)i;\t// \u30d0\u30c3\u30d5\u30a1\u30d5\u30eb\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u51fa\u3055\u308c\u308bfifo\n @param[out]\tdata\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u30dd\u30a4\u30f3\u30bf\n @param[in]\tlength\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u8aad\u307f\u51fa\u3057\u30b5\u30a4\u30ba\n*/\nint read_fifo(struct st_fifo *fp, unsigned char *data, uns", "parent": null, "children": [56, 57], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 56, "type": "primitive_type", "text": "= f", "parent": 55, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 3}}, {"id": 57, "type": "function_declarator", "text": "->wp + 1;\n\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\tnp = fp->buf;\n\t\t}\n\n\t\tif(np", "parent": 55, "children": [58, 59], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 76}}, {"id": 58, "type": "identifier", "text": "->wp + 1;\n", "parent": 57, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 14}}, {"id": 59, "type": "parameter_list", "text": "\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\tnp = fp->buf;\n\t\t}\n\n\t\tif(np", "parent": 57, "children": [60, 67, 73], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 76}}, {"id": 60, "type": "parameter_declaration", "text": "\tif(np >= &fp->buf", "parent": 59, "children": [61, 64], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 33}}, {"id": 61, "type": "struct_specifier", "text": "\tif(np >= &fp-", "parent": 60, "children": [62, 63], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 29}}, {"id": 62, "type": "struct", "text": "\tif(np", "parent": 61, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 21}}, {"id": 63, "type": "type_identifier", "text": ">= &fp-", "parent": 61, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 29}}, {"id": 64, "type": "pointer_declarator", "text": "buf", "parent": 60, "children": [65, 66], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 33}}, {"id": 65, "type": "*", "text": "b", "parent": 64, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 31}}, {"id": 66, "type": "identifier", "text": "uf", "parent": 64, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 33}}, {"id": 67, "type": "parameter_declaration", "text": "p->size]) {\n\t\t\tnp =", "parent": 59, "children": [68, 70], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 54}}, {"id": 68, "type": "sized_type_specifier", "text": "p->size]) {\n\t", "parent": 67, "children": [69], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 48}}, {"id": 69, "type": "unsigned", "text": "p->size]", "parent": 68, "children": [], "start_point": {"row": 36, "column": 35}, "end_point": {"row": 36, "column": 43}}, {"id": 70, "type": "pointer_declarator", "text": "\tnp =", "parent": 67, "children": [71, 72], "start_point": {"row": 36, "column": 49}, "end_point": {"row": 36, "column": 54}}, {"id": 71, "type": "*", "text": "\t", "parent": 70, "children": [], "start_point": {"row": 36, "column": 49}, "end_point": {"row": 36, "column": 50}}, {"id": 72, "type": "identifier", "text": "np =", "parent": 70, "children": [], "start_point": {"row": 36, "column": 50}, "end_point": {"row": 36, "column": 54}}, {"id": 73, "type": "parameter_declaration", "text": "p->buf;\n\t\t}\n\n\t\tif(n", "parent": 59, "children": [74, 76], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 75}}, {"id": 74, "type": "sized_type_specifier", "text": "p->buf;\n\t\t}\n", "parent": 73, "children": [75], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 68}}, {"id": 75, "type": "unsigned", "text": "p->buf;\n", "parent": 74, "children": [], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 64}}, {"id": 76, "type": "identifier", "text": "\t\tif(n", "parent": 73, "children": [], "start_point": {"row": 36, "column": 69}, "end_point": {"row": 36, "column": 75}}, {"id": 77, "type": "declaration", "text": "fp->rp) {\n\t\t\t*f", "parent": 55, "children": [78, 81], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 16}}, {"id": 78, "type": "sized_type_specifier", "text": "fp->rp) {\n\t\t", "parent": 77, "children": [79, 80], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 13}}, {"id": 79, "type": "unsigned", "text": "fp->rp) ", "parent": 78, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 9}}, {"id": 80, "type": "primitive_type", "text": "\n\t\t", "parent": 78, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 13}}, {"id": 81, "type": "identifier", "text": "*", "parent": 77, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 15}}, {"id": 82, "type": "if_statement", "text": "wp = *data;\n\t\t\tdata ++;\n\t\t\tfp->wp = np;\n\t\t} else", "parent": 55, "children": [83], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 42, "column": 2}}, {"id": 83, "type": "parenthesized_expression", "text": " = *data;\n\t\t\tdata ++;\n\t\t\tfp->", "parent": 82, "children": [84], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 32}}, {"id": 84, "type": "binary_expression", "text": "= *data;\n\t\t\tdata ++;\n\t\t\tfp-", "parent": 83, "children": [85, 89], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 31}}, {"id": 85, "type": "call_expression", "text": "= *data;\n\t\t\tdata +", "parent": 84, "children": [86, 87], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 22}}, {"id": 86, "type": "identifier", "text": "= *data;\n\t\t\tda", "parent": 85, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 18}}, {"id": 87, "type": "argument_list", "text": "ta +", "parent": 85, "children": [88], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 22}}, {"id": 88, "type": "identifier", "text": "a ", "parent": 87, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 21}}, {"id": 89, "type": "identifier", "text": "\t\t\tfp-", "parent": 84, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 31}}, {"id": 90, "type": "return_statement", "text": "np;\n\t\t} e", "parent": 82, "children": [91], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 11}}, {"id": 91, "type": "number_literal", "text": " ", "parent": 90, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 10}}, {"id": 92, "type": "for_statement", "text": "\t\t\treturn (int)i;\t// \u30d0\u30c3\u30d5\u30a1\u30d5\u30eb\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u51fa\u3055\u308c\u308bfifo\n @param[out]\tdata\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u30dd\u30a4\u30f3\u30bf\n @param[in]\tlength\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u8aad\u307f\u51fa\u3057\u30b5\u30a4\u30ba\n*/\nint read_fifo(struct st_fifo *fp, unsig", "parent": 55, "children": [93, 97, 100], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 59, "column": 2}}, {"id": 93, "type": "assignment_expression", "text": "etu", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 8}}, {"id": 94, "type": "identifier", "text": "e", "parent": 93, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 6}}, {"id": 95, "type": "=", "text": "t", "parent": 93, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 7}}, {"id": 96, "type": "number_literal", "text": "u", "parent": 93, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 97, "type": "binary_expression", "text": " (int)i;", "parent": 92, "children": [98, 99], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 18}}, {"id": 98, "type": "identifier", "text": " ", "parent": 97, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 11}}, {"id": 99, "type": "identifier", "text": "int)i;", "parent": 97, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 18}}, {"id": 100, "type": "update_expression", "text": "/ \u30d0", "parent": 92, "children": [101, 102], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 23}}, {"id": 101, "type": "identifier", "text": "/", "parent": 100, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 21}}, {"id": 102, "type": "++", "text": " \u30d0", "parent": 100, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 23}}, {"id": 103, "type": "declaration", "text": "\t\t}\n\t}\n\n\treturn (i", "parent": 92, "children": [104, 107], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 20}}, {"id": 104, "type": "sized_type_specifier", "text": "\t\t}\n\t}\n\n\tretu", "parent": 103, "children": [105, 106], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 15}}, {"id": 105, "type": "unsigned", "text": "\t\t}\n\t}\n\n", "parent": 104, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 10}}, {"id": 106, "type": "primitive_type", "text": "retu", "parent": 104, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 15}}, {"id": 107, "type": "pointer_declarator", "text": "n (", "parent": 103, "children": [108], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 19}}, {"id": 108, "type": "*", "text": "n", "parent": 107, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 17}}, {"id": 109, "type": "assignment_expression", "text": ";\n}\n\n/**\n @br", "parent": 92, "children": [110, 111], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 17}}, {"id": 110, "type": "=", "text": "\n", "parent": 109, "children": [], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 6}}, {"id": 111, "type": "binary_expression", "text": "/**\n @br", "parent": 109, "children": [112, 116, 117], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 17}}, {"id": 112, "type": "field_expression", "text": "/**\n ", "parent": 111, "children": [113, 114, 115], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 13}}, {"id": 113, "type": "identifier", "text": "/*", "parent": 112, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 9}}, {"id": 114, "type": "->", "text": "*\n", "parent": 112, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 11}}, {"id": 115, "type": "field_identifier", "text": " ", "parent": 112, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 13}}, {"id": 116, "type": "+", "text": "@", "parent": 111, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 117, "type": "number_literal", "text": "r", "parent": 111, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 17}}, {"id": 118, "type": "if_statement", "text": "fifo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u51fa\u3055\u308c\u308bfifo\n ", "parent": 92, "children": [119], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 50, "column": 3}}, {"id": 119, "type": "parenthesized_expression", "text": "fo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\n\n @param[in", "parent": 118, "children": [120], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 30}}, {"id": 120, "type": "binary_expression", "text": "o\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\n\n @param[i", "parent": 119, "children": [121, 122, 123], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 29}}, {"id": 121, "type": "identifier", "text": "o\u304b", "parent": 120, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 7}}, {"id": 122, "type": ">=", "text": "\u30c7\u30fc", "parent": 120, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 10}}, {"id": 123, "type": "pointer_expression", "text": "\u3092\u8aad\u307f\u51fa\u3059\n\n @param[i", "parent": 120, "children": [124, 125], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 29}}, {"id": 124, "type": "&", "text": "\u3092", "parent": 123, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}, {"id": 125, "type": "subscript_expression", "text": "\u8aad\u307f\u51fa\u3059\n\n @param[i", "parent": 123, "children": [126, 130], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 29}}, {"id": 126, "type": "field_expression", "text": "\u8aad\u307f\u51fa\u3059\n\n ", "parent": 125, "children": [127, 128, 129], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 19}}, {"id": 127, "type": "identifier", "text": "\u8aad\u307f", "parent": 126, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 14}}, {"id": 128, "type": "->", "text": "\u51fa\u3059", "parent": 126, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 16}}, {"id": 129, "type": "field_identifier", "text": "\n\n ", "parent": 126, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 19}}, {"id": 130, "type": "field_expression", "text": " @param[", "parent": 125, "children": [131, 132, 133], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 28}}, {"id": 131, "type": "identifier", "text": " @", "parent": 130, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 22}}, {"id": 132, "type": "->", "text": "pa", "parent": 130, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 24}}, {"id": 133, "type": "field_identifier", "text": "ram[", "parent": 130, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 28}}, {"id": 134, "type": "assignment_expression", "text": "\u30fc\u30bf\u304c\u8aad\u307f\u51fa\u3055\u308c\u308bfif", "parent": 118, "children": [135, 136, 137], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 15}}, {"id": 135, "type": "identifier", "text": "\u30fc\u30bf", "parent": 134, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 5}}, {"id": 136, "type": "=", "text": "\u8aad", "parent": 134, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 7}}, {"id": 137, "type": "field_expression", "text": "\u51fa\u3055\u308c\u308bfif", "parent": 134, "children": [138, 139, 140], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 15}}, {"id": 138, "type": "identifier", "text": "\u51fa\u3055", "parent": 137, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 10}}, {"id": 139, "type": "->", "text": "\u308c\u308b", "parent": 137, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 12}}, {"id": 140, "type": "field_identifier", "text": "fif", "parent": 137, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 15}}, {"id": 141, "type": "if_statement", "text": "am[out]\tdata\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u30dd\u30a4\u30f3\u30bf\n @param[in]\tlength\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u8aad\u307f\u51fa\u3057\u30b5\u30a4\u30ba\n*/\nint read_fifo(struct st_fifo *fp, un", "parent": 92, "children": [142, 170], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 58, "column": 3}}, {"id": 142, "type": "parenthesized_expression", "text": "[out]\tdata\t\u8aad\u307f\u51fa", "parent": 141, "children": [143], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 18}}, {"id": 143, "type": "binary_expression", "text": "out]\tdata\t\u8aad\u307f", "parent": 142, "children": [144, 145], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 17}}, {"id": 144, "type": "identifier", "text": "ou", "parent": 143, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 7}}, {"id": 145, "type": "field_expression", "text": "ata\t\u8aad\u307f", "parent": 143, "children": [146, 147, 148], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 17}}, {"id": 146, "type": "identifier", "text": "at", "parent": 145, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 13}}, {"id": 147, "type": "->", "text": "a\t", "parent": 145, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 15}}, {"id": 148, "type": "field_identifier", "text": "\u8aad\u307f", "parent": 145, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 17}}, {"id": 149, "type": "assignment_expression", "text": "\u306e\u30dd\u30a4\u30f3\u30bf\n @param", "parent": 141, "children": [150, 156, 157], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 18}}, {"id": 150, "type": "pointer_expression", "text": "\u306e\u30dd\u30a4\u30f3\u30bf\n ", "parent": 149, "children": [151, 152], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 10}}, {"id": 151, "type": "*", "text": "\u306e", "parent": 150, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 4}}, {"id": 152, "type": "field_expression", "text": "\u30dd\u30a4\u30f3\u30bf\n ", "parent": 150, "children": [153, 154, 155], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 10}}, {"id": 153, "type": "identifier", "text": "\u30dd\u30a4", "parent": 152, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 6}}, {"id": 154, "type": "->", "text": "\u30f3\u30bf", "parent": 152, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 8}}, {"id": 155, "type": "field_identifier", "text": "\n ", "parent": 152, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 10}}, {"id": 156, "type": "=", "text": " ", "parent": 149, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 12}}, {"id": 157, "type": "pointer_expression", "text": "param", "parent": 149, "children": [158, 159], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 18}}, {"id": 158, "type": "*", "text": "p", "parent": 157, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 14}}, {"id": 159, "type": "identifier", "text": "aram", "parent": 157, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 18}}, {"id": 160, "type": "update_expression", "text": "length\t", "parent": 141, "children": [161, 162], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 10}}, {"id": 161, "type": "identifier", "text": "leng", "parent": 160, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 162, "type": "++", "text": "h\t", "parent": 160, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 10}}, {"id": 163, "type": "assignment_expression", "text": "\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n ", "parent": 141, "children": [164, 168, 169], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 14}}, {"id": 164, "type": "field_expression", "text": "\u308b\u30c7\u30fc\u30bf\u306e\u9577", "parent": 163, "children": [165, 166, 167], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 9}}, {"id": 165, "type": "identifier", "text": "\u308b\u30c7", "parent": 164, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 5}}, {"id": 166, "type": "->", "text": "\u30fc\u30bf", "parent": 164, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 7}}, {"id": 167, "type": "field_identifier", "text": "\u306e\u9577", "parent": 164, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 9}}, {"id": 168, "type": "=", "text": "\n", "parent": 163, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 11}}, {"id": 169, "type": "identifier", "text": " ", "parent": 163, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 14}}, {"id": 170, "type": "else_clause", "text": "rn\t\u8aad\u307f\u51fa\u3057\u30b5\u30a4\u30ba\n*/\nint read_fifo(struct st_fifo *fp, un", "parent": 141, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 58, "column": 3}}, {"id": 171, "type": "return_statement", "text": "\n*/\nint read_f", "parent": 170, "children": [172], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 17}}, {"id": 172, "type": "cast_expression", "text": " read_", "parent": 171, "children": [173, 175], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 16}}, {"id": 173, "type": "type_descriptor", "text": "rea", "parent": 172, "children": [174], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 14}}, {"id": 174, "type": "primitive_type", "text": "rea", "parent": 173, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 14}}, {"id": 175, "type": "identifier", "text": "_", "parent": 172, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 176, "type": "return_statement", "text": " char *data, u", "parent": 55, "children": [177], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 15}}, {"id": 177, "type": "cast_expression", "text": "data, ", "parent": 176, "children": [178, 180], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 14}}, {"id": 178, "type": "type_descriptor", "text": "ata", "parent": 177, "children": [179], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 12}}, {"id": 179, "type": "primitive_type", "text": "ata", "parent": 178, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 12}}, {"id": 180, "type": "identifier", "text": " ", "parent": 177, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 14}}, {"id": 181, "type": "function_definition", "text": "t)i;\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u5168\u3066\u6d88\u53bb\u3059\u308b\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u3092\u5168\u3066\u6d88\u53bb\u3059\u308bfifo\n*/\nvoid clear_fifo(struct st_fifo *fp)\n{\n\tfp->wp = fp->buf;\n\tfp->rp = fp->buf;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @return\tfifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n\tif(fp->wp >= fp->rp) {\n\t\tretu", "parent": null, "children": [182, 183], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 95, "column": 1}}, {"id": 182, "type": "primitive_type", "text": "t)i", "parent": 181, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 3}}, {"id": 183, "type": "function_declarator", "text": "\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf", "parent": 181, "children": [184, 185], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 75}}, {"id": 184, "type": "identifier", "text": "\t// \u30d0\u30c3\u30d5\u30a1\u30a8", "parent": 183, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 13}}, {"id": 185, "type": "parameter_list", "text": "\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf", "parent": 183, "children": [186, 193, 200], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 75}}, {"id": 186, "type": "parameter_declaration", "text": "\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\tretur", "parent": 185, "children": [187, 190], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 32}}, {"id": 187, "type": "struct_specifier", "text": "\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\tr", "parent": 186, "children": [188, 189], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 28}}, {"id": 188, "type": "struct", "text": "\u30d7\u30c6\u30a3\n\t\t", "parent": 187, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 20}}, {"id": 189, "type": "type_identifier", "text": "\n\t}\n\n\tr", "parent": 187, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 28}}, {"id": 190, "type": "pointer_declarator", "text": "tur", "parent": 186, "children": [191, 192], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 32}}, {"id": 191, "type": "*", "text": "t", "parent": 190, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 30}}, {"id": 192, "type": "identifier", "text": "ur", "parent": 190, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 32}}, {"id": 193, "type": "parameter_declaration", "text": "(int)i;\n}\n\n/**\n @", "parent": 185, "children": [194, 197], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 53}}, {"id": 194, "type": "sized_type_specifier", "text": "(int)i;\n}\n\n/*", "parent": 193, "children": [195, 196], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 47}}, {"id": 195, "type": "unsigned", "text": "(int)i;\n", "parent": 194, "children": [], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 42}}, {"id": 196, "type": "primitive_type", "text": "\n\n/*", "parent": 194, "children": [], "start_point": {"row": 73, "column": 43}, "end_point": {"row": 73, "column": 47}}, {"id": 197, "type": "pointer_declarator", "text": "\n @", "parent": 193, "children": [198, 199], "start_point": {"row": 73, "column": 48}, "end_point": {"row": 73, "column": 53}}, {"id": 198, "type": "*", "text": "\n", "parent": 197, "children": [], "start_point": {"row": 73, "column": 48}, "end_point": {"row": 73, "column": 49}}, {"id": 199, "type": "identifier", "text": " @", "parent": 197, "children": [], "start_point": {"row": 73, "column": 49}, "end_point": {"row": 73, "column": 53}}, {"id": 200, "type": "parameter_declaration", "text": "ief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc", "parent": 185, "children": [201, 204], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 74}}, {"id": 201, "type": "sized_type_specifier", "text": "ief fifo\u306b\u66f8\u304d\u8fbc", "parent": 200, "children": [202, 203], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 67}}, {"id": 202, "type": "unsigned", "text": "ief fifo", "parent": 201, "children": [], "start_point": {"row": 73, "column": 55}, "end_point": {"row": 73, "column": 63}}, {"id": 203, "type": "primitive_type", "text": "\u66f8\u304d\u8fbc", "parent": 201, "children": [], "start_point": {"row": 73, "column": 64}, "end_point": {"row": 73, "column": 67}}, {"id": 204, "type": "identifier", "text": "\u308c\u3066\u3044\u308b\u30c7\u30fc", "parent": 200, "children": [], "start_point": {"row": 73, "column": 68}, "end_point": {"row": 73, "column": 74}}, {"id": 205, "type": "declaration", "text": "\u53bb\u3059\u308b\n\n @param[", "parent": 181, "children": [206, 209], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 16}}, {"id": 206, "type": "sized_type_specifier", "text": "\u53bb\u3059\u308b\n\n @par", "parent": 205, "children": [207, 208], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 13}}, {"id": 207, "type": "unsigned", "text": "\u53bb\u3059\u308b\n\n ", "parent": 206, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 9}}, {"id": 208, "type": "primitive_type", "text": "par", "parent": 206, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 13}}, {"id": 209, "type": "identifier", "text": "m", "parent": 205, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 15}}, {"id": 210, "type": "for_statement", "text": "\tfp\t\u30c7\u30fc\u30bf\u3092\u5168\u3066\u6d88\u53bb\u3059\u308bfifo\n*/\nvoid clear_fifo(struct st_fifo *fp)\n{\n\tfp->wp = fp->buf;\n\tfp->rp = fp->buf;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @return\tfifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n\tif(fp->wp ", "parent": 181, "children": [211, 215, 219], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 92, "column": 2}}, {"id": 211, "type": "assignment_expression", "text": "\u30c7\u30fc\u30bf", "parent": 210, "children": [212, 213, 214], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 8}}, {"id": 212, "type": "identifier", "text": "\u30c7", "parent": 211, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 6}}, {"id": 213, "type": "=", "text": "\u30fc", "parent": 211, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 7}}, {"id": 214, "type": "number_literal", "text": "\u30bf", "parent": 211, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 8}}, {"id": 215, "type": "binary_expression", "text": "\u3066\u6d88\u53bb\u3059\u308bfif", "parent": 210, "children": [216, 217, 218], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 18}}, {"id": 216, "type": "identifier", "text": "\u3066", "parent": 215, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 217, "type": "<", "text": "\u6d88", "parent": 215, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 12}}, {"id": 218, "type": "identifier", "text": "\u53bb\u3059\u308bfif", "parent": 215, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 18}}, {"id": 219, "type": "update_expression", "text": "*/\n", "parent": 210, "children": [220, 221], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 23}}, {"id": 220, "type": "identifier", "text": "*", "parent": 219, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 21}}, {"id": 221, "type": "++", "text": "/\n", "parent": 219, "children": [], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 23}}, {"id": 222, "type": "declaration", "text": "lear_fifo(struct s", "parent": 210, "children": [223, 226], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 20}}, {"id": 223, "type": "sized_type_specifier", "text": "lear_fifo(str", "parent": 222, "children": [224, 225], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 15}}, {"id": 224, "type": "unsigned", "text": "lear_fif", "parent": 223, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 10}}, {"id": 225, "type": "primitive_type", "text": "(str", "parent": 223, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 15}}, {"id": 226, "type": "pointer_declarator", "text": "ct ", "parent": 222, "children": [227, 228], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 19}}, {"id": 227, "type": "*", "text": "c", "parent": 226, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 17}}, {"id": 228, "type": "identifier", "text": "t ", "parent": 226, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 19}}, {"id": 229, "type": "if_statement", "text": "fo *fp)\n{\n\tfp->wp = fp->buf;\n\tfp->rp = fp->buf;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @return\tfifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n\tif(fp->", "parent": 210, "children": [230, 292], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 91, "column": 3}}, {"id": 230, "type": "parenthesized_expression", "text": " *fp)\n{\n\tfp->wp = ", "parent": 229, "children": [231], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 22}}, {"id": 231, "type": "binary_expression", "text": "*fp)\n{\n\tfp->wp =", "parent": 230, "children": [232, 235, 236], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 21}}, {"id": 232, "type": "field_expression", "text": "*fp)\n{", "parent": 231, "children": [233, 234], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 11}}, {"id": 233, "type": "identifier", "text": "*f", "parent": 232, "children": [], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 7}}, {"id": 234, "type": "->", "text": "p)", "parent": 232, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 9}}, {"id": 235, "type": "!=", "text": "\tf", "parent": 231, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 14}}, {"id": 236, "type": "field_expression", "text": "->wp =", "parent": 231, "children": [237, 238], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 21}}, {"id": 237, "type": "->", "text": "wp", "parent": 236, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 19}}, {"id": 238, "type": "field_identifier", "text": " =", "parent": 236, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 21}}, {"id": 239, "type": "assignment_expression", "text": "f;\n\tfp->rp = fp", "parent": 229, "children": [240, 243, 244], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 18}}, {"id": 240, "type": "pointer_expression", "text": "f;\n\tf", "parent": 239, "children": [241, 242], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 8}}, {"id": 241, "type": "*", "text": "f", "parent": 240, "children": [], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 4}}, {"id": 242, "type": "identifier", "text": ";\n\tf", "parent": 240, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 243, "type": "=", "text": "-", "parent": 239, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 10}}, {"id": 244, "type": "pointer_expression", "text": "rp = fp", "parent": 239, "children": [245, 246], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 18}}, {"id": 245, "type": "*", "text": "r", "parent": 244, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 12}}, {"id": 246, "type": "field_expression", "text": "p = fp", "parent": 244, "children": [247, 248, 249], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 18}}, {"id": 247, "type": "identifier", "text": "p ", "parent": 246, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 14}}, {"id": 248, "type": "->", "text": "= ", "parent": 246, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 16}}, {"id": 249, "type": "field_identifier", "text": "fp", "parent": 246, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 18}}, {"id": 250, "type": "update_expression", "text": ";\n}\n\n/*", "parent": 229, "children": [251, 252], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 10}}, {"id": 251, "type": "identifier", "text": ";\n}\n", "parent": 250, "children": [], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 7}}, {"id": 252, "type": "++", "text": "/*", "parent": 250, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 10}}, {"id": 253, "type": "assignment_expression", "text": "brief fifo\u306b\u66f8\u304d\u8fbc\u307e", "parent": 229, "children": [254, 255, 256], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 18}}, {"id": 254, "type": "identifier", "text": "br", "parent": 253, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 5}}, {"id": 255, "type": "=", "text": "e", "parent": 253, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 7}}, {"id": 256, "type": "binary_expression", "text": " fifo\u306b\u66f8\u304d\u8fbc\u307e", "parent": 253, "children": [257, 260, 261], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 18}}, {"id": 257, "type": "field_expression", "text": " fifo\u306b", "parent": 256, "children": [258, 259], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 14}}, {"id": 258, "type": "identifier", "text": " f", "parent": 257, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 10}}, {"id": 259, "type": "field_identifier", "text": "o\u306b", "parent": 257, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 14}}, {"id": 260, "type": "+", "text": "\u304d", "parent": 256, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 16}}, {"id": 261, "type": "number_literal", "text": "\u307e", "parent": 256, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 18}}, {"id": 262, "type": "if_statement", "text": "\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @ret", "parent": 229, "children": [263], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 87, "column": 4}}, {"id": 263, "type": "parenthesized_expression", "text": "\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t", "parent": 262, "children": [264], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 31}}, {"id": 264, "type": "binary_expression", "text": "\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp", "parent": 263, "children": [265, 266, 267], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 30}}, {"id": 265, "type": "identifier", "text": "\u30b5\u30a4", "parent": 264, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 8}}, {"id": 266, "type": ">=", "text": "\u3092\u8fd4", "parent": 264, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 11}}, {"id": 267, "type": "pointer_expression", "text": "\n\n @param[in]\tfp", "parent": 264, "children": [268, 269], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 30}}, {"id": 268, "type": "&", "text": "\n", "parent": 267, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 13}}, {"id": 269, "type": "subscript_expression", "text": "\n @param[in]\tfp", "parent": 267, "children": [270, 274], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 30}}, {"id": 270, "type": "field_expression", "text": "\n @pa", "parent": 269, "children": [271, 272, 273], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 20}}, {"id": 271, "type": "identifier", "text": "\n ", "parent": 270, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 15}}, {"id": 272, "type": "->", "text": " ", "parent": 270, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 17}}, {"id": 273, "type": "field_identifier", "text": "@pa", "parent": 270, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 20}}, {"id": 274, "type": "field_expression", "text": "am[in]\tf", "parent": 269, "children": [275, 276, 277], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 29}}, {"id": 275, "type": "identifier", "text": "am", "parent": 274, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 23}}, {"id": 276, "type": "->", "text": "[i", "parent": 274, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 25}}, {"id": 277, "type": "field_identifier", "text": "n]\tf", "parent": 274, "children": [], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 29}}, {"id": 278, "type": "assignment_expression", "text": "\u3092\u8aad\u307f\u51fa\u3059fifo\n\n ", "parent": 262, "children": [279, 280, 281], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 16}}, {"id": 279, "type": "identifier", "text": "\u3092\u8aad", "parent": 278, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 6}}, {"id": 280, "type": "=", "text": "\u51fa", "parent": 278, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 8}}, {"id": 281, "type": "field_expression", "text": "fifo\n\n ", "parent": 278, "children": [282, 283, 284], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 16}}, {"id": 282, "type": "identifier", "text": "fi", "parent": 281, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 11}}, {"id": 283, "type": "->", "text": "fo", "parent": 281, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 13}}, {"id": 284, "type": "field_identifier", "text": "\n\n ", "parent": 281, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 16}}, {"id": 285, "type": "assignment_expression", "text": "fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066", "parent": 229, "children": [286, 290, 291], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 14}}, {"id": 286, "type": "field_expression", "text": "fifo\u306b\u66f8", "parent": 285, "children": [287, 288, 289], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 9}}, {"id": 287, "type": "identifier", "text": "fi", "parent": 286, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 5}}, {"id": 288, "type": "->", "text": "fo", "parent": 286, "children": [], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 7}}, {"id": 289, "type": "field_identifier", "text": "\u306b\u66f8", "parent": 286, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 9}}, {"id": 290, "type": "=", "text": "\u8fbc", "parent": 285, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 11}}, {"id": 291, "type": "identifier", "text": "\u308c\u3066", "parent": 285, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 14}}, {"id": 292, "type": "else_clause", "text": "\u30a4\u30ba\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n\tif(fp->", "parent": 229, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 91, "column": 3}}, {"id": 293, "type": "return_statement", "text": "gned int fifo_", "parent": 292, "children": [294], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 17}}, {"id": 294, "type": "cast_expression", "text": "t fifo", "parent": 293, "children": [295, 297], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 16}}, {"id": 295, "type": "type_descriptor", "text": " fi", "parent": 294, "children": [296], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 14}}, {"id": 296, "type": "primitive_type", "text": " fi", "parent": 295, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 14}}, {"id": 297, "type": "identifier", "text": "o", "parent": 294, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 16}}, {"id": 298, "type": "return_statement", "text": "fp->rp) {\n\t\tre", "parent": 181, "children": [299], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 15}}, {"id": 299, "type": "cast_expression", "text": " {\n\t\tr", "parent": 298, "children": [300], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 14}}, {"id": 300, "type": "identifier", "text": "r", "parent": 299, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 14}}, {"id": 301, "type": "function_definition", "text": "\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @return\tfifo\u306b\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\n*", "parent": null, "children": [302, 303], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 302, "type": "primitive_type", "text": "\u30fc\u30bf\u306e\u30b5", "parent": 301, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 4}}, {"id": 303, "type": "function_declarator", "text": "\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba", "parent": 301, "children": [304, 305], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 35}}, {"id": 304, "type": "identifier", "text": "\u30ba\u3092\u8fd4\u3059\n\n @", "parent": 303, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 15}}, {"id": 305, "type": "parameter_list", "text": "param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba", "parent": 303, "children": [306], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 35}}, {"id": 306, "type": "parameter_declaration", "text": "aram[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4", "parent": 305, "children": [307, 310], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 34}}, {"id": 307, "type": "struct_specifier", "text": "aram[in]\tfp\t\u30c7\u30fc", "parent": 306, "children": [308, 309], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 30}}, {"id": 308, "type": "struct", "text": "aram[i", "parent": 307, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 22}}, {"id": 309, "type": "type_identifier", "text": "]\tfp\t\u30c7\u30fc", "parent": 307, "children": [], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 102, "column": 30}}, {"id": 310, "type": "pointer_declarator", "text": "\u306e\u30b5\u30a4", "parent": 306, "children": [311, 312], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 34}}, {"id": 311, "type": "*", "text": "\u306e", "parent": 310, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 32}}, {"id": 312, "type": "identifier", "text": "\u30b5\u30a4", "parent": 310, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 34}}, {"id": 313, "type": "assignment_expression", "text": "\u3059fifo\n\n @retur", "parent": 301, "children": [314, 317, 318], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 17}}, {"id": 314, "type": "field_expression", "text": "\u3059fifo\n", "parent": 313, "children": [315, 316], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 7}}, {"id": 315, "type": "identifier", "text": "\u3059f", "parent": 314, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 3}}, {"id": 316, "type": "field_identifier", "text": "o\n", "parent": 314, "children": [], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 7}}, {"id": 317, "type": "=", "text": " ", "parent": 313, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 9}}, {"id": 318, "type": "field_expression", "text": " @retur", "parent": 313, "children": [319, 320, 321], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 17}}, {"id": 319, "type": "identifier", "text": " @", "parent": 318, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 12}}, {"id": 320, "type": "->", "text": "re", "parent": 318, "children": [], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 14}}, {"id": 321, "type": "field_identifier", "text": "tur", "parent": 318, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 17}}, {"id": 322, "type": "assignment_expression", "text": "ifo\u306b\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u30b5\u30a4", "parent": 301, "children": [323, 326, 327], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 17}}, {"id": 323, "type": "field_expression", "text": "ifo\u306b\u66f8\u304d", "parent": 322, "children": [324, 325], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 7}}, {"id": 324, "type": "->", "text": "o\u306b", "parent": 323, "children": [], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 5}}, {"id": 325, "type": "field_identifier", "text": "\u66f8\u304d", "parent": 323, "children": [], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 7}}, {"id": 326, "type": "=", "text": "\u307f", "parent": 322, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 9}}, {"id": 327, "type": "field_expression", "text": "\u80fd\u306a\u30c7\u30fc\u30bf\u30b5\u30a4", "parent": 322, "children": [328, 329, 330], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 17}}, {"id": 328, "type": "identifier", "text": "\u80fd\u306a", "parent": 327, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 12}}, {"id": 329, "type": "->", "text": "\u30c7\u30fc", "parent": 327, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 14}}, {"id": 330, "type": "field_identifier", "text": "\u30bf\u30b5\u30a4", "parent": 327, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 17}}, {"id": 331, "type": "function_definition", "text": "\n @brief fifo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u6368\u3066\u308b\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u6368\u3066\u3089\u308c\u308bfifo\n @param[in]\tlength\t\u6368\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u6368\u3066\u305f\u30b5\u30a4\u30ba\n*/\nint drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n\tunsigned int", "parent": null, "children": [332, 335], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 332, "type": "sized_type_specifier", "text": "\n @brief f", "parent": 331, "children": [333, 334], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 12}}, {"id": 333, "type": "unsigned", "text": "\n @bri", "parent": 332, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 8}}, {"id": 334, "type": "primitive_type", "text": "f f", "parent": 332, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 12}}, {"id": 335, "type": "function_declarator", "text": "fo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u6368\u3066\u308b\n\n @param[in]\tfp", "parent": 331, "children": [336, 337], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 42}}, {"id": 336, "type": "identifier", "text": "fo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u6368", "parent": 335, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 22}}, {"id": 337, "type": "parameter_list", "text": "\u3066\u308b\n\n @param[in]\tfp", "parent": 335, "children": [338], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 42}}, {"id": 338, "type": "parameter_declaration", "text": "\u308b\n\n @param[in]\tf", "parent": 337, "children": [339, 342], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 41}}, {"id": 339, "type": "struct_specifier", "text": "\u308b\n\n @param[i", "parent": 338, "children": [340, 341], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 37}}, {"id": 340, "type": "struct", "text": "\u308b\n\n ", "parent": 339, "children": [], "start_point": {"row": 115, "column": 23}, "end_point": {"row": 115, "column": 29}}, {"id": 341, "type": "type_identifier", "text": "param[i", "parent": 339, "children": [], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 37}}, {"id": 342, "type": "pointer_declarator", "text": "]\tf", "parent": 338, "children": [343], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 41}}, {"id": 343, "type": "identifier", "text": "\tf", "parent": 342, "children": [], "start_point": {"row": 115, "column": 39}, "end_point": {"row": 115, "column": 41}}, {"id": 344, "type": "if_statement", "text": "\u304c\u6368\u3066\u3089\u308c\u308bfifo\n @param[in]\tlength\t\u6368\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u6368\u3066\u305f\u30b5\u30a4\u30ba\n*/\nint drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n\tunsigned i", "parent": 331, "children": [345, 371], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 121, "column": 2}}, {"id": 345, "type": "parenthesized_expression", "text": "\u3066\u3089\u308c\u308bfifo\n @param", "parent": 344, "children": [346], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 21}}, {"id": 346, "type": "binary_expression", "text": "\u3089\u308c\u308bfifo\n @para", "parent": 345, "children": [347, 350, 351], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 20}}, {"id": 347, "type": "field_expression", "text": "\u3089\u308c\u308bfif", "parent": 346, "children": [348, 349], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 10}}, {"id": 348, "type": "identifier", "text": "\u3089\u308c", "parent": 347, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 6}}, {"id": 349, "type": "->", "text": "\u308bf", "parent": 347, "children": [], "start_point": {"row": 117, "column": 6}, "end_point": {"row": 117, "column": 8}}, {"id": 350, "type": ">=", "text": "\n ", "parent": 346, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 13}}, {"id": 351, "type": "field_expression", "text": " @para", "parent": 346, "children": [352, 353, 354], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 20}}, {"id": 352, "type": "identifier", "text": " @", "parent": 351, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 16}}, {"id": 353, "type": "->", "text": "pa", "parent": 351, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 18}}, {"id": 354, "type": "field_identifier", "text": "ra", "parent": 351, "children": [], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 20}}, {"id": 355, "type": "return_statement", "text": "length\t\u6368\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u6368\u3066\u305f\u30b5\u30a4\u30ba\n*/\n", "parent": 344, "children": [356], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 41}}, {"id": 356, "type": "cast_expression", "text": "\u6368\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u6368\u3066\u305f\u30b5\u30a4\u30ba\n*/", "parent": 355, "children": [357, 361], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 40}}, {"id": 357, "type": "type_descriptor", "text": "\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n ", "parent": 356, "children": [358], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 22}}, {"id": 358, "type": "sized_type_specifier", "text": "\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n ", "parent": 357, "children": [359, 360], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 22}}, {"id": 359, "type": "unsigned", "text": "\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055", "parent": 358, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 18}}, {"id": 360, "type": "primitive_type", "text": "\n ", "parent": 358, "children": [], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 22}}, {"id": 361, "type": "parenthesized_expression", "text": "@return\t\u6368\u3066\u305f\u30b5\u30a4\u30ba\n*/", "parent": 356, "children": [362], "start_point": {"row": 118, "column": 23}, "end_point": {"row": 118, "column": 40}}, {"id": 362, "type": "binary_expression", "text": "return\t\u6368\u3066\u305f\u30b5\u30a4\u30ba\n*", "parent": 361, "children": [366, 367], "start_point": {"row": 118, "column": 24}, "end_point": {"row": 118, "column": 39}}, {"id": 363, "type": "identifier", "text": "re", "parent": 362, "children": [], "start_point": {"row": 118, "column": 24}, "end_point": {"row": 118, "column": 26}}, {"id": 364, "type": "->", "text": "tu", "parent": 362, "children": [], "start_point": {"row": 118, "column": 26}, "end_point": {"row": 118, "column": 28}}, {"id": 365, "type": "field_identifier", "text": "rn", "parent": 362, "children": [], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 30}}, {"id": 366, "type": "-", "text": "\u6368", "parent": 362, "children": [], "start_point": {"row": 118, "column": 31}, "end_point": {"row": 118, "column": 32}}, {"id": 367, "type": "field_expression", "text": "\u305f\u30b5\u30a4\u30ba\n*", "parent": 362, "children": [368, 369, 370], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 39}}, {"id": 368, "type": "identifier", "text": "\u305f\u30b5", "parent": 367, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 35}}, {"id": 369, "type": "->", "text": "\u30a4\u30ba", "parent": 367, "children": [], "start_point": {"row": 118, "column": 35}, "end_point": {"row": 118, "column": 37}}, {"id": 370, "type": "field_identifier", "text": "\n*", "parent": 367, "children": [], "start_point": {"row": 118, "column": 37}, "end_point": {"row": 118, "column": 39}}, {"id": 371, "type": "else_clause", "text": "drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n\tunsigned i", "parent": 344, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 121, "column": 2}}, {"id": 372, "type": "return_statement", "text": "(struct st_fifo *fp, unsigned int length)\n{\n\tunsigne", "parent": 371, "children": [373], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 54}}, {"id": 373, "type": "cast_expression", "text": " st_fifo *fp, unsigned int length)\n{\n\tunsign", "parent": 372, "children": [374, 378], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 53}}, {"id": 374, "type": "type_descriptor", "text": "st_fifo *fp,", "parent": 373, "children": [375], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 22}}, {"id": 375, "type": "sized_type_specifier", "text": "st_fifo *fp,", "parent": 374, "children": [376, 377], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 22}}, {"id": 376, "type": "unsigned", "text": "st_fifo ", "parent": 375, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 18}}, {"id": 377, "type": "primitive_type", "text": "fp,", "parent": 375, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 22}}, {"id": 378, "type": "parenthesized_expression", "text": "unsigned int length)\n{\n\tunsign", "parent": 373, "children": [379], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 53}}, {"id": 379, "type": "binary_expression", "text": "nsigned int length)\n{\n\tunsig", "parent": 378, "children": [380, 384, 385], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 52}}, {"id": 380, "type": "field_expression", "text": "nsigned ", "parent": 379, "children": [381, 382, 383], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 32}}, {"id": 381, "type": "identifier", "text": "ns", "parent": 380, "children": [], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 26}}, {"id": 382, "type": "->", "text": "ig", "parent": 380, "children": [], "start_point": {"row": 120, "column": 26}, "end_point": {"row": 120, "column": 28}}, {"id": 383, "type": "field_identifier", "text": "ned ", "parent": 380, "children": [], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 32}}, {"id": 384, "type": "-", "text": "n", "parent": 379, "children": [], "start_point": {"row": 120, "column": 33}, "end_point": {"row": 120, "column": 34}}, {"id": 385, "type": "parenthesized_expression", "text": " length)\n{\n\tunsig", "parent": 379, "children": [386], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 52}}, {"id": 386, "type": "binary_expression", "text": "length)\n{\n\tunsi", "parent": 385, "children": [387, 391, 392], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 51}}, {"id": 387, "type": "field_expression", "text": "length", "parent": 386, "children": [388, 389, 390], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 42}}, {"id": 388, "type": "identifier", "text": "le", "parent": 387, "children": [], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 38}}, {"id": 389, "type": "->", "text": "ng", "parent": 387, "children": [], "start_point": {"row": 120, "column": 38}, "end_point": {"row": 120, "column": 40}}, {"id": 390, "type": "field_identifier", "text": "th", "parent": 387, "children": [], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 42}}, {"id": 391, "type": "-", "text": "\n", "parent": 386, "children": [], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 44}}, {"id": 392, "type": "field_expression", "text": "\n\tunsi", "parent": 386, "children": [393, 394, 395], "start_point": {"row": 120, "column": 45}, "end_point": {"row": 120, "column": 51}}, {"id": 393, "type": "identifier", "text": "\n\t", "parent": 392, "children": [], "start_point": {"row": 120, "column": 45}, "end_point": {"row": 120, "column": 47}}, {"id": 394, "type": "->", "text": "un", "parent": 392, "children": [], "start_point": {"row": 120, "column": 47}, "end_point": {"row": 120, "column": 49}}, {"id": 395, "type": "field_identifier", "text": "si", "parent": 392, "children": [], "start_point": {"row": 120, "column": 49}, "end_point": {"row": 120, "column": 51}}, {"id": 396, "type": "function_definition", "text": "t)i;\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n", "parent": null, "children": [397, 400], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 397, "type": "sized_type_specifier", "text": "t)i;\t// \u30d0\u30c3\u30d5\u30a1", "parent": 396, "children": [398, 399], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 12}}, {"id": 398, "type": "unsigned", "text": "t)i;\t// ", "parent": 397, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 8}}, {"id": 399, "type": "primitive_type", "text": "\u30c3\u30d5\u30a1", "parent": 397, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 12}}, {"id": 400, "type": "function_declarator", "text": "\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n", "parent": 396, "children": [401, 402], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 47}}, {"id": 401, "type": "identifier", "text": "\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\t", "parent": 400, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 27}}, {"id": 402, "type": "parameter_list", "text": "return (int)i;\n}\n", "parent": 400, "children": [403], "start_point": {"row": 131, "column": 27}, "end_point": {"row": 131, "column": 47}}, {"id": 403, "type": "parameter_declaration", "text": "eturn (int)i;\n}\n", "parent": 402, "children": [404, 407], "start_point": {"row": 131, "column": 28}, "end_point": {"row": 131, "column": 46}}, {"id": 404, "type": "struct_specifier", "text": "eturn (int)i;\n", "parent": 403, "children": [405, 406], "start_point": {"row": 131, "column": 28}, "end_point": {"row": 131, "column": 42}}, {"id": 405, "type": "struct", "text": "eturn ", "parent": 404, "children": [], "start_point": {"row": 131, "column": 28}, "end_point": {"row": 131, "column": 34}}, {"id": 406, "type": "type_identifier", "text": "int)i;\n", "parent": 404, "children": [], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 42}}, {"id": 407, "type": "pointer_declarator", "text": "\n", "parent": 403, "children": [408, 409], "start_point": {"row": 131, "column": 43}, "end_point": {"row": 131, "column": 46}}, {"id": 408, "type": "*", "text": "\n", "parent": 407, "children": [], "start_point": {"row": 131, "column": 43}, "end_point": {"row": 131, "column": 44}}, {"id": 409, "type": "identifier", "text": "", "parent": 407, "children": [], "start_point": {"row": 131, "column": 44}, "end_point": {"row": 131, "column": 46}}, {"id": 410, "type": "if_statement", "text": "", "parent": 396, "children": [411, 449], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 137, "column": 2}}, {"id": 411, "type": "parenthesized_expression", "text": "", "parent": 410, "children": [412], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 21}}, {"id": 412, "type": "binary_expression", "text": "", "parent": 411, "children": [413, 417, 418], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 20}}, {"id": 413, "type": "field_expression", "text": "", "parent": 412, "children": [414, 415, 416], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 10}}, {"id": 414, "type": "identifier", "text": "", "parent": 413, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 6}}, {"id": 415, "type": "->", "text": "", "parent": 413, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 8}}, {"id": 416, "type": "field_identifier", "text": "", "parent": 413, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 10}}, {"id": 417, "type": ">=", "text": "", "parent": 412, "children": [], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 133, "column": 13}}, {"id": 418, "type": "field_expression", "text": "", "parent": 412, "children": [419, 420, 421], "start_point": {"row": 133, "column": 14}, "end_point": {"row": 133, "column": 20}}, {"id": 419, "type": "identifier", "text": "", "parent": 418, "children": [], "start_point": {"row": 133, "column": 14}, "end_point": {"row": 133, "column": 16}}, {"id": 420, "type": "->", "text": "", "parent": 418, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 18}}, {"id": 421, "type": "field_identifier", "text": "", "parent": 418, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 20}}, {"id": 422, "type": "return_statement", "text": "", "parent": 410, "children": [423], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 58}}, {"id": 423, "type": "cast_expression", "text": "", "parent": 422, "children": [424, 428], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 57}}, {"id": 424, "type": "type_descriptor", "text": "", "parent": 423, "children": [425], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 22}}, {"id": 425, "type": "sized_type_specifier", "text": "", "parent": 424, "children": [426, 427], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 22}}, {"id": 426, "type": "unsigned", "text": "", "parent": 425, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 18}}, {"id": 427, "type": "primitive_type", "text": "", "parent": 425, "children": [], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 134, "column": 22}}, {"id": 428, "type": "parenthesized_expression", "text": "", "parent": 423, "children": [429], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 57}}, {"id": 429, "type": "binary_expression", "text": "", "parent": 428, "children": [430, 447, 448], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 56}}, {"id": 430, "type": "binary_expression", "text": "", "parent": 429, "children": [431, 435, 436], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 52}}, {"id": 431, "type": "field_expression", "text": "", "parent": 430, "children": [432, 433, 434], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 32}}, {"id": 432, "type": "identifier", "text": "", "parent": 431, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 26}}, {"id": 433, "type": "->", "text": "", "parent": 431, "children": [], "start_point": {"row": 134, "column": 26}, "end_point": {"row": 134, "column": 28}}, {"id": 434, "type": "field_identifier", "text": "", "parent": 431, "children": [], "start_point": {"row": 134, "column": 28}, "end_point": {"row": 134, "column": 32}}, {"id": 435, "type": "-", "text": "", "parent": 430, "children": [], "start_point": {"row": 134, "column": 33}, "end_point": {"row": 134, "column": 34}}, {"id": 436, "type": "parenthesized_expression", "text": "", "parent": 430, "children": [437], "start_point": {"row": 134, "column": 35}, "end_point": {"row": 134, "column": 52}}, {"id": 437, "type": "binary_expression", "text": "", "parent": 436, "children": [438, 442, 443], "start_point": {"row": 134, "column": 36}, "end_point": {"row": 134, "column": 51}}, {"id": 438, "type": "field_expression", "text": "", "parent": 437, "children": [439, 440, 441], "start_point": {"row": 134, "column": 36}, "end_point": {"row": 134, "column": 42}}, {"id": 439, "type": "identifier", "text": "", "parent": 438, "children": [], "start_point": {"row": 134, "column": 36}, "end_point": {"row": 134, "column": 38}}, {"id": 440, "type": "->", "text": "", "parent": 438, "children": [], "start_point": {"row": 134, "column": 38}, "end_point": {"row": 134, "column": 40}}, {"id": 441, "type": "field_identifier", "text": "", "parent": 438, "children": [], "start_point": {"row": 134, "column": 40}, "end_point": {"row": 134, "column": 42}}, {"id": 442, "type": "-", "text": "", "parent": 437, "children": [], "start_point": {"row": 134, "column": 43}, "end_point": {"row": 134, "column": 44}}, {"id": 443, "type": "field_expression", "text": "", "parent": 437, "children": [444, 445, 446], "start_point": {"row": 134, "column": 45}, "end_point": {"row": 134, "column": 51}}, {"id": 444, "type": "identifier", "text": "", "parent": 443, "children": [], "start_point": {"row": 134, "column": 45}, "end_point": {"row": 134, "column": 47}}, {"id": 445, "type": "->", "text": "", "parent": 443, "children": [], "start_point": {"row": 134, "column": 47}, "end_point": {"row": 134, "column": 49}}, {"id": 446, "type": "field_identifier", "text": "", "parent": 443, "children": [], "start_point": {"row": 134, "column": 49}, "end_point": {"row": 134, "column": 51}}, {"id": 447, "type": "-", "text": "", "parent": 429, "children": [], "start_point": {"row": 134, "column": 53}, "end_point": {"row": 134, "column": 54}}, {"id": 448, "type": "number_literal", "text": "", "parent": 429, "children": [], "start_point": {"row": 134, "column": 55}, "end_point": {"row": 134, "column": 56}}, {"id": 449, "type": "else_clause", "text": "", "parent": 410, "children": [], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 137, "column": 2}}, {"id": 450, "type": "return_statement", "text": "", "parent": 449, "children": [451], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 47}}, {"id": 451, "type": "cast_expression", "text": "", "parent": 450, "children": [452, 456], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 46}}, {"id": 452, "type": "type_descriptor", "text": "", "parent": 451, "children": [453], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 22}}, {"id": 453, "type": "sized_type_specifier", "text": "", "parent": 452, "children": [454, 455], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 22}}, {"id": 454, "type": "unsigned", "text": "", "parent": 453, "children": [], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 18}}, {"id": 455, "type": "primitive_type", "text": "", "parent": 453, "children": [], "start_point": {"row": 136, "column": 19}, "end_point": {"row": 136, "column": 22}}, {"id": 456, "type": "parenthesized_expression", "text": "", "parent": 451, "children": [457], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 46}}, {"id": 457, "type": "binary_expression", "text": "", "parent": 456, "children": [458, 469, 470], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 45}}, {"id": 458, "type": "parenthesized_expression", "text": "", "parent": 457, "children": [459], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 41}}, {"id": 459, "type": "binary_expression", "text": "", "parent": 458, "children": [460, 464, 465], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 40}}, {"id": 460, "type": "field_expression", "text": "", "parent": 459, "children": [461, 462, 463], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 31}}, {"id": 461, "type": "identifier", "text": "", "parent": 460, "children": [], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 27}}, {"id": 462, "type": "->", "text": "", "parent": 460, "children": [], "start_point": {"row": 136, "column": 27}, "end_point": {"row": 136, "column": 29}}, {"id": 463, "type": "field_identifier", "text": "", "parent": 460, "children": [], "start_point": {"row": 136, "column": 29}, "end_point": {"row": 136, "column": 31}}, {"id": 464, "type": "-", "text": "", "parent": 459, "children": [], "start_point": {"row": 136, "column": 32}, "end_point": {"row": 136, "column": 33}}, {"id": 465, "type": "field_expression", "text": "", "parent": 459, "children": [466, 467, 468], "start_point": {"row": 136, "column": 34}, "end_point": {"row": 136, "column": 40}}, {"id": 466, "type": "identifier", "text": "", "parent": 465, "children": [], "start_point": {"row": 136, "column": 34}, "end_point": {"row": 136, "column": 36}}, {"id": 467, "type": "->", "text": "", "parent": 465, "children": [], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 38}}, {"id": 468, "type": "field_identifier", "text": "", "parent": 465, "children": [], "start_point": {"row": 136, "column": 38}, "end_point": {"row": 136, "column": 40}}, {"id": 469, "type": "-", "text": "", "parent": 457, "children": [], "start_point": {"row": 136, "column": 42}, "end_point": {"row": 136, "column": 43}}, {"id": 470, "type": "number_literal", "text": "", "parent": 457, "children": [], "start_point": {"row": 136, "column": 44}, "end_point": {"row": 136, "column": 45}}, {"id": 471, "type": "function_definition", "text": "", "parent": null, "children": [472, 473], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 167, "column": 1}}, {"id": 472, "type": "primitive_type", "text": "", "parent": 471, "children": [], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 3}}, {"id": 473, "type": "function_declarator", "text": "", "parent": 471, "children": [474, 475], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 54}}, {"id": 474, "type": "identifier", "text": "", "parent": 473, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 13}}, {"id": 475, "type": "parameter_list", "text": "", "parent": 473, "children": [476, 483], "start_point": {"row": 148, "column": 13}, "end_point": {"row": 148, "column": 54}}, {"id": 476, "type": "parameter_declaration", "text": "", "parent": 475, "children": [477, 480], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 32}}, {"id": 477, "type": "struct_specifier", "text": "", "parent": 476, "children": [478, 479], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 28}}, {"id": 478, "type": "struct", "text": "", "parent": 477, "children": [], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 20}}, {"id": 479, "type": "type_identifier", "text": "", "parent": 477, "children": [], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 28}}, {"id": 480, "type": "pointer_declarator", "text": "", "parent": 476, "children": [481, 482], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 32}}, {"id": 481, "type": "*", "text": "", "parent": 480, "children": [], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 30}}, {"id": 482, "type": "identifier", "text": "", "parent": 480, "children": [], "start_point": {"row": 148, "column": 30}, "end_point": {"row": 148, "column": 32}}, {"id": 483, "type": "parameter_declaration", "text": "", "parent": 475, "children": [484, 487], "start_point": {"row": 148, "column": 34}, "end_point": {"row": 148, "column": 53}}, {"id": 484, "type": "sized_type_specifier", "text": "", "parent": 483, "children": [485, 486], "start_point": {"row": 148, "column": 34}, "end_point": {"row": 148, "column": 46}}, {"id": 485, "type": "unsigned", "text": "", "parent": 484, "children": [], "start_point": {"row": 148, "column": 34}, "end_point": {"row": 148, "column": 42}}, {"id": 486, "type": "primitive_type", "text": "", "parent": 484, "children": [], "start_point": {"row": 148, "column": 43}, "end_point": {"row": 148, "column": 46}}, {"id": 487, "type": "identifier", "text": "", "parent": 483, "children": [], "start_point": {"row": 148, "column": 47}, "end_point": {"row": 148, "column": 53}}, {"id": 488, "type": "declaration", "text": "", "parent": 471, "children": [489, 492], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 16}}, {"id": 489, "type": "sized_type_specifier", "text": "", "parent": 488, "children": [490, 491], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 13}}, {"id": 490, "type": "unsigned", "text": "", "parent": 489, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 9}}, {"id": 491, "type": "primitive_type", "text": "", "parent": 489, "children": [], "start_point": {"row": 150, "column": 10}, "end_point": {"row": 150, "column": 13}}, {"id": 492, "type": "identifier", "text": "", "parent": 488, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 15}}, {"id": 493, "type": "for_statement", "text": "", "parent": 471, "children": [494, 498, 502], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 164, "column": 2}}, {"id": 494, "type": "assignment_expression", "text": "", "parent": 493, "children": [495, 496, 497], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 8}}, {"id": 495, "type": "identifier", "text": "", "parent": 494, "children": [], "start_point": {"row": 152, "column": 5}, "end_point": {"row": 152, "column": 6}}, {"id": 496, "type": "=", "text": "", "parent": 494, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 7}}, {"id": 497, "type": "number_literal", "text": "", "parent": 494, "children": [], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 8}}, {"id": 498, "type": "binary_expression", "text": "", "parent": 493, "children": [499, 500, 501], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 18}}, {"id": 499, "type": "identifier", "text": "", "parent": 498, "children": [], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 11}}, {"id": 500, "type": "<", "text": "", "parent": 498, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 12}}, {"id": 501, "type": "identifier", "text": "", "parent": 498, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 18}}, {"id": 502, "type": "update_expression", "text": "", "parent": 493, "children": [503, 504], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 23}}, {"id": 503, "type": "identifier", "text": "", "parent": 502, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 21}}, {"id": 504, "type": "++", "text": "", "parent": 502, "children": [], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 23}}, {"id": 505, "type": "declaration", "text": "", "parent": 493, "children": [506, 509], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 20}}, {"id": 506, "type": "sized_type_specifier", "text": "", "parent": 505, "children": [507, 508], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 15}}, {"id": 507, "type": "unsigned", "text": "", "parent": 506, "children": [], "start_point": {"row": 153, "column": 2}, "end_point": {"row": 153, "column": 10}}, {"id": 508, "type": "primitive_type", "text": "", "parent": 506, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 15}}, {"id": 509, "type": "pointer_declarator", "text": "", "parent": 505, "children": [510, 511], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 19}}, {"id": 510, "type": "*", "text": "", "parent": 509, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 17}}, {"id": 511, "type": "identifier", "text": "", "parent": 509, "children": [], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 19}}, {"id": 512, "type": "if_statement", "text": "", "parent": 493, "children": [513, 564], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 163, "column": 3}}, {"id": 513, "type": "parenthesized_expression", "text": "", "parent": 512, "children": [514], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 22}}, {"id": 514, "type": "binary_expression", "text": "", "parent": 513, "children": [515, 519, 520], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 21}}, {"id": 515, "type": "field_expression", "text": "", "parent": 514, "children": [516, 517, 518], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 11}}, {"id": 516, "type": "identifier", "text": "", "parent": 515, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 7}}, {"id": 517, "type": "->", "text": "", "parent": 515, "children": [], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 9}}, {"id": 518, "type": "field_identifier", "text": "", "parent": 515, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 11}}, {"id": 519, "type": "!=", "text": "", "parent": 514, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 14}}, {"id": 520, "type": "field_expression", "text": "", "parent": 514, "children": [521, 522, 523], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 21}}, {"id": 521, "type": "identifier", "text": "", "parent": 520, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 17}}, {"id": 522, "type": "->", "text": "", "parent": 520, "children": [], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 19}}, {"id": 523, "type": "field_identifier", "text": "", "parent": 520, "children": [], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 21}}, {"id": 524, "type": "assignment_expression", "text": "", "parent": 512, "children": [525, 526, 527], "start_point": {"row": 156, "column": 3}, "end_point": {"row": 156, "column": 18}}, {"id": 525, "type": "identifier", "text": "", "parent": 524, "children": [], "start_point": {"row": 156, "column": 3}, "end_point": {"row": 156, "column": 5}}, {"id": 526, "type": "=", "text": "", "parent": 524, "children": [], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 7}}, {"id": 527, "type": "binary_expression", "text": "", "parent": 524, "children": [528, 532, 533], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 18}}, {"id": 528, "type": "field_expression", "text": "", "parent": 527, "children": [529, 530, 531], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 14}}, {"id": 529, "type": "identifier", "text": "", "parent": 528, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 10}}, {"id": 530, "type": "->", "text": "", "parent": 528, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 12}}, {"id": 531, "type": "field_identifier", "text": "", "parent": 528, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 14}}, {"id": 532, "type": "+", "text": "", "parent": 527, "children": [], "start_point": {"row": 156, "column": 15}, "end_point": {"row": 156, "column": 16}}, {"id": 533, "type": "number_literal", "text": "", "parent": 527, "children": [], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 18}}, {"id": 534, "type": "if_statement", "text": "", "parent": 512, "children": [535], "start_point": {"row": 157, "column": 3}, "end_point": {"row": 159, "column": 4}}, {"id": 535, "type": "parenthesized_expression", "text": "", "parent": 534, "children": [536], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 31}}, {"id": 536, "type": "binary_expression", "text": "", "parent": 535, "children": [537, 538, 539], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 30}}, {"id": 537, "type": "identifier", "text": "", "parent": 536, "children": [], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 8}}, {"id": 538, "type": ">=", "text": "", "parent": 536, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 11}}, {"id": 539, "type": "pointer_expression", "text": "", "parent": 536, "children": [540, 541], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 30}}, {"id": 540, "type": "&", "text": "", "parent": 539, "children": [], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 13}}, {"id": 541, "type": "subscript_expression", "text": "", "parent": 539, "children": [542, 546], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 30}}, {"id": 542, "type": "field_expression", "text": "", "parent": 541, "children": [543, 544, 545], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 20}}, {"id": 543, "type": "identifier", "text": "", "parent": 542, "children": [], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 15}}, {"id": 544, "type": "->", "text": "", "parent": 542, "children": [], "start_point": {"row": 157, "column": 15}, "end_point": {"row": 157, "column": 17}}, {"id": 545, "type": "field_identifier", "text": "", "parent": 542, "children": [], "start_point": {"row": 157, "column": 17}, "end_point": {"row": 157, "column": 20}}, {"id": 546, "type": "field_expression", "text": "", "parent": 541, "children": [547, 548, 549], "start_point": {"row": 157, "column": 21}, "end_point": {"row": 157, "column": 29}}, {"id": 547, "type": "identifier", "text": "", "parent": 546, "children": [], "start_point": {"row": 157, "column": 21}, "end_point": {"row": 157, "column": 23}}, {"id": 548, "type": "->", "text": "", "parent": 546, "children": [], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 25}}, {"id": 549, "type": "field_identifier", "text": "", "parent": 546, "children": [], "start_point": {"row": 157, "column": 25}, "end_point": {"row": 157, "column": 29}}, {"id": 550, "type": "assignment_expression", "text": "", "parent": 534, "children": [551, 552, 553], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 16}}, {"id": 551, "type": "identifier", "text": "", "parent": 550, "children": [], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 6}}, {"id": 552, "type": "=", "text": "", "parent": 550, "children": [], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 8}}, {"id": 553, "type": "field_expression", "text": "", "parent": 550, "children": [554, 555, 556], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 16}}, {"id": 554, "type": "identifier", "text": "", "parent": 553, "children": [], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 11}}, {"id": 555, "type": "->", "text": "", "parent": 553, "children": [], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 13}}, {"id": 556, "type": "field_identifier", "text": "", "parent": 553, "children": [], "start_point": {"row": 158, "column": 13}, "end_point": {"row": 158, "column": 16}}, {"id": 557, "type": "assignment_expression", "text": "", "parent": 512, "children": [558, 562, 563], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 160, "column": 14}}, {"id": 558, "type": "field_expression", "text": "", "parent": 557, "children": [559, 560, 561], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 160, "column": 9}}, {"id": 559, "type": "identifier", "text": "", "parent": 558, "children": [], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 160, "column": 5}}, {"id": 560, "type": "->", "text": "", "parent": 558, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 7}}, {"id": 561, "type": "field_identifier", "text": "", "parent": 558, "children": [], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 9}}, {"id": 562, "type": "=", "text": "", "parent": 557, "children": [], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 11}}, {"id": 563, "type": "identifier", "text": "", "parent": 557, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 14}}, {"id": 564, "type": "else_clause", "text": "", "parent": 512, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 163, "column": 3}}, {"id": 565, "type": "return_statement", "text": "", "parent": 564, "children": [566], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 162, "column": 17}}, {"id": 566, "type": "cast_expression", "text": "", "parent": 565, "children": [567, 569], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 16}}, {"id": 567, "type": "type_descriptor", "text": "", "parent": 566, "children": [568], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 14}}, {"id": 568, "type": "primitive_type", "text": "", "parent": 567, "children": [], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 14}}, {"id": 569, "type": "identifier", "text": "", "parent": 566, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 16}}, {"id": 570, "type": "return_statement", "text": "", "parent": 471, "children": [571], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 15}}, {"id": 571, "type": "cast_expression", "text": "", "parent": 570, "children": [572, 574], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 14}}, {"id": 572, "type": "type_descriptor", "text": "", "parent": 571, "children": [573], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 12}}, {"id": 573, "type": "primitive_type", "text": "", "parent": 572, "children": [], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 12}}, {"id": 574, "type": "identifier", "text": "", "parent": 571, "children": [], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 14}}]}, "node_categories": {"declarations": {"functions": [3, 5, 55, 57, 181, 183, 301, 303, 331, 335, 396, 400, 471, 473], "variables": [8, 15, 22, 60, 67, 73, 77, 103, 186, 193, 200, 205, 222, 306, 338, 403, 476, 483, 488, 505], "classes": [9, 10, 61, 62, 187, 188, 307, 308, 339, 340, 404, 405, 477, 478], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [28, 35, 42, 49, 83, 84, 85, 97, 100, 111, 112, 119, 120, 123, 125, 126, 130, 137, 142, 143, 145, 150, 152, 157, 160, 164, 172, 177, 215, 219, 230, 231, 232, 236, 240, 244, 246, 250, 256, 257, 263, 264, 267, 269, 270, 274, 281, 286, 294, 299, 314, 318, 323, 327, 345, 346, 347, 351, 356, 361, 362, 367, 373, 378, 379, 380, 385, 386, 387, 392, 411, 412, 413, 418, 423, 428, 429, 430, 431, 436, 437, 438, 443, 451, 456, 457, 458, 459, 460, 465, 498, 502, 513, 514, 515, 520, 527, 528, 535, 536, 539, 541, 542, 546, 553, 558, 566, 571], "assignments": [27, 34, 41, 48, 93, 109, 134, 149, 163, 211, 239, 253, 278, 285, 313, 322, 494, 524, 550, 557], "loops": [92, 210, 493], "conditionals": [6, 11, 14, 16, 21, 23, 26, 29, 31, 33, 36, 38, 40, 43, 45, 47, 50, 52, 54, 58, 63, 66, 68, 72, 74, 76, 78, 81, 82, 86, 88, 89, 94, 98, 99, 101, 104, 113, 115, 118, 121, 127, 129, 131, 133, 135, 138, 140, 141, 144, 146, 148, 153, 155, 159, 161, 165, 167, 169, 175, 180, 184, 189, 192, 194, 199, 201, 204, 206, 209, 212, 216, 218, 220, 223, 228, 229, 233, 238, 242, 247, 249, 251, 254, 258, 259, 262, 265, 271, 273, 275, 277, 279, 282, 284, 287, 289, 291, 297, 300, 304, 309, 312, 315, 316, 319, 321, 325, 328, 330, 332, 336, 341, 343, 344, 348, 352, 354, 358, 363, 365, 368, 370, 375, 381, 383, 388, 390, 393, 395, 397, 401, 406, 409, 410, 414, 416, 419, 421, 425, 432, 434, 439, 441, 444, 446, 453, 461, 463, 466, 468, 474, 479, 482, 484, 487, 489, 492, 495, 499, 501, 503, 506, 511, 512, 516, 518, 521, 523, 525, 529, 531, 534, 537, 543, 545, 547, 549, 551, 554, 556, 559, 561, 563, 569, 574], "returns": [90, 171, 176, 293, 298, 355, 372, 422, 450, 565, 570], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 91, 96, 117, 214, 261, 448, 470, 497, 533], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "p = buf;\n\tfp->rp = buf;\n}\n\n/**\n @brief fifo\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308bfifo\n @param[in"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "uf;\n\tfp->rp = buf;\n}\n\n/**\n @brief fifo\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\n\n @param[in]\tfp\t"}, {"node_id": 55, "universal_type": "function", "name": "read_fifo", "text_snippet": "= fp->wp + 1;\n\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\tnp = fp->buf;\n\t\t}\n\n\t\tif(np != fp->rp) {\n\t\t\t*fp->wp"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "->wp + 1;\n\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\tnp = fp->buf;\n\t\t}\n\n\t\tif(np"}, {"node_id": 181, "universal_type": "function", "name": "clear_fifo", "text_snippet": "t)i;\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u5168\u3066\u6d88\u53bb\u3059\u308b\n\n @param[in]\tfp"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @return\tfifo\u306b\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\n*"}, {"node_id": 303, "universal_type": "function", "name": "unknown", "text_snippet": "\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba"}, {"node_id": 331, "universal_type": "function", "name": "drop_fifo", "text_snippet": "\n @brief fifo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u6368\u3066\u308b\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u6368\u3066\u3089\u308c\u308bfifo\n @param[in]\tlength\t\u6368\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t"}, {"node_id": 335, "universal_type": "function", "name": "unknown", "text_snippet": "fo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u6368\u3066\u308b\n\n @param[in]\tfp"}, {"node_id": 396, "universal_type": "function", "name": "unknown", "text_snippet": "t)i;\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n"}, {"node_id": 400, "universal_type": "function", "name": "unknown", "text_snippet": "\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "p = buf;\n}\n\n/*"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "p = bu"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "\tif(np >= &fp-"}, {"node_id": 62, "universal_type": "class", "name": "unknown", "text_snippet": "\tif(np"}, {"node_id": 187, "universal_type": "class", "name": "unknown", "text_snippet": "\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\tr"}, {"node_id": 188, "universal_type": "class", "name": "unknown", "text_snippet": "\u30d7\u30c6\u30a3\n\t\t"}, {"node_id": 307, "universal_type": "class", "name": "unknown", "text_snippet": "aram[in]\tfp\t\u30c7\u30fc"}, {"node_id": 308, "universal_type": "class", "name": "unknown", "text_snippet": "aram[i"}, {"node_id": 339, "universal_type": "class", "name": "unknown", "text_snippet": "\u308b\n\n @param[i"}, {"node_id": 340, "universal_type": "class", "name": "unknown", "text_snippet": "\u308b\n\n "}, {"node_id": 404, "universal_type": "class", "name": "unknown", "text_snippet": "eturn (int)i;\n"}, {"node_id": 405, "universal_type": "class", "name": "unknown", "text_snippet": "eturn "}], "import_statements": [{"node_id": 0, "text": "\n/**\n @brief\tfif"}, {"node_id": 1, "text": "\n/**\n "}]}, "original_source_code": "/** @file\n @brief\t\u6c4e\u7528\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\n\n @date\t2017.09.07\n @date\t2002.03.24\n @author\t<NAME>\n*/\n\n#include \"fifo.h\"\n\n/**\n @brief\tfifo\u3092\u521d\u671f\u5316\u3059\u308b\n\n @param[in] fp\t\u521d\u671f\u5316\u3059\u308bfifo\n @param[in] buf\tfifo\u3068\u306a\u308b\u30d0\u30c3\u30d5\u30a1\u30dd\u30a4\u30f3\u30bf\n @param[in] size\t\u30d0\u30c3\u30d5\u30a1\u306e\u30d0\u30a4\u30c8\u6570\n\n @note\t\u30d0\u30c3\u30d5\u30a1\u5185\u306b\u4fdd\u5b58\u3067\u304d\u308b\u30c7\u30fc\u30bf\u306f size-1 \u3068\u306a\u308b\n*/\nvoid init_fifo(struct st_fifo *fp, unsigned char *buf, unsigned int size)\n{\n\tfp->buf = buf;\n\tfp->size = size;\n\tfp->wp = buf;\n\tfp->rp = buf;\n}\n\n/**\n @brief fifo\u306b\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u8fbc\u3080\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308bfifo\n @param[in]\tdata\t\u66f8\u304d\u8fbc\u3080\u30c7\u30fc\u30bf\n @param[in]\tlength\t\u66f8\u304d\u8fbc\u3080\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u66f8\u304d\u8fbc\u307f\u30b5\u30a4\u30ba\n*/\nint write_fifo(struct st_fifo *fp, unsigned char *data, unsigned int length)\n{\n\tunsigned int i;\n\n\tif(fifo_free_size(fp) < length) {\n\t\treturn 0;\n\t}\n\n\tfor(i=0; i<length; i++) {\n\t\tunsigned char *np;\n\n\t\tnp = fp->wp + 1;\n\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\tnp = fp->buf;\n\t\t}\n\n\t\tif(np != fp->rp) {\n\t\t\t*fp->wp = *data;\n\t\t\tdata ++;\n\t\t\tfp->wp = np;\n\t\t} else {\n\t\t\treturn (int)i;\t// \u30d0\u30c3\u30d5\u30a1\u30d5\u30eb\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u8aad\u307f\u51fa\u3055\u308c\u308bfifo\n @param[out]\tdata\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u30dd\u30a4\u30f3\u30bf\n @param[in]\tlength\t\u8aad\u307f\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u8aad\u307f\u51fa\u3057\u30b5\u30a4\u30ba\n*/\nint read_fifo(struct st_fifo *fp, unsigned char *data, unsigned int length)\n{\n\tunsigned int i;\n\n\tfor(i=0; i<length; i++) {\n\t\tunsigned char *np;\n\n\t\tif(fp->rp != fp->wp) {\n\t\t\t*data = *fp->rp;\n\t\t\tdata ++;\n\n\t\t\tnp = fp->rp + 1;\n\t\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\t\tnp = fp->buf;\n\t\t\t}\n\t\t\tfp->rp = np;\n\t\t} else {\n\t\t\treturn (int)i;\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u5168\u3066\u6d88\u53bb\u3059\u308b\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u3092\u5168\u3066\u6d88\u53bb\u3059\u308bfifo\n*/\nvoid clear_fifo(struct st_fifo *fp)\n{\n\tfp->wp = fp->buf;\n\tfp->rp = fp->buf;\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @return\tfifo\u306b\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\n*/\nunsigned int fifo_size(struct st_fifo *fp)\n{\n\tif(fp->wp >= fp->rp) {\n\t\treturn (unsigned int)(fp->wp - fp->rp);\n\t} else {\n\t\treturn (unsigned int)(fp->size - (fp->rp - fp->wp));\n\t}\n}\n\n/**\n @brief fifo\u306b\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8aad\u307f\u51fa\u3059fifo\n\n @return\tfifo\u306b\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\n*/\nunsigned int fifo_free_size(struct st_fifo *fp)\n{\n\tif(fp->wp >= fp->rp) {\n\t\treturn (unsigned int)(fp->size - (fp->wp - fp->rp) - 1);\n\t} else {\n\t\treturn (unsigned int)((fp->rp - fp->wp) - 1);\n\t}\n}\n\n/**\n @brief fifo\u304b\u3089\u30c7\u30fc\u30bf\u3092\u6368\u3066\u308b\n\n @param[in]\tfp\t\u30c7\u30fc\u30bf\u304c\u6368\u3066\u3089\u308c\u308bfifo\n @param[in]\tlength\t\u6368\u3066\u308b\u30c7\u30fc\u30bf\u306e\u9577\u3055\n\n @return\t\u6368\u3066\u305f\u30b5\u30a4\u30ba\n*/\nint drop_fifo(struct st_fifo *fp, unsigned int length)\n{\n\tunsigned int i;\n\n\tfor(i=0; i<length; i++) {\n\t\tunsigned char *np;\n\n\t\tif(fp->rp != fp->wp) {\n\t\t\tnp = fp->rp + 1;\n\t\t\tif(np >= &fp->buf[fp->size]) {\n\t\t\t\tnp = fp->buf;\n\t\t\t}\n\t\t\tfp->rp = np;\n\t\t} else {\n\t\t\treturn (int)i;\t// \u30d0\u30c3\u30d5\u30a1\u30a8\u30f3\u30d7\u30c6\u30a3\n\t\t}\n\t}\n\n\treturn (int)i;\n}\n"}
80,864
c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> /* * COPYRIGHT * * permi.c * Copyright (C) 2014 Exstrom Laboratories LLC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * A copy of the GNU General Public License is available on the internet at: * http://www.gnu.org/copyleft/gpl.html * * or you can write to: * * The Free Software Foundation, Inc. * 675 Mass Ave * Cambridge, MA 02139, USA * * Exstrom Laboratories LLC contact: * stefan(AT)exstrom.com * * Exstrom Laboratories LLC * Longmont, CO 80503, USA * */ // Compile: gcc -lm -o permi permi.c int main( int argc, char *argv[] ) { if( argc < 2 ) { printf("usage: %s a1 a2 ... an\n", argv[0]); printf(" Generates permutations of the integers ai>=0.\n"); printf(" To generate all permutations they must be ordered a1<a2<...<an.\n"); printf(" Any other order will only generate permutations that are larger\n"); printf(" in lexicographic order.\n"); exit( -1 ); } int i, j, k, m, n = argc - 1; int *a = (int *)malloc((n+1)*sizeof(int)); a[0] = -1; for(i=1; i<=n; ++i) a[i] = atoi(argv[i]); do{ for(i=1; i<=n; ++i) printf("%d ",a[i]); printf("\n"); for(i=n-1; i>0 && a[i]>=a[i+1]; --i); if(i == 0) break; for(j=n; a[i]>=a[j]; --j); m = a[j]; a[j]=a[i]; a[i]=m; for(j=i+1, k=n; j<k; ++j, --k){ m = a[j]; a[j]=a[k]; a[k]=m;}} while(1); free(a); return(0); }
28.12
68
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n/*\n * COPYRIGHT\n *\n * permi.c\n * Copyright (C) 2014 Exstrom Laboratories LLC\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of the GNU General Public License is available on the internet at:\n * http://www.gnu.org/copyleft/gpl.html\n *\n * or you can write to:\n *\n * The Free Software Foundation, Inc.\n * 675 Mass Ave\n * Cambridge, MA 02139, USA\n *\n * Exstrom Laboratories LLC contact:\n * stefan(AT)exstrom.com\n *\n * Exstrom Laboratories LLC\n * Longmont, CO 80503, USA\n *\n */\n\n// Compile: gcc -lm -o permi permi.c\n\nint main( int argc, char *argv[] )\n{\n if( argc < 2 )\n {\n printf("usage: %s a1 a2 ... an\n", argv[0]);\n printf(" Generates permutations of the integers ai>=0.\n");\n printf(" To generate all permutations they must be ordered a1<a2<...<an.\n");\n printf(" Any other order will only generate permutations that are larger\n");\n printf(" in lexicographic order.\n");\n exit( -1 );\n }\n\n int i, j, k, m, n = argc - 1;\n int *a = (int *)malloc((n+1)*sizeof(int));\n a[0] = -1;\n for(i=1; i<=n; ++i) a[i] = atoi(argv[i]);\n do{\n for(i=1; i<=n; ++i) printf("%d ",a[i]);\n printf("\n");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}} while(1);\n\n free(a);\n return(0);\n}\n" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (comment) "/*\n * COPYRIGHT\n *\n * permi.c\n * Copyright (C) 2014 Exstrom Laboratories LLC\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of the GNU General Public License is available on the internet at:\n * http://www.gnu.org/copyleft/gpl.html\n *\n * or you can write to:\n *\n * The Free Software Foundation, Inc.\n * 675 Mass Ave\n * Cambridge, MA 02139, USA\n *\n * Exstrom Laboratories LLC contact:\n * stefan(AT)exstrom.com\n *\n * Exstrom Laboratories LLC\n * Longmont, CO 80503, USA\n *\n */" (comment) "// Compile: gcc -lm -o permi permi.c" (function_definition) "int main( int argc, char *argv[] )\n{\n if( argc < 2 )\n {\n printf("usage: %s a1 a2 ... an\n", argv[0]);\n printf(" Generates permutations of the integers ai>=0.\n");\n printf(" To generate all permutations they must be ordered a1<a2<...<an.\n");\n printf(" Any other order will only generate permutations that are larger\n");\n printf(" in lexicographic order.\n");\n exit( -1 );\n }\n\n int i, j, k, m, n = argc - 1;\n int *a = (int *)malloc((n+1)*sizeof(int));\n a[0] = -1;\n for(i=1; i<=n; ++i) a[i] = atoi(argv[i]);\n do{\n for(i=1; i<=n; ++i) printf("%d ",a[i]);\n printf("\n");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}} while(1);\n\n free(a);\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 if( argc < 2 )\n {\n printf("usage: %s a1 a2 ... an\n", argv[0]);\n printf(" Generates permutations of the integers ai>=0.\n");\n printf(" To generate all permutations they must be ordered a1<a2<...<an.\n");\n printf(" Any other order will only generate permutations that are larger\n");\n printf(" in lexicographic order.\n");\n exit( -1 );\n }\n\n int i, j, k, m, n = argc - 1;\n int *a = (int *)malloc((n+1)*sizeof(int));\n a[0] = -1;\n for(i=1; i<=n; ++i) a[i] = atoi(argv[i]);\n do{\n for(i=1; i<=n; ++i) printf("%d ",a[i]);\n printf("\n");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}} while(1);\n\n free(a);\n return(0);\n}" ({) "{" (if_statement) "if( argc < 2 )\n {\n printf("usage: %s a1 a2 ... an\n", argv[0]);\n printf(" Generates permutations of the integers ai>=0.\n");\n printf(" To generate all permutations they must be ordered a1<a2<...<an.\n");\n printf(" Any other order will only generate permutations that are larger\n");\n printf(" in lexicographic order.\n");\n exit( -1 );\n }" (if) "if" (parenthesized_expression) "( argc < 2 )" (() "(" (binary_expression) "argc < 2" (identifier) "argc" (<) "<" (number_literal) "2" ()) ")" (compound_statement) "{\n printf("usage: %s a1 a2 ... an\n", argv[0]);\n printf(" Generates permutations of the integers ai>=0.\n");\n printf(" To generate all permutations they must be ordered a1<a2<...<an.\n");\n printf(" Any other order will only generate permutations that are larger\n");\n printf(" in lexicographic order.\n");\n exit( -1 );\n }" ({) "{" (expression_statement) "printf("usage: %s a1 a2 ... an\n", argv[0]);" (call_expression) "printf("usage: %s a1 a2 ... an\n", argv[0])" (identifier) "printf" (argument_list) "("usage: %s a1 a2 ... an\n", argv[0])" (() "(" (string_literal) ""usage: %s a1 a2 ... an\n"" (") """ (string_content) "usage: %s a1 a2 ... an" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "printf(" Generates permutations of the integers ai>=0.\n");" (call_expression) "printf(" Generates permutations of the integers ai>=0.\n")" (identifier) "printf" (argument_list) "(" Generates permutations of the integers ai>=0.\n")" (() "(" (string_literal) "" Generates permutations of the integers ai>=0.\n"" (") """ (string_content) " Generates permutations of the integers ai>=0." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf(" To generate all permutations they must be ordered a1<a2<...<an.\n");" (call_expression) "printf(" To generate all permutations they must be ordered a1<a2<...<an.\n")" (identifier) "printf" (argument_list) "(" To generate all permutations they must be ordered a1<a2<...<an.\n")" (() "(" (string_literal) "" To generate all permutations they must be ordered a1<a2<...<an.\n"" (") """ (string_content) " To generate all permutations they must be ordered a1<a2<...<an." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf(" Any other order will only generate permutations that are larger\n");" (call_expression) "printf(" Any other order will only generate permutations that are larger\n")" (identifier) "printf" (argument_list) "(" Any other order will only generate permutations that are larger\n")" (() "(" (string_literal) "" Any other order will only generate permutations that are larger\n"" (") """ (string_content) " Any other order will only generate permutations that are larger" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf(" in lexicographic order.\n");" (call_expression) "printf(" in lexicographic order.\n")" (identifier) "printf" (argument_list) "(" in lexicographic order.\n")" (() "(" (string_literal) "" in lexicographic order.\n"" (") """ (string_content) " in lexicographic order." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit( -1 );" (call_expression) "exit( -1 )" (identifier) "exit" (argument_list) "( -1 )" (() "(" (number_literal) "-1" ()) ")" (;) ";" (}) "}" (declaration) "int i, j, k, m, n = argc - 1;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (,) "," (identifier) "k" (,) "," (identifier) "m" (,) "," (init_declarator) "n = argc - 1" (identifier) "n" (=) "=" (binary_expression) "argc - 1" (identifier) "argc" (-) "-" (number_literal) "1" (;) ";" (declaration) "int *a = (int *)malloc((n+1)*sizeof(int));" (primitive_type) "int" (init_declarator) "*a = (int *)malloc((n+1)*sizeof(int))" (pointer_declarator) "*a" (*) "*" (identifier) "a" (=) "=" (cast_expression) "(int *)malloc((n+1)*sizeof(int))" (() "(" (type_descriptor) "int *" (primitive_type) "int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc((n+1)*sizeof(int))" (identifier) "malloc" (argument_list) "((n+1)*sizeof(int))" (() "(" (binary_expression) "(n+1)*sizeof(int)" (parenthesized_expression) "(n+1)" (() "(" (binary_expression) "n+1" (identifier) "n" (+) "+" (number_literal) "1" ()) ")" (*) "*" (sizeof_expression) "sizeof(int)" (sizeof) "sizeof" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" ()) ")" (;) ";" (expression_statement) "a[0] = -1;" (assignment_expression) "a[0] = -1" (subscript_expression) "a[0]" (identifier) "a" ([) "[" (number_literal) "0" (]) "]" (=) "=" (number_literal) "-1" (;) ";" (for_statement) "for(i=1; i<=n; ++i) a[i] = atoi(argv[i]);" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i<=n" (identifier) "i" (<=) "<=" (identifier) "n" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (expression_statement) "a[i] = atoi(argv[i]);" (assignment_expression) "a[i] = atoi(argv[i])" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (=) "=" (call_expression) "atoi(argv[i])" (identifier) "atoi" (argument_list) "(argv[i])" (() "(" (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (do_statement) "do{\n for(i=1; i<=n; ++i) printf("%d ",a[i]);\n printf("\n");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}} while(1);" (do) "do" (compound_statement) "{\n for(i=1; i<=n; ++i) printf("%d ",a[i]);\n printf("\n");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}}" ({) "{" (for_statement) "for(i=1; i<=n; ++i) printf("%d ",a[i]);" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i<=n" (identifier) "i" (<=) "<=" (identifier) "n" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (expression_statement) "printf("%d ",a[i]);" (call_expression) "printf("%d ",a[i])" (identifier) "printf" (argument_list) "("%d ",a[i])" (() "(" (string_literal) ""%d "" (") """ (string_content) "%d " (") """ (,) "," (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (for_statement) "for(i=n-1; i>0 && a[i]>=a[i+1]; --i);" (for) "for" (() "(" (assignment_expression) "i=n-1" (identifier) "i" (=) "=" (binary_expression) "n-1" (identifier) "n" (-) "-" (number_literal) "1" (;) ";" (binary_expression) "i>0 && a[i]>=a[i+1]" (binary_expression) "i>0" (identifier) "i" (>) ">" (number_literal) "0" (&&) "&&" (binary_expression) "a[i]>=a[i+1]" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (>=) ">=" (subscript_expression) "a[i+1]" (identifier) "a" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (;) ";" (update_expression) "--i" (--) "--" (identifier) "i" ()) ")" (expression_statement) ";" (;) ";" (if_statement) "if(i == 0) break;" (if) "if" (parenthesized_expression) "(i == 0)" (() "(" (binary_expression) "i == 0" (identifier) "i" (==) "==" (number_literal) "0" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (for_statement) "for(j=n; a[i]>=a[j]; --j);" (for) "for" (() "(" (assignment_expression) "j=n" (identifier) "j" (=) "=" (identifier) "n" (;) ";" (binary_expression) "a[i]>=a[j]" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (>=) ">=" (subscript_expression) "a[j]" (identifier) "a" ([) "[" (identifier) "j" (]) "]" (;) ";" (update_expression) "--j" (--) "--" (identifier) "j" ()) ")" (expression_statement) ";" (;) ";" (expression_statement) "m = a[j];" (assignment_expression) "m = a[j]" (identifier) "m" (=) "=" (subscript_expression) "a[j]" (identifier) "a" ([) "[" (identifier) "j" (]) "]" (;) ";" (expression_statement) "a[j]=a[i];" (assignment_expression) "a[j]=a[i]" (subscript_expression) "a[j]" (identifier) "a" ([) "[" (identifier) "j" (]) "]" (=) "=" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "a[i]=m;" (assignment_expression) "a[i]=m" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (=) "=" (identifier) "m" (;) ";" (for_statement) "for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}" (for) "for" (() "(" (comma_expression) "j=i+1, k=n" (assignment_expression) "j=i+1" (identifier) "j" (=) "=" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (,) "," (assignment_expression) "k=n" (identifier) "k" (=) "=" (identifier) "n" (;) ";" (binary_expression) "j<k" (identifier) "j" (<) "<" (identifier) "k" (;) ";" (comma_expression) "++j, --k" (update_expression) "++j" (++) "++" (identifier) "j" (,) "," (update_expression) "--k" (--) "--" (identifier) "k" ()) ")" (compound_statement) "{\n m = a[j];\n a[j]=a[k];\n a[k]=m;}" ({) "{" (expression_statement) "m = a[j];" (assignment_expression) "m = a[j]" (identifier) "m" (=) "=" (subscript_expression) "a[j]" (identifier) "a" ([) "[" (identifier) "j" (]) "]" (;) ";" (expression_statement) "a[j]=a[k];" (assignment_expression) "a[j]=a[k]" (subscript_expression) "a[j]" (identifier) "a" ([) "[" (identifier) "j" (]) "]" (=) "=" (subscript_expression) "a[k]" (identifier) "a" ([) "[" (identifier) "k" (]) "]" (;) ";" (expression_statement) "a[k]=m;" (assignment_expression) "a[k]=m" (subscript_expression) "a[k]" (identifier) "a" ([) "[" (identifier) "k" (]) "]" (=) "=" (identifier) "m" (;) ";" (}) "}" (}) "}" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "free(a);" (call_expression) "free(a)" (identifier) "free" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (;) ";" (return_statement) "return(0);" (return) "return" (parenthesized_expression) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}"
473
0
{"language": "c", "success": true, "metadata": {"lines": 68, "avg_line_length": 28.12, "nodes": 281, "errors": 0, "source_hash": "6ed70b1fb813e2d22d1374cbe8ab58ce27f204e6854ce3929ec549db96151223", "categorized_nodes": 205}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <math.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": "<math.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "function_definition", "text": "int main( int argc, char *argv[] )\n{\n if( argc < 2 )\n {\n printf(\"usage: %s a1 a2 ... an\\n\", argv[0]);\n printf(\" Generates permutations of the integers ai>=0.\\n\");\n printf(\" To generate all permutations they must be ordered a1<a2<...<an.\\n\");\n printf(\" Any other order will only generate permutations that are larger\\n\");\n printf(\" in lexicographic order.\\n\");\n exit( -1 );\n }\n\n int i, j, k, m, n = argc - 1;\n int *a = (int *)malloc((n+1)*sizeof(int));\n a[0] = -1;\n for(i=1; i<=n; ++i) a[i] = atoi(argv[i]);\n do{\n for(i=1; i<=n; ++i) printf(\"%d \",a[i]);\n printf(\"\\n\");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}} while(1);\n\n free(a);\n return(0);\n}", "parent": null, "children": [13, 14], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 3}}, {"id": 14, "type": "function_declarator", "text": "main( int argc, char *argv[] )", "parent": 12, "children": [15, 16], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 34}}, {"id": 15, "type": "identifier", "text": "main", "parent": 14, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 16, "type": "parameter_list", "text": "( int argc, char *argv[] )", "parent": 14, "children": [17, 20], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 34}}, {"id": 17, "type": "parameter_declaration", "text": "int argc", "parent": 16, "children": [18, 19], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 18}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 13}}, {"id": 19, "type": "identifier", "text": "argc", "parent": 17, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 18}}, {"id": 20, "type": "parameter_declaration", "text": "char *argv[]", "parent": 16, "children": [21, 22], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 32}}, {"id": 21, "type": "primitive_type", "text": "char", "parent": 20, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 24}}, {"id": 22, "type": "pointer_declarator", "text": "*argv[]", "parent": 20, "children": [23, 24], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 32}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 26}}, {"id": 24, "type": "array_declarator", "text": "argv[]", "parent": 22, "children": [25], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 32}}, {"id": 25, "type": "identifier", "text": "argv", "parent": 24, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 30}}, {"id": 26, "type": "if_statement", "text": "if( argc < 2 )\n {\n printf(\"usage: %s a1 a2 ... an\\n\", argv[0]);\n printf(\" Generates permutations of the integers ai>=0.\\n\");\n printf(\" To generate all permutations they must be ordered a1<a2<...<an.\\n\");\n printf(\" Any other order will only generate permutations that are larger\\n\");\n printf(\" in lexicographic order.\\n\");\n exit( -1 );\n }", "parent": 12, "children": [27], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 50, "column": 5}}, {"id": 27, "type": "parenthesized_expression", "text": "( argc < 2 )", "parent": 26, "children": [28], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 16}}, {"id": 28, "type": "binary_expression", "text": "argc < 2", "parent": 27, "children": [29, 30, 31], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 14}}, {"id": 29, "type": "identifier", "text": "argc", "parent": 28, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 10}}, {"id": 30, "type": "<", "text": "<", "parent": 28, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 12}}, {"id": 31, "type": "number_literal", "text": "2", "parent": 28, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 14}}, {"id": 32, "type": "call_expression", "text": "printf(\"usage: %s a1 a2 ... an\\n\", argv[0])", "parent": 26, "children": [33, 34], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 49}}, {"id": 33, "type": "identifier", "text": "printf", "parent": 32, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 12}}, {"id": 34, "type": "argument_list", "text": "(\"usage: %s a1 a2 ... an\\n\", argv[0])", "parent": 32, "children": [35, 37], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 49}}, {"id": 35, "type": "string_literal", "text": "\"usage: %s a1 a2 ... an\\n\"", "parent": 34, "children": [36], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 39}}, {"id": 36, "type": "escape_sequence", "text": "\\n", "parent": 35, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 38}}, {"id": 37, "type": "subscript_expression", "text": "argv[0]", "parent": 34, "children": [38, 39], "start_point": {"row": 44, "column": 41}, "end_point": {"row": 44, "column": 48}}, {"id": 38, "type": "identifier", "text": "argv", "parent": 37, "children": [], "start_point": {"row": 44, "column": 41}, "end_point": {"row": 44, "column": 45}}, {"id": 39, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 44, "column": 46}, "end_point": {"row": 44, "column": 47}}, {"id": 40, "type": "call_expression", "text": "printf(\" Generates permutations of the integers ai>=0.\\n\")", "parent": 26, "children": [41, 42], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 65}}, {"id": 41, "type": "identifier", "text": "printf", "parent": 40, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 12}}, {"id": 42, "type": "argument_list", "text": "(\" Generates permutations of the integers ai>=0.\\n\")", "parent": 40, "children": [43], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 65}}, {"id": 43, "type": "string_literal", "text": "\" Generates permutations of the integers ai>=0.\\n\"", "parent": 42, "children": [44], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 64}}, {"id": 44, "type": "escape_sequence", "text": "\\n", "parent": 43, "children": [], "start_point": {"row": 45, "column": 61}, "end_point": {"row": 45, "column": 63}}, {"id": 45, "type": "call_expression", "text": "printf(\" To generate all permutations they must be ordered a1<a2<...<an.\\n\")", "parent": 26, "children": [46, 47], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 83}}, {"id": 46, "type": "identifier", "text": "printf", "parent": 45, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 12}}, {"id": 47, "type": "argument_list", "text": "(\" To generate all permutations they must be ordered a1<a2<...<an.\\n\")", "parent": 45, "children": [48], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 83}}, {"id": 48, "type": "string_literal", "text": "\" To generate all permutations they must be ordered a1<a2<...<an.\\n\"", "parent": 47, "children": [49], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 82}}, {"id": 49, "type": "escape_sequence", "text": "\\n", "parent": 48, "children": [], "start_point": {"row": 46, "column": 79}, "end_point": {"row": 46, "column": 81}}, {"id": 50, "type": "call_expression", "text": "printf(\" Any other order will only generate permutations that are larger\\n\")", "parent": 26, "children": [51, 52], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 83}}, {"id": 51, "type": "identifier", "text": "printf", "parent": 50, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 12}}, {"id": 52, "type": "argument_list", "text": "(\" Any other order will only generate permutations that are larger\\n\")", "parent": 50, "children": [53], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 83}}, {"id": 53, "type": "string_literal", "text": "\" Any other order will only generate permutations that are larger\\n\"", "parent": 52, "children": [54], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 82}}, {"id": 54, "type": "escape_sequence", "text": "\\n", "parent": 53, "children": [], "start_point": {"row": 47, "column": 79}, "end_point": {"row": 47, "column": 81}}, {"id": 55, "type": "call_expression", "text": "printf(\" in lexicographic order.\\n\")", "parent": 26, "children": [56, 57], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 43}}, {"id": 56, "type": "identifier", "text": "printf", "parent": 55, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 12}}, {"id": 57, "type": "argument_list", "text": "(\" in lexicographic order.\\n\")", "parent": 55, "children": [58], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 43}}, {"id": 58, "type": "string_literal", "text": "\" in lexicographic order.\\n\"", "parent": 57, "children": [59], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 42}}, {"id": 59, "type": "escape_sequence", "text": "\\n", "parent": 58, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 41}}, {"id": 60, "type": "call_expression", "text": "exit( -1 )", "parent": 26, "children": [61, 62], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 16}}, {"id": 61, "type": "identifier", "text": "exit", "parent": 60, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 10}}, {"id": 62, "type": "argument_list", "text": "( -1 )", "parent": 60, "children": [63], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 16}}, {"id": 63, "type": "number_literal", "text": "-1", "parent": 62, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 14}}, {"id": 64, "type": "declaration", "text": "int i, j, k, m, n = argc - 1;", "parent": 12, "children": [65, 66, 67, 68, 69, 70], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 31}}, {"id": 65, "type": "primitive_type", "text": "int", "parent": 64, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 5}}, {"id": 66, "type": "identifier", "text": "i", "parent": 64, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 7}}, {"id": 67, "type": "identifier", "text": "j", "parent": 64, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 10}}, {"id": 68, "type": "identifier", "text": "k", "parent": 64, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 13}}, {"id": 69, "type": "identifier", "text": "m", "parent": 64, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 16}}, {"id": 70, "type": "init_declarator", "text": "n = argc - 1", "parent": 64, "children": [71, 72, 73], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 30}}, {"id": 71, "type": "identifier", "text": "n", "parent": 70, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 73, "type": "binary_expression", "text": "argc - 1", "parent": 70, "children": [74, 75, 76], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 30}}, {"id": 74, "type": "identifier", "text": "argc", "parent": 73, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 26}}, {"id": 75, "type": "-", "text": "-", "parent": 73, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 28}}, {"id": 76, "type": "number_literal", "text": "1", "parent": 73, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 30}}, {"id": 77, "type": "declaration", "text": "int *a = (int *)malloc((n+1)*sizeof(int));", "parent": 12, "children": [78, 79], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 44}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 5}}, {"id": 79, "type": "init_declarator", "text": "*a = (int *)malloc((n+1)*sizeof(int))", "parent": 77, "children": [80, 83, 84], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 43}}, {"id": 80, "type": "pointer_declarator", "text": "*a", "parent": 79, "children": [81, 82], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 8}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 7}}, {"id": 82, "type": "identifier", "text": "a", "parent": 80, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 8}}, {"id": 83, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 84, "type": "cast_expression", "text": "(int *)malloc((n+1)*sizeof(int))", "parent": 79, "children": [85, 89], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 43}}, {"id": 85, "type": "type_descriptor", "text": "int *", "parent": 84, "children": [86, 87], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 17}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 85, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 15}}, {"id": 87, "type": "abstract_pointer_declarator", "text": "*", "parent": 85, "children": [88], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 17}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 17}}, {"id": 89, "type": "call_expression", "text": "malloc((n+1)*sizeof(int))", "parent": 84, "children": [90, 91], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 43}}, {"id": 90, "type": "identifier", "text": "malloc", "parent": 89, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 24}}, {"id": 91, "type": "argument_list", "text": "((n+1)*sizeof(int))", "parent": 89, "children": [92], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 43}}, {"id": 92, "type": "binary_expression", "text": "(n+1)*sizeof(int)", "parent": 91, "children": [93, 98, 99], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 42}}, {"id": 93, "type": "parenthesized_expression", "text": "(n+1)", "parent": 92, "children": [94], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 30}}, {"id": 94, "type": "binary_expression", "text": "n+1", "parent": 93, "children": [95, 96, 97], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 29}}, {"id": 95, "type": "identifier", "text": "n", "parent": 94, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 27}}, {"id": 96, "type": "+", "text": "+", "parent": 94, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 28}}, {"id": 97, "type": "number_literal", "text": "1", "parent": 94, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 29}}, {"id": 98, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 31}}, {"id": 99, "type": "sizeof_expression", "text": "sizeof(int)", "parent": 92, "children": [100], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 42}}, {"id": 100, "type": "type_descriptor", "text": "int", "parent": 99, "children": [101], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 41}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 41}}, {"id": 102, "type": "assignment_expression", "text": "a[0] = -1", "parent": 12, "children": [103, 106, 107], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 11}}, {"id": 103, "type": "subscript_expression", "text": "a[0]", "parent": 102, "children": [104, 105], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 6}}, {"id": 104, "type": "identifier", "text": "a", "parent": 103, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 3}}, {"id": 105, "type": "number_literal", "text": "0", "parent": 103, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 5}}, {"id": 106, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 8}}, {"id": 107, "type": "number_literal", "text": "-1", "parent": 102, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 11}}, {"id": 108, "type": "for_statement", "text": "for(i=1; i<=n; ++i) a[i] = atoi(argv[i]);", "parent": 12, "children": [109, 113, 117], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 43}}, {"id": 109, "type": "assignment_expression", "text": "i=1", "parent": 108, "children": [110, 111, 112], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 9}}, {"id": 110, "type": "identifier", "text": "i", "parent": 109, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 7}}, {"id": 111, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 8}}, {"id": 112, "type": "number_literal", "text": "1", "parent": 109, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 9}}, {"id": 113, "type": "binary_expression", "text": "i<=n", "parent": 108, "children": [114, 115, 116], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 15}}, {"id": 114, "type": "identifier", "text": "i", "parent": 113, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 12}}, {"id": 115, "type": "<=", "text": "<=", "parent": 113, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 14}}, {"id": 116, "type": "identifier", "text": "n", "parent": 113, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 117, "type": "update_expression", "text": "++i", "parent": 108, "children": [118, 119], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 20}}, {"id": 118, "type": "++", "text": "++", "parent": 117, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 19}}, {"id": 119, "type": "identifier", "text": "i", "parent": 117, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 20}}, {"id": 120, "type": "assignment_expression", "text": "a[i] = atoi(argv[i])", "parent": 108, "children": [121, 124, 125], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 42}}, {"id": 121, "type": "subscript_expression", "text": "a[i]", "parent": 120, "children": [122, 123], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 26}}, {"id": 122, "type": "identifier", "text": "a", "parent": 121, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 23}}, {"id": 123, "type": "identifier", "text": "i", "parent": 121, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 25}}, {"id": 124, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 28}}, {"id": 125, "type": "call_expression", "text": "atoi(argv[i])", "parent": 120, "children": [126, 127], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 42}}, {"id": 126, "type": "identifier", "text": "atoi", "parent": 125, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 33}}, {"id": 127, "type": "argument_list", "text": "(argv[i])", "parent": 125, "children": [128], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 42}}, {"id": 128, "type": "subscript_expression", "text": "argv[i]", "parent": 127, "children": [129, 130], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 41}}, {"id": 129, "type": "identifier", "text": "argv", "parent": 128, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 38}}, {"id": 130, "type": "identifier", "text": "i", "parent": 128, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 40}}, {"id": 131, "type": "do_statement", "text": "do{\n for(i=1; i<=n; ++i) printf(\"%d \",a[i]);\n printf(\"\\n\");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}} while(1);", "parent": 12, "children": [272], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 68, "column": 25}}, {"id": 132, "type": "for_statement", "text": "for(i=1; i<=n; ++i) printf(\"%d \",a[i]);", "parent": 131, "children": [133, 137, 141], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 43}}, {"id": 133, "type": "assignment_expression", "text": "i=1", "parent": 132, "children": [134, 135, 136], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 11}}, {"id": 134, "type": "identifier", "text": "i", "parent": 133, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 135, "type": "=", "text": "=", "parent": 133, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 10}}, {"id": 136, "type": "number_literal", "text": "1", "parent": 133, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 11}}, {"id": 137, "type": "binary_expression", "text": "i<=n", "parent": 132, "children": [138, 139, 140], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 17}}, {"id": 138, "type": "identifier", "text": "i", "parent": 137, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 139, "type": "<=", "text": "<=", "parent": 137, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 16}}, {"id": 140, "type": "identifier", "text": "n", "parent": 137, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 17}}, {"id": 141, "type": "update_expression", "text": "++i", "parent": 132, "children": [142, 143], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 22}}, {"id": 142, "type": "++", "text": "++", "parent": 141, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 21}}, {"id": 143, "type": "identifier", "text": "i", "parent": 141, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 22}}, {"id": 144, "type": "call_expression", "text": "printf(\"%d \",a[i])", "parent": 132, "children": [145, 146], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 42}}, {"id": 145, "type": "identifier", "text": "printf", "parent": 144, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 30}}, {"id": 146, "type": "argument_list", "text": "(\"%d \",a[i])", "parent": 144, "children": [147, 148], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 42}}, {"id": 147, "type": "string_literal", "text": "\"%d \"", "parent": 146, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 36}}, {"id": 148, "type": "subscript_expression", "text": "a[i]", "parent": 146, "children": [149, 150], "start_point": {"row": 57, "column": 37}, "end_point": {"row": 57, "column": 41}}, {"id": 149, "type": "identifier", "text": "a", "parent": 148, "children": [], "start_point": {"row": 57, "column": 37}, "end_point": {"row": 57, "column": 38}}, {"id": 150, "type": "identifier", "text": "i", "parent": 148, "children": [], "start_point": {"row": 57, "column": 39}, "end_point": {"row": 57, "column": 40}}, {"id": 151, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 131, "children": [152, 153], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 16}}, {"id": 152, "type": "identifier", "text": "printf", "parent": 151, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 153, "type": "argument_list", "text": "(\"\\n\")", "parent": 151, "children": [154], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 16}}, {"id": 154, "type": "string_literal", "text": "\"\\n\"", "parent": 153, "children": [155], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 15}}, {"id": 155, "type": "escape_sequence", "text": "\\n", "parent": 154, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 14}}, {"id": 156, "type": "for_statement", "text": "for(i=n-1; i>0 && a[i]>=a[i+1]; --i);", "parent": 131, "children": [157, 164, 181], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 41}}, {"id": 157, "type": "assignment_expression", "text": "i=n-1", "parent": 156, "children": [158, 159, 160], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 13}}, {"id": 158, "type": "identifier", "text": "i", "parent": 157, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 9}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 10}}, {"id": 160, "type": "binary_expression", "text": "n-1", "parent": 157, "children": [161, 162, 163], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 13}}, {"id": 161, "type": "identifier", "text": "n", "parent": 160, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 11}}, {"id": 162, "type": "-", "text": "-", "parent": 160, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 12}}, {"id": 163, "type": "number_literal", "text": "1", "parent": 160, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 13}}, {"id": 164, "type": "binary_expression", "text": "i>0 && a[i]>=a[i+1]", "parent": 156, "children": [165, 169, 170], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 34}}, {"id": 165, "type": "binary_expression", "text": "i>0", "parent": 164, "children": [166, 167, 168], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 18}}, {"id": 166, "type": "identifier", "text": "i", "parent": 165, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 16}}, {"id": 167, "type": ">", "text": ">", "parent": 165, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 17}}, {"id": 168, "type": "number_literal", "text": "0", "parent": 165, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 169, "type": "&&", "text": "&&", "parent": 164, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 21}}, {"id": 170, "type": "binary_expression", "text": "a[i]>=a[i+1]", "parent": 164, "children": [171, 174, 175], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 34}}, {"id": 171, "type": "subscript_expression", "text": "a[i]", "parent": 170, "children": [172, 173], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 26}}, {"id": 172, "type": "identifier", "text": "a", "parent": 171, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 23}}, {"id": 173, "type": "identifier", "text": "i", "parent": 171, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 25}}, {"id": 174, "type": ">=", "text": ">=", "parent": 170, "children": [], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 28}}, {"id": 175, "type": "subscript_expression", "text": "a[i+1]", "parent": 170, "children": [176, 177], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 34}}, {"id": 176, "type": "identifier", "text": "a", "parent": 175, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 29}}, {"id": 177, "type": "binary_expression", "text": "i+1", "parent": 175, "children": [178, 179, 180], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 33}}, {"id": 178, "type": "identifier", "text": "i", "parent": 177, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 31}}, {"id": 179, "type": "+", "text": "+", "parent": 177, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 32}}, {"id": 180, "type": "number_literal", "text": "1", "parent": 177, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 33}}, {"id": 181, "type": "update_expression", "text": "--i", "parent": 156, "children": [182, 183], "start_point": {"row": 59, "column": 36}, "end_point": {"row": 59, "column": 39}}, {"id": 182, "type": "--", "text": "--", "parent": 181, "children": [], "start_point": {"row": 59, "column": 36}, "end_point": {"row": 59, "column": 38}}, {"id": 183, "type": "identifier", "text": "i", "parent": 181, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 39}}, {"id": 184, "type": "if_statement", "text": "if(i == 0) break;", "parent": 131, "children": [185, 190], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 21}}, {"id": 185, "type": "parenthesized_expression", "text": "(i == 0)", "parent": 184, "children": [186], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 14}}, {"id": 186, "type": "binary_expression", "text": "i == 0", "parent": 185, "children": [187, 188, 189], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 13}}, {"id": 187, "type": "identifier", "text": "i", "parent": 186, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 8}}, {"id": 188, "type": "==", "text": "==", "parent": 186, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 11}}, {"id": 189, "type": "number_literal", "text": "0", "parent": 186, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 190, "type": "break_statement", "text": "break;", "parent": 184, "children": [191], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 21}}, {"id": 191, "type": "break", "text": "break", "parent": 190, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 20}}, {"id": 192, "type": "for_statement", "text": "for(j=n; a[i]>=a[j]; --j);", "parent": 131, "children": [193, 197, 205], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 30}}, {"id": 193, "type": "assignment_expression", "text": "j=n", "parent": 192, "children": [194, 195, 196], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 11}}, {"id": 194, "type": "identifier", "text": "j", "parent": 193, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 195, "type": "=", "text": "=", "parent": 193, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 196, "type": "identifier", "text": "n", "parent": 193, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 11}}, {"id": 197, "type": "binary_expression", "text": "a[i]>=a[j]", "parent": 192, "children": [198, 201, 202], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 23}}, {"id": 198, "type": "subscript_expression", "text": "a[i]", "parent": 197, "children": [199, 200], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 17}}, {"id": 199, "type": "identifier", "text": "a", "parent": 198, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 14}}, {"id": 200, "type": "identifier", "text": "i", "parent": 198, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 16}}, {"id": 201, "type": ">=", "text": ">=", "parent": 197, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 19}}, {"id": 202, "type": "subscript_expression", "text": "a[j]", "parent": 197, "children": [203, 204], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 23}}, {"id": 203, "type": "identifier", "text": "a", "parent": 202, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 204, "type": "identifier", "text": "j", "parent": 202, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 22}}, {"id": 205, "type": "update_expression", "text": "--j", "parent": 192, "children": [206, 207], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 28}}, {"id": 206, "type": "--", "text": "--", "parent": 205, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 27}}, {"id": 207, "type": "identifier", "text": "j", "parent": 205, "children": [], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 28}}, {"id": 208, "type": "assignment_expression", "text": "m = a[j]", "parent": 131, "children": [209, 210, 211], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 12}}, {"id": 209, "type": "identifier", "text": "m", "parent": 208, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 5}}, {"id": 210, "type": "=", "text": "=", "parent": 208, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 7}}, {"id": 211, "type": "subscript_expression", "text": "a[j]", "parent": 208, "children": [212, 213], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 12}}, {"id": 212, "type": "identifier", "text": "a", "parent": 211, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 9}}, {"id": 213, "type": "identifier", "text": "j", "parent": 211, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 11}}, {"id": 214, "type": "assignment_expression", "text": "a[j]=a[i]", "parent": 131, "children": [215, 218, 219], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 13}}, {"id": 215, "type": "subscript_expression", "text": "a[j]", "parent": 214, "children": [216, 217], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 8}}, {"id": 216, "type": "identifier", "text": "a", "parent": 215, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 5}}, {"id": 217, "type": "identifier", "text": "j", "parent": 215, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 7}}, {"id": 218, "type": "=", "text": "=", "parent": 214, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 219, "type": "subscript_expression", "text": "a[i]", "parent": 214, "children": [220, 221], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 13}}, {"id": 220, "type": "identifier", "text": "a", "parent": 219, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 10}}, {"id": 221, "type": "identifier", "text": "i", "parent": 219, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 222, "type": "assignment_expression", "text": "a[i]=m", "parent": 131, "children": [223, 226, 227], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 10}}, {"id": 223, "type": "subscript_expression", "text": "a[i]", "parent": 222, "children": [224, 225], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 8}}, {"id": 224, "type": "identifier", "text": "a", "parent": 223, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 5}}, {"id": 225, "type": "identifier", "text": "i", "parent": 223, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 7}}, {"id": 226, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 227, "type": "identifier", "text": "m", "parent": 222, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 10}}, {"id": 228, "type": "for_statement", "text": "for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}", "parent": 131, "children": [229, 241, 245], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 68, "column": 14}}, {"id": 229, "type": "comma_expression", "text": "j=i+1, k=n", "parent": 228, "children": [230, 237], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 18}}, {"id": 230, "type": "assignment_expression", "text": "j=i+1", "parent": 229, "children": [231, 232, 233], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 13}}, {"id": 231, "type": "identifier", "text": "j", "parent": 230, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 9}}, {"id": 232, "type": "=", "text": "=", "parent": 230, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 10}}, {"id": 233, "type": "binary_expression", "text": "i+1", "parent": 230, "children": [234, 235, 236], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 13}}, {"id": 234, "type": "identifier", "text": "i", "parent": 233, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 11}}, {"id": 235, "type": "+", "text": "+", "parent": 233, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 12}}, {"id": 236, "type": "number_literal", "text": "1", "parent": 233, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 237, "type": "assignment_expression", "text": "k=n", "parent": 229, "children": [238, 239, 240], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 18}}, {"id": 238, "type": "identifier", "text": "k", "parent": 237, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 16}}, {"id": 239, "type": "=", "text": "=", "parent": 237, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 17}}, {"id": 240, "type": "identifier", "text": "n", "parent": 237, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 18}}, {"id": 241, "type": "binary_expression", "text": "j<k", "parent": 228, "children": [242, 243, 244], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 23}}, {"id": 242, "type": "identifier", "text": "j", "parent": 241, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 21}}, {"id": 243, "type": "<", "text": "<", "parent": 241, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 22}}, {"id": 244, "type": "identifier", "text": "k", "parent": 241, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 245, "type": "comma_expression", "text": "++j, --k", "parent": 228, "children": [246, 249], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 33}}, {"id": 246, "type": "update_expression", "text": "++j", "parent": 245, "children": [247, 248], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 28}}, {"id": 247, "type": "++", "text": "++", "parent": 246, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 27}}, {"id": 248, "type": "identifier", "text": "j", "parent": 246, "children": [], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 28}}, {"id": 249, "type": "update_expression", "text": "--k", "parent": 245, "children": [250, 251], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 33}}, {"id": 250, "type": "--", "text": "--", "parent": 249, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 32}}, {"id": 251, "type": "identifier", "text": "k", "parent": 249, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 33}}, {"id": 252, "type": "assignment_expression", "text": "m = a[j]", "parent": 228, "children": [253, 254, 255], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 14}}, {"id": 253, "type": "identifier", "text": "m", "parent": 252, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 7}}, {"id": 254, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 255, "type": "subscript_expression", "text": "a[j]", "parent": 252, "children": [256, 257], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 14}}, {"id": 256, "type": "identifier", "text": "a", "parent": 255, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 11}}, {"id": 257, "type": "identifier", "text": "j", "parent": 255, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 258, "type": "assignment_expression", "text": "a[j]=a[k]", "parent": 228, "children": [259, 262, 263], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 15}}, {"id": 259, "type": "subscript_expression", "text": "a[j]", "parent": 258, "children": [260, 261], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 10}}, {"id": 260, "type": "identifier", "text": "a", "parent": 259, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 7}}, {"id": 261, "type": "identifier", "text": "j", "parent": 259, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 262, "type": "=", "text": "=", "parent": 258, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 11}}, {"id": 263, "type": "subscript_expression", "text": "a[k]", "parent": 258, "children": [264, 265], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 15}}, {"id": 264, "type": "identifier", "text": "a", "parent": 263, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 12}}, {"id": 265, "type": "identifier", "text": "k", "parent": 263, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 14}}, {"id": 266, "type": "assignment_expression", "text": "a[k]=m", "parent": 228, "children": [267, 270, 271], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 12}}, {"id": 267, "type": "subscript_expression", "text": "a[k]", "parent": 266, "children": [268, 269], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 10}}, {"id": 268, "type": "identifier", "text": "a", "parent": 267, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 7}}, {"id": 269, "type": "identifier", "text": "k", "parent": 267, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 270, "type": "=", "text": "=", "parent": 266, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 11}}, {"id": 271, "type": "identifier", "text": "m", "parent": 266, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 12}}, {"id": 272, "type": "parenthesized_expression", "text": "(1)", "parent": 131, "children": [273], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 24}}, {"id": 273, "type": "number_literal", "text": "1", "parent": 272, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 23}}, {"id": 274, "type": "call_expression", "text": "free(a)", "parent": 12, "children": [275, 276], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 9}}, {"id": 275, "type": "identifier", "text": "free", "parent": 274, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 6}}, {"id": 276, "type": "argument_list", "text": "(a)", "parent": 274, "children": [277], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 9}}, {"id": 277, "type": "identifier", "text": "a", "parent": 276, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 8}}, {"id": 278, "type": "return_statement", "text": "return(0);", "parent": 12, "children": [279], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 12}}, {"id": 279, "type": "parenthesized_expression", "text": "(0)", "parent": 278, "children": [280], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 11}}, {"id": 280, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}]}, "node_categories": {"declarations": {"functions": [12, 14], "variables": [17, 20, 64, 77], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [27, 28, 32, 37, 40, 45, 50, 55, 60, 73, 84, 89, 92, 93, 94, 99, 103, 113, 117, 121, 125, 128, 137, 141, 144, 148, 151, 160, 164, 165, 170, 171, 175, 177, 181, 185, 186, 197, 198, 202, 205, 211, 215, 219, 223, 229, 233, 241, 245, 246, 249, 255, 259, 263, 267, 272, 274, 279], "assignments": [102, 109, 120, 133, 157, 193, 208, 214, 222, 230, 237, 252, 258, 266], "loops": [108, 132, 156, 192, 228], "conditionals": [15, 19, 25, 26, 29, 33, 38, 41, 46, 51, 56, 61, 66, 67, 68, 69, 71, 74, 82, 90, 95, 104, 110, 114, 116, 119, 122, 123, 126, 129, 130, 134, 138, 140, 143, 145, 149, 150, 152, 158, 161, 166, 172, 173, 176, 178, 183, 184, 187, 194, 196, 199, 200, 203, 204, 207, 209, 212, 213, 216, 217, 220, 221, 224, 225, 227, 231, 234, 238, 240, 242, 244, 248, 251, 253, 256, 257, 260, 261, 264, 265, 268, 269, 271, 275, 277], "returns": [278], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 31, 35, 39, 43, 48, 53, 58, 63, 76, 97, 105, 107, 112, 136, 147, 154, 163, 168, 180, 189, 236, 273, 280], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "main", "text_snippet": "int main( int argc, char *argv[] )\n{\n if( argc < 2 )\n {\n printf(\"usage: %s a1 a2 ... an\\n\","}, {"node_id": 14, "universal_type": "function", "name": "argc,", "text_snippet": "main( int argc, char *argv[] )"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdlib.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdio.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <string.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <math.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <stdlib.h>\n#include <stdio.h>\n#include <string.h>\n#include <math.h>\n\n/*\n * COPYRIGHT\n *\n * permi.c\n * Copyright (C) 2014 Exstrom Laboratories LLC\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * A copy of the GNU General Public License is available on the internet at:\n * http://www.gnu.org/copyleft/gpl.html\n *\n * or you can write to:\n *\n * The Free Software Foundation, Inc.\n * 675 Mass Ave\n * Cambridge, MA 02139, USA\n *\n * Exstrom Laboratories LLC contact:\n * stefan(AT)exstrom.com\n *\n * Exstrom Laboratories LLC\n * Longmont, CO 80503, USA\n *\n */\n\n// Compile: gcc -lm -o permi permi.c\n\nint main( int argc, char *argv[] )\n{\n if( argc < 2 )\n {\n printf(\"usage: %s a1 a2 ... an\\n\", argv[0]);\n printf(\" Generates permutations of the integers ai>=0.\\n\");\n printf(\" To generate all permutations they must be ordered a1<a2<...<an.\\n\");\n printf(\" Any other order will only generate permutations that are larger\\n\");\n printf(\" in lexicographic order.\\n\");\n exit( -1 );\n }\n\n int i, j, k, m, n = argc - 1;\n int *a = (int *)malloc((n+1)*sizeof(int));\n a[0] = -1;\n for(i=1; i<=n; ++i) a[i] = atoi(argv[i]);\n do{\n for(i=1; i<=n; ++i) printf(\"%d \",a[i]);\n printf(\"\\n\");\n for(i=n-1; i>0 && a[i]>=a[i+1]; --i);\n if(i == 0) break;\n for(j=n; a[i]>=a[j]; --j);\n m = a[j];\n a[j]=a[i];\n a[i]=m;\n for(j=i+1, k=n; j<k; ++j, --k){\n m = a[j];\n a[j]=a[k];\n a[k]=m;}} while(1);\n\n free(a);\n return(0);\n}\n"}
80,865
c
#include "screen.h" #include <string.h> #include <SDL2/SDL.h> #include "common.h" #include "compat.h" #include "icon.xpm" #include "lock_util.h" #include "log.h" #include "tiny_xpm.h" #include "video_buffer.h" #define DISPLAY_MARGINS 96 // get the window size in a struct size static struct size get_native_window_size(SDL_Window *window) { int width; int height; SDL_GetWindowSize(window, &width, &height); struct size size; size.width = width; size.height = height; return size; } // get the windowed window size static struct size get_window_size(const struct screen *screen) { if (screen->fullscreen) { return screen->windowed_window_size; } return get_native_window_size(screen->window); } // set the window size to be applied when fullscreen is disabled static void set_window_size(struct screen *screen, struct size new_size) { // setting the window size during fullscreen is implementation defined, // so apply the resize only after fullscreen is disabled if (screen->fullscreen) { // SDL_SetWindowSize will be called when fullscreen will be disabled screen->windowed_window_size = new_size; } else { SDL_SetWindowSize(screen->window, new_size.width, new_size.height); } } // get the preferred display bounds (i.e. the screen bounds with some margins) static bool get_preferred_display_bounds(struct size *bounds) { SDL_Rect rect; #ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS # define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r)) #else # define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r)) #endif if (GET_DISPLAY_BOUNDS(0, &rect)) { LOGW("Could not get display usable bounds: %s", SDL_GetError()); return false; } bounds->width = MAX(0, rect.w - DISPLAY_MARGINS); bounds->height = MAX(0, rect.h - DISPLAY_MARGINS); return true; } // return the optimal size of the window, with the following constraints: // - it attempts to keep at least one dimension of the current_size (i.e. it // crops the black borders) // - it keeps the aspect ratio // - it scales down to make it fit in the display_size static struct size get_optimal_size(struct size current_size, struct size frame_size) { if (frame_size.width == 0 || frame_size.height == 0) { // avoid division by 0 return current_size; } struct size display_size; // 32 bits because we need to multiply two 16 bits values uint32_t w; uint32_t h; if (!get_preferred_display_bounds(&display_size)) { // could not get display bounds, do not constraint the size w = current_size.width; h = current_size.height; } else { w = MIN(current_size.width, display_size.width); h = MIN(current_size.height, display_size.height); } bool keep_width = frame_size.width * h > frame_size.height * w; if (keep_width) { // remove black borders on top and bottom h = frame_size.height * w / frame_size.width; } else { // remove black borders on left and right (or none at all if it already // fits) w = frame_size.width * h / frame_size.height; } // w and h must fit into 16 bits SDL_assert_release(w < 0x10000 && h < 0x10000); return (struct size) {w, h}; } // same as get_optimal_size(), but read the current size from the window static inline struct size get_optimal_window_size(const struct screen *screen, struct size frame_size) { struct size current_size = get_window_size(screen); return get_optimal_size(current_size, frame_size); } // initially, there is no current size, so use the frame size as current size static inline struct size get_initial_optimal_size(struct size frame_size) { return get_optimal_size(frame_size, frame_size); } void screen_init(struct screen *screen) { *screen = (struct screen) SCREEN_INITIALIZER; } static inline SDL_Texture * create_texture(SDL_Renderer *renderer, struct size frame_size) { return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12, SDL_TEXTUREACCESS_STREAMING, frame_size.width, frame_size.height); } bool screen_init_rendering(struct screen *screen, const char *window_title, struct size frame_size, bool always_on_top) { screen->frame_size = frame_size; struct size window_size = get_initial_optimal_size(frame_size); uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE; #ifdef HIDPI_SUPPORT window_flags |= SDL_WINDOW_ALLOW_HIGHDPI; #endif if (always_on_top) { #ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP window_flags |= SDL_WINDOW_ALWAYS_ON_TOP; #else LOGW("The 'always on top' flag is not available " "(compile with SDL >= 2.0.5 to enable it)"); #endif } screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, window_size.width, window_size.height, window_flags); if (!screen->window) { LOGC("Could not create window: %s", SDL_GetError()); return false; } screen->renderer = SDL_CreateRenderer(screen->window, -1, SDL_RENDERER_ACCELERATED); if (!screen->renderer) { LOGC("Could not create renderer: %s", SDL_GetError()); screen_destroy(screen); return false; } if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width, frame_size.height)) { LOGE("Could not set renderer logical size: %s", SDL_GetError()); screen_destroy(screen); return false; } SDL_Surface *icon = read_xpm(icon_xpm); if (icon) { SDL_SetWindowIcon(screen->window, icon); SDL_FreeSurface(icon); } else { LOGW("Could not load icon"); } LOGI("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width, frame_size.height); screen->texture = create_texture(screen->renderer, frame_size); if (!screen->texture) { LOGC("Could not create texture: %s", SDL_GetError()); screen_destroy(screen); return false; } return true; } void screen_show_window(struct screen *screen) { SDL_ShowWindow(screen->window); } void screen_destroy(struct screen *screen) { if (screen->texture) { SDL_DestroyTexture(screen->texture); } if (screen->renderer) { SDL_DestroyRenderer(screen->renderer); } if (screen->window) { SDL_DestroyWindow(screen->window); } } // recreate the texture and resize the window if the frame size has changed static bool prepare_for_frame(struct screen *screen, struct size new_frame_size) { if (screen->frame_size.width != new_frame_size.width || screen->frame_size.height != new_frame_size.height) { screen->frame_changed = true; if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width, new_frame_size.height)) { LOGE("Could not set renderer logical size: %s", SDL_GetError()); return false; } // frame dimension changed, destroy texture SDL_DestroyTexture(screen->texture); struct size current_size = get_window_size(screen); struct size target_size = { (uint32_t) current_size.width * new_frame_size.width / screen->frame_size.width, (uint32_t) current_size.height * new_frame_size.height / screen->frame_size.height, }; target_size = get_optimal_size(target_size, new_frame_size); set_window_size(screen, target_size); screen->frame_size = new_frame_size; LOGI("New texture: %" PRIu16 "x%" PRIu16, screen->frame_size.width, screen->frame_size.height); screen->texture = create_texture(screen->renderer, new_frame_size); if (!screen->texture) { LOGC("Could not create texture: %s", SDL_GetError()); return false; } } return true; } // write the frame into the texture static void update_texture(struct screen *screen, const AVFrame *frame) { SDL_UpdateYUVTexture(screen->texture, NULL, frame->data[0], frame->linesize[0], frame->data[1], frame->linesize[1], frame->data[2], frame->linesize[2]); } bool screen_update_frame(struct screen *screen, struct video_buffer *vb) { mutex_lock(vb->mutex); const AVFrame *frame = video_buffer_consume_rendered_frame(vb); struct size new_frame_size = {frame->width, frame->height}; screen->frame_changed = false; if (!prepare_for_frame(screen, new_frame_size)) { mutex_unlock(vb->mutex); return false; } update_texture(screen, frame); mutex_unlock(vb->mutex); screen_render(screen); return true; } void screen_render(struct screen *screen) { SDL_RenderClear(screen->renderer); SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL); SDL_RenderPresent(screen->renderer); } void screen_switch_fullscreen(struct screen *screen) { if (!screen->fullscreen) { // going to fullscreen, store the current windowed window size screen->windowed_window_size = get_native_window_size(screen->window); } uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP; if (SDL_SetWindowFullscreen(screen->window, new_mode)) { LOGW("Could not switch fullscreen mode: %s", SDL_GetError()); return; } screen->fullscreen = !screen->fullscreen; if (!screen->fullscreen) { // fullscreen disabled, restore expected windowed window size SDL_SetWindowSize(screen->window, screen->windowed_window_size.width, screen->windowed_window_size.height); } LOGD("Switched to %s mode", screen->fullscreen ? "fullscreen" : "windowed"); screen_render(screen); } void screen_resize_to_fit(struct screen *screen) { if (!screen->fullscreen) { struct size optimal_size = get_optimal_window_size(screen, screen->frame_size); SDL_SetWindowSize(screen->window, optimal_size.width, optimal_size.height); LOGD("Resized to optimal size"); } } void screen_resize_to_pixel_perfect(struct screen *screen) { if (!screen->fullscreen) { SDL_SetWindowSize(screen->window, screen->frame_size.width, screen->frame_size.height); LOGD("Resized to pixel-perfect"); } }
36.49
287
(translation_unit) "#include "screen.h"\n\n#include <string.h>\n#include <SDL2/SDL.h>\n\n#include "common.h"\n#include "compat.h"\n#include "icon.xpm"\n#include "lock_util.h"\n#include "log.h"\n#include "tiny_xpm.h"\n#include "video_buffer.h"\n\n#define DISPLAY_MARGINS 96\n\n// get the window size in a struct size\nstatic struct size\nget_native_window_size(SDL_Window *window) {\n int width;\n int height;\n SDL_GetWindowSize(window, &width, &height);\n\n struct size size;\n size.width = width;\n size.height = height;\n return size;\n}\n\n// get the windowed window size\nstatic struct size\nget_window_size(const struct screen *screen) {\n if (screen->fullscreen) {\n return screen->windowed_window_size;\n }\n return get_native_window_size(screen->window);\n}\n\n// set the window size to be applied when fullscreen is disabled\nstatic void\nset_window_size(struct screen *screen, struct size new_size) {\n // setting the window size during fullscreen is implementation defined,\n // so apply the resize only after fullscreen is disabled\n if (screen->fullscreen) {\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n } else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }\n}\n\n// get the preferred display bounds (i.e. the screen bounds with some margins)\nstatic bool\nget_preferred_display_bounds(struct size *bounds) {\n SDL_Rect rect;\n#ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n#endif\n if (GET_DISPLAY_BOUNDS(0, &rect)) {\n LOGW("Could not get display usable bounds: %s", SDL_GetError());\n return false;\n }\n\n bounds->width = MAX(0, rect.w - DISPLAY_MARGINS);\n bounds->height = MAX(0, rect.h - DISPLAY_MARGINS);\n return true;\n}\n\n// return the optimal size of the window, with the following constraints:\n// - it attempts to keep at least one dimension of the current_size (i.e. it\n// crops the black borders)\n// - it keeps the aspect ratio\n// - it scales down to make it fit in the display_size\nstatic struct size\nget_optimal_size(struct size current_size, struct size frame_size) {\n if (frame_size.width == 0 || frame_size.height == 0) {\n // avoid division by 0\n return current_size;\n }\n\n struct size display_size;\n // 32 bits because we need to multiply two 16 bits values\n uint32_t w;\n uint32_t h;\n\n if (!get_preferred_display_bounds(&display_size)) {\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n } else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }\n\n bool keep_width = frame_size.width * h > frame_size.height * w;\n if (keep_width) {\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n } else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }\n\n // w and h must fit into 16 bits\n SDL_assert_release(w < 0x10000 && h < 0x10000);\n return (struct size) {w, h};\n}\n\n// same as get_optimal_size(), but read the current size from the window\nstatic inline struct size\nget_optimal_window_size(const struct screen *screen, struct size frame_size) {\n struct size current_size = get_window_size(screen);\n return get_optimal_size(current_size, frame_size);\n}\n\n// initially, there is no current size, so use the frame size as current size\nstatic inline struct size\nget_initial_optimal_size(struct size frame_size) {\n return get_optimal_size(frame_size, frame_size);\n}\n\nvoid\nscreen_init(struct screen *screen) {\n *screen = (struct screen) SCREEN_INITIALIZER;\n}\n\nstatic inline SDL_Texture *\ncreate_texture(SDL_Renderer *renderer, struct size frame_size) {\n return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height);\n}\n\nbool\nscreen_init_rendering(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top) {\n screen->frame_size = frame_size;\n\n struct size window_size = get_initial_optimal_size(frame_size);\n uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;\n#ifdef HIDPI_SUPPORT\n window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;\n#endif\n if (always_on_top) {\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");\n#endif\n }\n\n screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags);\n if (!screen->window) {\n LOGC("Could not create window: %s", SDL_GetError());\n return false;\n }\n\n screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED);\n if (!screen->renderer) {\n LOGC("Could not create renderer: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n SDL_Surface *icon = read_xpm(icon_xpm);\n if (icon) {\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n } else {\n LOGW("Could not load icon");\n }\n\n LOGI("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width,\n frame_size.height);\n screen->texture = create_texture(screen->renderer, frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n return true;\n}\n\nvoid\nscreen_show_window(struct screen *screen) {\n SDL_ShowWindow(screen->window);\n}\n\nvoid\nscreen_destroy(struct screen *screen) {\n if (screen->texture) {\n SDL_DestroyTexture(screen->texture);\n }\n if (screen->renderer) {\n SDL_DestroyRenderer(screen->renderer);\n }\n if (screen->window) {\n SDL_DestroyWindow(screen->window);\n }\n}\n\n// recreate the texture and resize the window if the frame size has changed\nstatic bool\nprepare_for_frame(struct screen *screen, struct size new_frame_size) {\n if (screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height) {\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n return false;\n }\n }\n\n return true;\n}\n\n// write the frame into the texture\nstatic void\nupdate_texture(struct screen *screen, const AVFrame *frame) {\n SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2]);\n}\n\nbool\nscreen_update_frame(struct screen *screen, struct video_buffer *vb) {\n mutex_lock(vb->mutex);\n const AVFrame *frame = video_buffer_consume_rendered_frame(vb);\n struct size new_frame_size = {frame->width, frame->height};\n screen->frame_changed = false;\n if (!prepare_for_frame(screen, new_frame_size)) {\n mutex_unlock(vb->mutex);\n return false;\n }\n update_texture(screen, frame);\n mutex_unlock(vb->mutex);\n\n screen_render(screen);\n return true;\n}\n\nvoid\nscreen_render(struct screen *screen) {\n SDL_RenderClear(screen->renderer);\n SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL);\n SDL_RenderPresent(screen->renderer);\n}\n\nvoid\nscreen_switch_fullscreen(struct screen *screen) {\n if (!screen->fullscreen) {\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }\n uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP;\n if (SDL_SetWindowFullscreen(screen->window, new_mode)) {\n LOGW("Could not switch fullscreen mode: %s", SDL_GetError());\n return;\n }\n\n screen->fullscreen = !screen->fullscreen;\n if (!screen->fullscreen) {\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }\n\n LOGD("Switched to %s mode", screen->fullscreen ? "fullscreen" : "windowed");\n screen_render(screen);\n}\n\nvoid\nscreen_resize_to_fit(struct screen *screen) {\n if (!screen->fullscreen) {\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD("Resized to optimal size");\n }\n}\n\nvoid\nscreen_resize_to_pixel_perfect(struct screen *screen) {\n if (!screen->fullscreen) {\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD("Resized to pixel-perfect");\n }\n}\n" (preproc_include) "#include "screen.h"\n" (#include) "#include" (string_literal) ""screen.h"" (") """ (string_content) "screen.h" (") """ (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <SDL2/SDL.h>\n" (#include) "#include" (system_lib_string) "<SDL2/SDL.h>" (preproc_include) "#include "common.h"\n" (#include) "#include" (string_literal) ""common.h"" (") """ (string_content) "common.h" (") """ (preproc_include) "#include "compat.h"\n" (#include) "#include" (string_literal) ""compat.h"" (") """ (string_content) "compat.h" (") """ (preproc_include) "#include "icon.xpm"\n" (#include) "#include" (string_literal) ""icon.xpm"" (") """ (string_content) "icon.xpm" (") """ (preproc_include) "#include "lock_util.h"\n" (#include) "#include" (string_literal) ""lock_util.h"" (") """ (string_content) "lock_util.h" (") """ (preproc_include) "#include "log.h"\n" (#include) "#include" (string_literal) ""log.h"" (") """ (string_content) "log.h" (") """ (preproc_include) "#include "tiny_xpm.h"\n" (#include) "#include" (string_literal) ""tiny_xpm.h"" (") """ (string_content) "tiny_xpm.h" (") """ (preproc_include) "#include "video_buffer.h"\n" (#include) "#include" (string_literal) ""video_buffer.h"" (") """ (string_content) "video_buffer.h" (") """ (preproc_def) "#define DISPLAY_MARGINS 96\n" (#define) "#define" (identifier) "DISPLAY_MARGINS" (preproc_arg) "96" (comment) "// get the window size in a struct size" (function_definition) "static struct size\nget_native_window_size(SDL_Window *window) {\n int width;\n int height;\n SDL_GetWindowSize(window, &width, &height);\n\n struct size size;\n size.width = width;\n size.height = height;\n return size;\n}" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (function_declarator) "get_native_window_size(SDL_Window *window)" (identifier) "get_native_window_size" (parameter_list) "(SDL_Window *window)" (() "(" (parameter_declaration) "SDL_Window *window" (type_identifier) "SDL_Window" (pointer_declarator) "*window" (*) "*" (identifier) "window" ()) ")" (compound_statement) "{\n int width;\n int height;\n SDL_GetWindowSize(window, &width, &height);\n\n struct size size;\n size.width = width;\n size.height = height;\n return size;\n}" ({) "{" (declaration) "int width;" (primitive_type) "int" (identifier) "width" (;) ";" (declaration) "int height;" (primitive_type) "int" (identifier) "height" (;) ";" (expression_statement) "SDL_GetWindowSize(window, &width, &height);" (call_expression) "SDL_GetWindowSize(window, &width, &height)" (identifier) "SDL_GetWindowSize" (argument_list) "(window, &width, &height)" (() "(" (identifier) "window" (,) "," (pointer_expression) "&width" (&) "&" (identifier) "width" (,) "," (pointer_expression) "&height" (&) "&" (identifier) "height" ()) ")" (;) ";" (declaration) "struct size size;" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "size" (;) ";" (expression_statement) "size.width = width;" (assignment_expression) "size.width = width" (field_expression) "size.width" (identifier) "size" (.) "." (field_identifier) "width" (=) "=" (identifier) "width" (;) ";" (expression_statement) "size.height = height;" (assignment_expression) "size.height = height" (field_expression) "size.height" (identifier) "size" (.) "." (field_identifier) "height" (=) "=" (identifier) "height" (;) ";" (return_statement) "return size;" (return) "return" (identifier) "size" (;) ";" (}) "}" (comment) "// get the windowed window size" (function_definition) "static struct size\nget_window_size(const struct screen *screen) {\n if (screen->fullscreen) {\n return screen->windowed_window_size;\n }\n return get_native_window_size(screen->window);\n}" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (function_declarator) "get_window_size(const struct screen *screen)" (identifier) "get_window_size" (parameter_list) "(const struct screen *screen)" (() "(" (parameter_declaration) "const struct screen *screen" (type_qualifier) "const" (const) "const" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n if (screen->fullscreen) {\n return screen->windowed_window_size;\n }\n return get_native_window_size(screen->window);\n}" ({) "{" (if_statement) "if (screen->fullscreen) {\n return screen->windowed_window_size;\n }" (if) "if" (parenthesized_expression) "(screen->fullscreen)" (() "(" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" ()) ")" (compound_statement) "{\n return screen->windowed_window_size;\n }" ({) "{" (return_statement) "return screen->windowed_window_size;" (return) "return" (field_expression) "screen->windowed_window_size" (identifier) "screen" (->) "->" (field_identifier) "windowed_window_size" (;) ";" (}) "}" (return_statement) "return get_native_window_size(screen->window);" (return) "return" (call_expression) "get_native_window_size(screen->window)" (identifier) "get_native_window_size" (argument_list) "(screen->window)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" ()) ")" (;) ";" (}) "}" (comment) "// set the window size to be applied when fullscreen is disabled" (function_definition) "static void\nset_window_size(struct screen *screen, struct size new_size) {\n // setting the window size during fullscreen is implementation defined,\n // so apply the resize only after fullscreen is disabled\n if (screen->fullscreen) {\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n } else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "set_window_size(struct screen *screen, struct size new_size)" (identifier) "set_window_size" (parameter_list) "(struct screen *screen, struct size new_size)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" (,) "," (parameter_declaration) "struct size new_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "new_size" ()) ")" (compound_statement) "{\n // setting the window size during fullscreen is implementation defined,\n // so apply the resize only after fullscreen is disabled\n if (screen->fullscreen) {\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n } else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }\n}" ({) "{" (comment) "// setting the window size during fullscreen is implementation defined," (comment) "// so apply the resize only after fullscreen is disabled" (if_statement) "if (screen->fullscreen) {\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n } else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }" (if) "if" (parenthesized_expression) "(screen->fullscreen)" (() "(" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" ()) ")" (compound_statement) "{\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n }" ({) "{" (comment) "// SDL_SetWindowSize will be called when fullscreen will be disabled" (expression_statement) "screen->windowed_window_size = new_size;" (assignment_expression) "screen->windowed_window_size = new_size" (field_expression) "screen->windowed_window_size" (identifier) "screen" (->) "->" (field_identifier) "windowed_window_size" (=) "=" (identifier) "new_size" (;) ";" (}) "}" (else_clause) "else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }" (else) "else" (compound_statement) "{\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }" ({) "{" (expression_statement) "SDL_SetWindowSize(screen->window, new_size.width, new_size.height);" (call_expression) "SDL_SetWindowSize(screen->window, new_size.width, new_size.height)" (identifier) "SDL_SetWindowSize" (argument_list) "(screen->window, new_size.width, new_size.height)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (,) "," (field_expression) "new_size.width" (identifier) "new_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "new_size.height" (identifier) "new_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// get the preferred display bounds (i.e. the screen bounds with some margins)" (function_definition) "static bool\nget_preferred_display_bounds(struct size *bounds) {\n SDL_Rect rect;\n#ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n#endif\n if (GET_DISPLAY_BOUNDS(0, &rect)) {\n LOGW("Could not get display usable bounds: %s", SDL_GetError());\n return false;\n }\n\n bounds->width = MAX(0, rect.w - DISPLAY_MARGINS);\n bounds->height = MAX(0, rect.h - DISPLAY_MARGINS);\n return true;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "get_preferred_display_bounds(struct size *bounds)" (identifier) "get_preferred_display_bounds" (parameter_list) "(struct size *bounds)" (() "(" (parameter_declaration) "struct size *bounds" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (pointer_declarator) "*bounds" (*) "*" (identifier) "bounds" ()) ")" (compound_statement) "{\n SDL_Rect rect;\n#ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n#endif\n if (GET_DISPLAY_BOUNDS(0, &rect)) {\n LOGW("Could not get display usable bounds: %s", SDL_GetError());\n return false;\n }\n\n bounds->width = MAX(0, rect.w - DISPLAY_MARGINS);\n bounds->height = MAX(0, rect.h - DISPLAY_MARGINS);\n return true;\n}" ({) "{" (declaration) "SDL_Rect rect;" (type_identifier) "SDL_Rect" (identifier) "rect" (;) ";" (preproc_ifdef) "#ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n#endif" (#ifdef) "#ifdef" (identifier) "SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS" (preproc_function_def) "# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n" (#define) "# define" (identifier) "GET_DISPLAY_BOUNDS" (preproc_params) "(i, r)" (() "(" (identifier) "i" (,) "," (identifier) "r" ()) ")" (preproc_arg) "SDL_GetDisplayUsableBounds((i), (r))" (preproc_else) "#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n" (#else) "#else" (preproc_function_def) "# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n" (#define) "# define" (identifier) "GET_DISPLAY_BOUNDS" (preproc_params) "(i, r)" (() "(" (identifier) "i" (,) "," (identifier) "r" ()) ")" (preproc_arg) "SDL_GetDisplayBounds((i), (r))" (#endif) "#endif" (if_statement) "if (GET_DISPLAY_BOUNDS(0, &rect)) {\n LOGW("Could not get display usable bounds: %s", SDL_GetError());\n return false;\n }" (if) "if" (parenthesized_expression) "(GET_DISPLAY_BOUNDS(0, &rect))" (() "(" (call_expression) "GET_DISPLAY_BOUNDS(0, &rect)" (identifier) "GET_DISPLAY_BOUNDS" (argument_list) "(0, &rect)" (() "(" (number_literal) "0" (,) "," (pointer_expression) "&rect" (&) "&" (identifier) "rect" ()) ")" ()) ")" (compound_statement) "{\n LOGW("Could not get display usable bounds: %s", SDL_GetError());\n return false;\n }" ({) "{" (expression_statement) "LOGW("Could not get display usable bounds: %s", SDL_GetError());" (call_expression) "LOGW("Could not get display usable bounds: %s", SDL_GetError())" (identifier) "LOGW" (argument_list) "("Could not get display usable bounds: %s", SDL_GetError())" (() "(" (string_literal) ""Could not get display usable bounds: %s"" (") """ (string_content) "Could not get display usable bounds: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (expression_statement) "bounds->width = MAX(0, rect.w - DISPLAY_MARGINS);" (assignment_expression) "bounds->width = MAX(0, rect.w - DISPLAY_MARGINS)" (field_expression) "bounds->width" (identifier) "bounds" (->) "->" (field_identifier) "width" (=) "=" (call_expression) "MAX(0, rect.w - DISPLAY_MARGINS)" (identifier) "MAX" (argument_list) "(0, rect.w - DISPLAY_MARGINS)" (() "(" (number_literal) "0" (,) "," (binary_expression) "rect.w - DISPLAY_MARGINS" (field_expression) "rect.w" (identifier) "rect" (.) "." (field_identifier) "w" (-) "-" (identifier) "DISPLAY_MARGINS" ()) ")" (;) ";" (expression_statement) "bounds->height = MAX(0, rect.h - DISPLAY_MARGINS);" (assignment_expression) "bounds->height = MAX(0, rect.h - DISPLAY_MARGINS)" (field_expression) "bounds->height" (identifier) "bounds" (->) "->" (field_identifier) "height" (=) "=" (call_expression) "MAX(0, rect.h - DISPLAY_MARGINS)" (identifier) "MAX" (argument_list) "(0, rect.h - DISPLAY_MARGINS)" (() "(" (number_literal) "0" (,) "," (binary_expression) "rect.h - DISPLAY_MARGINS" (field_expression) "rect.h" (identifier) "rect" (.) "." (field_identifier) "h" (-) "-" (identifier) "DISPLAY_MARGINS" ()) ")" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (comment) "// return the optimal size of the window, with the following constraints:" (comment) "// - it attempts to keep at least one dimension of the current_size (i.e. it" (comment) "// crops the black borders)" (comment) "// - it keeps the aspect ratio" (comment) "// - it scales down to make it fit in the display_size" (function_definition) "static struct size\nget_optimal_size(struct size current_size, struct size frame_size) {\n if (frame_size.width == 0 || frame_size.height == 0) {\n // avoid division by 0\n return current_size;\n }\n\n struct size display_size;\n // 32 bits because we need to multiply two 16 bits values\n uint32_t w;\n uint32_t h;\n\n if (!get_preferred_display_bounds(&display_size)) {\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n } else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }\n\n bool keep_width = frame_size.width * h > frame_size.height * w;\n if (keep_width) {\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n } else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }\n\n // w and h must fit into 16 bits\n SDL_assert_release(w < 0x10000 && h < 0x10000);\n return (struct size) {w, h};\n}" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (function_declarator) "get_optimal_size(struct size current_size, struct size frame_size)" (identifier) "get_optimal_size" (parameter_list) "(struct size current_size, struct size frame_size)" (() "(" (parameter_declaration) "struct size current_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "current_size" (,) "," (parameter_declaration) "struct size frame_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "frame_size" ()) ")" (compound_statement) "{\n if (frame_size.width == 0 || frame_size.height == 0) {\n // avoid division by 0\n return current_size;\n }\n\n struct size display_size;\n // 32 bits because we need to multiply two 16 bits values\n uint32_t w;\n uint32_t h;\n\n if (!get_preferred_display_bounds(&display_size)) {\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n } else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }\n\n bool keep_width = frame_size.width * h > frame_size.height * w;\n if (keep_width) {\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n } else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }\n\n // w and h must fit into 16 bits\n SDL_assert_release(w < 0x10000 && h < 0x10000);\n return (struct size) {w, h};\n}" ({) "{" (if_statement) "if (frame_size.width == 0 || frame_size.height == 0) {\n // avoid division by 0\n return current_size;\n }" (if) "if" (parenthesized_expression) "(frame_size.width == 0 || frame_size.height == 0)" (() "(" (binary_expression) "frame_size.width == 0 || frame_size.height == 0" (binary_expression) "frame_size.width == 0" (field_expression) "frame_size.width" (identifier) "frame_size" (.) "." (field_identifier) "width" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "frame_size.height == 0" (field_expression) "frame_size.height" (identifier) "frame_size" (.) "." (field_identifier) "height" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n // avoid division by 0\n return current_size;\n }" ({) "{" (comment) "// avoid division by 0" (return_statement) "return current_size;" (return) "return" (identifier) "current_size" (;) ";" (}) "}" (declaration) "struct size display_size;" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "display_size" (;) ";" (comment) "// 32 bits because we need to multiply two 16 bits values" (declaration) "uint32_t w;" (primitive_type) "uint32_t" (identifier) "w" (;) ";" (declaration) "uint32_t h;" (primitive_type) "uint32_t" (identifier) "h" (;) ";" (if_statement) "if (!get_preferred_display_bounds(&display_size)) {\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n } else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }" (if) "if" (parenthesized_expression) "(!get_preferred_display_bounds(&display_size))" (() "(" (unary_expression) "!get_preferred_display_bounds(&display_size)" (!) "!" (call_expression) "get_preferred_display_bounds(&display_size)" (identifier) "get_preferred_display_bounds" (argument_list) "(&display_size)" (() "(" (pointer_expression) "&display_size" (&) "&" (identifier) "display_size" ()) ")" ()) ")" (compound_statement) "{\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n }" ({) "{" (comment) "// could not get display bounds, do not constraint the size" (expression_statement) "w = current_size.width;" (assignment_expression) "w = current_size.width" (identifier) "w" (=) "=" (field_expression) "current_size.width" (identifier) "current_size" (.) "." (field_identifier) "width" (;) ";" (expression_statement) "h = current_size.height;" (assignment_expression) "h = current_size.height" (identifier) "h" (=) "=" (field_expression) "current_size.height" (identifier) "current_size" (.) "." (field_identifier) "height" (;) ";" (}) "}" (else_clause) "else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }" (else) "else" (compound_statement) "{\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }" ({) "{" (expression_statement) "w = MIN(current_size.width, display_size.width);" (assignment_expression) "w = MIN(current_size.width, display_size.width)" (identifier) "w" (=) "=" (call_expression) "MIN(current_size.width, display_size.width)" (identifier) "MIN" (argument_list) "(current_size.width, display_size.width)" (() "(" (field_expression) "current_size.width" (identifier) "current_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "display_size.width" (identifier) "display_size" (.) "." (field_identifier) "width" ()) ")" (;) ";" (expression_statement) "h = MIN(current_size.height, display_size.height);" (assignment_expression) "h = MIN(current_size.height, display_size.height)" (identifier) "h" (=) "=" (call_expression) "MIN(current_size.height, display_size.height)" (identifier) "MIN" (argument_list) "(current_size.height, display_size.height)" (() "(" (field_expression) "current_size.height" (identifier) "current_size" (.) "." (field_identifier) "height" (,) "," (field_expression) "display_size.height" (identifier) "display_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (}) "}" (declaration) "bool keep_width = frame_size.width * h > frame_size.height * w;" (primitive_type) "bool" (init_declarator) "keep_width = frame_size.width * h > frame_size.height * w" (identifier) "keep_width" (=) "=" (binary_expression) "frame_size.width * h > frame_size.height * w" (binary_expression) "frame_size.width * h" (field_expression) "frame_size.width" (identifier) "frame_size" (.) "." (field_identifier) "width" (*) "*" (identifier) "h" (>) ">" (binary_expression) "frame_size.height * w" (field_expression) "frame_size.height" (identifier) "frame_size" (.) "." (field_identifier) "height" (*) "*" (identifier) "w" (;) ";" (if_statement) "if (keep_width) {\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n } else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }" (if) "if" (parenthesized_expression) "(keep_width)" (() "(" (identifier) "keep_width" ()) ")" (compound_statement) "{\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n }" ({) "{" (comment) "// remove black borders on top and bottom" (expression_statement) "h = frame_size.height * w / frame_size.width;" (assignment_expression) "h = frame_size.height * w / frame_size.width" (identifier) "h" (=) "=" (binary_expression) "frame_size.height * w / frame_size.width" (binary_expression) "frame_size.height * w" (field_expression) "frame_size.height" (identifier) "frame_size" (.) "." (field_identifier) "height" (*) "*" (identifier) "w" (/) "/" (field_expression) "frame_size.width" (identifier) "frame_size" (.) "." (field_identifier) "width" (;) ";" (}) "}" (else_clause) "else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }" (else) "else" (compound_statement) "{\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }" ({) "{" (comment) "// remove black borders on left and right (or none at all if it already" (comment) "// fits)" (expression_statement) "w = frame_size.width * h / frame_size.height;" (assignment_expression) "w = frame_size.width * h / frame_size.height" (identifier) "w" (=) "=" (binary_expression) "frame_size.width * h / frame_size.height" (binary_expression) "frame_size.width * h" (field_expression) "frame_size.width" (identifier) "frame_size" (.) "." (field_identifier) "width" (*) "*" (identifier) "h" (/) "/" (field_expression) "frame_size.height" (identifier) "frame_size" (.) "." (field_identifier) "height" (;) ";" (}) "}" (comment) "// w and h must fit into 16 bits" (expression_statement) "SDL_assert_release(w < 0x10000 && h < 0x10000);" (call_expression) "SDL_assert_release(w < 0x10000 && h < 0x10000)" (identifier) "SDL_assert_release" (argument_list) "(w < 0x10000 && h < 0x10000)" (() "(" (binary_expression) "w < 0x10000 && h < 0x10000" (binary_expression) "w < 0x10000" (identifier) "w" (<) "<" (number_literal) "0x10000" (&&) "&&" (binary_expression) "h < 0x10000" (identifier) "h" (<) "<" (number_literal) "0x10000" ()) ")" (;) ";" (return_statement) "return (struct size) {w, h};" (return) "return" (compound_literal_expression) "(struct size) {w, h}" (() "(" (type_descriptor) "struct size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" ()) ")" (initializer_list) "{w, h}" ({) "{" (identifier) "w" (,) "," (identifier) "h" (}) "}" (;) ";" (}) "}" (comment) "// same as get_optimal_size(), but read the current size from the window" (function_definition) "static inline struct size\nget_optimal_window_size(const struct screen *screen, struct size frame_size) {\n struct size current_size = get_window_size(screen);\n return get_optimal_size(current_size, frame_size);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (function_declarator) "get_optimal_window_size(const struct screen *screen, struct size frame_size)" (identifier) "get_optimal_window_size" (parameter_list) "(const struct screen *screen, struct size frame_size)" (() "(" (parameter_declaration) "const struct screen *screen" (type_qualifier) "const" (const) "const" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" (,) "," (parameter_declaration) "struct size frame_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "frame_size" ()) ")" (compound_statement) "{\n struct size current_size = get_window_size(screen);\n return get_optimal_size(current_size, frame_size);\n}" ({) "{" (declaration) "struct size current_size = get_window_size(screen);" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (init_declarator) "current_size = get_window_size(screen)" (identifier) "current_size" (=) "=" (call_expression) "get_window_size(screen)" (identifier) "get_window_size" (argument_list) "(screen)" (() "(" (identifier) "screen" ()) ")" (;) ";" (return_statement) "return get_optimal_size(current_size, frame_size);" (return) "return" (call_expression) "get_optimal_size(current_size, frame_size)" (identifier) "get_optimal_size" (argument_list) "(current_size, frame_size)" (() "(" (identifier) "current_size" (,) "," (identifier) "frame_size" ()) ")" (;) ";" (}) "}" (comment) "// initially, there is no current size, so use the frame size as current size" (function_definition) "static inline struct size\nget_initial_optimal_size(struct size frame_size) {\n return get_optimal_size(frame_size, frame_size);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (function_declarator) "get_initial_optimal_size(struct size frame_size)" (identifier) "get_initial_optimal_size" (parameter_list) "(struct size frame_size)" (() "(" (parameter_declaration) "struct size frame_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "frame_size" ()) ")" (compound_statement) "{\n return get_optimal_size(frame_size, frame_size);\n}" ({) "{" (return_statement) "return get_optimal_size(frame_size, frame_size);" (return) "return" (call_expression) "get_optimal_size(frame_size, frame_size)" (identifier) "get_optimal_size" (argument_list) "(frame_size, frame_size)" (() "(" (identifier) "frame_size" (,) "," (identifier) "frame_size" ()) ")" (;) ";" (}) "}" (function_definition) "void\nscreen_init(struct screen *screen) {\n *screen = (struct screen) SCREEN_INITIALIZER;\n}" (primitive_type) "void" (function_declarator) "screen_init(struct screen *screen)" (identifier) "screen_init" (parameter_list) "(struct screen *screen)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n *screen = (struct screen) SCREEN_INITIALIZER;\n}" ({) "{" (expression_statement) "*screen = (struct screen) SCREEN_INITIALIZER;" (assignment_expression) "*screen = (struct screen) SCREEN_INITIALIZER" (pointer_expression) "*screen" (*) "*" (identifier) "screen" (=) "=" (cast_expression) "(struct screen) SCREEN_INITIALIZER" (() "(" (type_descriptor) "struct screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" ()) ")" (identifier) "SCREEN_INITIALIZER" (;) ";" (}) "}" (function_definition) "static inline SDL_Texture *\ncreate_texture(SDL_Renderer *renderer, struct size frame_size) {\n return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "SDL_Texture" (pointer_declarator) "*\ncreate_texture(SDL_Renderer *renderer, struct size frame_size)" (*) "*" (function_declarator) "create_texture(SDL_Renderer *renderer, struct size frame_size)" (identifier) "create_texture" (parameter_list) "(SDL_Renderer *renderer, struct size frame_size)" (() "(" (parameter_declaration) "SDL_Renderer *renderer" (type_identifier) "SDL_Renderer" (pointer_declarator) "*renderer" (*) "*" (identifier) "renderer" (,) "," (parameter_declaration) "struct size frame_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "frame_size" ()) ")" (compound_statement) "{\n return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height);\n}" ({) "{" (return_statement) "return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height);" (return) "return" (call_expression) "SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height)" (identifier) "SDL_CreateTexture" (argument_list) "(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height)" (() "(" (identifier) "renderer" (,) "," (identifier) "SDL_PIXELFORMAT_YV12" (,) "," (identifier) "SDL_TEXTUREACCESS_STREAMING" (,) "," (field_expression) "frame_size.width" (identifier) "frame_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "frame_size.height" (identifier) "frame_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (}) "}" (function_definition) "bool\nscreen_init_rendering(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top) {\n screen->frame_size = frame_size;\n\n struct size window_size = get_initial_optimal_size(frame_size);\n uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;\n#ifdef HIDPI_SUPPORT\n window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;\n#endif\n if (always_on_top) {\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");\n#endif\n }\n\n screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags);\n if (!screen->window) {\n LOGC("Could not create window: %s", SDL_GetError());\n return false;\n }\n\n screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED);\n if (!screen->renderer) {\n LOGC("Could not create renderer: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n SDL_Surface *icon = read_xpm(icon_xpm);\n if (icon) {\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n } else {\n LOGW("Could not load icon");\n }\n\n LOGI("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width,\n frame_size.height);\n screen->texture = create_texture(screen->renderer, frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n return true;\n}" (primitive_type) "bool" (function_declarator) "screen_init_rendering(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top)" (identifier) "screen_init_rendering" (parameter_list) "(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" (,) "," (parameter_declaration) "const char *window_title" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*window_title" (*) "*" (identifier) "window_title" (,) "," (parameter_declaration) "struct size frame_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "frame_size" (,) "," (parameter_declaration) "bool always_on_top" (primitive_type) "bool" (identifier) "always_on_top" ()) ")" (compound_statement) "{\n screen->frame_size = frame_size;\n\n struct size window_size = get_initial_optimal_size(frame_size);\n uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;\n#ifdef HIDPI_SUPPORT\n window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;\n#endif\n if (always_on_top) {\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");\n#endif\n }\n\n screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags);\n if (!screen->window) {\n LOGC("Could not create window: %s", SDL_GetError());\n return false;\n }\n\n screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED);\n if (!screen->renderer) {\n LOGC("Could not create renderer: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n SDL_Surface *icon = read_xpm(icon_xpm);\n if (icon) {\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n } else {\n LOGW("Could not load icon");\n }\n\n LOGI("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width,\n frame_size.height);\n screen->texture = create_texture(screen->renderer, frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n return true;\n}" ({) "{" (expression_statement) "screen->frame_size = frame_size;" (assignment_expression) "screen->frame_size = frame_size" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (=) "=" (identifier) "frame_size" (;) ";" (declaration) "struct size window_size = get_initial_optimal_size(frame_size);" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (init_declarator) "window_size = get_initial_optimal_size(frame_size)" (identifier) "window_size" (=) "=" (call_expression) "get_initial_optimal_size(frame_size)" (identifier) "get_initial_optimal_size" (argument_list) "(frame_size)" (() "(" (identifier) "frame_size" ()) ")" (;) ";" (declaration) "uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;" (primitive_type) "uint32_t" (init_declarator) "window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE" (identifier) "window_flags" (=) "=" (binary_expression) "SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE" (identifier) "SDL_WINDOW_HIDDEN" (|) "|" (identifier) "SDL_WINDOW_RESIZABLE" (;) ";" (preproc_ifdef) "#ifdef HIDPI_SUPPORT\n window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;\n#endif" (#ifdef) "#ifdef" (identifier) "HIDPI_SUPPORT" (expression_statement) "window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;" (assignment_expression) "window_flags |= SDL_WINDOW_ALLOW_HIGHDPI" (identifier) "window_flags" (|=) "|=" (identifier) "SDL_WINDOW_ALLOW_HIGHDPI" (;) ";" (#endif) "#endif" (if_statement) "if (always_on_top) {\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");\n#endif\n }" (if) "if" (parenthesized_expression) "(always_on_top)" (() "(" (identifier) "always_on_top" ()) ")" (compound_statement) "{\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");\n#endif\n }" ({) "{" (preproc_ifdef) "#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");\n#endif" (#ifdef) "#ifdef" (identifier) "SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP" (expression_statement) "window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;" (assignment_expression) "window_flags |= SDL_WINDOW_ALWAYS_ON_TOP" (identifier) "window_flags" (|=) "|=" (identifier) "SDL_WINDOW_ALWAYS_ON_TOP" (;) ";" (preproc_else) "#else\n LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");" (#else) "#else" (expression_statement) "LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)");" (call_expression) "LOGW("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)")" (identifier) "LOGW" (argument_list) "("The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)")" (() "(" (concatenated_string) ""The 'always on top' flag is not available "\n "(compile with SDL >= 2.0.5 to enable it)"" (string_literal) ""The 'always on top' flag is not available "" (") """ (string_content) "The 'always on top' flag is not available " (") """ (string_literal) ""(compile with SDL >= 2.0.5 to enable it)"" (") """ (string_content) "(compile with SDL >= 2.0.5 to enable it)" (") """ ()) ")" (;) ";" (#endif) "#endif" (}) "}" (expression_statement) "screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags);" (assignment_expression) "screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags)" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (=) "=" (call_expression) "SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags)" (identifier) "SDL_CreateWindow" (argument_list) "(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags)" (() "(" (identifier) "window_title" (,) "," (identifier) "SDL_WINDOWPOS_UNDEFINED" (,) "," (identifier) "SDL_WINDOWPOS_UNDEFINED" (,) "," (field_expression) "window_size.width" (identifier) "window_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "window_size.height" (identifier) "window_size" (.) "." (field_identifier) "height" (,) "," (identifier) "window_flags" ()) ")" (;) ";" (if_statement) "if (!screen->window) {\n LOGC("Could not create window: %s", SDL_GetError());\n return false;\n }" (if) "if" (parenthesized_expression) "(!screen->window)" (() "(" (unary_expression) "!screen->window" (!) "!" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" ()) ")" (compound_statement) "{\n LOGC("Could not create window: %s", SDL_GetError());\n return false;\n }" ({) "{" (expression_statement) "LOGC("Could not create window: %s", SDL_GetError());" (call_expression) "LOGC("Could not create window: %s", SDL_GetError())" (identifier) "LOGC" (argument_list) "("Could not create window: %s", SDL_GetError())" (() "(" (string_literal) ""Could not create window: %s"" (") """ (string_content) "Could not create window: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (expression_statement) "screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED);" (assignment_expression) "screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED)" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" (=) "=" (call_expression) "SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED)" (identifier) "SDL_CreateRenderer" (argument_list) "(screen->window, -1,\n SDL_RENDERER_ACCELERATED)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (,) "," (number_literal) "-1" (,) "," (identifier) "SDL_RENDERER_ACCELERATED" ()) ")" (;) ";" (if_statement) "if (!screen->renderer) {\n LOGC("Could not create renderer: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }" (if) "if" (parenthesized_expression) "(!screen->renderer)" (() "(" (unary_expression) "!screen->renderer" (!) "!" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" ()) ")" (compound_statement) "{\n LOGC("Could not create renderer: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }" ({) "{" (expression_statement) "LOGC("Could not create renderer: %s", SDL_GetError());" (call_expression) "LOGC("Could not create renderer: %s", SDL_GetError())" (identifier) "LOGC" (argument_list) "("Could not create renderer: %s", SDL_GetError())" (() "(" (string_literal) ""Could not create renderer: %s"" (") """ (string_content) "Could not create renderer: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "screen_destroy(screen);" (call_expression) "screen_destroy(screen)" (identifier) "screen_destroy" (argument_list) "(screen)" (() "(" (identifier) "screen" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (if_statement) "if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }" (if) "if" (parenthesized_expression) "(SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height))" (() "(" (call_expression) "SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)" (identifier) "SDL_RenderSetLogicalSize" (argument_list) "(screen->renderer, frame_size.width,\n frame_size.height)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" (,) "," (field_expression) "frame_size.width" (identifier) "frame_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "frame_size.height" (identifier) "frame_size" (.) "." (field_identifier) "height" ()) ")" ()) ")" (compound_statement) "{\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }" ({) "{" (expression_statement) "LOGE("Could not set renderer logical size: %s", SDL_GetError());" (call_expression) "LOGE("Could not set renderer logical size: %s", SDL_GetError())" (identifier) "LOGE" (argument_list) "("Could not set renderer logical size: %s", SDL_GetError())" (() "(" (string_literal) ""Could not set renderer logical size: %s"" (") """ (string_content) "Could not set renderer logical size: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "screen_destroy(screen);" (call_expression) "screen_destroy(screen)" (identifier) "screen_destroy" (argument_list) "(screen)" (() "(" (identifier) "screen" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (declaration) "SDL_Surface *icon = read_xpm(icon_xpm);" (type_identifier) "SDL_Surface" (init_declarator) "*icon = read_xpm(icon_xpm)" (pointer_declarator) "*icon" (*) "*" (identifier) "icon" (=) "=" (call_expression) "read_xpm(icon_xpm)" (identifier) "read_xpm" (argument_list) "(icon_xpm)" (() "(" (identifier) "icon_xpm" ()) ")" (;) ";" (if_statement) "if (icon) {\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n } else {\n LOGW("Could not load icon");\n }" (if) "if" (parenthesized_expression) "(icon)" (() "(" (identifier) "icon" ()) ")" (compound_statement) "{\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n }" ({) "{" (expression_statement) "SDL_SetWindowIcon(screen->window, icon);" (call_expression) "SDL_SetWindowIcon(screen->window, icon)" (identifier) "SDL_SetWindowIcon" (argument_list) "(screen->window, icon)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (,) "," (identifier) "icon" ()) ")" (;) ";" (expression_statement) "SDL_FreeSurface(icon);" (call_expression) "SDL_FreeSurface(icon)" (identifier) "SDL_FreeSurface" (argument_list) "(icon)" (() "(" (identifier) "icon" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n LOGW("Could not load icon");\n }" (else) "else" (compound_statement) "{\n LOGW("Could not load icon");\n }" ({) "{" (expression_statement) "LOGW("Could not load icon");" (call_expression) "LOGW("Could not load icon")" (identifier) "LOGW" (argument_list) "("Could not load icon")" (() "(" (string_literal) ""Could not load icon"" (") """ (string_content) "Could not load icon" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "LOGI("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width,\n frame_size.height);" (call_expression) "LOGI("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width,\n frame_size.height)" (identifier) "LOGI" (argument_list) "("Initial texture: %" PRIu16 "x%" PRIu16, frame_size.width,\n frame_size.height)" (() "(" (concatenated_string) ""Initial texture: %" PRIu16 "x%" PRIu16" (string_literal) ""Initial texture: %"" (") """ (string_content) "Initial texture: %" (") """ (identifier) "PRIu16" (string_literal) ""x%"" (") """ (string_content) "x%" (") """ (identifier) "PRIu16" (,) "," (field_expression) "frame_size.width" (identifier) "frame_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "frame_size.height" (identifier) "frame_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (expression_statement) "screen->texture = create_texture(screen->renderer, frame_size);" (assignment_expression) "screen->texture = create_texture(screen->renderer, frame_size)" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" (=) "=" (call_expression) "create_texture(screen->renderer, frame_size)" (identifier) "create_texture" (argument_list) "(screen->renderer, frame_size)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" (,) "," (identifier) "frame_size" ()) ")" (;) ";" (if_statement) "if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }" (if) "if" (parenthesized_expression) "(!screen->texture)" (() "(" (unary_expression) "!screen->texture" (!) "!" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" ()) ")" (compound_statement) "{\n LOGC("Could not create texture: %s", SDL_GetError());\n screen_destroy(screen);\n return false;\n }" ({) "{" (expression_statement) "LOGC("Could not create texture: %s", SDL_GetError());" (call_expression) "LOGC("Could not create texture: %s", SDL_GetError())" (identifier) "LOGC" (argument_list) "("Could not create texture: %s", SDL_GetError())" (() "(" (string_literal) ""Could not create texture: %s"" (") """ (string_content) "Could not create texture: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "screen_destroy(screen);" (call_expression) "screen_destroy(screen)" (identifier) "screen_destroy" (argument_list) "(screen)" (() "(" (identifier) "screen" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "void\nscreen_show_window(struct screen *screen) {\n SDL_ShowWindow(screen->window);\n}" (primitive_type) "void" (function_declarator) "screen_show_window(struct screen *screen)" (identifier) "screen_show_window" (parameter_list) "(struct screen *screen)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n SDL_ShowWindow(screen->window);\n}" ({) "{" (expression_statement) "SDL_ShowWindow(screen->window);" (call_expression) "SDL_ShowWindow(screen->window)" (identifier) "SDL_ShowWindow" (argument_list) "(screen->window)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" ()) ")" (;) ";" (}) "}" (function_definition) "void\nscreen_destroy(struct screen *screen) {\n if (screen->texture) {\n SDL_DestroyTexture(screen->texture);\n }\n if (screen->renderer) {\n SDL_DestroyRenderer(screen->renderer);\n }\n if (screen->window) {\n SDL_DestroyWindow(screen->window);\n }\n}" (primitive_type) "void" (function_declarator) "screen_destroy(struct screen *screen)" (identifier) "screen_destroy" (parameter_list) "(struct screen *screen)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n if (screen->texture) {\n SDL_DestroyTexture(screen->texture);\n }\n if (screen->renderer) {\n SDL_DestroyRenderer(screen->renderer);\n }\n if (screen->window) {\n SDL_DestroyWindow(screen->window);\n }\n}" ({) "{" (if_statement) "if (screen->texture) {\n SDL_DestroyTexture(screen->texture);\n }" (if) "if" (parenthesized_expression) "(screen->texture)" (() "(" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" ()) ")" (compound_statement) "{\n SDL_DestroyTexture(screen->texture);\n }" ({) "{" (expression_statement) "SDL_DestroyTexture(screen->texture);" (call_expression) "SDL_DestroyTexture(screen->texture)" (identifier) "SDL_DestroyTexture" (argument_list) "(screen->texture)" (() "(" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" ()) ")" (;) ";" (}) "}" (if_statement) "if (screen->renderer) {\n SDL_DestroyRenderer(screen->renderer);\n }" (if) "if" (parenthesized_expression) "(screen->renderer)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" ()) ")" (compound_statement) "{\n SDL_DestroyRenderer(screen->renderer);\n }" ({) "{" (expression_statement) "SDL_DestroyRenderer(screen->renderer);" (call_expression) "SDL_DestroyRenderer(screen->renderer)" (identifier) "SDL_DestroyRenderer" (argument_list) "(screen->renderer)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" ()) ")" (;) ";" (}) "}" (if_statement) "if (screen->window) {\n SDL_DestroyWindow(screen->window);\n }" (if) "if" (parenthesized_expression) "(screen->window)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" ()) ")" (compound_statement) "{\n SDL_DestroyWindow(screen->window);\n }" ({) "{" (expression_statement) "SDL_DestroyWindow(screen->window);" (call_expression) "SDL_DestroyWindow(screen->window)" (identifier) "SDL_DestroyWindow" (argument_list) "(screen->window)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// recreate the texture and resize the window if the frame size has changed" (function_definition) "static bool\nprepare_for_frame(struct screen *screen, struct size new_frame_size) {\n if (screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height) {\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n return false;\n }\n }\n\n return true;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "prepare_for_frame(struct screen *screen, struct size new_frame_size)" (identifier) "prepare_for_frame" (parameter_list) "(struct screen *screen, struct size new_frame_size)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" (,) "," (parameter_declaration) "struct size new_frame_size" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (identifier) "new_frame_size" ()) ")" (compound_statement) "{\n if (screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height) {\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n return false;\n }\n }\n\n return true;\n}" ({) "{" (if_statement) "if (screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height) {\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n return false;\n }\n }" (if) "if" (parenthesized_expression) "(screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height)" (() "(" (binary_expression) "screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height" (binary_expression) "screen->frame_size.width != new_frame_size.width" (field_expression) "screen->frame_size.width" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "width" (!=) "!=" (field_expression) "new_frame_size.width" (identifier) "new_frame_size" (.) "." (field_identifier) "width" (||) "||" (binary_expression) "screen->frame_size.height != new_frame_size.height" (field_expression) "screen->frame_size.height" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "height" (!=) "!=" (field_expression) "new_frame_size.height" (identifier) "new_frame_size" (.) "." (field_identifier) "height" ()) ")" (compound_statement) "{\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n return false;\n }\n }" ({) "{" (expression_statement) "screen->frame_changed = true;" (assignment_expression) "screen->frame_changed = true" (field_expression) "screen->frame_changed" (identifier) "screen" (->) "->" (field_identifier) "frame_changed" (=) "=" (true) "true" (;) ";" (if_statement) "if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n return false;\n }" (if) "if" (parenthesized_expression) "(SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height))" (() "(" (call_expression) "SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)" (identifier) "SDL_RenderSetLogicalSize" (argument_list) "(screen->renderer, new_frame_size.width,\n new_frame_size.height)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" (,) "," (field_expression) "new_frame_size.width" (identifier) "new_frame_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "new_frame_size.height" (identifier) "new_frame_size" (.) "." (field_identifier) "height" ()) ")" ()) ")" (compound_statement) "{\n LOGE("Could not set renderer logical size: %s", SDL_GetError());\n return false;\n }" ({) "{" (expression_statement) "LOGE("Could not set renderer logical size: %s", SDL_GetError());" (call_expression) "LOGE("Could not set renderer logical size: %s", SDL_GetError())" (identifier) "LOGE" (argument_list) "("Could not set renderer logical size: %s", SDL_GetError())" (() "(" (string_literal) ""Could not set renderer logical size: %s"" (") """ (string_content) "Could not set renderer logical size: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "// frame dimension changed, destroy texture" (expression_statement) "SDL_DestroyTexture(screen->texture);" (call_expression) "SDL_DestroyTexture(screen->texture)" (identifier) "SDL_DestroyTexture" (argument_list) "(screen->texture)" (() "(" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" ()) ")" (;) ";" (declaration) "struct size current_size = get_window_size(screen);" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (init_declarator) "current_size = get_window_size(screen)" (identifier) "current_size" (=) "=" (call_expression) "get_window_size(screen)" (identifier) "get_window_size" (argument_list) "(screen)" (() "(" (identifier) "screen" ()) ")" (;) ";" (declaration) "struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (init_declarator) "target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n }" (identifier) "target_size" (=) "=" (initializer_list) "{\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n }" ({) "{" (binary_expression) "(uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width" (binary_expression) "(uint32_t) current_size.width * new_frame_size.width" (cast_expression) "(uint32_t) current_size.width" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (field_expression) "current_size.width" (identifier) "current_size" (.) "." (field_identifier) "width" (*) "*" (field_expression) "new_frame_size.width" (identifier) "new_frame_size" (.) "." (field_identifier) "width" (/) "/" (field_expression) "screen->frame_size.width" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "width" (,) "," (binary_expression) "(uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height" (binary_expression) "(uint32_t) current_size.height * new_frame_size.height" (cast_expression) "(uint32_t) current_size.height" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (field_expression) "current_size.height" (identifier) "current_size" (.) "." (field_identifier) "height" (*) "*" (field_expression) "new_frame_size.height" (identifier) "new_frame_size" (.) "." (field_identifier) "height" (/) "/" (field_expression) "screen->frame_size.height" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "height" (,) "," (}) "}" (;) ";" (expression_statement) "target_size = get_optimal_size(target_size, new_frame_size);" (assignment_expression) "target_size = get_optimal_size(target_size, new_frame_size)" (identifier) "target_size" (=) "=" (call_expression) "get_optimal_size(target_size, new_frame_size)" (identifier) "get_optimal_size" (argument_list) "(target_size, new_frame_size)" (() "(" (identifier) "target_size" (,) "," (identifier) "new_frame_size" ()) ")" (;) ";" (expression_statement) "set_window_size(screen, target_size);" (call_expression) "set_window_size(screen, target_size)" (identifier) "set_window_size" (argument_list) "(screen, target_size)" (() "(" (identifier) "screen" (,) "," (identifier) "target_size" ()) ")" (;) ";" (expression_statement) "screen->frame_size = new_frame_size;" (assignment_expression) "screen->frame_size = new_frame_size" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (=) "=" (identifier) "new_frame_size" (;) ";" (expression_statement) "LOGI("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height);" (call_expression) "LOGI("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height)" (identifier) "LOGI" (argument_list) "("New texture: %" PRIu16 "x%" PRIu16,\n screen->frame_size.width, screen->frame_size.height)" (() "(" (concatenated_string) ""New texture: %" PRIu16 "x%" PRIu16" (string_literal) ""New texture: %"" (") """ (string_content) "New texture: %" (") """ (identifier) "PRIu16" (string_literal) ""x%"" (") """ (string_content) "x%" (") """ (identifier) "PRIu16" (,) "," (field_expression) "screen->frame_size.width" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "screen->frame_size.height" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (expression_statement) "screen->texture = create_texture(screen->renderer, new_frame_size);" (assignment_expression) "screen->texture = create_texture(screen->renderer, new_frame_size)" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" (=) "=" (call_expression) "create_texture(screen->renderer, new_frame_size)" (identifier) "create_texture" (argument_list) "(screen->renderer, new_frame_size)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" (,) "," (identifier) "new_frame_size" ()) ")" (;) ";" (if_statement) "if (!screen->texture) {\n LOGC("Could not create texture: %s", SDL_GetError());\n return false;\n }" (if) "if" (parenthesized_expression) "(!screen->texture)" (() "(" (unary_expression) "!screen->texture" (!) "!" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" ()) ")" (compound_statement) "{\n LOGC("Could not create texture: %s", SDL_GetError());\n return false;\n }" ({) "{" (expression_statement) "LOGC("Could not create texture: %s", SDL_GetError());" (call_expression) "LOGC("Could not create texture: %s", SDL_GetError())" (identifier) "LOGC" (argument_list) "("Could not create texture: %s", SDL_GetError())" (() "(" (string_literal) ""Could not create texture: %s"" (") """ (string_content) "Could not create texture: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (comment) "// write the frame into the texture" (function_definition) "static void\nupdate_texture(struct screen *screen, const AVFrame *frame) {\n SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2]);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "update_texture(struct screen *screen, const AVFrame *frame)" (identifier) "update_texture" (parameter_list) "(struct screen *screen, const AVFrame *frame)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" (,) "," (parameter_declaration) "const AVFrame *frame" (type_qualifier) "const" (const) "const" (type_identifier) "AVFrame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" ()) ")" (compound_statement) "{\n SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2]);\n}" ({) "{" (expression_statement) "SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2]);" (call_expression) "SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2])" (identifier) "SDL_UpdateYUVTexture" (argument_list) "(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2])" (() "(" (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (subscript_expression) "frame->data[0]" (field_expression) "frame->data" (identifier) "frame" (->) "->" (field_identifier) "data" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "frame->linesize[0]" (field_expression) "frame->linesize" (identifier) "frame" (->) "->" (field_identifier) "linesize" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "frame->data[1]" (field_expression) "frame->data" (identifier) "frame" (->) "->" (field_identifier) "data" ([) "[" (number_literal) "1" (]) "]" (,) "," (subscript_expression) "frame->linesize[1]" (field_expression) "frame->linesize" (identifier) "frame" (->) "->" (field_identifier) "linesize" ([) "[" (number_literal) "1" (]) "]" (,) "," (subscript_expression) "frame->data[2]" (field_expression) "frame->data" (identifier) "frame" (->) "->" (field_identifier) "data" ([) "[" (number_literal) "2" (]) "]" (,) "," (subscript_expression) "frame->linesize[2]" (field_expression) "frame->linesize" (identifier) "frame" (->) "->" (field_identifier) "linesize" ([) "[" (number_literal) "2" (]) "]" ()) ")" (;) ";" (}) "}" (function_definition) "bool\nscreen_update_frame(struct screen *screen, struct video_buffer *vb) {\n mutex_lock(vb->mutex);\n const AVFrame *frame = video_buffer_consume_rendered_frame(vb);\n struct size new_frame_size = {frame->width, frame->height};\n screen->frame_changed = false;\n if (!prepare_for_frame(screen, new_frame_size)) {\n mutex_unlock(vb->mutex);\n return false;\n }\n update_texture(screen, frame);\n mutex_unlock(vb->mutex);\n\n screen_render(screen);\n return true;\n}" (primitive_type) "bool" (function_declarator) "screen_update_frame(struct screen *screen, struct video_buffer *vb)" (identifier) "screen_update_frame" (parameter_list) "(struct screen *screen, struct video_buffer *vb)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" (,) "," (parameter_declaration) "struct video_buffer *vb" (struct_specifier) "struct video_buffer" (struct) "struct" (type_identifier) "video_buffer" (pointer_declarator) "*vb" (*) "*" (identifier) "vb" ()) ")" (compound_statement) "{\n mutex_lock(vb->mutex);\n const AVFrame *frame = video_buffer_consume_rendered_frame(vb);\n struct size new_frame_size = {frame->width, frame->height};\n screen->frame_changed = false;\n if (!prepare_for_frame(screen, new_frame_size)) {\n mutex_unlock(vb->mutex);\n return false;\n }\n update_texture(screen, frame);\n mutex_unlock(vb->mutex);\n\n screen_render(screen);\n return true;\n}" ({) "{" (expression_statement) "mutex_lock(vb->mutex);" (call_expression) "mutex_lock(vb->mutex)" (identifier) "mutex_lock" (argument_list) "(vb->mutex)" (() "(" (field_expression) "vb->mutex" (identifier) "vb" (->) "->" (field_identifier) "mutex" ()) ")" (;) ";" (declaration) "const AVFrame *frame = video_buffer_consume_rendered_frame(vb);" (type_qualifier) "const" (const) "const" (type_identifier) "AVFrame" (init_declarator) "*frame = video_buffer_consume_rendered_frame(vb)" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" (=) "=" (call_expression) "video_buffer_consume_rendered_frame(vb)" (identifier) "video_buffer_consume_rendered_frame" (argument_list) "(vb)" (() "(" (identifier) "vb" ()) ")" (;) ";" (declaration) "struct size new_frame_size = {frame->width, frame->height};" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (init_declarator) "new_frame_size = {frame->width, frame->height}" (identifier) "new_frame_size" (=) "=" (initializer_list) "{frame->width, frame->height}" ({) "{" (field_expression) "frame->width" (identifier) "frame" (->) "->" (field_identifier) "width" (,) "," (field_expression) "frame->height" (identifier) "frame" (->) "->" (field_identifier) "height" (}) "}" (;) ";" (expression_statement) "screen->frame_changed = false;" (assignment_expression) "screen->frame_changed = false" (field_expression) "screen->frame_changed" (identifier) "screen" (->) "->" (field_identifier) "frame_changed" (=) "=" (false) "false" (;) ";" (if_statement) "if (!prepare_for_frame(screen, new_frame_size)) {\n mutex_unlock(vb->mutex);\n return false;\n }" (if) "if" (parenthesized_expression) "(!prepare_for_frame(screen, new_frame_size))" (() "(" (unary_expression) "!prepare_for_frame(screen, new_frame_size)" (!) "!" (call_expression) "prepare_for_frame(screen, new_frame_size)" (identifier) "prepare_for_frame" (argument_list) "(screen, new_frame_size)" (() "(" (identifier) "screen" (,) "," (identifier) "new_frame_size" ()) ")" ()) ")" (compound_statement) "{\n mutex_unlock(vb->mutex);\n return false;\n }" ({) "{" (expression_statement) "mutex_unlock(vb->mutex);" (call_expression) "mutex_unlock(vb->mutex)" (identifier) "mutex_unlock" (argument_list) "(vb->mutex)" (() "(" (field_expression) "vb->mutex" (identifier) "vb" (->) "->" (field_identifier) "mutex" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (expression_statement) "update_texture(screen, frame);" (call_expression) "update_texture(screen, frame)" (identifier) "update_texture" (argument_list) "(screen, frame)" (() "(" (identifier) "screen" (,) "," (identifier) "frame" ()) ")" (;) ";" (expression_statement) "mutex_unlock(vb->mutex);" (call_expression) "mutex_unlock(vb->mutex)" (identifier) "mutex_unlock" (argument_list) "(vb->mutex)" (() "(" (field_expression) "vb->mutex" (identifier) "vb" (->) "->" (field_identifier) "mutex" ()) ")" (;) ";" (expression_statement) "screen_render(screen);" (call_expression) "screen_render(screen)" (identifier) "screen_render" (argument_list) "(screen)" (() "(" (identifier) "screen" ()) ")" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "void\nscreen_render(struct screen *screen) {\n SDL_RenderClear(screen->renderer);\n SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL);\n SDL_RenderPresent(screen->renderer);\n}" (primitive_type) "void" (function_declarator) "screen_render(struct screen *screen)" (identifier) "screen_render" (parameter_list) "(struct screen *screen)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n SDL_RenderClear(screen->renderer);\n SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL);\n SDL_RenderPresent(screen->renderer);\n}" ({) "{" (expression_statement) "SDL_RenderClear(screen->renderer);" (call_expression) "SDL_RenderClear(screen->renderer)" (identifier) "SDL_RenderClear" (argument_list) "(screen->renderer)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" ()) ")" (;) ";" (expression_statement) "SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL);" (call_expression) "SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL)" (identifier) "SDL_RenderCopy" (argument_list) "(screen->renderer, screen->texture, NULL, NULL)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" (,) "," (field_expression) "screen->texture" (identifier) "screen" (->) "->" (field_identifier) "texture" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "SDL_RenderPresent(screen->renderer);" (call_expression) "SDL_RenderPresent(screen->renderer)" (identifier) "SDL_RenderPresent" (argument_list) "(screen->renderer)" (() "(" (field_expression) "screen->renderer" (identifier) "screen" (->) "->" (field_identifier) "renderer" ()) ")" (;) ";" (}) "}" (function_definition) "void\nscreen_switch_fullscreen(struct screen *screen) {\n if (!screen->fullscreen) {\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }\n uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP;\n if (SDL_SetWindowFullscreen(screen->window, new_mode)) {\n LOGW("Could not switch fullscreen mode: %s", SDL_GetError());\n return;\n }\n\n screen->fullscreen = !screen->fullscreen;\n if (!screen->fullscreen) {\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }\n\n LOGD("Switched to %s mode", screen->fullscreen ? "fullscreen" : "windowed");\n screen_render(screen);\n}" (primitive_type) "void" (function_declarator) "screen_switch_fullscreen(struct screen *screen)" (identifier) "screen_switch_fullscreen" (parameter_list) "(struct screen *screen)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n if (!screen->fullscreen) {\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }\n uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP;\n if (SDL_SetWindowFullscreen(screen->window, new_mode)) {\n LOGW("Could not switch fullscreen mode: %s", SDL_GetError());\n return;\n }\n\n screen->fullscreen = !screen->fullscreen;\n if (!screen->fullscreen) {\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }\n\n LOGD("Switched to %s mode", screen->fullscreen ? "fullscreen" : "windowed");\n screen_render(screen);\n}" ({) "{" (if_statement) "if (!screen->fullscreen) {\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }" (if) "if" (parenthesized_expression) "(!screen->fullscreen)" (() "(" (unary_expression) "!screen->fullscreen" (!) "!" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" ()) ")" (compound_statement) "{\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }" ({) "{" (comment) "// going to fullscreen, store the current windowed window size" (expression_statement) "screen->windowed_window_size = get_native_window_size(screen->window);" (assignment_expression) "screen->windowed_window_size = get_native_window_size(screen->window)" (field_expression) "screen->windowed_window_size" (identifier) "screen" (->) "->" (field_identifier) "windowed_window_size" (=) "=" (call_expression) "get_native_window_size(screen->window)" (identifier) "get_native_window_size" (argument_list) "(screen->window)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" ()) ")" (;) ";" (}) "}" (declaration) "uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP;" (primitive_type) "uint32_t" (init_declarator) "new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP" (identifier) "new_mode" (=) "=" (conditional_expression) "screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" (?) "?" (number_literal) "0" (:) ":" (identifier) "SDL_WINDOW_FULLSCREEN_DESKTOP" (;) ";" (if_statement) "if (SDL_SetWindowFullscreen(screen->window, new_mode)) {\n LOGW("Could not switch fullscreen mode: %s", SDL_GetError());\n return;\n }" (if) "if" (parenthesized_expression) "(SDL_SetWindowFullscreen(screen->window, new_mode))" (() "(" (call_expression) "SDL_SetWindowFullscreen(screen->window, new_mode)" (identifier) "SDL_SetWindowFullscreen" (argument_list) "(screen->window, new_mode)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (,) "," (identifier) "new_mode" ()) ")" ()) ")" (compound_statement) "{\n LOGW("Could not switch fullscreen mode: %s", SDL_GetError());\n return;\n }" ({) "{" (expression_statement) "LOGW("Could not switch fullscreen mode: %s", SDL_GetError());" (call_expression) "LOGW("Could not switch fullscreen mode: %s", SDL_GetError())" (identifier) "LOGW" (argument_list) "("Could not switch fullscreen mode: %s", SDL_GetError())" (() "(" (string_literal) ""Could not switch fullscreen mode: %s"" (") """ (string_content) "Could not switch fullscreen mode: %s" (") """ (,) "," (call_expression) "SDL_GetError()" (identifier) "SDL_GetError" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "screen->fullscreen = !screen->fullscreen;" (assignment_expression) "screen->fullscreen = !screen->fullscreen" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" (=) "=" (unary_expression) "!screen->fullscreen" (!) "!" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" (;) ";" (if_statement) "if (!screen->fullscreen) {\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }" (if) "if" (parenthesized_expression) "(!screen->fullscreen)" (() "(" (unary_expression) "!screen->fullscreen" (!) "!" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" ()) ")" (compound_statement) "{\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }" ({) "{" (comment) "// fullscreen disabled, restore expected windowed window size" (expression_statement) "SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);" (call_expression) "SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height)" (identifier) "SDL_SetWindowSize" (argument_list) "(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (,) "," (field_expression) "screen->windowed_window_size.width" (field_expression) "screen->windowed_window_size" (identifier) "screen" (->) "->" (field_identifier) "windowed_window_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "screen->windowed_window_size.height" (field_expression) "screen->windowed_window_size" (identifier) "screen" (->) "->" (field_identifier) "windowed_window_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (}) "}" (expression_statement) "LOGD("Switched to %s mode", screen->fullscreen ? "fullscreen" : "windowed");" (call_expression) "LOGD("Switched to %s mode", screen->fullscreen ? "fullscreen" : "windowed")" (identifier) "LOGD" (argument_list) "("Switched to %s mode", screen->fullscreen ? "fullscreen" : "windowed")" (() "(" (string_literal) ""Switched to %s mode"" (") """ (string_content) "Switched to %s mode" (") """ (,) "," (conditional_expression) "screen->fullscreen ? "fullscreen" : "windowed"" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" (?) "?" (string_literal) ""fullscreen"" (") """ (string_content) "fullscreen" (") """ (:) ":" (string_literal) ""windowed"" (") """ (string_content) "windowed" (") """ ()) ")" (;) ";" (expression_statement) "screen_render(screen);" (call_expression) "screen_render(screen)" (identifier) "screen_render" (argument_list) "(screen)" (() "(" (identifier) "screen" ()) ")" (;) ";" (}) "}" (function_definition) "void\nscreen_resize_to_fit(struct screen *screen) {\n if (!screen->fullscreen) {\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD("Resized to optimal size");\n }\n}" (primitive_type) "void" (function_declarator) "screen_resize_to_fit(struct screen *screen)" (identifier) "screen_resize_to_fit" (parameter_list) "(struct screen *screen)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n if (!screen->fullscreen) {\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD("Resized to optimal size");\n }\n}" ({) "{" (if_statement) "if (!screen->fullscreen) {\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD("Resized to optimal size");\n }" (if) "if" (parenthesized_expression) "(!screen->fullscreen)" (() "(" (unary_expression) "!screen->fullscreen" (!) "!" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" ()) ")" (compound_statement) "{\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD("Resized to optimal size");\n }" ({) "{" (declaration) "struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);" (struct_specifier) "struct size" (struct) "struct" (type_identifier) "size" (init_declarator) "optimal_size = get_optimal_window_size(screen,\n screen->frame_size)" (identifier) "optimal_size" (=) "=" (call_expression) "get_optimal_window_size(screen,\n screen->frame_size)" (identifier) "get_optimal_window_size" (argument_list) "(screen,\n screen->frame_size)" (() "(" (identifier) "screen" (,) "," (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" ()) ")" (;) ";" (expression_statement) "SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);" (call_expression) "SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height)" (identifier) "SDL_SetWindowSize" (argument_list) "(screen->window, optimal_size.width,\n optimal_size.height)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (,) "," (field_expression) "optimal_size.width" (identifier) "optimal_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "optimal_size.height" (identifier) "optimal_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (expression_statement) "LOGD("Resized to optimal size");" (call_expression) "LOGD("Resized to optimal size")" (identifier) "LOGD" (argument_list) "("Resized to optimal size")" (() "(" (string_literal) ""Resized to optimal size"" (") """ (string_content) "Resized to optimal size" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void\nscreen_resize_to_pixel_perfect(struct screen *screen) {\n if (!screen->fullscreen) {\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD("Resized to pixel-perfect");\n }\n}" (primitive_type) "void" (function_declarator) "screen_resize_to_pixel_perfect(struct screen *screen)" (identifier) "screen_resize_to_pixel_perfect" (parameter_list) "(struct screen *screen)" (() "(" (parameter_declaration) "struct screen *screen" (struct_specifier) "struct screen" (struct) "struct" (type_identifier) "screen" (pointer_declarator) "*screen" (*) "*" (identifier) "screen" ()) ")" (compound_statement) "{\n if (!screen->fullscreen) {\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD("Resized to pixel-perfect");\n }\n}" ({) "{" (if_statement) "if (!screen->fullscreen) {\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD("Resized to pixel-perfect");\n }" (if) "if" (parenthesized_expression) "(!screen->fullscreen)" (() "(" (unary_expression) "!screen->fullscreen" (!) "!" (field_expression) "screen->fullscreen" (identifier) "screen" (->) "->" (field_identifier) "fullscreen" ()) ")" (compound_statement) "{\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD("Resized to pixel-perfect");\n }" ({) "{" (expression_statement) "SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);" (call_expression) "SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height)" (identifier) "SDL_SetWindowSize" (argument_list) "(screen->window, screen->frame_size.width,\n screen->frame_size.height)" (() "(" (field_expression) "screen->window" (identifier) "screen" (->) "->" (field_identifier) "window" (,) "," (field_expression) "screen->frame_size.width" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "width" (,) "," (field_expression) "screen->frame_size.height" (field_expression) "screen->frame_size" (identifier) "screen" (->) "->" (field_identifier) "frame_size" (.) "." (field_identifier) "height" ()) ")" (;) ";" (expression_statement) "LOGD("Resized to pixel-perfect");" (call_expression) "LOGD("Resized to pixel-perfect")" (identifier) "LOGD" (argument_list) "("Resized to pixel-perfect")" (() "(" (string_literal) ""Resized to pixel-perfect"" (") """ (string_content) "Resized to pixel-perfect" (") """ ()) ")" (;) ";" (}) "}" (}) "}"
2,381
0
{"language": "c", "success": true, "metadata": {"lines": 287, "avg_line_length": 36.49, "nodes": 1399, "errors": 0, "source_hash": "cb7f0e188bff25b42296347db52db853f30fd37c83f3f652e77450e7c71f5b9c", "categorized_nodes": 1104}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"screen.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": "\"screen.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <string.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": "<string.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <SDL2/SDL.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": "<SDL2/SDL.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"common.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": "\"common.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"compat.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": "\"compat.h\"", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include \"icon.xpm\"\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": "string_literal", "text": "\"icon.xpm\"", "parent": 15, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include \"lock_util.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"lock_util.h\"", "parent": 18, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 22}}, {"id": 21, "type": "preproc_include", "text": "#include \"log.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"log.h\"", "parent": 21, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 16}}, {"id": 24, "type": "preproc_include", "text": "#include \"tiny_xpm.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"tiny_xpm.h\"", "parent": 24, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 21}}, {"id": 27, "type": "preproc_include", "text": "#include \"video_buffer.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"video_buffer.h\"", "parent": 27, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 25}}, {"id": 30, "type": "preproc_def", "text": "#define DISPLAY_MARGINS 96\n", "parent": null, "children": [31, 32, 33], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 32, "type": "identifier", "text": "DISPLAY_MARGINS", "parent": 30, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 23}}, {"id": 33, "type": "preproc_arg", "text": "96", "parent": 30, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 26}}, {"id": 34, "type": "function_definition", "text": "static struct size\nget_native_window_size(SDL_Window *window) {\n int width;\n int height;\n SDL_GetWindowSize(window, &width, &height);\n\n struct size size;\n size.width = width;\n size.height = height;\n return size;\n}", "parent": null, "children": [35, 38], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 35, "type": "struct_specifier", "text": "struct size", "parent": 34, "children": [36, 37], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 18}}, {"id": 36, "type": "struct", "text": "struct", "parent": 35, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 13}}, {"id": 37, "type": "type_identifier", "text": "size", "parent": 35, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 18}}, {"id": 38, "type": "function_declarator", "text": "get_native_window_size(SDL_Window *window)", "parent": 34, "children": [39, 40], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 42}}, {"id": 39, "type": "identifier", "text": "get_native_window_size", "parent": 38, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 22}}, {"id": 40, "type": "parameter_list", "text": "(SDL_Window *window)", "parent": 38, "children": [41], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 42}}, {"id": 41, "type": "parameter_declaration", "text": "SDL_Window *window", "parent": 40, "children": [42, 43], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 41}}, {"id": 42, "type": "type_identifier", "text": "SDL_Window", "parent": 41, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 33}}, {"id": 43, "type": "pointer_declarator", "text": "*window", "parent": 41, "children": [44, 45], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 41}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 45, "type": "identifier", "text": "window", "parent": 43, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 41}}, {"id": 46, "type": "declaration", "text": "int width;", "parent": 34, "children": [47, 48], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 14}}, {"id": 47, "type": "primitive_type", "text": "int", "parent": 46, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 7}}, {"id": 48, "type": "identifier", "text": "width", "parent": 46, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 13}}, {"id": 49, "type": "declaration", "text": "int height;", "parent": 34, "children": [50, 51], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 15}}, {"id": 50, "type": "primitive_type", "text": "int", "parent": 49, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 7}}, {"id": 51, "type": "identifier", "text": "height", "parent": 49, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 52, "type": "call_expression", "text": "SDL_GetWindowSize(window, &width, &height)", "parent": 34, "children": [53, 54], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 46}}, {"id": 53, "type": "identifier", "text": "SDL_GetWindowSize", "parent": 52, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 21}}, {"id": 54, "type": "argument_list", "text": "(window, &width, &height)", "parent": 52, "children": [55, 56, 58], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 46}}, {"id": 55, "type": "identifier", "text": "window", "parent": 54, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 28}}, {"id": 56, "type": "pointer_expression", "text": "&width", "parent": 54, "children": [57], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 36}}, {"id": 57, "type": "identifier", "text": "width", "parent": 56, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 36}}, {"id": 58, "type": "pointer_expression", "text": "&height", "parent": 54, "children": [59], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 45}}, {"id": 59, "type": "identifier", "text": "height", "parent": 58, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 45}}, {"id": 60, "type": "declaration", "text": "struct size size;", "parent": 34, "children": [61, 64], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 21}}, {"id": 61, "type": "struct_specifier", "text": "struct size", "parent": 60, "children": [62, 63], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 15}}, {"id": 62, "type": "struct", "text": "struct", "parent": 61, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 63, "type": "type_identifier", "text": "size", "parent": 61, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 15}}, {"id": 64, "type": "identifier", "text": "size", "parent": 60, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 20}}, {"id": 65, "type": "assignment_expression", "text": "size.width = width", "parent": 34, "children": [66, 69, 70], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 22}}, {"id": 66, "type": "field_expression", "text": "size.width", "parent": 65, "children": [67, 68], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 14}}, {"id": 67, "type": "identifier", "text": "size", "parent": 66, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 8}}, {"id": 68, "type": "field_identifier", "text": "width", "parent": 66, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 14}}, {"id": 69, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 16}}, {"id": 70, "type": "identifier", "text": "width", "parent": 65, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 22}}, {"id": 71, "type": "assignment_expression", "text": "size.height = height", "parent": 34, "children": [72, 75, 76], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 24}}, {"id": 72, "type": "field_expression", "text": "size.height", "parent": 71, "children": [73, 74], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 73, "type": "identifier", "text": "size", "parent": 72, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 74, "type": "field_identifier", "text": "height", "parent": 72, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 15}}, {"id": 75, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 76, "type": "identifier", "text": "height", "parent": 71, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 24}}, {"id": 77, "type": "return_statement", "text": "return size;", "parent": 34, "children": [78], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 16}}, {"id": 78, "type": "identifier", "text": "size", "parent": 77, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 15}}, {"id": 79, "type": "function_definition", "text": "static struct size\nget_window_size(const struct screen *screen) {\n if (screen->fullscreen) {\n return screen->windowed_window_size;\n }\n return get_native_window_size(screen->window);\n}", "parent": null, "children": [80, 83], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 80, "type": "struct_specifier", "text": "struct size", "parent": 79, "children": [81, 82], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 18}}, {"id": 81, "type": "struct", "text": "struct", "parent": 80, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 13}}, {"id": 82, "type": "type_identifier", "text": "size", "parent": 80, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 18}}, {"id": 83, "type": "function_declarator", "text": "get_window_size(const struct screen *screen)", "parent": 79, "children": [84, 85], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 44}}, {"id": 84, "type": "identifier", "text": "get_window_size", "parent": 83, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 15}}, {"id": 85, "type": "parameter_list", "text": "(const struct screen *screen)", "parent": 83, "children": [86], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 44}}, {"id": 86, "type": "parameter_declaration", "text": "const struct screen *screen", "parent": 85, "children": [87, 90], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 43}}, {"id": 87, "type": "struct_specifier", "text": "struct screen", "parent": 86, "children": [88, 89], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 35}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 28}}, {"id": 89, "type": "type_identifier", "text": "screen", "parent": 87, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 35}}, {"id": 90, "type": "pointer_declarator", "text": "*screen", "parent": 86, "children": [91, 92], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 43}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 37}}, {"id": 92, "type": "identifier", "text": "screen", "parent": 90, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 43}}, {"id": 93, "type": "if_statement", "text": "if (screen->fullscreen) {\n return screen->windowed_window_size;\n }", "parent": 79, "children": [94], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 33, "column": 5}}, {"id": 94, "type": "parenthesized_expression", "text": "(screen->fullscreen)", "parent": 93, "children": [95], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 27}}, {"id": 95, "type": "field_expression", "text": "screen->fullscreen", "parent": 94, "children": [96, 97], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 26}}, {"id": 96, "type": "identifier", "text": "screen", "parent": 95, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 14}}, {"id": 97, "type": "field_identifier", "text": "fullscreen", "parent": 95, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 26}}, {"id": 98, "type": "return_statement", "text": "return screen->windowed_window_size;", "parent": 93, "children": [99], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 44}}, {"id": 99, "type": "field_expression", "text": "screen->windowed_window_size", "parent": 98, "children": [100, 101], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 43}}, {"id": 100, "type": "identifier", "text": "screen", "parent": 99, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 21}}, {"id": 101, "type": "field_identifier", "text": "windowed_window_size", "parent": 99, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 43}}, {"id": 102, "type": "return_statement", "text": "return get_native_window_size(screen->window);", "parent": 79, "children": [103], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 50}}, {"id": 103, "type": "call_expression", "text": "get_native_window_size(screen->window)", "parent": 102, "children": [104, 105], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 49}}, {"id": 104, "type": "identifier", "text": "get_native_window_size", "parent": 103, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 33}}, {"id": 105, "type": "argument_list", "text": "(screen->window)", "parent": 103, "children": [106], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 49}}, {"id": 106, "type": "field_expression", "text": "screen->window", "parent": 105, "children": [107, 108], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 48}}, {"id": 107, "type": "identifier", "text": "screen", "parent": 106, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 40}}, {"id": 108, "type": "field_identifier", "text": "window", "parent": 106, "children": [], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 48}}, {"id": 109, "type": "function_definition", "text": "static void\nset_window_size(struct screen *screen, struct size new_size) {\n // setting the window size during fullscreen is implementation defined,\n // so apply the resize only after fullscreen is disabled\n if (screen->fullscreen) {\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n } else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }\n}", "parent": null, "children": [110, 111], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 110, "type": "primitive_type", "text": "void", "parent": 109, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 11}}, {"id": 111, "type": "function_declarator", "text": "set_window_size(struct screen *screen, struct size new_size)", "parent": 109, "children": [112, 113], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 60}}, {"id": 112, "type": "identifier", "text": "set_window_size", "parent": 111, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 15}}, {"id": 113, "type": "parameter_list", "text": "(struct screen *screen, struct size new_size)", "parent": 111, "children": [114, 121], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 60}}, {"id": 114, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 113, "children": [115, 118], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 37}}, {"id": 115, "type": "struct_specifier", "text": "struct screen", "parent": 114, "children": [116, 117], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 29}}, {"id": 116, "type": "struct", "text": "struct", "parent": 115, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 22}}, {"id": 117, "type": "type_identifier", "text": "screen", "parent": 115, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 29}}, {"id": 118, "type": "pointer_declarator", "text": "*screen", "parent": 114, "children": [119, 120], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 37}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 31}}, {"id": 120, "type": "identifier", "text": "screen", "parent": 118, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 37}}, {"id": 121, "type": "parameter_declaration", "text": "struct size new_size", "parent": 113, "children": [122, 125], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 59}}, {"id": 122, "type": "struct_specifier", "text": "struct size", "parent": 121, "children": [123, 124], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 50}}, {"id": 123, "type": "struct", "text": "struct", "parent": 122, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 45}}, {"id": 124, "type": "type_identifier", "text": "size", "parent": 122, "children": [], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 50}}, {"id": 125, "type": "identifier", "text": "new_size", "parent": 121, "children": [], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 39, "column": 59}}, {"id": 126, "type": "if_statement", "text": "if (screen->fullscreen) {\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n } else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }", "parent": 109, "children": [127, 137], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 127, "type": "parenthesized_expression", "text": "(screen->fullscreen)", "parent": 126, "children": [128], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 27}}, {"id": 128, "type": "field_expression", "text": "screen->fullscreen", "parent": 127, "children": [129, 130], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 26}}, {"id": 129, "type": "identifier", "text": "screen", "parent": 128, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 14}}, {"id": 130, "type": "field_identifier", "text": "fullscreen", "parent": 128, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 26}}, {"id": 131, "type": "assignment_expression", "text": "screen->windowed_window_size = new_size", "parent": 126, "children": [132, 135, 136], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 47}}, {"id": 132, "type": "field_expression", "text": "screen->windowed_window_size", "parent": 131, "children": [133, 134], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 36}}, {"id": 133, "type": "identifier", "text": "screen", "parent": 132, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 14}}, {"id": 134, "type": "field_identifier", "text": "windowed_window_size", "parent": 132, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 36}}, {"id": 135, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 38}}, {"id": 136, "type": "identifier", "text": "new_size", "parent": 131, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 47}}, {"id": 137, "type": "else_clause", "text": "else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }", "parent": 126, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 47, "column": 5}}, {"id": 138, "type": "call_expression", "text": "SDL_SetWindowSize(screen->window, new_size.width, new_size.height)", "parent": 137, "children": [139, 140], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 74}}, {"id": 139, "type": "identifier", "text": "SDL_SetWindowSize", "parent": 138, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 25}}, {"id": 140, "type": "argument_list", "text": "(screen->window, new_size.width, new_size.height)", "parent": 138, "children": [141, 144, 147], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 74}}, {"id": 141, "type": "field_expression", "text": "screen->window", "parent": 140, "children": [142, 143], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 40}}, {"id": 142, "type": "identifier", "text": "screen", "parent": 141, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 32}}, {"id": 143, "type": "field_identifier", "text": "window", "parent": 141, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 40}}, {"id": 144, "type": "field_expression", "text": "new_size.width", "parent": 140, "children": [145, 146], "start_point": {"row": 46, "column": 42}, "end_point": {"row": 46, "column": 56}}, {"id": 145, "type": "identifier", "text": "new_size", "parent": 144, "children": [], "start_point": {"row": 46, "column": 42}, "end_point": {"row": 46, "column": 50}}, {"id": 146, "type": "field_identifier", "text": "width", "parent": 144, "children": [], "start_point": {"row": 46, "column": 51}, "end_point": {"row": 46, "column": 56}}, {"id": 147, "type": "field_expression", "text": "new_size.height", "parent": 140, "children": [148, 149], "start_point": {"row": 46, "column": 58}, "end_point": {"row": 46, "column": 73}}, {"id": 148, "type": "identifier", "text": "new_size", "parent": 147, "children": [], "start_point": {"row": 46, "column": 58}, "end_point": {"row": 46, "column": 66}}, {"id": 149, "type": "field_identifier", "text": "height", "parent": 147, "children": [], "start_point": {"row": 46, "column": 67}, "end_point": {"row": 46, "column": 73}}, {"id": 150, "type": "function_definition", "text": "static bool\nget_preferred_display_bounds(struct size *bounds) {\n SDL_Rect rect;\n#ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n#endif\n if (GET_DISPLAY_BOUNDS(0, &rect)) {\n LOGW(\"Could not get display usable bounds: %s\", SDL_GetError());\n return false;\n }\n\n bounds->width = MAX(0, rect.w - DISPLAY_MARGINS);\n bounds->height = MAX(0, rect.h - DISPLAY_MARGINS);\n return true;\n}", "parent": null, "children": [151, 152], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 151, "type": "primitive_type", "text": "bool", "parent": 150, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 11}}, {"id": 152, "type": "function_declarator", "text": "get_preferred_display_bounds(struct size *bounds)", "parent": 150, "children": [153, 154], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 49}}, {"id": 153, "type": "identifier", "text": "get_preferred_display_bounds", "parent": 152, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 28}}, {"id": 154, "type": "parameter_list", "text": "(struct size *bounds)", "parent": 152, "children": [155], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 49}}, {"id": 155, "type": "parameter_declaration", "text": "struct size *bounds", "parent": 154, "children": [156, 159], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 48}}, {"id": 156, "type": "struct_specifier", "text": "struct size", "parent": 155, "children": [157, 158], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 40}}, {"id": 157, "type": "struct", "text": "struct", "parent": 156, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 35}}, {"id": 158, "type": "type_identifier", "text": "size", "parent": 156, "children": [], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 40}}, {"id": 159, "type": "pointer_declarator", "text": "*bounds", "parent": 155, "children": [160, 161], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 48}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 42}}, {"id": 161, "type": "identifier", "text": "bounds", "parent": 159, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 48}}, {"id": 162, "type": "declaration", "text": "SDL_Rect rect;", "parent": 150, "children": [163, 164], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 18}}, {"id": 163, "type": "type_identifier", "text": "SDL_Rect", "parent": 162, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 12}}, {"id": 164, "type": "identifier", "text": "rect", "parent": 162, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 17}}, {"id": 165, "type": "preproc_ifdef", "text": "#ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n#endif", "parent": 150, "children": [166, 167, 168, 175, 184], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 166, "type": "#ifdef", "text": "#ifdef", "parent": 165, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 6}}, {"id": 167, "type": "identifier", "text": "SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS", "parent": 165, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 47}}, {"id": 168, "type": "preproc_function_def", "text": "# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n", "parent": 165, "children": [169, 170, 171, 174], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 169, "type": "#define", "text": "# define", "parent": 168, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 8}}, {"id": 170, "type": "identifier", "text": "GET_DISPLAY_BOUNDS", "parent": 168, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 27}}, {"id": 171, "type": "preproc_params", "text": "(i, r)", "parent": 168, "children": [172, 173], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 33}}, {"id": 172, "type": "identifier", "text": "i", "parent": 171, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 29}}, {"id": 173, "type": "identifier", "text": "r", "parent": 171, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 32}}, {"id": 174, "type": "preproc_arg", "text": "SDL_GetDisplayUsableBounds((i), (r))", "parent": 168, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 70}}, {"id": 175, "type": "preproc_else", "text": "#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n", "parent": 165, "children": [176, 177], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 176, "type": "#else", "text": "#else", "parent": 175, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 5}}, {"id": 177, "type": "preproc_function_def", "text": "# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n", "parent": 175, "children": [178, 179, 180, 183], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 178, "type": "#define", "text": "# define", "parent": 177, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 8}}, {"id": 179, "type": "identifier", "text": "GET_DISPLAY_BOUNDS", "parent": 177, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 27}}, {"id": 180, "type": "preproc_params", "text": "(i, r)", "parent": 177, "children": [181, 182], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 33}}, {"id": 181, "type": "identifier", "text": "i", "parent": 180, "children": [], "start_point": {"row": 57, "column": 28}, "end_point": {"row": 57, "column": 29}}, {"id": 182, "type": "identifier", "text": "r", "parent": 180, "children": [], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 32}}, {"id": 183, "type": "preproc_arg", "text": "SDL_GetDisplayBounds((i), (r))", "parent": 177, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 64}}, {"id": 184, "type": "#endif", "text": "#endif", "parent": 165, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 6}}, {"id": 185, "type": "if_statement", "text": "if (GET_DISPLAY_BOUNDS(0, &rect)) {\n LOGW(\"Could not get display usable bounds: %s\", SDL_GetError());\n return false;\n }", "parent": 150, "children": [186], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 62, "column": 5}}, {"id": 186, "type": "parenthesized_expression", "text": "(GET_DISPLAY_BOUNDS(0, &rect))", "parent": 185, "children": [187], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 37}}, {"id": 187, "type": "call_expression", "text": "GET_DISPLAY_BOUNDS(0, &rect)", "parent": 186, "children": [188, 189], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 36}}, {"id": 188, "type": "identifier", "text": "GET_DISPLAY_BOUNDS", "parent": 187, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 26}}, {"id": 189, "type": "argument_list", "text": "(0, &rect)", "parent": 187, "children": [190, 191], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 36}}, {"id": 190, "type": "number_literal", "text": "0", "parent": 189, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 28}}, {"id": 191, "type": "pointer_expression", "text": "&rect", "parent": 189, "children": [192], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 35}}, {"id": 192, "type": "identifier", "text": "rect", "parent": 191, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 35}}, {"id": 193, "type": "call_expression", "text": "LOGW(\"Could not get display usable bounds: %s\", SDL_GetError())", "parent": 185, "children": [194, 195], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 71}}, {"id": 194, "type": "identifier", "text": "LOGW", "parent": 193, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 12}}, {"id": 195, "type": "argument_list", "text": "(\"Could not get display usable bounds: %s\", SDL_GetError())", "parent": 193, "children": [196, 197], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 71}}, {"id": 196, "type": "string_literal", "text": "\"Could not get display usable bounds: %s\"", "parent": 195, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 54}}, {"id": 197, "type": "call_expression", "text": "SDL_GetError()", "parent": 195, "children": [198, 199], "start_point": {"row": 60, "column": 56}, "end_point": {"row": 60, "column": 70}}, {"id": 198, "type": "identifier", "text": "SDL_GetError", "parent": 197, "children": [], "start_point": {"row": 60, "column": 56}, "end_point": {"row": 60, "column": 68}}, {"id": 199, "type": "argument_list", "text": "()", "parent": 197, "children": [], "start_point": {"row": 60, "column": 68}, "end_point": {"row": 60, "column": 70}}, {"id": 200, "type": "return_statement", "text": "return false;", "parent": 185, "children": [201], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 21}}, {"id": 201, "type": "false", "text": "false", "parent": 200, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 20}}, {"id": 202, "type": "assignment_expression", "text": "bounds->width = MAX(0, rect.w - DISPLAY_MARGINS)", "parent": 150, "children": [203, 206, 207], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 52}}, {"id": 203, "type": "field_expression", "text": "bounds->width", "parent": 202, "children": [204, 205], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 17}}, {"id": 204, "type": "identifier", "text": "bounds", "parent": 203, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 10}}, {"id": 205, "type": "field_identifier", "text": "width", "parent": 203, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 17}}, {"id": 206, "type": "=", "text": "=", "parent": 202, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 19}}, {"id": 207, "type": "call_expression", "text": "MAX(0, rect.w - DISPLAY_MARGINS)", "parent": 202, "children": [208, 209], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 52}}, {"id": 208, "type": "identifier", "text": "MAX", "parent": 207, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 23}}, {"id": 209, "type": "argument_list", "text": "(0, rect.w - DISPLAY_MARGINS)", "parent": 207, "children": [210, 211], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 52}}, {"id": 210, "type": "number_literal", "text": "0", "parent": 209, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 25}}, {"id": 211, "type": "binary_expression", "text": "rect.w - DISPLAY_MARGINS", "parent": 209, "children": [212, 215, 216], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 51}}, {"id": 212, "type": "field_expression", "text": "rect.w", "parent": 211, "children": [213, 214], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 33}}, {"id": 213, "type": "identifier", "text": "rect", "parent": 212, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 31}}, {"id": 214, "type": "field_identifier", "text": "w", "parent": 212, "children": [], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 33}}, {"id": 215, "type": "-", "text": "-", "parent": 211, "children": [], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 35}}, {"id": 216, "type": "identifier", "text": "DISPLAY_MARGINS", "parent": 211, "children": [], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 51}}, {"id": 217, "type": "assignment_expression", "text": "bounds->height = MAX(0, rect.h - DISPLAY_MARGINS)", "parent": 150, "children": [218, 221, 222], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 53}}, {"id": 218, "type": "field_expression", "text": "bounds->height", "parent": 217, "children": [219, 220], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 18}}, {"id": 219, "type": "identifier", "text": "bounds", "parent": 218, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 10}}, {"id": 220, "type": "field_identifier", "text": "height", "parent": 218, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 18}}, {"id": 221, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 20}}, {"id": 222, "type": "call_expression", "text": "MAX(0, rect.h - DISPLAY_MARGINS)", "parent": 217, "children": [223, 224], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 53}}, {"id": 223, "type": "identifier", "text": "MAX", "parent": 222, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 24}}, {"id": 224, "type": "argument_list", "text": "(0, rect.h - DISPLAY_MARGINS)", "parent": 222, "children": [225, 226], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 53}}, {"id": 225, "type": "number_literal", "text": "0", "parent": 224, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 26}}, {"id": 226, "type": "binary_expression", "text": "rect.h - DISPLAY_MARGINS", "parent": 224, "children": [227, 230, 231], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 52}}, {"id": 227, "type": "field_expression", "text": "rect.h", "parent": 226, "children": [228, 229], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 34}}, {"id": 228, "type": "identifier", "text": "rect", "parent": 227, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 32}}, {"id": 229, "type": "field_identifier", "text": "h", "parent": 227, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 34}}, {"id": 230, "type": "-", "text": "-", "parent": 226, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 36}}, {"id": 231, "type": "identifier", "text": "DISPLAY_MARGINS", "parent": 226, "children": [], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 52}}, {"id": 232, "type": "return_statement", "text": "return true;", "parent": 150, "children": [233], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 16}}, {"id": 233, "type": "true", "text": "true", "parent": 232, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 15}}, {"id": 234, "type": "function_definition", "text": "static struct size\nget_optimal_size(struct size current_size, struct size frame_size) {\n if (frame_size.width == 0 || frame_size.height == 0) {\n // avoid division by 0\n return current_size;\n }\n\n struct size display_size;\n // 32 bits because we need to multiply two 16 bits values\n uint32_t w;\n uint32_t h;\n\n if (!get_preferred_display_bounds(&display_size)) {\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n } else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }\n\n bool keep_width = frame_size.width * h > frame_size.height * w;\n if (keep_width) {\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n } else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }\n\n // w and h must fit into 16 bits\n SDL_assert_release(w < 0x10000 && h < 0x10000);\n return (struct size) {w, h};\n}", "parent": null, "children": [235, 238], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 235, "type": "struct_specifier", "text": "struct size", "parent": 234, "children": [236, 237], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 18}}, {"id": 236, "type": "struct", "text": "struct", "parent": 235, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 13}}, {"id": 237, "type": "type_identifier", "text": "size", "parent": 235, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 18}}, {"id": 238, "type": "function_declarator", "text": "get_optimal_size(struct size current_size, struct size frame_size)", "parent": 234, "children": [239, 240], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 66}}, {"id": 239, "type": "identifier", "text": "get_optimal_size", "parent": 238, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 16}}, {"id": 240, "type": "parameter_list", "text": "(struct size current_size, struct size frame_size)", "parent": 238, "children": [241, 246], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 66}}, {"id": 241, "type": "parameter_declaration", "text": "struct size current_size", "parent": 240, "children": [242, 245], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 41}}, {"id": 242, "type": "struct_specifier", "text": "struct size", "parent": 241, "children": [243, 244], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 28}}, {"id": 243, "type": "struct", "text": "struct", "parent": 242, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 23}}, {"id": 244, "type": "type_identifier", "text": "size", "parent": 242, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 28}}, {"id": 245, "type": "identifier", "text": "current_size", "parent": 241, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 41}}, {"id": 246, "type": "parameter_declaration", "text": "struct size frame_size", "parent": 240, "children": [247, 250], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 65}}, {"id": 247, "type": "struct_specifier", "text": "struct size", "parent": 246, "children": [248, 249], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 54}}, {"id": 248, "type": "struct", "text": "struct", "parent": 247, "children": [], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 49}}, {"id": 249, "type": "type_identifier", "text": "size", "parent": 247, "children": [], "start_point": {"row": 75, "column": 50}, "end_point": {"row": 75, "column": 54}}, {"id": 250, "type": "identifier", "text": "frame_size", "parent": 246, "children": [], "start_point": {"row": 75, "column": 55}, "end_point": {"row": 75, "column": 65}}, {"id": 251, "type": "if_statement", "text": "if (frame_size.width == 0 || frame_size.height == 0) {\n // avoid division by 0\n return current_size;\n }", "parent": 234, "children": [252], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 79, "column": 5}}, {"id": 252, "type": "parenthesized_expression", "text": "(frame_size.width == 0 || frame_size.height == 0)", "parent": 251, "children": [253], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 56}}, {"id": 253, "type": "binary_expression", "text": "frame_size.width == 0 || frame_size.height == 0", "parent": 252, "children": [254, 260, 261], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 55}}, {"id": 254, "type": "binary_expression", "text": "frame_size.width == 0", "parent": 253, "children": [255, 258, 259], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 29}}, {"id": 255, "type": "field_expression", "text": "frame_size.width", "parent": 254, "children": [256, 257], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 24}}, {"id": 256, "type": "identifier", "text": "frame_size", "parent": 255, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 18}}, {"id": 257, "type": "field_identifier", "text": "width", "parent": 255, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 24}}, {"id": 258, "type": "==", "text": "==", "parent": 254, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 27}}, {"id": 259, "type": "number_literal", "text": "0", "parent": 254, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 29}}, {"id": 260, "type": "||", "text": "||", "parent": 253, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 32}}, {"id": 261, "type": "binary_expression", "text": "frame_size.height == 0", "parent": 253, "children": [262, 265, 266], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 55}}, {"id": 262, "type": "field_expression", "text": "frame_size.height", "parent": 261, "children": [263, 264], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 50}}, {"id": 263, "type": "identifier", "text": "frame_size", "parent": 262, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 43}}, {"id": 264, "type": "field_identifier", "text": "height", "parent": 262, "children": [], "start_point": {"row": 76, "column": 44}, "end_point": {"row": 76, "column": 50}}, {"id": 265, "type": "==", "text": "==", "parent": 261, "children": [], "start_point": {"row": 76, "column": 51}, "end_point": {"row": 76, "column": 53}}, {"id": 266, "type": "number_literal", "text": "0", "parent": 261, "children": [], "start_point": {"row": 76, "column": 54}, "end_point": {"row": 76, "column": 55}}, {"id": 267, "type": "return_statement", "text": "return current_size;", "parent": 251, "children": [268], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 28}}, {"id": 268, "type": "identifier", "text": "current_size", "parent": 267, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 27}}, {"id": 269, "type": "declaration", "text": "struct size display_size;", "parent": 234, "children": [270, 273], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 29}}, {"id": 270, "type": "struct_specifier", "text": "struct size", "parent": 269, "children": [271, 272], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 15}}, {"id": 271, "type": "struct", "text": "struct", "parent": 270, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 10}}, {"id": 272, "type": "type_identifier", "text": "size", "parent": 270, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 15}}, {"id": 273, "type": "identifier", "text": "display_size", "parent": 269, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 28}}, {"id": 274, "type": "declaration", "text": "uint32_t w;", "parent": 234, "children": [275, 276], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 15}}, {"id": 275, "type": "primitive_type", "text": "uint32_t", "parent": 274, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 12}}, {"id": 276, "type": "identifier", "text": "w", "parent": 274, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 14}}, {"id": 277, "type": "declaration", "text": "uint32_t h;", "parent": 234, "children": [278, 279], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 15}}, {"id": 278, "type": "primitive_type", "text": "uint32_t", "parent": 277, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 12}}, {"id": 279, "type": "identifier", "text": "h", "parent": 277, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 14}}, {"id": 280, "type": "if_statement", "text": "if (!get_preferred_display_bounds(&display_size)) {\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n } else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }", "parent": 234, "children": [281, 301], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 93, "column": 5}}, {"id": 281, "type": "parenthesized_expression", "text": "(!get_preferred_display_bounds(&display_size))", "parent": 280, "children": [282], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 53}}, {"id": 282, "type": "unary_expression", "text": "!get_preferred_display_bounds(&display_size)", "parent": 281, "children": [283, 284], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 52}}, {"id": 283, "type": "!", "text": "!", "parent": 282, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 9}}, {"id": 284, "type": "call_expression", "text": "get_preferred_display_bounds(&display_size)", "parent": 282, "children": [285, 286], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 52}}, {"id": 285, "type": "identifier", "text": "get_preferred_display_bounds", "parent": 284, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 37}}, {"id": 286, "type": "argument_list", "text": "(&display_size)", "parent": 284, "children": [287], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 52}}, {"id": 287, "type": "pointer_expression", "text": "&display_size", "parent": 286, "children": [288], "start_point": {"row": 86, "column": 38}, "end_point": {"row": 86, "column": 51}}, {"id": 288, "type": "identifier", "text": "display_size", "parent": 287, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 51}}, {"id": 289, "type": "assignment_expression", "text": "w = current_size.width", "parent": 280, "children": [290, 291, 292], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 30}}, {"id": 290, "type": "identifier", "text": "w", "parent": 289, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 9}}, {"id": 291, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 11}}, {"id": 292, "type": "field_expression", "text": "current_size.width", "parent": 289, "children": [293, 294], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 30}}, {"id": 293, "type": "identifier", "text": "current_size", "parent": 292, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 24}}, {"id": 294, "type": "field_identifier", "text": "width", "parent": 292, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 30}}, {"id": 295, "type": "assignment_expression", "text": "h = current_size.height", "parent": 280, "children": [296, 297, 298], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 31}}, {"id": 296, "type": "identifier", "text": "h", "parent": 295, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 297, "type": "=", "text": "=", "parent": 295, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 11}}, {"id": 298, "type": "field_expression", "text": "current_size.height", "parent": 295, "children": [299, 300], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 31}}, {"id": 299, "type": "identifier", "text": "current_size", "parent": 298, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 24}}, {"id": 300, "type": "field_identifier", "text": "height", "parent": 298, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 31}}, {"id": 301, "type": "else_clause", "text": "else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }", "parent": 280, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 93, "column": 5}}, {"id": 302, "type": "assignment_expression", "text": "w = MIN(current_size.width, display_size.width)", "parent": 301, "children": [303, 304, 305], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 55}}, {"id": 303, "type": "identifier", "text": "w", "parent": 302, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 9}}, {"id": 304, "type": "=", "text": "=", "parent": 302, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 11}}, {"id": 305, "type": "call_expression", "text": "MIN(current_size.width, display_size.width)", "parent": 302, "children": [306, 307], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 55}}, {"id": 306, "type": "identifier", "text": "MIN", "parent": 305, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 15}}, {"id": 307, "type": "argument_list", "text": "(current_size.width, display_size.width)", "parent": 305, "children": [308, 311], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 55}}, {"id": 308, "type": "field_expression", "text": "current_size.width", "parent": 307, "children": [309, 310], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 34}}, {"id": 309, "type": "identifier", "text": "current_size", "parent": 308, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 28}}, {"id": 310, "type": "field_identifier", "text": "width", "parent": 308, "children": [], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 34}}, {"id": 311, "type": "field_expression", "text": "display_size.width", "parent": 307, "children": [312, 313], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 54}}, {"id": 312, "type": "identifier", "text": "display_size", "parent": 311, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 48}}, {"id": 313, "type": "field_identifier", "text": "width", "parent": 311, "children": [], "start_point": {"row": 91, "column": 49}, "end_point": {"row": 91, "column": 54}}, {"id": 314, "type": "assignment_expression", "text": "h = MIN(current_size.height, display_size.height)", "parent": 301, "children": [315, 316, 317], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 57}}, {"id": 315, "type": "identifier", "text": "h", "parent": 314, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 9}}, {"id": 316, "type": "=", "text": "=", "parent": 314, "children": [], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 11}}, {"id": 317, "type": "call_expression", "text": "MIN(current_size.height, display_size.height)", "parent": 314, "children": [318, 319], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 57}}, {"id": 318, "type": "identifier", "text": "MIN", "parent": 317, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 15}}, {"id": 319, "type": "argument_list", "text": "(current_size.height, display_size.height)", "parent": 317, "children": [320, 323], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 57}}, {"id": 320, "type": "field_expression", "text": "current_size.height", "parent": 319, "children": [321, 322], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 35}}, {"id": 321, "type": "identifier", "text": "current_size", "parent": 320, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 28}}, {"id": 322, "type": "field_identifier", "text": "height", "parent": 320, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 35}}, {"id": 323, "type": "field_expression", "text": "display_size.height", "parent": 319, "children": [324, 325], "start_point": {"row": 92, "column": 37}, "end_point": {"row": 92, "column": 56}}, {"id": 324, "type": "identifier", "text": "display_size", "parent": 323, "children": [], "start_point": {"row": 92, "column": 37}, "end_point": {"row": 92, "column": 49}}, {"id": 325, "type": "field_identifier", "text": "height", "parent": 323, "children": [], "start_point": {"row": 92, "column": 50}, "end_point": {"row": 92, "column": 56}}, {"id": 326, "type": "declaration", "text": "bool keep_width = frame_size.width * h > frame_size.height * w;", "parent": 234, "children": [327, 328], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 67}}, {"id": 327, "type": "primitive_type", "text": "bool", "parent": 326, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 8}}, {"id": 328, "type": "init_declarator", "text": "keep_width = frame_size.width * h > frame_size.height * w", "parent": 326, "children": [329, 330, 331], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 66}}, {"id": 329, "type": "identifier", "text": "keep_width", "parent": 328, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 19}}, {"id": 330, "type": "=", "text": "=", "parent": 328, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 21}}, {"id": 331, "type": "binary_expression", "text": "frame_size.width * h > frame_size.height * w", "parent": 328, "children": [332, 338, 339], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 66}}, {"id": 332, "type": "binary_expression", "text": "frame_size.width * h", "parent": 331, "children": [333, 336, 337], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 42}}, {"id": 333, "type": "field_expression", "text": "frame_size.width", "parent": 332, "children": [334, 335], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 38}}, {"id": 334, "type": "identifier", "text": "frame_size", "parent": 333, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 32}}, {"id": 335, "type": "field_identifier", "text": "width", "parent": 333, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 38}}, {"id": 336, "type": "*", "text": "*", "parent": 332, "children": [], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 40}}, {"id": 337, "type": "identifier", "text": "h", "parent": 332, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 42}}, {"id": 338, "type": ">", "text": ">", "parent": 331, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 44}}, {"id": 339, "type": "binary_expression", "text": "frame_size.height * w", "parent": 331, "children": [340, 343, 344], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 66}}, {"id": 340, "type": "field_expression", "text": "frame_size.height", "parent": 339, "children": [341, 342], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 62}}, {"id": 341, "type": "identifier", "text": "frame_size", "parent": 340, "children": [], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 55}}, {"id": 342, "type": "field_identifier", "text": "height", "parent": 340, "children": [], "start_point": {"row": 95, "column": 56}, "end_point": {"row": 95, "column": 62}}, {"id": 343, "type": "*", "text": "*", "parent": 339, "children": [], "start_point": {"row": 95, "column": 63}, "end_point": {"row": 95, "column": 64}}, {"id": 344, "type": "identifier", "text": "w", "parent": 339, "children": [], "start_point": {"row": 95, "column": 65}, "end_point": {"row": 95, "column": 66}}, {"id": 345, "type": "if_statement", "text": "if (keep_width) {\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n } else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }", "parent": 234, "children": [346, 362], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 103, "column": 5}}, {"id": 346, "type": "parenthesized_expression", "text": "(keep_width)", "parent": 345, "children": [347], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 19}}, {"id": 347, "type": "identifier", "text": "keep_width", "parent": 346, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 18}}, {"id": 348, "type": "assignment_expression", "text": "h = frame_size.height * w / frame_size.width", "parent": 345, "children": [349, 350, 351], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 52}}, {"id": 349, "type": "identifier", "text": "h", "parent": 348, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 9}}, {"id": 350, "type": "=", "text": "=", "parent": 348, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 11}}, {"id": 351, "type": "binary_expression", "text": "frame_size.height * w / frame_size.width", "parent": 348, "children": [352, 358, 359], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 52}}, {"id": 352, "type": "binary_expression", "text": "frame_size.height * w", "parent": 351, "children": [353, 356, 357], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 33}}, {"id": 353, "type": "field_expression", "text": "frame_size.height", "parent": 352, "children": [354, 355], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 29}}, {"id": 354, "type": "identifier", "text": "frame_size", "parent": 353, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 22}}, {"id": 355, "type": "field_identifier", "text": "height", "parent": 353, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 29}}, {"id": 356, "type": "*", "text": "*", "parent": 352, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 31}}, {"id": 357, "type": "identifier", "text": "w", "parent": 352, "children": [], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 33}}, {"id": 358, "type": "/", "text": "/", "parent": 351, "children": [], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 35}}, {"id": 359, "type": "field_expression", "text": "frame_size.width", "parent": 351, "children": [360, 361], "start_point": {"row": 98, "column": 36}, "end_point": {"row": 98, "column": 52}}, {"id": 360, "type": "identifier", "text": "frame_size", "parent": 359, "children": [], "start_point": {"row": 98, "column": 36}, "end_point": {"row": 98, "column": 46}}, {"id": 361, "type": "field_identifier", "text": "width", "parent": 359, "children": [], "start_point": {"row": 98, "column": 47}, "end_point": {"row": 98, "column": 52}}, {"id": 362, "type": "else_clause", "text": "else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }", "parent": 345, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 103, "column": 5}}, {"id": 363, "type": "assignment_expression", "text": "w = frame_size.width * h / frame_size.height", "parent": 362, "children": [364, 365, 366], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 52}}, {"id": 364, "type": "identifier", "text": "w", "parent": 363, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 9}}, {"id": 365, "type": "=", "text": "=", "parent": 363, "children": [], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 11}}, {"id": 366, "type": "binary_expression", "text": "frame_size.width * h / frame_size.height", "parent": 363, "children": [367, 373, 374], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 52}}, {"id": 367, "type": "binary_expression", "text": "frame_size.width * h", "parent": 366, "children": [368, 371, 372], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 32}}, {"id": 368, "type": "field_expression", "text": "frame_size.width", "parent": 367, "children": [369, 370], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 28}}, {"id": 369, "type": "identifier", "text": "frame_size", "parent": 368, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 22}}, {"id": 370, "type": "field_identifier", "text": "width", "parent": 368, "children": [], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 102, "column": 28}}, {"id": 371, "type": "*", "text": "*", "parent": 367, "children": [], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 102, "column": 30}}, {"id": 372, "type": "identifier", "text": "h", "parent": 367, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 32}}, {"id": 373, "type": "/", "text": "/", "parent": 366, "children": [], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 34}}, {"id": 374, "type": "field_expression", "text": "frame_size.height", "parent": 366, "children": [375, 376], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 52}}, {"id": 375, "type": "identifier", "text": "frame_size", "parent": 374, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 45}}, {"id": 376, "type": "field_identifier", "text": "height", "parent": 374, "children": [], "start_point": {"row": 102, "column": 46}, "end_point": {"row": 102, "column": 52}}, {"id": 377, "type": "call_expression", "text": "SDL_assert_release(w < 0x10000 && h < 0x10000)", "parent": 234, "children": [378, 379], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 50}}, {"id": 378, "type": "identifier", "text": "SDL_assert_release", "parent": 377, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 22}}, {"id": 379, "type": "argument_list", "text": "(w < 0x10000 && h < 0x10000)", "parent": 377, "children": [380], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 50}}, {"id": 380, "type": "binary_expression", "text": "w < 0x10000 && h < 0x10000", "parent": 379, "children": [381, 385, 386], "start_point": {"row": 106, "column": 23}, "end_point": {"row": 106, "column": 49}}, {"id": 381, "type": "binary_expression", "text": "w < 0x10000", "parent": 380, "children": [382, 383, 384], "start_point": {"row": 106, "column": 23}, "end_point": {"row": 106, "column": 34}}, {"id": 382, "type": "identifier", "text": "w", "parent": 381, "children": [], "start_point": {"row": 106, "column": 23}, "end_point": {"row": 106, "column": 24}}, {"id": 383, "type": "<", "text": "<", "parent": 381, "children": [], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 26}}, {"id": 384, "type": "number_literal", "text": "0x10000", "parent": 381, "children": [], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 34}}, {"id": 385, "type": "&&", "text": "&&", "parent": 380, "children": [], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 37}}, {"id": 386, "type": "binary_expression", "text": "h < 0x10000", "parent": 380, "children": [387, 388, 389], "start_point": {"row": 106, "column": 38}, "end_point": {"row": 106, "column": 49}}, {"id": 387, "type": "identifier", "text": "h", "parent": 386, "children": [], "start_point": {"row": 106, "column": 38}, "end_point": {"row": 106, "column": 39}}, {"id": 388, "type": "<", "text": "<", "parent": 386, "children": [], "start_point": {"row": 106, "column": 40}, "end_point": {"row": 106, "column": 41}}, {"id": 389, "type": "number_literal", "text": "0x10000", "parent": 386, "children": [], "start_point": {"row": 106, "column": 42}, "end_point": {"row": 106, "column": 49}}, {"id": 390, "type": "return_statement", "text": "return (struct size) {w, h};", "parent": 234, "children": [391], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 32}}, {"id": 391, "type": "compound_literal_expression", "text": "(struct size) {w, h}", "parent": 390, "children": [392, 396], "start_point": {"row": 107, "column": 11}, "end_point": {"row": 107, "column": 31}}, {"id": 392, "type": "type_descriptor", "text": "struct size", "parent": 391, "children": [393], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 23}}, {"id": 393, "type": "struct_specifier", "text": "struct size", "parent": 392, "children": [394, 395], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 23}}, {"id": 394, "type": "struct", "text": "struct", "parent": 393, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 18}}, {"id": 395, "type": "type_identifier", "text": "size", "parent": 393, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 23}}, {"id": 396, "type": "initializer_list", "text": "{w, h}", "parent": 391, "children": [397, 398], "start_point": {"row": 107, "column": 25}, "end_point": {"row": 107, "column": 31}}, {"id": 397, "type": "identifier", "text": "w", "parent": 396, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 27}}, {"id": 398, "type": "identifier", "text": "h", "parent": 396, "children": [], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 30}}, {"id": 399, "type": "function_definition", "text": "static inline struct size\nget_optimal_window_size(const struct screen *screen, struct size frame_size) {\n struct size current_size = get_window_size(screen);\n return get_optimal_size(current_size, frame_size);\n}", "parent": null, "children": [400, 402, 405], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 400, "type": "storage_class_specifier", "text": "inline", "parent": 399, "children": [401], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 13}}, {"id": 401, "type": "inline", "text": "inline", "parent": 400, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 13}}, {"id": 402, "type": "struct_specifier", "text": "struct size", "parent": 399, "children": [403, 404], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 25}}, {"id": 403, "type": "struct", "text": "struct", "parent": 402, "children": [], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 20}}, {"id": 404, "type": "type_identifier", "text": "size", "parent": 402, "children": [], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 25}}, {"id": 405, "type": "function_declarator", "text": "get_optimal_window_size(const struct screen *screen, struct size frame_size)", "parent": 399, "children": [406, 407], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 76}}, {"id": 406, "type": "identifier", "text": "get_optimal_window_size", "parent": 405, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 23}}, {"id": 407, "type": "parameter_list", "text": "(const struct screen *screen, struct size frame_size)", "parent": 405, "children": [408, 415], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 76}}, {"id": 408, "type": "parameter_declaration", "text": "const struct screen *screen", "parent": 407, "children": [409, 412], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 51}}, {"id": 409, "type": "struct_specifier", "text": "struct screen", "parent": 408, "children": [410, 411], "start_point": {"row": 112, "column": 30}, "end_point": {"row": 112, "column": 43}}, {"id": 410, "type": "struct", "text": "struct", "parent": 409, "children": [], "start_point": {"row": 112, "column": 30}, "end_point": {"row": 112, "column": 36}}, {"id": 411, "type": "type_identifier", "text": "screen", "parent": 409, "children": [], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 43}}, {"id": 412, "type": "pointer_declarator", "text": "*screen", "parent": 408, "children": [413, 414], "start_point": {"row": 112, "column": 44}, "end_point": {"row": 112, "column": 51}}, {"id": 413, "type": "*", "text": "*", "parent": 412, "children": [], "start_point": {"row": 112, "column": 44}, "end_point": {"row": 112, "column": 45}}, {"id": 414, "type": "identifier", "text": "screen", "parent": 412, "children": [], "start_point": {"row": 112, "column": 45}, "end_point": {"row": 112, "column": 51}}, {"id": 415, "type": "parameter_declaration", "text": "struct size frame_size", "parent": 407, "children": [416, 419], "start_point": {"row": 112, "column": 53}, "end_point": {"row": 112, "column": 75}}, {"id": 416, "type": "struct_specifier", "text": "struct size", "parent": 415, "children": [417, 418], "start_point": {"row": 112, "column": 53}, "end_point": {"row": 112, "column": 64}}, {"id": 417, "type": "struct", "text": "struct", "parent": 416, "children": [], "start_point": {"row": 112, "column": 53}, "end_point": {"row": 112, "column": 59}}, {"id": 418, "type": "type_identifier", "text": "size", "parent": 416, "children": [], "start_point": {"row": 112, "column": 60}, "end_point": {"row": 112, "column": 64}}, {"id": 419, "type": "identifier", "text": "frame_size", "parent": 415, "children": [], "start_point": {"row": 112, "column": 65}, "end_point": {"row": 112, "column": 75}}, {"id": 420, "type": "declaration", "text": "struct size current_size = get_window_size(screen);", "parent": 399, "children": [421, 424], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 55}}, {"id": 421, "type": "struct_specifier", "text": "struct size", "parent": 420, "children": [422, 423], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 15}}, {"id": 422, "type": "struct", "text": "struct", "parent": 421, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 10}}, {"id": 423, "type": "type_identifier", "text": "size", "parent": 421, "children": [], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 15}}, {"id": 424, "type": "init_declarator", "text": "current_size = get_window_size(screen)", "parent": 420, "children": [425, 426, 427], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 54}}, {"id": 425, "type": "identifier", "text": "current_size", "parent": 424, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 28}}, {"id": 426, "type": "=", "text": "=", "parent": 424, "children": [], "start_point": {"row": 113, "column": 29}, "end_point": {"row": 113, "column": 30}}, {"id": 427, "type": "call_expression", "text": "get_window_size(screen)", "parent": 424, "children": [428, 429], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 54}}, {"id": 428, "type": "identifier", "text": "get_window_size", "parent": 427, "children": [], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 46}}, {"id": 429, "type": "argument_list", "text": "(screen)", "parent": 427, "children": [430], "start_point": {"row": 113, "column": 46}, "end_point": {"row": 113, "column": 54}}, {"id": 430, "type": "identifier", "text": "screen", "parent": 429, "children": [], "start_point": {"row": 113, "column": 47}, "end_point": {"row": 113, "column": 53}}, {"id": 431, "type": "return_statement", "text": "return get_optimal_size(current_size, frame_size);", "parent": 399, "children": [432], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 54}}, {"id": 432, "type": "call_expression", "text": "get_optimal_size(current_size, frame_size)", "parent": 431, "children": [433, 434], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 53}}, {"id": 433, "type": "identifier", "text": "get_optimal_size", "parent": 432, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 27}}, {"id": 434, "type": "argument_list", "text": "(current_size, frame_size)", "parent": 432, "children": [435, 436], "start_point": {"row": 114, "column": 27}, "end_point": {"row": 114, "column": 53}}, {"id": 435, "type": "identifier", "text": "current_size", "parent": 434, "children": [], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 40}}, {"id": 436, "type": "identifier", "text": "frame_size", "parent": 434, "children": [], "start_point": {"row": 114, "column": 42}, "end_point": {"row": 114, "column": 52}}, {"id": 437, "type": "function_definition", "text": "static inline struct size\nget_initial_optimal_size(struct size frame_size) {\n return get_optimal_size(frame_size, frame_size);\n}", "parent": null, "children": [438, 440, 443], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 121, "column": 1}}, {"id": 438, "type": "storage_class_specifier", "text": "inline", "parent": 437, "children": [439], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 13}}, {"id": 439, "type": "inline", "text": "inline", "parent": 438, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 13}}, {"id": 440, "type": "struct_specifier", "text": "struct size", "parent": 437, "children": [441, 442], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 25}}, {"id": 441, "type": "struct", "text": "struct", "parent": 440, "children": [], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 20}}, {"id": 442, "type": "type_identifier", "text": "size", "parent": 440, "children": [], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 25}}, {"id": 443, "type": "function_declarator", "text": "get_initial_optimal_size(struct size frame_size)", "parent": 437, "children": [444, 445], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 48}}, {"id": 444, "type": "identifier", "text": "get_initial_optimal_size", "parent": 443, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 24}}, {"id": 445, "type": "parameter_list", "text": "(struct size frame_size)", "parent": 443, "children": [446], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 48}}, {"id": 446, "type": "parameter_declaration", "text": "struct size frame_size", "parent": 445, "children": [447, 450], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 47}}, {"id": 447, "type": "struct_specifier", "text": "struct size", "parent": 446, "children": [448, 449], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 36}}, {"id": 448, "type": "struct", "text": "struct", "parent": 447, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 31}}, {"id": 449, "type": "type_identifier", "text": "size", "parent": 447, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 36}}, {"id": 450, "type": "identifier", "text": "frame_size", "parent": 446, "children": [], "start_point": {"row": 119, "column": 37}, "end_point": {"row": 119, "column": 47}}, {"id": 451, "type": "return_statement", "text": "return get_optimal_size(frame_size, frame_size);", "parent": 437, "children": [452], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 52}}, {"id": 452, "type": "call_expression", "text": "get_optimal_size(frame_size, frame_size)", "parent": 451, "children": [453, 454], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 51}}, {"id": 453, "type": "identifier", "text": "get_optimal_size", "parent": 452, "children": [], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 27}}, {"id": 454, "type": "argument_list", "text": "(frame_size, frame_size)", "parent": 452, "children": [455, 456], "start_point": {"row": 120, "column": 27}, "end_point": {"row": 120, "column": 51}}, {"id": 455, "type": "identifier", "text": "frame_size", "parent": 454, "children": [], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 38}}, {"id": 456, "type": "identifier", "text": "frame_size", "parent": 454, "children": [], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 50}}, {"id": 457, "type": "function_definition", "text": "void\nscreen_init(struct screen *screen) {\n *screen = (struct screen) SCREEN_INITIALIZER;\n}", "parent": null, "children": [458, 459], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 126, "column": 1}}, {"id": 458, "type": "primitive_type", "text": "void", "parent": 457, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 4}}, {"id": 459, "type": "function_declarator", "text": "screen_init(struct screen *screen)", "parent": 457, "children": [460, 461], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 34}}, {"id": 460, "type": "identifier", "text": "screen_init", "parent": 459, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 11}}, {"id": 461, "type": "parameter_list", "text": "(struct screen *screen)", "parent": 459, "children": [462], "start_point": {"row": 124, "column": 11}, "end_point": {"row": 124, "column": 34}}, {"id": 462, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 461, "children": [463, 466], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 33}}, {"id": 463, "type": "struct_specifier", "text": "struct screen", "parent": 462, "children": [464, 465], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 25}}, {"id": 464, "type": "struct", "text": "struct", "parent": 463, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 18}}, {"id": 465, "type": "type_identifier", "text": "screen", "parent": 463, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 25}}, {"id": 466, "type": "pointer_declarator", "text": "*screen", "parent": 462, "children": [467, 468], "start_point": {"row": 124, "column": 26}, "end_point": {"row": 124, "column": 33}}, {"id": 467, "type": "*", "text": "*", "parent": 466, "children": [], "start_point": {"row": 124, "column": 26}, "end_point": {"row": 124, "column": 27}}, {"id": 468, "type": "identifier", "text": "screen", "parent": 466, "children": [], "start_point": {"row": 124, "column": 27}, "end_point": {"row": 124, "column": 33}}, {"id": 469, "type": "assignment_expression", "text": "*screen = (struct screen) SCREEN_INITIALIZER", "parent": 457, "children": [470, 473, 474], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 48}}, {"id": 470, "type": "pointer_expression", "text": "*screen", "parent": 469, "children": [471, 472], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 11}}, {"id": 471, "type": "*", "text": "*", "parent": 470, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 5}}, {"id": 472, "type": "identifier", "text": "screen", "parent": 470, "children": [], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 11}}, {"id": 473, "type": "=", "text": "=", "parent": 469, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 13}}, {"id": 474, "type": "cast_expression", "text": "(struct screen) SCREEN_INITIALIZER", "parent": 469, "children": [475, 479], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 48}}, {"id": 475, "type": "type_descriptor", "text": "struct screen", "parent": 474, "children": [476], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 28}}, {"id": 476, "type": "struct_specifier", "text": "struct screen", "parent": 475, "children": [477, 478], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 28}}, {"id": 477, "type": "struct", "text": "struct", "parent": 476, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 21}}, {"id": 478, "type": "type_identifier", "text": "screen", "parent": 476, "children": [], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 28}}, {"id": 479, "type": "identifier", "text": "SCREEN_INITIALIZER", "parent": 474, "children": [], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 48}}, {"id": 480, "type": "function_definition", "text": "static inline SDL_Texture *\ncreate_texture(SDL_Renderer *renderer, struct size frame_size) {\n return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height);\n}", "parent": null, "children": [481, 483, 484], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 133, "column": 1}}, {"id": 481, "type": "storage_class_specifier", "text": "inline", "parent": 480, "children": [482], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 13}}, {"id": 482, "type": "inline", "text": "inline", "parent": 481, "children": [], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 13}}, {"id": 483, "type": "type_identifier", "text": "SDL_Texture", "parent": 480, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 25}}, {"id": 484, "type": "pointer_declarator", "text": "*\ncreate_texture(SDL_Renderer *renderer, struct size frame_size)", "parent": 480, "children": [485, 486], "start_point": {"row": 128, "column": 26}, "end_point": {"row": 129, "column": 62}}, {"id": 485, "type": "*", "text": "*", "parent": 484, "children": [], "start_point": {"row": 128, "column": 26}, "end_point": {"row": 128, "column": 27}}, {"id": 486, "type": "function_declarator", "text": "create_texture(SDL_Renderer *renderer, struct size frame_size)", "parent": 484, "children": [487, 488], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 62}}, {"id": 487, "type": "identifier", "text": "create_texture", "parent": 486, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 14}}, {"id": 488, "type": "parameter_list", "text": "(SDL_Renderer *renderer, struct size frame_size)", "parent": 486, "children": [489, 494], "start_point": {"row": 129, "column": 14}, "end_point": {"row": 129, "column": 62}}, {"id": 489, "type": "parameter_declaration", "text": "SDL_Renderer *renderer", "parent": 488, "children": [490, 491], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 37}}, {"id": 490, "type": "type_identifier", "text": "SDL_Renderer", "parent": 489, "children": [], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 27}}, {"id": 491, "type": "pointer_declarator", "text": "*renderer", "parent": 489, "children": [492, 493], "start_point": {"row": 129, "column": 28}, "end_point": {"row": 129, "column": 37}}, {"id": 492, "type": "*", "text": "*", "parent": 491, "children": [], "start_point": {"row": 129, "column": 28}, "end_point": {"row": 129, "column": 29}}, {"id": 493, "type": "identifier", "text": "renderer", "parent": 491, "children": [], "start_point": {"row": 129, "column": 29}, "end_point": {"row": 129, "column": 37}}, {"id": 494, "type": "parameter_declaration", "text": "struct size frame_size", "parent": 488, "children": [495, 498], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 61}}, {"id": 495, "type": "struct_specifier", "text": "struct size", "parent": 494, "children": [496, 497], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 50}}, {"id": 496, "type": "struct", "text": "struct", "parent": 495, "children": [], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 45}}, {"id": 497, "type": "type_identifier", "text": "size", "parent": 495, "children": [], "start_point": {"row": 129, "column": 46}, "end_point": {"row": 129, "column": 50}}, {"id": 498, "type": "identifier", "text": "frame_size", "parent": 494, "children": [], "start_point": {"row": 129, "column": 51}, "end_point": {"row": 129, "column": 61}}, {"id": 499, "type": "return_statement", "text": "return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height);", "parent": 480, "children": [500], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 132, "column": 66}}, {"id": 500, "type": "call_expression", "text": "SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height)", "parent": 499, "children": [501, 502], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 132, "column": 65}}, {"id": 501, "type": "identifier", "text": "SDL_CreateTexture", "parent": 500, "children": [], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 130, "column": 28}}, {"id": 502, "type": "argument_list", "text": "(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height)", "parent": 500, "children": [503, 504, 505, 506, 509], "start_point": {"row": 130, "column": 28}, "end_point": {"row": 132, "column": 65}}, {"id": 503, "type": "identifier", "text": "renderer", "parent": 502, "children": [], "start_point": {"row": 130, "column": 29}, "end_point": {"row": 130, "column": 37}}, {"id": 504, "type": "identifier", "text": "SDL_PIXELFORMAT_YV12", "parent": 502, "children": [], "start_point": {"row": 130, "column": 39}, "end_point": {"row": 130, "column": 59}}, {"id": 505, "type": "identifier", "text": "SDL_TEXTUREACCESS_STREAMING", "parent": 502, "children": [], "start_point": {"row": 131, "column": 29}, "end_point": {"row": 131, "column": 56}}, {"id": 506, "type": "field_expression", "text": "frame_size.width", "parent": 502, "children": [507, 508], "start_point": {"row": 132, "column": 29}, "end_point": {"row": 132, "column": 45}}, {"id": 507, "type": "identifier", "text": "frame_size", "parent": 506, "children": [], "start_point": {"row": 132, "column": 29}, "end_point": {"row": 132, "column": 39}}, {"id": 508, "type": "field_identifier", "text": "width", "parent": 506, "children": [], "start_point": {"row": 132, "column": 40}, "end_point": {"row": 132, "column": 45}}, {"id": 509, "type": "field_expression", "text": "frame_size.height", "parent": 502, "children": [510, 511], "start_point": {"row": 132, "column": 47}, "end_point": {"row": 132, "column": 64}}, {"id": 510, "type": "identifier", "text": "frame_size", "parent": 509, "children": [], "start_point": {"row": 132, "column": 47}, "end_point": {"row": 132, "column": 57}}, {"id": 511, "type": "field_identifier", "text": "height", "parent": 509, "children": [], "start_point": {"row": 132, "column": 58}, "end_point": {"row": 132, "column": 64}}, {"id": 512, "type": "function_definition", "text": "bool\nscreen_init_rendering(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top) {\n screen->frame_size = frame_size;\n\n struct size window_size = get_initial_optimal_size(frame_size);\n uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;\n#ifdef HIDPI_SUPPORT\n window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;\n#endif\n if (always_on_top) {\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW(\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\");\n#endif\n }\n\n screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags);\n if (!screen->window) {\n LOGC(\"Could not create window: %s\", SDL_GetError());\n return false;\n }\n\n screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED);\n if (!screen->renderer) {\n LOGC(\"Could not create renderer: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)) {\n LOGE(\"Could not set renderer logical size: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n SDL_Surface *icon = read_xpm(icon_xpm);\n if (icon) {\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n } else {\n LOGW(\"Could not load icon\");\n }\n\n LOGI(\"Initial texture: %\" PRIu16 \"x%\" PRIu16, frame_size.width,\n frame_size.height);\n screen->texture = create_texture(screen->renderer, frame_size);\n if (!screen->texture) {\n LOGC(\"Could not create texture: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n return true;\n}", "parent": null, "children": [513, 514], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 196, "column": 1}}, {"id": 513, "type": "primitive_type", "text": "bool", "parent": 512, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 4}}, {"id": 514, "type": "function_declarator", "text": "screen_init_rendering(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top)", "parent": 512, "children": [515, 516], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 137, "column": 65}}, {"id": 515, "type": "identifier", "text": "screen_init_rendering", "parent": 514, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 21}}, {"id": 516, "type": "parameter_list", "text": "(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top)", "parent": 514, "children": [517, 524, 529, 534], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 137, "column": 65}}, {"id": 517, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 516, "children": [518, 521], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 43}}, {"id": 518, "type": "struct_specifier", "text": "struct screen", "parent": 517, "children": [519, 520], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 35}}, {"id": 519, "type": "struct", "text": "struct", "parent": 518, "children": [], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 28}}, {"id": 520, "type": "type_identifier", "text": "screen", "parent": 518, "children": [], "start_point": {"row": 136, "column": 29}, "end_point": {"row": 136, "column": 35}}, {"id": 521, "type": "pointer_declarator", "text": "*screen", "parent": 517, "children": [522, 523], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 43}}, {"id": 522, "type": "*", "text": "*", "parent": 521, "children": [], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 37}}, {"id": 523, "type": "identifier", "text": "screen", "parent": 521, "children": [], "start_point": {"row": 136, "column": 37}, "end_point": {"row": 136, "column": 43}}, {"id": 524, "type": "parameter_declaration", "text": "const char *window_title", "parent": 516, "children": [525, 526], "start_point": {"row": 136, "column": 45}, "end_point": {"row": 136, "column": 69}}, {"id": 525, "type": "primitive_type", "text": "char", "parent": 524, "children": [], "start_point": {"row": 136, "column": 51}, "end_point": {"row": 136, "column": 55}}, {"id": 526, "type": "pointer_declarator", "text": "*window_title", "parent": 524, "children": [527, 528], "start_point": {"row": 136, "column": 56}, "end_point": {"row": 136, "column": 69}}, {"id": 527, "type": "*", "text": "*", "parent": 526, "children": [], "start_point": {"row": 136, "column": 56}, "end_point": {"row": 136, "column": 57}}, {"id": 528, "type": "identifier", "text": "window_title", "parent": 526, "children": [], "start_point": {"row": 136, "column": 57}, "end_point": {"row": 136, "column": 69}}, {"id": 529, "type": "parameter_declaration", "text": "struct size frame_size", "parent": 516, "children": [530, 533], "start_point": {"row": 137, "column": 22}, "end_point": {"row": 137, "column": 44}}, {"id": 530, "type": "struct_specifier", "text": "struct size", "parent": 529, "children": [531, 532], "start_point": {"row": 137, "column": 22}, "end_point": {"row": 137, "column": 33}}, {"id": 531, "type": "struct", "text": "struct", "parent": 530, "children": [], "start_point": {"row": 137, "column": 22}, "end_point": {"row": 137, "column": 28}}, {"id": 532, "type": "type_identifier", "text": "size", "parent": 530, "children": [], "start_point": {"row": 137, "column": 29}, "end_point": {"row": 137, "column": 33}}, {"id": 533, "type": "identifier", "text": "frame_size", "parent": 529, "children": [], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 44}}, {"id": 534, "type": "parameter_declaration", "text": "bool always_on_top", "parent": 516, "children": [535, 536], "start_point": {"row": 137, "column": 46}, "end_point": {"row": 137, "column": 64}}, {"id": 535, "type": "primitive_type", "text": "bool", "parent": 534, "children": [], "start_point": {"row": 137, "column": 46}, "end_point": {"row": 137, "column": 50}}, {"id": 536, "type": "identifier", "text": "always_on_top", "parent": 534, "children": [], "start_point": {"row": 137, "column": 51}, "end_point": {"row": 137, "column": 64}}, {"id": 537, "type": "assignment_expression", "text": "screen->frame_size = frame_size", "parent": 512, "children": [538, 541, 542], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 35}}, {"id": 538, "type": "field_expression", "text": "screen->frame_size", "parent": 537, "children": [539, 540], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 22}}, {"id": 539, "type": "identifier", "text": "screen", "parent": 538, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 10}}, {"id": 540, "type": "field_identifier", "text": "frame_size", "parent": 538, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 22}}, {"id": 541, "type": "=", "text": "=", "parent": 537, "children": [], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 24}}, {"id": 542, "type": "identifier", "text": "frame_size", "parent": 537, "children": [], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 35}}, {"id": 543, "type": "declaration", "text": "struct size window_size = get_initial_optimal_size(frame_size);", "parent": 512, "children": [544, 547], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 67}}, {"id": 544, "type": "struct_specifier", "text": "struct size", "parent": 543, "children": [545, 546], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 15}}, {"id": 545, "type": "struct", "text": "struct", "parent": 544, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 10}}, {"id": 546, "type": "type_identifier", "text": "size", "parent": 544, "children": [], "start_point": {"row": 140, "column": 11}, "end_point": {"row": 140, "column": 15}}, {"id": 547, "type": "init_declarator", "text": "window_size = get_initial_optimal_size(frame_size)", "parent": 543, "children": [548, 549, 550], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 66}}, {"id": 548, "type": "identifier", "text": "window_size", "parent": 547, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 27}}, {"id": 549, "type": "=", "text": "=", "parent": 547, "children": [], "start_point": {"row": 140, "column": 28}, "end_point": {"row": 140, "column": 29}}, {"id": 550, "type": "call_expression", "text": "get_initial_optimal_size(frame_size)", "parent": 547, "children": [551, 552], "start_point": {"row": 140, "column": 30}, "end_point": {"row": 140, "column": 66}}, {"id": 551, "type": "identifier", "text": "get_initial_optimal_size", "parent": 550, "children": [], "start_point": {"row": 140, "column": 30}, "end_point": {"row": 140, "column": 54}}, {"id": 552, "type": "argument_list", "text": "(frame_size)", "parent": 550, "children": [553], "start_point": {"row": 140, "column": 54}, "end_point": {"row": 140, "column": 66}}, {"id": 553, "type": "identifier", "text": "frame_size", "parent": 552, "children": [], "start_point": {"row": 140, "column": 55}, "end_point": {"row": 140, "column": 65}}, {"id": 554, "type": "declaration", "text": "uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;", "parent": 512, "children": [555, 556], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 69}}, {"id": 555, "type": "primitive_type", "text": "uint32_t", "parent": 554, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 12}}, {"id": 556, "type": "init_declarator", "text": "window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE", "parent": 554, "children": [557, 558, 559], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 68}}, {"id": 557, "type": "identifier", "text": "window_flags", "parent": 556, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 25}}, {"id": 558, "type": "=", "text": "=", "parent": 556, "children": [], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 27}}, {"id": 559, "type": "binary_expression", "text": "SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE", "parent": 556, "children": [560, 561], "start_point": {"row": 141, "column": 28}, "end_point": {"row": 141, "column": 68}}, {"id": 560, "type": "identifier", "text": "SDL_WINDOW_HIDDEN", "parent": 559, "children": [], "start_point": {"row": 141, "column": 28}, "end_point": {"row": 141, "column": 45}}, {"id": 561, "type": "identifier", "text": "SDL_WINDOW_RESIZABLE", "parent": 559, "children": [], "start_point": {"row": 141, "column": 48}, "end_point": {"row": 141, "column": 68}}, {"id": 562, "type": "preproc_ifdef", "text": "#ifdef HIDPI_SUPPORT\n window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;\n#endif", "parent": 512, "children": [563, 564, 569], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 144, "column": 6}}, {"id": 563, "type": "#ifdef", "text": "#ifdef", "parent": 562, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 6}}, {"id": 564, "type": "identifier", "text": "HIDPI_SUPPORT", "parent": 562, "children": [], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 20}}, {"id": 565, "type": "assignment_expression", "text": "window_flags |= SDL_WINDOW_ALLOW_HIGHDPI", "parent": 562, "children": [566, 567, 568], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 44}}, {"id": 566, "type": "identifier", "text": "window_flags", "parent": 565, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 16}}, {"id": 567, "type": "|=", "text": "|=", "parent": 565, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 19}}, {"id": 568, "type": "identifier", "text": "SDL_WINDOW_ALLOW_HIGHDPI", "parent": 565, "children": [], "start_point": {"row": 143, "column": 20}, "end_point": {"row": 143, "column": 44}}, {"id": 569, "type": "#endif", "text": "#endif", "parent": 562, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 6}}, {"id": 570, "type": "if_statement", "text": "if (always_on_top) {\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW(\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\");\n#endif\n }", "parent": 512, "children": [571], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 152, "column": 5}}, {"id": 571, "type": "parenthesized_expression", "text": "(always_on_top)", "parent": 570, "children": [572], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 22}}, {"id": 572, "type": "identifier", "text": "always_on_top", "parent": 571, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 21}}, {"id": 573, "type": "preproc_ifdef", "text": "#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW(\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\");\n#endif", "parent": 570, "children": [574, 575, 580, 588], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 151, "column": 6}}, {"id": 574, "type": "#ifdef", "text": "#ifdef", "parent": 573, "children": [], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 6}}, {"id": 575, "type": "identifier", "text": "SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP", "parent": 573, "children": [], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 42}}, {"id": 576, "type": "assignment_expression", "text": "window_flags |= SDL_WINDOW_ALWAYS_ON_TOP", "parent": 573, "children": [577, 578, 579], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 48}}, {"id": 577, "type": "identifier", "text": "window_flags", "parent": 576, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 20}}, {"id": 578, "type": "|=", "text": "|=", "parent": 576, "children": [], "start_point": {"row": 147, "column": 21}, "end_point": {"row": 147, "column": 23}}, {"id": 579, "type": "identifier", "text": "SDL_WINDOW_ALWAYS_ON_TOP", "parent": 576, "children": [], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 48}}, {"id": 580, "type": "preproc_else", "text": "#else\n LOGW(\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\");", "parent": 573, "children": [581], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 150, "column": 57}}, {"id": 581, "type": "#else", "text": "#else", "parent": 580, "children": [], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 5}}, {"id": 582, "type": "call_expression", "text": "LOGW(\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\")", "parent": 580, "children": [583, 584], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 150, "column": 56}}, {"id": 583, "type": "identifier", "text": "LOGW", "parent": 582, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 12}}, {"id": 584, "type": "argument_list", "text": "(\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\")", "parent": 582, "children": [585], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 150, "column": 56}}, {"id": 585, "type": "concatenated_string", "text": "\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\"", "parent": 584, "children": [586, 587], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 150, "column": 55}}, {"id": 586, "type": "string_literal", "text": "\"The 'always on top' flag is not available \"", "parent": 585, "children": [], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 57}}, {"id": 587, "type": "string_literal", "text": "\"(compile with SDL >= 2.0.5 to enable it)\"", "parent": 585, "children": [], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 55}}, {"id": 588, "type": "#endif", "text": "#endif", "parent": 573, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 6}}, {"id": 589, "type": "assignment_expression", "text": "screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags)", "parent": 512, "children": [590, 593, 594], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 157, "column": 51}}, {"id": 590, "type": "field_expression", "text": "screen->window", "parent": 589, "children": [591, 592], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 18}}, {"id": 591, "type": "identifier", "text": "screen", "parent": 590, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 10}}, {"id": 592, "type": "field_identifier", "text": "window", "parent": 590, "children": [], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 18}}, {"id": 593, "type": "=", "text": "=", "parent": 589, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 20}}, {"id": 594, "type": "call_expression", "text": "SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags)", "parent": 589, "children": [595, 596], "start_point": {"row": 154, "column": 21}, "end_point": {"row": 157, "column": 51}}, {"id": 595, "type": "identifier", "text": "SDL_CreateWindow", "parent": 594, "children": [], "start_point": {"row": 154, "column": 21}, "end_point": {"row": 154, "column": 37}}, {"id": 596, "type": "argument_list", "text": "(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags)", "parent": 594, "children": [597, 598, 599, 600, 603, 606], "start_point": {"row": 154, "column": 37}, "end_point": {"row": 157, "column": 51}}, {"id": 597, "type": "identifier", "text": "window_title", "parent": 596, "children": [], "start_point": {"row": 154, "column": 38}, "end_point": {"row": 154, "column": 50}}, {"id": 598, "type": "identifier", "text": "SDL_WINDOWPOS_UNDEFINED", "parent": 596, "children": [], "start_point": {"row": 154, "column": 52}, "end_point": {"row": 154, "column": 75}}, {"id": 599, "type": "identifier", "text": "SDL_WINDOWPOS_UNDEFINED", "parent": 596, "children": [], "start_point": {"row": 155, "column": 38}, "end_point": {"row": 155, "column": 61}}, {"id": 600, "type": "field_expression", "text": "window_size.width", "parent": 596, "children": [601, 602], "start_point": {"row": 156, "column": 38}, "end_point": {"row": 156, "column": 55}}, {"id": 601, "type": "identifier", "text": "window_size", "parent": 600, "children": [], "start_point": {"row": 156, "column": 38}, "end_point": {"row": 156, "column": 49}}, {"id": 602, "type": "field_identifier", "text": "width", "parent": 600, "children": [], "start_point": {"row": 156, "column": 50}, "end_point": {"row": 156, "column": 55}}, {"id": 603, "type": "field_expression", "text": "window_size.height", "parent": 596, "children": [604, 605], "start_point": {"row": 156, "column": 57}, "end_point": {"row": 156, "column": 75}}, {"id": 604, "type": "identifier", "text": "window_size", "parent": 603, "children": [], "start_point": {"row": 156, "column": 57}, "end_point": {"row": 156, "column": 68}}, {"id": 605, "type": "field_identifier", "text": "height", "parent": 603, "children": [], "start_point": {"row": 156, "column": 69}, "end_point": {"row": 156, "column": 75}}, {"id": 606, "type": "identifier", "text": "window_flags", "parent": 596, "children": [], "start_point": {"row": 157, "column": 38}, "end_point": {"row": 157, "column": 50}}, {"id": 607, "type": "if_statement", "text": "if (!screen->window) {\n LOGC(\"Could not create window: %s\", SDL_GetError());\n return false;\n }", "parent": 512, "children": [608], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 161, "column": 5}}, {"id": 608, "type": "parenthesized_expression", "text": "(!screen->window)", "parent": 607, "children": [609], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 24}}, {"id": 609, "type": "unary_expression", "text": "!screen->window", "parent": 608, "children": [610, 611], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 23}}, {"id": 610, "type": "!", "text": "!", "parent": 609, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 9}}, {"id": 611, "type": "field_expression", "text": "screen->window", "parent": 609, "children": [612, 613], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 23}}, {"id": 612, "type": "identifier", "text": "screen", "parent": 611, "children": [], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 15}}, {"id": 613, "type": "field_identifier", "text": "window", "parent": 611, "children": [], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 23}}, {"id": 614, "type": "call_expression", "text": "LOGC(\"Could not create window: %s\", SDL_GetError())", "parent": 607, "children": [615, 616], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 59}}, {"id": 615, "type": "identifier", "text": "LOGC", "parent": 614, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 12}}, {"id": 616, "type": "argument_list", "text": "(\"Could not create window: %s\", SDL_GetError())", "parent": 614, "children": [617, 618], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 59}}, {"id": 617, "type": "string_literal", "text": "\"Could not create window: %s\"", "parent": 616, "children": [], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 42}}, {"id": 618, "type": "call_expression", "text": "SDL_GetError()", "parent": 616, "children": [619, 620], "start_point": {"row": 159, "column": 44}, "end_point": {"row": 159, "column": 58}}, {"id": 619, "type": "identifier", "text": "SDL_GetError", "parent": 618, "children": [], "start_point": {"row": 159, "column": 44}, "end_point": {"row": 159, "column": 56}}, {"id": 620, "type": "argument_list", "text": "()", "parent": 618, "children": [], "start_point": {"row": 159, "column": 56}, "end_point": {"row": 159, "column": 58}}, {"id": 621, "type": "return_statement", "text": "return false;", "parent": 607, "children": [622], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 21}}, {"id": 622, "type": "false", "text": "false", "parent": 621, "children": [], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 20}}, {"id": 623, "type": "assignment_expression", "text": "screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED)", "parent": 512, "children": [624, 627, 628], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 164, "column": 67}}, {"id": 624, "type": "field_expression", "text": "screen->renderer", "parent": 623, "children": [625, 626], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 20}}, {"id": 625, "type": "identifier", "text": "screen", "parent": 624, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 10}}, {"id": 626, "type": "field_identifier", "text": "renderer", "parent": 624, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 20}}, {"id": 627, "type": "=", "text": "=", "parent": 623, "children": [], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 22}}, {"id": 628, "type": "call_expression", "text": "SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED)", "parent": 623, "children": [629, 630], "start_point": {"row": 163, "column": 23}, "end_point": {"row": 164, "column": 67}}, {"id": 629, "type": "identifier", "text": "SDL_CreateRenderer", "parent": 628, "children": [], "start_point": {"row": 163, "column": 23}, "end_point": {"row": 163, "column": 41}}, {"id": 630, "type": "argument_list", "text": "(screen->window, -1,\n SDL_RENDERER_ACCELERATED)", "parent": 628, "children": [631, 634, 635], "start_point": {"row": 163, "column": 41}, "end_point": {"row": 164, "column": 67}}, {"id": 631, "type": "field_expression", "text": "screen->window", "parent": 630, "children": [632, 633], "start_point": {"row": 163, "column": 42}, "end_point": {"row": 163, "column": 56}}, {"id": 632, "type": "identifier", "text": "screen", "parent": 631, "children": [], "start_point": {"row": 163, "column": 42}, "end_point": {"row": 163, "column": 48}}, {"id": 633, "type": "field_identifier", "text": "window", "parent": 631, "children": [], "start_point": {"row": 163, "column": 50}, "end_point": {"row": 163, "column": 56}}, {"id": 634, "type": "number_literal", "text": "-1", "parent": 630, "children": [], "start_point": {"row": 163, "column": 58}, "end_point": {"row": 163, "column": 60}}, {"id": 635, "type": "identifier", "text": "SDL_RENDERER_ACCELERATED", "parent": 630, "children": [], "start_point": {"row": 164, "column": 42}, "end_point": {"row": 164, "column": 66}}, {"id": 636, "type": "if_statement", "text": "if (!screen->renderer) {\n LOGC(\"Could not create renderer: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }", "parent": 512, "children": [637], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 169, "column": 5}}, {"id": 637, "type": "parenthesized_expression", "text": "(!screen->renderer)", "parent": 636, "children": [638], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 26}}, {"id": 638, "type": "unary_expression", "text": "!screen->renderer", "parent": 637, "children": [639, 640], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 25}}, {"id": 639, "type": "!", "text": "!", "parent": 638, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 9}}, {"id": 640, "type": "field_expression", "text": "screen->renderer", "parent": 638, "children": [641, 642], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 25}}, {"id": 641, "type": "identifier", "text": "screen", "parent": 640, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 15}}, {"id": 642, "type": "field_identifier", "text": "renderer", "parent": 640, "children": [], "start_point": {"row": 165, "column": 17}, "end_point": {"row": 165, "column": 25}}, {"id": 643, "type": "call_expression", "text": "LOGC(\"Could not create renderer: %s\", SDL_GetError())", "parent": 636, "children": [644, 645], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 61}}, {"id": 644, "type": "identifier", "text": "LOGC", "parent": 643, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 12}}, {"id": 645, "type": "argument_list", "text": "(\"Could not create renderer: %s\", SDL_GetError())", "parent": 643, "children": [646, 647], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 61}}, {"id": 646, "type": "string_literal", "text": "\"Could not create renderer: %s\"", "parent": 645, "children": [], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 44}}, {"id": 647, "type": "call_expression", "text": "SDL_GetError()", "parent": 645, "children": [648, 649], "start_point": {"row": 166, "column": 46}, "end_point": {"row": 166, "column": 60}}, {"id": 648, "type": "identifier", "text": "SDL_GetError", "parent": 647, "children": [], "start_point": {"row": 166, "column": 46}, "end_point": {"row": 166, "column": 58}}, {"id": 649, "type": "argument_list", "text": "()", "parent": 647, "children": [], "start_point": {"row": 166, "column": 58}, "end_point": {"row": 166, "column": 60}}, {"id": 650, "type": "call_expression", "text": "screen_destroy(screen)", "parent": 636, "children": [651, 652], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 30}}, {"id": 651, "type": "identifier", "text": "screen_destroy", "parent": 650, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 22}}, {"id": 652, "type": "argument_list", "text": "(screen)", "parent": 650, "children": [653], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 30}}, {"id": 653, "type": "identifier", "text": "screen", "parent": 652, "children": [], "start_point": {"row": 167, "column": 23}, "end_point": {"row": 167, "column": 29}}, {"id": 654, "type": "return_statement", "text": "return false;", "parent": 636, "children": [655], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 21}}, {"id": 655, "type": "false", "text": "false", "parent": 654, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 20}}, {"id": 656, "type": "if_statement", "text": "if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)) {\n LOGE(\"Could not set renderer logical size: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }", "parent": 512, "children": [657], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 176, "column": 5}}, {"id": 657, "type": "parenthesized_expression", "text": "(SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height))", "parent": 656, "children": [658], "start_point": {"row": 171, "column": 7}, "end_point": {"row": 172, "column": 52}}, {"id": 658, "type": "call_expression", "text": "SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)", "parent": 657, "children": [659, 660], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 172, "column": 51}}, {"id": 659, "type": "identifier", "text": "SDL_RenderSetLogicalSize", "parent": 658, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 32}}, {"id": 660, "type": "argument_list", "text": "(screen->renderer, frame_size.width,\n frame_size.height)", "parent": 658, "children": [661, 664, 667], "start_point": {"row": 171, "column": 32}, "end_point": {"row": 172, "column": 51}}, {"id": 661, "type": "field_expression", "text": "screen->renderer", "parent": 660, "children": [662, 663], "start_point": {"row": 171, "column": 33}, "end_point": {"row": 171, "column": 49}}, {"id": 662, "type": "identifier", "text": "screen", "parent": 661, "children": [], "start_point": {"row": 171, "column": 33}, "end_point": {"row": 171, "column": 39}}, {"id": 663, "type": "field_identifier", "text": "renderer", "parent": 661, "children": [], "start_point": {"row": 171, "column": 41}, "end_point": {"row": 171, "column": 49}}, {"id": 664, "type": "field_expression", "text": "frame_size.width", "parent": 660, "children": [665, 666], "start_point": {"row": 171, "column": 51}, "end_point": {"row": 171, "column": 67}}, {"id": 665, "type": "identifier", "text": "frame_size", "parent": 664, "children": [], "start_point": {"row": 171, "column": 51}, "end_point": {"row": 171, "column": 61}}, {"id": 666, "type": "field_identifier", "text": "width", "parent": 664, "children": [], "start_point": {"row": 171, "column": 62}, "end_point": {"row": 171, "column": 67}}, {"id": 667, "type": "field_expression", "text": "frame_size.height", "parent": 660, "children": [668, 669], "start_point": {"row": 172, "column": 33}, "end_point": {"row": 172, "column": 50}}, {"id": 668, "type": "identifier", "text": "frame_size", "parent": 667, "children": [], "start_point": {"row": 172, "column": 33}, "end_point": {"row": 172, "column": 43}}, {"id": 669, "type": "field_identifier", "text": "height", "parent": 667, "children": [], "start_point": {"row": 172, "column": 44}, "end_point": {"row": 172, "column": 50}}, {"id": 670, "type": "call_expression", "text": "LOGE(\"Could not set renderer logical size: %s\", SDL_GetError())", "parent": 656, "children": [671, 672], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 71}}, {"id": 671, "type": "identifier", "text": "LOGE", "parent": 670, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 12}}, {"id": 672, "type": "argument_list", "text": "(\"Could not set renderer logical size: %s\", SDL_GetError())", "parent": 670, "children": [673, 674], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 71}}, {"id": 673, "type": "string_literal", "text": "\"Could not set renderer logical size: %s\"", "parent": 672, "children": [], "start_point": {"row": 173, "column": 13}, "end_point": {"row": 173, "column": 54}}, {"id": 674, "type": "call_expression", "text": "SDL_GetError()", "parent": 672, "children": [675, 676], "start_point": {"row": 173, "column": 56}, "end_point": {"row": 173, "column": 70}}, {"id": 675, "type": "identifier", "text": "SDL_GetError", "parent": 674, "children": [], "start_point": {"row": 173, "column": 56}, "end_point": {"row": 173, "column": 68}}, {"id": 676, "type": "argument_list", "text": "()", "parent": 674, "children": [], "start_point": {"row": 173, "column": 68}, "end_point": {"row": 173, "column": 70}}, {"id": 677, "type": "call_expression", "text": "screen_destroy(screen)", "parent": 656, "children": [678, 679], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 30}}, {"id": 678, "type": "identifier", "text": "screen_destroy", "parent": 677, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 22}}, {"id": 679, "type": "argument_list", "text": "(screen)", "parent": 677, "children": [680], "start_point": {"row": 174, "column": 22}, "end_point": {"row": 174, "column": 30}}, {"id": 680, "type": "identifier", "text": "screen", "parent": 679, "children": [], "start_point": {"row": 174, "column": 23}, "end_point": {"row": 174, "column": 29}}, {"id": 681, "type": "return_statement", "text": "return false;", "parent": 656, "children": [682], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 21}}, {"id": 682, "type": "false", "text": "false", "parent": 681, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 20}}, {"id": 683, "type": "declaration", "text": "SDL_Surface *icon = read_xpm(icon_xpm);", "parent": 512, "children": [684, 685], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 43}}, {"id": 684, "type": "type_identifier", "text": "SDL_Surface", "parent": 683, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 15}}, {"id": 685, "type": "init_declarator", "text": "*icon = read_xpm(icon_xpm)", "parent": 683, "children": [686, 689, 690], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 42}}, {"id": 686, "type": "pointer_declarator", "text": "*icon", "parent": 685, "children": [687, 688], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 21}}, {"id": 687, "type": "*", "text": "*", "parent": 686, "children": [], "start_point": {"row": 178, "column": 16}, "end_point": {"row": 178, "column": 17}}, {"id": 688, "type": "identifier", "text": "icon", "parent": 686, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 21}}, {"id": 689, "type": "=", "text": "=", "parent": 685, "children": [], "start_point": {"row": 178, "column": 22}, "end_point": {"row": 178, "column": 23}}, {"id": 690, "type": "call_expression", "text": "read_xpm(icon_xpm)", "parent": 685, "children": [691, 692], "start_point": {"row": 178, "column": 24}, "end_point": {"row": 178, "column": 42}}, {"id": 691, "type": "identifier", "text": "read_xpm", "parent": 690, "children": [], "start_point": {"row": 178, "column": 24}, "end_point": {"row": 178, "column": 32}}, {"id": 692, "type": "argument_list", "text": "(icon_xpm)", "parent": 690, "children": [693], "start_point": {"row": 178, "column": 32}, "end_point": {"row": 178, "column": 42}}, {"id": 693, "type": "identifier", "text": "icon_xpm", "parent": 692, "children": [], "start_point": {"row": 178, "column": 33}, "end_point": {"row": 178, "column": 41}}, {"id": 694, "type": "if_statement", "text": "if (icon) {\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n } else {\n LOGW(\"Could not load icon\");\n }", "parent": 512, "children": [695, 708], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 184, "column": 5}}, {"id": 695, "type": "parenthesized_expression", "text": "(icon)", "parent": 694, "children": [696], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 13}}, {"id": 696, "type": "identifier", "text": "icon", "parent": 695, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 12}}, {"id": 697, "type": "call_expression", "text": "SDL_SetWindowIcon(screen->window, icon)", "parent": 694, "children": [698, 699], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 47}}, {"id": 698, "type": "identifier", "text": "SDL_SetWindowIcon", "parent": 697, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 25}}, {"id": 699, "type": "argument_list", "text": "(screen->window, icon)", "parent": 697, "children": [700, 703], "start_point": {"row": 180, "column": 25}, "end_point": {"row": 180, "column": 47}}, {"id": 700, "type": "field_expression", "text": "screen->window", "parent": 699, "children": [701, 702], "start_point": {"row": 180, "column": 26}, "end_point": {"row": 180, "column": 40}}, {"id": 701, "type": "identifier", "text": "screen", "parent": 700, "children": [], "start_point": {"row": 180, "column": 26}, "end_point": {"row": 180, "column": 32}}, {"id": 702, "type": "field_identifier", "text": "window", "parent": 700, "children": [], "start_point": {"row": 180, "column": 34}, "end_point": {"row": 180, "column": 40}}, {"id": 703, "type": "identifier", "text": "icon", "parent": 699, "children": [], "start_point": {"row": 180, "column": 42}, "end_point": {"row": 180, "column": 46}}, {"id": 704, "type": "call_expression", "text": "SDL_FreeSurface(icon)", "parent": 694, "children": [705, 706], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 29}}, {"id": 705, "type": "identifier", "text": "SDL_FreeSurface", "parent": 704, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 23}}, {"id": 706, "type": "argument_list", "text": "(icon)", "parent": 704, "children": [707], "start_point": {"row": 181, "column": 23}, "end_point": {"row": 181, "column": 29}}, {"id": 707, "type": "identifier", "text": "icon", "parent": 706, "children": [], "start_point": {"row": 181, "column": 24}, "end_point": {"row": 181, "column": 28}}, {"id": 708, "type": "else_clause", "text": "else {\n LOGW(\"Could not load icon\");\n }", "parent": 694, "children": [], "start_point": {"row": 182, "column": 6}, "end_point": {"row": 184, "column": 5}}, {"id": 709, "type": "call_expression", "text": "LOGW(\"Could not load icon\")", "parent": 708, "children": [710, 711], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 35}}, {"id": 710, "type": "identifier", "text": "LOGW", "parent": 709, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 12}}, {"id": 711, "type": "argument_list", "text": "(\"Could not load icon\")", "parent": 709, "children": [712], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 35}}, {"id": 712, "type": "string_literal", "text": "\"Could not load icon\"", "parent": 711, "children": [], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 34}}, {"id": 713, "type": "call_expression", "text": "LOGI(\"Initial texture: %\" PRIu16 \"x%\" PRIu16, frame_size.width,\n frame_size.height)", "parent": 512, "children": [714, 715], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 187, "column": 68}}, {"id": 714, "type": "identifier", "text": "LOGI", "parent": 713, "children": [], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 8}}, {"id": 715, "type": "argument_list", "text": "(\"Initial texture: %\" PRIu16 \"x%\" PRIu16, frame_size.width,\n frame_size.height)", "parent": 713, "children": [716, 721, 724], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 187, "column": 68}}, {"id": 716, "type": "concatenated_string", "text": "\"Initial texture: %\" PRIu16 \"x%\" PRIu16", "parent": 715, "children": [717, 718, 719, 720], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 48}}, {"id": 717, "type": "string_literal", "text": "\"Initial texture: %\"", "parent": 716, "children": [], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 29}}, {"id": 718, "type": "identifier", "text": "PRIu16", "parent": 716, "children": [], "start_point": {"row": 186, "column": 30}, "end_point": {"row": 186, "column": 36}}, {"id": 719, "type": "string_literal", "text": "\"x%\"", "parent": 716, "children": [], "start_point": {"row": 186, "column": 37}, "end_point": {"row": 186, "column": 41}}, {"id": 720, "type": "identifier", "text": "PRIu16", "parent": 716, "children": [], "start_point": {"row": 186, "column": 42}, "end_point": {"row": 186, "column": 48}}, {"id": 721, "type": "field_expression", "text": "frame_size.width", "parent": 715, "children": [722, 723], "start_point": {"row": 186, "column": 50}, "end_point": {"row": 186, "column": 66}}, {"id": 722, "type": "identifier", "text": "frame_size", "parent": 721, "children": [], "start_point": {"row": 186, "column": 50}, "end_point": {"row": 186, "column": 60}}, {"id": 723, "type": "field_identifier", "text": "width", "parent": 721, "children": [], "start_point": {"row": 186, "column": 61}, "end_point": {"row": 186, "column": 66}}, {"id": 724, "type": "field_expression", "text": "frame_size.height", "parent": 715, "children": [725, 726], "start_point": {"row": 187, "column": 50}, "end_point": {"row": 187, "column": 67}}, {"id": 725, "type": "identifier", "text": "frame_size", "parent": 724, "children": [], "start_point": {"row": 187, "column": 50}, "end_point": {"row": 187, "column": 60}}, {"id": 726, "type": "field_identifier", "text": "height", "parent": 724, "children": [], "start_point": {"row": 187, "column": 61}, "end_point": {"row": 187, "column": 67}}, {"id": 727, "type": "assignment_expression", "text": "screen->texture = create_texture(screen->renderer, frame_size)", "parent": 512, "children": [728, 731, 732], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 66}}, {"id": 728, "type": "field_expression", "text": "screen->texture", "parent": 727, "children": [729, 730], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 19}}, {"id": 729, "type": "identifier", "text": "screen", "parent": 728, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 10}}, {"id": 730, "type": "field_identifier", "text": "texture", "parent": 728, "children": [], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 19}}, {"id": 731, "type": "=", "text": "=", "parent": 727, "children": [], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 21}}, {"id": 732, "type": "call_expression", "text": "create_texture(screen->renderer, frame_size)", "parent": 727, "children": [733, 734], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 66}}, {"id": 733, "type": "identifier", "text": "create_texture", "parent": 732, "children": [], "start_point": {"row": 188, "column": 22}, "end_point": {"row": 188, "column": 36}}, {"id": 734, "type": "argument_list", "text": "(screen->renderer, frame_size)", "parent": 732, "children": [735, 738], "start_point": {"row": 188, "column": 36}, "end_point": {"row": 188, "column": 66}}, {"id": 735, "type": "field_expression", "text": "screen->renderer", "parent": 734, "children": [736, 737], "start_point": {"row": 188, "column": 37}, "end_point": {"row": 188, "column": 53}}, {"id": 736, "type": "identifier", "text": "screen", "parent": 735, "children": [], "start_point": {"row": 188, "column": 37}, "end_point": {"row": 188, "column": 43}}, {"id": 737, "type": "field_identifier", "text": "renderer", "parent": 735, "children": [], "start_point": {"row": 188, "column": 45}, "end_point": {"row": 188, "column": 53}}, {"id": 738, "type": "identifier", "text": "frame_size", "parent": 734, "children": [], "start_point": {"row": 188, "column": 55}, "end_point": {"row": 188, "column": 65}}, {"id": 739, "type": "if_statement", "text": "if (!screen->texture) {\n LOGC(\"Could not create texture: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }", "parent": 512, "children": [740], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 193, "column": 5}}, {"id": 740, "type": "parenthesized_expression", "text": "(!screen->texture)", "parent": 739, "children": [741], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 25}}, {"id": 741, "type": "unary_expression", "text": "!screen->texture", "parent": 740, "children": [742, 743], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 24}}, {"id": 742, "type": "!", "text": "!", "parent": 741, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 9}}, {"id": 743, "type": "field_expression", "text": "screen->texture", "parent": 741, "children": [744, 745], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 24}}, {"id": 744, "type": "identifier", "text": "screen", "parent": 743, "children": [], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 15}}, {"id": 745, "type": "field_identifier", "text": "texture", "parent": 743, "children": [], "start_point": {"row": 189, "column": 17}, "end_point": {"row": 189, "column": 24}}, {"id": 746, "type": "call_expression", "text": "LOGC(\"Could not create texture: %s\", SDL_GetError())", "parent": 739, "children": [747, 748], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 60}}, {"id": 747, "type": "identifier", "text": "LOGC", "parent": 746, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 12}}, {"id": 748, "type": "argument_list", "text": "(\"Could not create texture: %s\", SDL_GetError())", "parent": 746, "children": [749, 750], "start_point": {"row": 190, "column": 12}, "end_point": {"row": 190, "column": 60}}, {"id": 749, "type": "string_literal", "text": "\"Could not create texture: %s\"", "parent": 748, "children": [], "start_point": {"row": 190, "column": 13}, "end_point": {"row": 190, "column": 43}}, {"id": 750, "type": "call_expression", "text": "SDL_GetError()", "parent": 748, "children": [751, 752], "start_point": {"row": 190, "column": 45}, "end_point": {"row": 190, "column": 59}}, {"id": 751, "type": "identifier", "text": "SDL_GetError", "parent": 750, "children": [], "start_point": {"row": 190, "column": 45}, "end_point": {"row": 190, "column": 57}}, {"id": 752, "type": "argument_list", "text": "()", "parent": 750, "children": [], "start_point": {"row": 190, "column": 57}, "end_point": {"row": 190, "column": 59}}, {"id": 753, "type": "call_expression", "text": "screen_destroy(screen)", "parent": 739, "children": [754, 755], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 30}}, {"id": 754, "type": "identifier", "text": "screen_destroy", "parent": 753, "children": [], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 22}}, {"id": 755, "type": "argument_list", "text": "(screen)", "parent": 753, "children": [756], "start_point": {"row": 191, "column": 22}, "end_point": {"row": 191, "column": 30}}, {"id": 756, "type": "identifier", "text": "screen", "parent": 755, "children": [], "start_point": {"row": 191, "column": 23}, "end_point": {"row": 191, "column": 29}}, {"id": 757, "type": "return_statement", "text": "return false;", "parent": 739, "children": [758], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 21}}, {"id": 758, "type": "false", "text": "false", "parent": 757, "children": [], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 20}}, {"id": 759, "type": "return_statement", "text": "return true;", "parent": 512, "children": [760], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 195, "column": 16}}, {"id": 760, "type": "true", "text": "true", "parent": 759, "children": [], "start_point": {"row": 195, "column": 11}, "end_point": {"row": 195, "column": 15}}, {"id": 761, "type": "function_definition", "text": "void\nscreen_show_window(struct screen *screen) {\n SDL_ShowWindow(screen->window);\n}", "parent": null, "children": [762, 763], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 201, "column": 1}}, {"id": 762, "type": "primitive_type", "text": "void", "parent": 761, "children": [], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 198, "column": 4}}, {"id": 763, "type": "function_declarator", "text": "screen_show_window(struct screen *screen)", "parent": 761, "children": [764, 765], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 199, "column": 41}}, {"id": 764, "type": "identifier", "text": "screen_show_window", "parent": 763, "children": [], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 199, "column": 18}}, {"id": 765, "type": "parameter_list", "text": "(struct screen *screen)", "parent": 763, "children": [766], "start_point": {"row": 199, "column": 18}, "end_point": {"row": 199, "column": 41}}, {"id": 766, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 765, "children": [767, 770], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 40}}, {"id": 767, "type": "struct_specifier", "text": "struct screen", "parent": 766, "children": [768, 769], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 32}}, {"id": 768, "type": "struct", "text": "struct", "parent": 767, "children": [], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 25}}, {"id": 769, "type": "type_identifier", "text": "screen", "parent": 767, "children": [], "start_point": {"row": 199, "column": 26}, "end_point": {"row": 199, "column": 32}}, {"id": 770, "type": "pointer_declarator", "text": "*screen", "parent": 766, "children": [771, 772], "start_point": {"row": 199, "column": 33}, "end_point": {"row": 199, "column": 40}}, {"id": 771, "type": "*", "text": "*", "parent": 770, "children": [], "start_point": {"row": 199, "column": 33}, "end_point": {"row": 199, "column": 34}}, {"id": 772, "type": "identifier", "text": "screen", "parent": 770, "children": [], "start_point": {"row": 199, "column": 34}, "end_point": {"row": 199, "column": 40}}, {"id": 773, "type": "call_expression", "text": "SDL_ShowWindow(screen->window)", "parent": 761, "children": [774, 775], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 34}}, {"id": 774, "type": "identifier", "text": "SDL_ShowWindow", "parent": 773, "children": [], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 18}}, {"id": 775, "type": "argument_list", "text": "(screen->window)", "parent": 773, "children": [776], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 34}}, {"id": 776, "type": "field_expression", "text": "screen->window", "parent": 775, "children": [777, 778], "start_point": {"row": 200, "column": 19}, "end_point": {"row": 200, "column": 33}}, {"id": 777, "type": "identifier", "text": "screen", "parent": 776, "children": [], "start_point": {"row": 200, "column": 19}, "end_point": {"row": 200, "column": 25}}, {"id": 778, "type": "field_identifier", "text": "window", "parent": 776, "children": [], "start_point": {"row": 200, "column": 27}, "end_point": {"row": 200, "column": 33}}, {"id": 779, "type": "function_definition", "text": "void\nscreen_destroy(struct screen *screen) {\n if (screen->texture) {\n SDL_DestroyTexture(screen->texture);\n }\n if (screen->renderer) {\n SDL_DestroyRenderer(screen->renderer);\n }\n if (screen->window) {\n SDL_DestroyWindow(screen->window);\n }\n}", "parent": null, "children": [780, 781], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 214, "column": 1}}, {"id": 780, "type": "primitive_type", "text": "void", "parent": 779, "children": [], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 203, "column": 4}}, {"id": 781, "type": "function_declarator", "text": "screen_destroy(struct screen *screen)", "parent": 779, "children": [782, 783], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 37}}, {"id": 782, "type": "identifier", "text": "screen_destroy", "parent": 781, "children": [], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 14}}, {"id": 783, "type": "parameter_list", "text": "(struct screen *screen)", "parent": 781, "children": [784], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 37}}, {"id": 784, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 783, "children": [785, 788], "start_point": {"row": 204, "column": 15}, "end_point": {"row": 204, "column": 36}}, {"id": 785, "type": "struct_specifier", "text": "struct screen", "parent": 784, "children": [786, 787], "start_point": {"row": 204, "column": 15}, "end_point": {"row": 204, "column": 28}}, {"id": 786, "type": "struct", "text": "struct", "parent": 785, "children": [], "start_point": {"row": 204, "column": 15}, "end_point": {"row": 204, "column": 21}}, {"id": 787, "type": "type_identifier", "text": "screen", "parent": 785, "children": [], "start_point": {"row": 204, "column": 22}, "end_point": {"row": 204, "column": 28}}, {"id": 788, "type": "pointer_declarator", "text": "*screen", "parent": 784, "children": [789, 790], "start_point": {"row": 204, "column": 29}, "end_point": {"row": 204, "column": 36}}, {"id": 789, "type": "*", "text": "*", "parent": 788, "children": [], "start_point": {"row": 204, "column": 29}, "end_point": {"row": 204, "column": 30}}, {"id": 790, "type": "identifier", "text": "screen", "parent": 788, "children": [], "start_point": {"row": 204, "column": 30}, "end_point": {"row": 204, "column": 36}}, {"id": 791, "type": "if_statement", "text": "if (screen->texture) {\n SDL_DestroyTexture(screen->texture);\n }", "parent": 779, "children": [792], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 207, "column": 5}}, {"id": 792, "type": "parenthesized_expression", "text": "(screen->texture)", "parent": 791, "children": [793], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 24}}, {"id": 793, "type": "field_expression", "text": "screen->texture", "parent": 792, "children": [794, 795], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 23}}, {"id": 794, "type": "identifier", "text": "screen", "parent": 793, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 14}}, {"id": 795, "type": "field_identifier", "text": "texture", "parent": 793, "children": [], "start_point": {"row": 205, "column": 16}, "end_point": {"row": 205, "column": 23}}, {"id": 796, "type": "call_expression", "text": "SDL_DestroyTexture(screen->texture)", "parent": 791, "children": [797, 798], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 43}}, {"id": 797, "type": "identifier", "text": "SDL_DestroyTexture", "parent": 796, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 26}}, {"id": 798, "type": "argument_list", "text": "(screen->texture)", "parent": 796, "children": [799], "start_point": {"row": 206, "column": 26}, "end_point": {"row": 206, "column": 43}}, {"id": 799, "type": "field_expression", "text": "screen->texture", "parent": 798, "children": [800, 801], "start_point": {"row": 206, "column": 27}, "end_point": {"row": 206, "column": 42}}, {"id": 800, "type": "identifier", "text": "screen", "parent": 799, "children": [], "start_point": {"row": 206, "column": 27}, "end_point": {"row": 206, "column": 33}}, {"id": 801, "type": "field_identifier", "text": "texture", "parent": 799, "children": [], "start_point": {"row": 206, "column": 35}, "end_point": {"row": 206, "column": 42}}, {"id": 802, "type": "if_statement", "text": "if (screen->renderer) {\n SDL_DestroyRenderer(screen->renderer);\n }", "parent": 779, "children": [803], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 210, "column": 5}}, {"id": 803, "type": "parenthesized_expression", "text": "(screen->renderer)", "parent": 802, "children": [804], "start_point": {"row": 208, "column": 7}, "end_point": {"row": 208, "column": 25}}, {"id": 804, "type": "field_expression", "text": "screen->renderer", "parent": 803, "children": [805, 806], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 24}}, {"id": 805, "type": "identifier", "text": "screen", "parent": 804, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 14}}, {"id": 806, "type": "field_identifier", "text": "renderer", "parent": 804, "children": [], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 24}}, {"id": 807, "type": "call_expression", "text": "SDL_DestroyRenderer(screen->renderer)", "parent": 802, "children": [808, 809], "start_point": {"row": 209, "column": 8}, "end_point": {"row": 209, "column": 45}}, {"id": 808, "type": "identifier", "text": "SDL_DestroyRenderer", "parent": 807, "children": [], "start_point": {"row": 209, "column": 8}, "end_point": {"row": 209, "column": 27}}, {"id": 809, "type": "argument_list", "text": "(screen->renderer)", "parent": 807, "children": [810], "start_point": {"row": 209, "column": 27}, "end_point": {"row": 209, "column": 45}}, {"id": 810, "type": "field_expression", "text": "screen->renderer", "parent": 809, "children": [811, 812], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 44}}, {"id": 811, "type": "identifier", "text": "screen", "parent": 810, "children": [], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 34}}, {"id": 812, "type": "field_identifier", "text": "renderer", "parent": 810, "children": [], "start_point": {"row": 209, "column": 36}, "end_point": {"row": 209, "column": 44}}, {"id": 813, "type": "if_statement", "text": "if (screen->window) {\n SDL_DestroyWindow(screen->window);\n }", "parent": 779, "children": [814], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 213, "column": 5}}, {"id": 814, "type": "parenthesized_expression", "text": "(screen->window)", "parent": 813, "children": [815], "start_point": {"row": 211, "column": 7}, "end_point": {"row": 211, "column": 23}}, {"id": 815, "type": "field_expression", "text": "screen->window", "parent": 814, "children": [816, 817], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 22}}, {"id": 816, "type": "identifier", "text": "screen", "parent": 815, "children": [], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 14}}, {"id": 817, "type": "field_identifier", "text": "window", "parent": 815, "children": [], "start_point": {"row": 211, "column": 16}, "end_point": {"row": 211, "column": 22}}, {"id": 818, "type": "call_expression", "text": "SDL_DestroyWindow(screen->window)", "parent": 813, "children": [819, 820], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 41}}, {"id": 819, "type": "identifier", "text": "SDL_DestroyWindow", "parent": 818, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 25}}, {"id": 820, "type": "argument_list", "text": "(screen->window)", "parent": 818, "children": [821], "start_point": {"row": 212, "column": 25}, "end_point": {"row": 212, "column": 41}}, {"id": 821, "type": "field_expression", "text": "screen->window", "parent": 820, "children": [822, 823], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 40}}, {"id": 822, "type": "identifier", "text": "screen", "parent": 821, "children": [], "start_point": {"row": 212, "column": 26}, "end_point": {"row": 212, "column": 32}}, {"id": 823, "type": "field_identifier", "text": "window", "parent": 821, "children": [], "start_point": {"row": 212, "column": 34}, "end_point": {"row": 212, "column": 40}}, {"id": 824, "type": "function_definition", "text": "static bool\nprepare_for_frame(struct screen *screen, struct size new_frame_size) {\n if (screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height) {\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE(\"Could not set renderer logical size: %s\", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI(\"New texture: %\" PRIu16 \"x%\" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC(\"Could not create texture: %s\", SDL_GetError());\n return false;\n }\n }\n\n return true;\n}", "parent": null, "children": [825, 826], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 253, "column": 1}}, {"id": 825, "type": "primitive_type", "text": "bool", "parent": 824, "children": [], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 11}}, {"id": 826, "type": "function_declarator", "text": "prepare_for_frame(struct screen *screen, struct size new_frame_size)", "parent": 824, "children": [827, 828], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 218, "column": 68}}, {"id": 827, "type": "identifier", "text": "prepare_for_frame", "parent": 826, "children": [], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 218, "column": 17}}, {"id": 828, "type": "parameter_list", "text": "(struct screen *screen, struct size new_frame_size)", "parent": 826, "children": [829, 836], "start_point": {"row": 218, "column": 17}, "end_point": {"row": 218, "column": 68}}, {"id": 829, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 828, "children": [830, 833], "start_point": {"row": 218, "column": 18}, "end_point": {"row": 218, "column": 39}}, {"id": 830, "type": "struct_specifier", "text": "struct screen", "parent": 829, "children": [831, 832], "start_point": {"row": 218, "column": 18}, "end_point": {"row": 218, "column": 31}}, {"id": 831, "type": "struct", "text": "struct", "parent": 830, "children": [], "start_point": {"row": 218, "column": 18}, "end_point": {"row": 218, "column": 24}}, {"id": 832, "type": "type_identifier", "text": "screen", "parent": 830, "children": [], "start_point": {"row": 218, "column": 25}, "end_point": {"row": 218, "column": 31}}, {"id": 833, "type": "pointer_declarator", "text": "*screen", "parent": 829, "children": [834, 835], "start_point": {"row": 218, "column": 32}, "end_point": {"row": 218, "column": 39}}, {"id": 834, "type": "*", "text": "*", "parent": 833, "children": [], "start_point": {"row": 218, "column": 32}, "end_point": {"row": 218, "column": 33}}, {"id": 835, "type": "identifier", "text": "screen", "parent": 833, "children": [], "start_point": {"row": 218, "column": 33}, "end_point": {"row": 218, "column": 39}}, {"id": 836, "type": "parameter_declaration", "text": "struct size new_frame_size", "parent": 828, "children": [837, 840], "start_point": {"row": 218, "column": 41}, "end_point": {"row": 218, "column": 67}}, {"id": 837, "type": "struct_specifier", "text": "struct size", "parent": 836, "children": [838, 839], "start_point": {"row": 218, "column": 41}, "end_point": {"row": 218, "column": 52}}, {"id": 838, "type": "struct", "text": "struct", "parent": 837, "children": [], "start_point": {"row": 218, "column": 41}, "end_point": {"row": 218, "column": 47}}, {"id": 839, "type": "type_identifier", "text": "size", "parent": 837, "children": [], "start_point": {"row": 218, "column": 48}, "end_point": {"row": 218, "column": 52}}, {"id": 840, "type": "identifier", "text": "new_frame_size", "parent": 836, "children": [], "start_point": {"row": 218, "column": 53}, "end_point": {"row": 218, "column": 67}}, {"id": 841, "type": "if_statement", "text": "if (screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height) {\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE(\"Could not set renderer logical size: %s\", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI(\"New texture: %\" PRIu16 \"x%\" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC(\"Could not create texture: %s\", SDL_GetError());\n return false;\n }\n }", "parent": 824, "children": [842], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 250, "column": 5}}, {"id": 842, "type": "parenthesized_expression", "text": "(screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height)", "parent": 841, "children": [843], "start_point": {"row": 219, "column": 7}, "end_point": {"row": 220, "column": 66}}, {"id": 843, "type": "binary_expression", "text": "screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height", "parent": 842, "children": [844, 854, 855], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 220, "column": 65}}, {"id": 844, "type": "binary_expression", "text": "screen->frame_size.width != new_frame_size.width", "parent": 843, "children": [845, 850, 851], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 56}}, {"id": 845, "type": "field_expression", "text": "screen->frame_size.width", "parent": 844, "children": [846, 849], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 32}}, {"id": 846, "type": "field_expression", "text": "screen->frame_size", "parent": 845, "children": [847, 848], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 26}}, {"id": 847, "type": "identifier", "text": "screen", "parent": 846, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 14}}, {"id": 848, "type": "field_identifier", "text": "frame_size", "parent": 846, "children": [], "start_point": {"row": 219, "column": 16}, "end_point": {"row": 219, "column": 26}}, {"id": 849, "type": "field_identifier", "text": "width", "parent": 845, "children": [], "start_point": {"row": 219, "column": 27}, "end_point": {"row": 219, "column": 32}}, {"id": 850, "type": "!=", "text": "!=", "parent": 844, "children": [], "start_point": {"row": 219, "column": 33}, "end_point": {"row": 219, "column": 35}}, {"id": 851, "type": "field_expression", "text": "new_frame_size.width", "parent": 844, "children": [852, 853], "start_point": {"row": 219, "column": 36}, "end_point": {"row": 219, "column": 56}}, {"id": 852, "type": "identifier", "text": "new_frame_size", "parent": 851, "children": [], "start_point": {"row": 219, "column": 36}, "end_point": {"row": 219, "column": 50}}, {"id": 853, "type": "field_identifier", "text": "width", "parent": 851, "children": [], "start_point": {"row": 219, "column": 51}, "end_point": {"row": 219, "column": 56}}, {"id": 854, "type": "||", "text": "||", "parent": 843, "children": [], "start_point": {"row": 220, "column": 12}, "end_point": {"row": 220, "column": 14}}, {"id": 855, "type": "binary_expression", "text": "screen->frame_size.height != new_frame_size.height", "parent": 843, "children": [856, 861, 862], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 65}}, {"id": 856, "type": "field_expression", "text": "screen->frame_size.height", "parent": 855, "children": [857, 860], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 40}}, {"id": 857, "type": "field_expression", "text": "screen->frame_size", "parent": 856, "children": [858, 859], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 33}}, {"id": 858, "type": "identifier", "text": "screen", "parent": 857, "children": [], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 21}}, {"id": 859, "type": "field_identifier", "text": "frame_size", "parent": 857, "children": [], "start_point": {"row": 220, "column": 23}, "end_point": {"row": 220, "column": 33}}, {"id": 860, "type": "field_identifier", "text": "height", "parent": 856, "children": [], "start_point": {"row": 220, "column": 34}, "end_point": {"row": 220, "column": 40}}, {"id": 861, "type": "!=", "text": "!=", "parent": 855, "children": [], "start_point": {"row": 220, "column": 41}, "end_point": {"row": 220, "column": 43}}, {"id": 862, "type": "field_expression", "text": "new_frame_size.height", "parent": 855, "children": [863, 864], "start_point": {"row": 220, "column": 44}, "end_point": {"row": 220, "column": 65}}, {"id": 863, "type": "identifier", "text": "new_frame_size", "parent": 862, "children": [], "start_point": {"row": 220, "column": 44}, "end_point": {"row": 220, "column": 58}}, {"id": 864, "type": "field_identifier", "text": "height", "parent": 862, "children": [], "start_point": {"row": 220, "column": 59}, "end_point": {"row": 220, "column": 65}}, {"id": 865, "type": "assignment_expression", "text": "screen->frame_changed = true", "parent": 841, "children": [866, 869, 870], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 36}}, {"id": 866, "type": "field_expression", "text": "screen->frame_changed", "parent": 865, "children": [867, 868], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 29}}, {"id": 867, "type": "identifier", "text": "screen", "parent": 866, "children": [], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 14}}, {"id": 868, "type": "field_identifier", "text": "frame_changed", "parent": 866, "children": [], "start_point": {"row": 221, "column": 16}, "end_point": {"row": 221, "column": 29}}, {"id": 869, "type": "=", "text": "=", "parent": 865, "children": [], "start_point": {"row": 221, "column": 30}, "end_point": {"row": 221, "column": 31}}, {"id": 870, "type": "true", "text": "true", "parent": 865, "children": [], "start_point": {"row": 221, "column": 32}, "end_point": {"row": 221, "column": 36}}, {"id": 871, "type": "if_statement", "text": "if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE(\"Could not set renderer logical size: %s\", SDL_GetError());\n return false;\n }", "parent": 841, "children": [872], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 226, "column": 9}}, {"id": 872, "type": "parenthesized_expression", "text": "(SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height))", "parent": 871, "children": [873], "start_point": {"row": 222, "column": 11}, "end_point": {"row": 223, "column": 60}}, {"id": 873, "type": "call_expression", "text": "SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)", "parent": 872, "children": [874, 875], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 223, "column": 59}}, {"id": 874, "type": "identifier", "text": "SDL_RenderSetLogicalSize", "parent": 873, "children": [], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 222, "column": 36}}, {"id": 875, "type": "argument_list", "text": "(screen->renderer, new_frame_size.width,\n new_frame_size.height)", "parent": 873, "children": [876, 879, 882], "start_point": {"row": 222, "column": 36}, "end_point": {"row": 223, "column": 59}}, {"id": 876, "type": "field_expression", "text": "screen->renderer", "parent": 875, "children": [877, 878], "start_point": {"row": 222, "column": 37}, "end_point": {"row": 222, "column": 53}}, {"id": 877, "type": "identifier", "text": "screen", "parent": 876, "children": [], "start_point": {"row": 222, "column": 37}, "end_point": {"row": 222, "column": 43}}, {"id": 878, "type": "field_identifier", "text": "renderer", "parent": 876, "children": [], "start_point": {"row": 222, "column": 45}, "end_point": {"row": 222, "column": 53}}, {"id": 879, "type": "field_expression", "text": "new_frame_size.width", "parent": 875, "children": [880, 881], "start_point": {"row": 222, "column": 55}, "end_point": {"row": 222, "column": 75}}, {"id": 880, "type": "identifier", "text": "new_frame_size", "parent": 879, "children": [], "start_point": {"row": 222, "column": 55}, "end_point": {"row": 222, "column": 69}}, {"id": 881, "type": "field_identifier", "text": "width", "parent": 879, "children": [], "start_point": {"row": 222, "column": 70}, "end_point": {"row": 222, "column": 75}}, {"id": 882, "type": "field_expression", "text": "new_frame_size.height", "parent": 875, "children": [883, 884], "start_point": {"row": 223, "column": 37}, "end_point": {"row": 223, "column": 58}}, {"id": 883, "type": "identifier", "text": "new_frame_size", "parent": 882, "children": [], "start_point": {"row": 223, "column": 37}, "end_point": {"row": 223, "column": 51}}, {"id": 884, "type": "field_identifier", "text": "height", "parent": 882, "children": [], "start_point": {"row": 223, "column": 52}, "end_point": {"row": 223, "column": 58}}, {"id": 885, "type": "call_expression", "text": "LOGE(\"Could not set renderer logical size: %s\", SDL_GetError())", "parent": 871, "children": [886, 887], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 75}}, {"id": 886, "type": "identifier", "text": "LOGE", "parent": 885, "children": [], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 16}}, {"id": 887, "type": "argument_list", "text": "(\"Could not set renderer logical size: %s\", SDL_GetError())", "parent": 885, "children": [888, 889], "start_point": {"row": 224, "column": 16}, "end_point": {"row": 224, "column": 75}}, {"id": 888, "type": "string_literal", "text": "\"Could not set renderer logical size: %s\"", "parent": 887, "children": [], "start_point": {"row": 224, "column": 17}, "end_point": {"row": 224, "column": 58}}, {"id": 889, "type": "call_expression", "text": "SDL_GetError()", "parent": 887, "children": [890, 891], "start_point": {"row": 224, "column": 60}, "end_point": {"row": 224, "column": 74}}, {"id": 890, "type": "identifier", "text": "SDL_GetError", "parent": 889, "children": [], "start_point": {"row": 224, "column": 60}, "end_point": {"row": 224, "column": 72}}, {"id": 891, "type": "argument_list", "text": "()", "parent": 889, "children": [], "start_point": {"row": 224, "column": 72}, "end_point": {"row": 224, "column": 74}}, {"id": 892, "type": "return_statement", "text": "return false;", "parent": 871, "children": [893], "start_point": {"row": 225, "column": 12}, "end_point": {"row": 225, "column": 25}}, {"id": 893, "type": "false", "text": "false", "parent": 892, "children": [], "start_point": {"row": 225, "column": 19}, "end_point": {"row": 225, "column": 24}}, {"id": 894, "type": "call_expression", "text": "SDL_DestroyTexture(screen->texture)", "parent": 841, "children": [895, 896], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 43}}, {"id": 895, "type": "identifier", "text": "SDL_DestroyTexture", "parent": 894, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 26}}, {"id": 896, "type": "argument_list", "text": "(screen->texture)", "parent": 894, "children": [897], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 43}}, {"id": 897, "type": "field_expression", "text": "screen->texture", "parent": 896, "children": [898, 899], "start_point": {"row": 229, "column": 27}, "end_point": {"row": 229, "column": 42}}, {"id": 898, "type": "identifier", "text": "screen", "parent": 897, "children": [], "start_point": {"row": 229, "column": 27}, "end_point": {"row": 229, "column": 33}}, {"id": 899, "type": "field_identifier", "text": "texture", "parent": 897, "children": [], "start_point": {"row": 229, "column": 35}, "end_point": {"row": 229, "column": 42}}, {"id": 900, "type": "declaration", "text": "struct size current_size = get_window_size(screen);", "parent": 841, "children": [901, 904], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 59}}, {"id": 901, "type": "struct_specifier", "text": "struct size", "parent": 900, "children": [902, 903], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 19}}, {"id": 902, "type": "struct", "text": "struct", "parent": 901, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 14}}, {"id": 903, "type": "type_identifier", "text": "size", "parent": 901, "children": [], "start_point": {"row": 231, "column": 15}, "end_point": {"row": 231, "column": 19}}, {"id": 904, "type": "init_declarator", "text": "current_size = get_window_size(screen)", "parent": 900, "children": [905, 906, 907], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 58}}, {"id": 905, "type": "identifier", "text": "current_size", "parent": 904, "children": [], "start_point": {"row": 231, "column": 20}, "end_point": {"row": 231, "column": 32}}, {"id": 906, "type": "=", "text": "=", "parent": 904, "children": [], "start_point": {"row": 231, "column": 33}, "end_point": {"row": 231, "column": 34}}, {"id": 907, "type": "call_expression", "text": "get_window_size(screen)", "parent": 904, "children": [908, 909], "start_point": {"row": 231, "column": 35}, "end_point": {"row": 231, "column": 58}}, {"id": 908, "type": "identifier", "text": "get_window_size", "parent": 907, "children": [], "start_point": {"row": 231, "column": 35}, "end_point": {"row": 231, "column": 50}}, {"id": 909, "type": "argument_list", "text": "(screen)", "parent": 907, "children": [910], "start_point": {"row": 231, "column": 50}, "end_point": {"row": 231, "column": 58}}, {"id": 910, "type": "identifier", "text": "screen", "parent": 909, "children": [], "start_point": {"row": 231, "column": 51}, "end_point": {"row": 231, "column": 57}}, {"id": 911, "type": "declaration", "text": "struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };", "parent": 841, "children": [912, 915], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 237, "column": 10}}, {"id": 912, "type": "struct_specifier", "text": "struct size", "parent": 911, "children": [913, 914], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 19}}, {"id": 913, "type": "struct", "text": "struct", "parent": 912, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 14}}, {"id": 914, "type": "type_identifier", "text": "size", "parent": 912, "children": [], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 19}}, {"id": 915, "type": "init_declarator", "text": "target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n }", "parent": 911, "children": [916, 917, 918], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 237, "column": 9}}, {"id": 916, "type": "identifier", "text": "target_size", "parent": 915, "children": [], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 31}}, {"id": 917, "type": "=", "text": "=", "parent": 915, "children": [], "start_point": {"row": 232, "column": 32}, "end_point": {"row": 232, "column": 33}}, {"id": 918, "type": "initializer_list", "text": "{\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n }", "parent": 915, "children": [919, 937], "start_point": {"row": 232, "column": 34}, "end_point": {"row": 237, "column": 9}}, {"id": 919, "type": "binary_expression", "text": "(uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width", "parent": 918, "children": [920, 931, 932], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 234, "column": 46}}, {"id": 920, "type": "binary_expression", "text": "(uint32_t) current_size.width * new_frame_size.width", "parent": 919, "children": [921, 927, 928], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 64}}, {"id": 921, "type": "cast_expression", "text": "(uint32_t) current_size.width", "parent": 920, "children": [922, 924], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 41}}, {"id": 922, "type": "type_descriptor", "text": "uint32_t", "parent": 921, "children": [923], "start_point": {"row": 233, "column": 13}, "end_point": {"row": 233, "column": 21}}, {"id": 923, "type": "primitive_type", "text": "uint32_t", "parent": 922, "children": [], "start_point": {"row": 233, "column": 13}, "end_point": {"row": 233, "column": 21}}, {"id": 924, "type": "field_expression", "text": "current_size.width", "parent": 921, "children": [925, 926], "start_point": {"row": 233, "column": 23}, "end_point": {"row": 233, "column": 41}}, {"id": 925, "type": "identifier", "text": "current_size", "parent": 924, "children": [], "start_point": {"row": 233, "column": 23}, "end_point": {"row": 233, "column": 35}}, {"id": 926, "type": "field_identifier", "text": "width", "parent": 924, "children": [], "start_point": {"row": 233, "column": 36}, "end_point": {"row": 233, "column": 41}}, {"id": 927, "type": "*", "text": "*", "parent": 920, "children": [], "start_point": {"row": 233, "column": 42}, "end_point": {"row": 233, "column": 43}}, {"id": 928, "type": "field_expression", "text": "new_frame_size.width", "parent": 920, "children": [929, 930], "start_point": {"row": 233, "column": 44}, "end_point": {"row": 233, "column": 64}}, {"id": 929, "type": "identifier", "text": "new_frame_size", "parent": 928, "children": [], "start_point": {"row": 233, "column": 44}, "end_point": {"row": 233, "column": 58}}, {"id": 930, "type": "field_identifier", "text": "width", "parent": 928, "children": [], "start_point": {"row": 233, "column": 59}, "end_point": {"row": 233, "column": 64}}, {"id": 931, "type": "/", "text": "/", "parent": 919, "children": [], "start_point": {"row": 234, "column": 20}, "end_point": {"row": 234, "column": 21}}, {"id": 932, "type": "field_expression", "text": "screen->frame_size.width", "parent": 919, "children": [933, 936], "start_point": {"row": 234, "column": 22}, "end_point": {"row": 234, "column": 46}}, {"id": 933, "type": "field_expression", "text": "screen->frame_size", "parent": 932, "children": [934, 935], "start_point": {"row": 234, "column": 22}, "end_point": {"row": 234, "column": 40}}, {"id": 934, "type": "identifier", "text": "screen", "parent": 933, "children": [], "start_point": {"row": 234, "column": 22}, "end_point": {"row": 234, "column": 28}}, {"id": 935, "type": "field_identifier", "text": "frame_size", "parent": 933, "children": [], "start_point": {"row": 234, "column": 30}, "end_point": {"row": 234, "column": 40}}, {"id": 936, "type": "field_identifier", "text": "width", "parent": 932, "children": [], "start_point": {"row": 234, "column": 41}, "end_point": {"row": 234, "column": 46}}, {"id": 937, "type": "binary_expression", "text": "(uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height", "parent": 918, "children": [938, 949, 950], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 236, "column": 47}}, {"id": 938, "type": "binary_expression", "text": "(uint32_t) current_size.height * new_frame_size.height", "parent": 937, "children": [939, 945, 946], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 66}}, {"id": 939, "type": "cast_expression", "text": "(uint32_t) current_size.height", "parent": 938, "children": [940, 942], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 42}}, {"id": 940, "type": "type_descriptor", "text": "uint32_t", "parent": 939, "children": [941], "start_point": {"row": 235, "column": 13}, "end_point": {"row": 235, "column": 21}}, {"id": 941, "type": "primitive_type", "text": "uint32_t", "parent": 940, "children": [], "start_point": {"row": 235, "column": 13}, "end_point": {"row": 235, "column": 21}}, {"id": 942, "type": "field_expression", "text": "current_size.height", "parent": 939, "children": [943, 944], "start_point": {"row": 235, "column": 23}, "end_point": {"row": 235, "column": 42}}, {"id": 943, "type": "identifier", "text": "current_size", "parent": 942, "children": [], "start_point": {"row": 235, "column": 23}, "end_point": {"row": 235, "column": 35}}, {"id": 944, "type": "field_identifier", "text": "height", "parent": 942, "children": [], "start_point": {"row": 235, "column": 36}, "end_point": {"row": 235, "column": 42}}, {"id": 945, "type": "*", "text": "*", "parent": 938, "children": [], "start_point": {"row": 235, "column": 43}, "end_point": {"row": 235, "column": 44}}, {"id": 946, "type": "field_expression", "text": "new_frame_size.height", "parent": 938, "children": [947, 948], "start_point": {"row": 235, "column": 45}, "end_point": {"row": 235, "column": 66}}, {"id": 947, "type": "identifier", "text": "new_frame_size", "parent": 946, "children": [], "start_point": {"row": 235, "column": 45}, "end_point": {"row": 235, "column": 59}}, {"id": 948, "type": "field_identifier", "text": "height", "parent": 946, "children": [], "start_point": {"row": 235, "column": 60}, "end_point": {"row": 235, "column": 66}}, {"id": 949, "type": "/", "text": "/", "parent": 937, "children": [], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 21}}, {"id": 950, "type": "field_expression", "text": "screen->frame_size.height", "parent": 937, "children": [951, 954], "start_point": {"row": 236, "column": 22}, "end_point": {"row": 236, "column": 47}}, {"id": 951, "type": "field_expression", "text": "screen->frame_size", "parent": 950, "children": [952, 953], "start_point": {"row": 236, "column": 22}, "end_point": {"row": 236, "column": 40}}, {"id": 952, "type": "identifier", "text": "screen", "parent": 951, "children": [], "start_point": {"row": 236, "column": 22}, "end_point": {"row": 236, "column": 28}}, {"id": 953, "type": "field_identifier", "text": "frame_size", "parent": 951, "children": [], "start_point": {"row": 236, "column": 30}, "end_point": {"row": 236, "column": 40}}, {"id": 954, "type": "field_identifier", "text": "height", "parent": 950, "children": [], "start_point": {"row": 236, "column": 41}, "end_point": {"row": 236, "column": 47}}, {"id": 955, "type": "assignment_expression", "text": "target_size = get_optimal_size(target_size, new_frame_size)", "parent": 841, "children": [956, 957, 958], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 67}}, {"id": 956, "type": "identifier", "text": "target_size", "parent": 955, "children": [], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 19}}, {"id": 957, "type": "=", "text": "=", "parent": 955, "children": [], "start_point": {"row": 238, "column": 20}, "end_point": {"row": 238, "column": 21}}, {"id": 958, "type": "call_expression", "text": "get_optimal_size(target_size, new_frame_size)", "parent": 955, "children": [959, 960], "start_point": {"row": 238, "column": 22}, "end_point": {"row": 238, "column": 67}}, {"id": 959, "type": "identifier", "text": "get_optimal_size", "parent": 958, "children": [], "start_point": {"row": 238, "column": 22}, "end_point": {"row": 238, "column": 38}}, {"id": 960, "type": "argument_list", "text": "(target_size, new_frame_size)", "parent": 958, "children": [961, 962], "start_point": {"row": 238, "column": 38}, "end_point": {"row": 238, "column": 67}}, {"id": 961, "type": "identifier", "text": "target_size", "parent": 960, "children": [], "start_point": {"row": 238, "column": 39}, "end_point": {"row": 238, "column": 50}}, {"id": 962, "type": "identifier", "text": "new_frame_size", "parent": 960, "children": [], "start_point": {"row": 238, "column": 52}, "end_point": {"row": 238, "column": 66}}, {"id": 963, "type": "call_expression", "text": "set_window_size(screen, target_size)", "parent": 841, "children": [964, 965], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 44}}, {"id": 964, "type": "identifier", "text": "set_window_size", "parent": 963, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 23}}, {"id": 965, "type": "argument_list", "text": "(screen, target_size)", "parent": 963, "children": [966, 967], "start_point": {"row": 239, "column": 23}, "end_point": {"row": 239, "column": 44}}, {"id": 966, "type": "identifier", "text": "screen", "parent": 965, "children": [], "start_point": {"row": 239, "column": 24}, "end_point": {"row": 239, "column": 30}}, {"id": 967, "type": "identifier", "text": "target_size", "parent": 965, "children": [], "start_point": {"row": 239, "column": 32}, "end_point": {"row": 239, "column": 43}}, {"id": 968, "type": "assignment_expression", "text": "screen->frame_size = new_frame_size", "parent": 841, "children": [969, 972, 973], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 43}}, {"id": 969, "type": "field_expression", "text": "screen->frame_size", "parent": 968, "children": [970, 971], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 26}}, {"id": 970, "type": "identifier", "text": "screen", "parent": 969, "children": [], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 14}}, {"id": 971, "type": "field_identifier", "text": "frame_size", "parent": 969, "children": [], "start_point": {"row": 241, "column": 16}, "end_point": {"row": 241, "column": 26}}, {"id": 972, "type": "=", "text": "=", "parent": 968, "children": [], "start_point": {"row": 241, "column": 27}, "end_point": {"row": 241, "column": 28}}, {"id": 973, "type": "identifier", "text": "new_frame_size", "parent": 968, "children": [], "start_point": {"row": 241, "column": 29}, "end_point": {"row": 241, "column": 43}}, {"id": 974, "type": "call_expression", "text": "LOGI(\"New texture: %\" PRIu16 \"x%\" PRIu16,\n screen->frame_size.width, screen->frame_size.height)", "parent": 841, "children": [975, 976], "start_point": {"row": 243, "column": 8}, "end_point": {"row": 244, "column": 73}}, {"id": 975, "type": "identifier", "text": "LOGI", "parent": 974, "children": [], "start_point": {"row": 243, "column": 8}, "end_point": {"row": 243, "column": 12}}, {"id": 976, "type": "argument_list", "text": "(\"New texture: %\" PRIu16 \"x%\" PRIu16,\n screen->frame_size.width, screen->frame_size.height)", "parent": 974, "children": [977, 982, 987], "start_point": {"row": 243, "column": 12}, "end_point": {"row": 244, "column": 73}}, {"id": 977, "type": "concatenated_string", "text": "\"New texture: %\" PRIu16 \"x%\" PRIu16", "parent": 976, "children": [978, 979, 980, 981], "start_point": {"row": 243, "column": 13}, "end_point": {"row": 243, "column": 48}}, {"id": 978, "type": "string_literal", "text": "\"New texture: %\"", "parent": 977, "children": [], "start_point": {"row": 243, "column": 13}, "end_point": {"row": 243, "column": 29}}, {"id": 979, "type": "identifier", "text": "PRIu16", "parent": 977, "children": [], "start_point": {"row": 243, "column": 30}, "end_point": {"row": 243, "column": 36}}, {"id": 980, "type": "string_literal", "text": "\"x%\"", "parent": 977, "children": [], "start_point": {"row": 243, "column": 37}, "end_point": {"row": 243, "column": 41}}, {"id": 981, "type": "identifier", "text": "PRIu16", "parent": 977, "children": [], "start_point": {"row": 243, "column": 42}, "end_point": {"row": 243, "column": 48}}, {"id": 982, "type": "field_expression", "text": "screen->frame_size.width", "parent": 976, "children": [983, 986], "start_point": {"row": 244, "column": 21}, "end_point": {"row": 244, "column": 45}}, {"id": 983, "type": "field_expression", "text": "screen->frame_size", "parent": 982, "children": [984, 985], "start_point": {"row": 244, "column": 21}, "end_point": {"row": 244, "column": 39}}, {"id": 984, "type": "identifier", "text": "screen", "parent": 983, "children": [], "start_point": {"row": 244, "column": 21}, "end_point": {"row": 244, "column": 27}}, {"id": 985, "type": "field_identifier", "text": "frame_size", "parent": 983, "children": [], "start_point": {"row": 244, "column": 29}, "end_point": {"row": 244, "column": 39}}, {"id": 986, "type": "field_identifier", "text": "width", "parent": 982, "children": [], "start_point": {"row": 244, "column": 40}, "end_point": {"row": 244, "column": 45}}, {"id": 987, "type": "field_expression", "text": "screen->frame_size.height", "parent": 976, "children": [988, 991], "start_point": {"row": 244, "column": 47}, "end_point": {"row": 244, "column": 72}}, {"id": 988, "type": "field_expression", "text": "screen->frame_size", "parent": 987, "children": [989, 990], "start_point": {"row": 244, "column": 47}, "end_point": {"row": 244, "column": 65}}, {"id": 989, "type": "identifier", "text": "screen", "parent": 988, "children": [], "start_point": {"row": 244, "column": 47}, "end_point": {"row": 244, "column": 53}}, {"id": 990, "type": "field_identifier", "text": "frame_size", "parent": 988, "children": [], "start_point": {"row": 244, "column": 55}, "end_point": {"row": 244, "column": 65}}, {"id": 991, "type": "field_identifier", "text": "height", "parent": 987, "children": [], "start_point": {"row": 244, "column": 66}, "end_point": {"row": 244, "column": 72}}, {"id": 992, "type": "assignment_expression", "text": "screen->texture = create_texture(screen->renderer, new_frame_size)", "parent": 841, "children": [993, 996, 997], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 74}}, {"id": 993, "type": "field_expression", "text": "screen->texture", "parent": 992, "children": [994, 995], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 23}}, {"id": 994, "type": "identifier", "text": "screen", "parent": 993, "children": [], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 14}}, {"id": 995, "type": "field_identifier", "text": "texture", "parent": 993, "children": [], "start_point": {"row": 245, "column": 16}, "end_point": {"row": 245, "column": 23}}, {"id": 996, "type": "=", "text": "=", "parent": 992, "children": [], "start_point": {"row": 245, "column": 24}, "end_point": {"row": 245, "column": 25}}, {"id": 997, "type": "call_expression", "text": "create_texture(screen->renderer, new_frame_size)", "parent": 992, "children": [998, 999], "start_point": {"row": 245, "column": 26}, "end_point": {"row": 245, "column": 74}}, {"id": 998, "type": "identifier", "text": "create_texture", "parent": 997, "children": [], "start_point": {"row": 245, "column": 26}, "end_point": {"row": 245, "column": 40}}, {"id": 999, "type": "argument_list", "text": "(screen->renderer, new_frame_size)", "parent": 997, "children": [1000, 1003], "start_point": {"row": 245, "column": 40}, "end_point": {"row": 245, "column": 74}}, {"id": 1000, "type": "field_expression", "text": "screen->renderer", "parent": 999, "children": [1001, 1002], "start_point": {"row": 245, "column": 41}, "end_point": {"row": 245, "column": 57}}, {"id": 1001, "type": "identifier", "text": "screen", "parent": 1000, "children": [], "start_point": {"row": 245, "column": 41}, "end_point": {"row": 245, "column": 47}}, {"id": 1002, "type": "field_identifier", "text": "renderer", "parent": 1000, "children": [], "start_point": {"row": 245, "column": 49}, "end_point": {"row": 245, "column": 57}}, {"id": 1003, "type": "identifier", "text": "new_frame_size", "parent": 999, "children": [], "start_point": {"row": 245, "column": 59}, "end_point": {"row": 245, "column": 73}}, {"id": 1004, "type": "if_statement", "text": "if (!screen->texture) {\n LOGC(\"Could not create texture: %s\", SDL_GetError());\n return false;\n }", "parent": 841, "children": [1005], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 249, "column": 9}}, {"id": 1005, "type": "parenthesized_expression", "text": "(!screen->texture)", "parent": 1004, "children": [1006], "start_point": {"row": 246, "column": 11}, "end_point": {"row": 246, "column": 29}}, {"id": 1006, "type": "unary_expression", "text": "!screen->texture", "parent": 1005, "children": [1007, 1008], "start_point": {"row": 246, "column": 12}, "end_point": {"row": 246, "column": 28}}, {"id": 1007, "type": "!", "text": "!", "parent": 1006, "children": [], "start_point": {"row": 246, "column": 12}, "end_point": {"row": 246, "column": 13}}, {"id": 1008, "type": "field_expression", "text": "screen->texture", "parent": 1006, "children": [1009, 1010], "start_point": {"row": 246, "column": 13}, "end_point": {"row": 246, "column": 28}}, {"id": 1009, "type": "identifier", "text": "screen", "parent": 1008, "children": [], "start_point": {"row": 246, "column": 13}, "end_point": {"row": 246, "column": 19}}, {"id": 1010, "type": "field_identifier", "text": "texture", "parent": 1008, "children": [], "start_point": {"row": 246, "column": 21}, "end_point": {"row": 246, "column": 28}}, {"id": 1011, "type": "call_expression", "text": "LOGC(\"Could not create texture: %s\", SDL_GetError())", "parent": 1004, "children": [1012, 1013], "start_point": {"row": 247, "column": 12}, "end_point": {"row": 247, "column": 64}}, {"id": 1012, "type": "identifier", "text": "LOGC", "parent": 1011, "children": [], "start_point": {"row": 247, "column": 12}, "end_point": {"row": 247, "column": 16}}, {"id": 1013, "type": "argument_list", "text": "(\"Could not create texture: %s\", SDL_GetError())", "parent": 1011, "children": [1014, 1015], "start_point": {"row": 247, "column": 16}, "end_point": {"row": 247, "column": 64}}, {"id": 1014, "type": "string_literal", "text": "\"Could not create texture: %s\"", "parent": 1013, "children": [], "start_point": {"row": 247, "column": 17}, "end_point": {"row": 247, "column": 47}}, {"id": 1015, "type": "call_expression", "text": "SDL_GetError()", "parent": 1013, "children": [1016, 1017], "start_point": {"row": 247, "column": 49}, "end_point": {"row": 247, "column": 63}}, {"id": 1016, "type": "identifier", "text": "SDL_GetError", "parent": 1015, "children": [], "start_point": {"row": 247, "column": 49}, "end_point": {"row": 247, "column": 61}}, {"id": 1017, "type": "argument_list", "text": "()", "parent": 1015, "children": [], "start_point": {"row": 247, "column": 61}, "end_point": {"row": 247, "column": 63}}, {"id": 1018, "type": "return_statement", "text": "return false;", "parent": 1004, "children": [1019], "start_point": {"row": 248, "column": 12}, "end_point": {"row": 248, "column": 25}}, {"id": 1019, "type": "false", "text": "false", "parent": 1018, "children": [], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 24}}, {"id": 1020, "type": "return_statement", "text": "return true;", "parent": 824, "children": [1021], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 252, "column": 16}}, {"id": 1021, "type": "true", "text": "true", "parent": 1020, "children": [], "start_point": {"row": 252, "column": 11}, "end_point": {"row": 252, "column": 15}}, {"id": 1022, "type": "function_definition", "text": "static void\nupdate_texture(struct screen *screen, const AVFrame *frame) {\n SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2]);\n}", "parent": null, "children": [1023, 1024], "start_point": {"row": 256, "column": 0}, "end_point": {"row": 262, "column": 1}}, {"id": 1023, "type": "primitive_type", "text": "void", "parent": 1022, "children": [], "start_point": {"row": 256, "column": 7}, "end_point": {"row": 256, "column": 11}}, {"id": 1024, "type": "function_declarator", "text": "update_texture(struct screen *screen, const AVFrame *frame)", "parent": 1022, "children": [1025, 1026], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 59}}, {"id": 1025, "type": "identifier", "text": "update_texture", "parent": 1024, "children": [], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 14}}, {"id": 1026, "type": "parameter_list", "text": "(struct screen *screen, const AVFrame *frame)", "parent": 1024, "children": [1027, 1034], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 257, "column": 59}}, {"id": 1027, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 1026, "children": [1028, 1031], "start_point": {"row": 257, "column": 15}, "end_point": {"row": 257, "column": 36}}, {"id": 1028, "type": "struct_specifier", "text": "struct screen", "parent": 1027, "children": [1029, 1030], "start_point": {"row": 257, "column": 15}, "end_point": {"row": 257, "column": 28}}, {"id": 1029, "type": "struct", "text": "struct", "parent": 1028, "children": [], "start_point": {"row": 257, "column": 15}, "end_point": {"row": 257, "column": 21}}, {"id": 1030, "type": "type_identifier", "text": "screen", "parent": 1028, "children": [], "start_point": {"row": 257, "column": 22}, "end_point": {"row": 257, "column": 28}}, {"id": 1031, "type": "pointer_declarator", "text": "*screen", "parent": 1027, "children": [1032, 1033], "start_point": {"row": 257, "column": 29}, "end_point": {"row": 257, "column": 36}}, {"id": 1032, "type": "*", "text": "*", "parent": 1031, "children": [], "start_point": {"row": 257, "column": 29}, "end_point": {"row": 257, "column": 30}}, {"id": 1033, "type": "identifier", "text": "screen", "parent": 1031, "children": [], "start_point": {"row": 257, "column": 30}, "end_point": {"row": 257, "column": 36}}, {"id": 1034, "type": "parameter_declaration", "text": "const AVFrame *frame", "parent": 1026, "children": [1035, 1036], "start_point": {"row": 257, "column": 38}, "end_point": {"row": 257, "column": 58}}, {"id": 1035, "type": "type_identifier", "text": "AVFrame", "parent": 1034, "children": [], "start_point": {"row": 257, "column": 44}, "end_point": {"row": 257, "column": 51}}, {"id": 1036, "type": "pointer_declarator", "text": "*frame", "parent": 1034, "children": [1037, 1038], "start_point": {"row": 257, "column": 52}, "end_point": {"row": 257, "column": 58}}, {"id": 1037, "type": "*", "text": "*", "parent": 1036, "children": [], "start_point": {"row": 257, "column": 52}, "end_point": {"row": 257, "column": 53}}, {"id": 1038, "type": "identifier", "text": "frame", "parent": 1036, "children": [], "start_point": {"row": 257, "column": 53}, "end_point": {"row": 257, "column": 58}}, {"id": 1039, "type": "call_expression", "text": "SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2])", "parent": 1022, "children": [1040, 1041], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 261, "column": 47}}, {"id": 1040, "type": "identifier", "text": "SDL_UpdateYUVTexture", "parent": 1039, "children": [], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 24}}, {"id": 1041, "type": "argument_list", "text": "(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2])", "parent": 1039, "children": [1042, 1045, 1047, 1052, 1057, 1062, 1067, 1072], "start_point": {"row": 258, "column": 24}, "end_point": {"row": 261, "column": 47}}, {"id": 1042, "type": "field_expression", "text": "screen->texture", "parent": 1041, "children": [1043, 1044], "start_point": {"row": 258, "column": 25}, "end_point": {"row": 258, "column": 40}}, {"id": 1043, "type": "identifier", "text": "screen", "parent": 1042, "children": [], "start_point": {"row": 258, "column": 25}, "end_point": {"row": 258, "column": 31}}, {"id": 1044, "type": "field_identifier", "text": "texture", "parent": 1042, "children": [], "start_point": {"row": 258, "column": 33}, "end_point": {"row": 258, "column": 40}}, {"id": 1045, "type": "null", "text": "NULL", "parent": 1041, "children": [1046], "start_point": {"row": 258, "column": 42}, "end_point": {"row": 258, "column": 46}}, {"id": 1046, "type": "NULL", "text": "NULL", "parent": 1045, "children": [], "start_point": {"row": 258, "column": 42}, "end_point": {"row": 258, "column": 46}}, {"id": 1047, "type": "subscript_expression", "text": "frame->data[0]", "parent": 1041, "children": [1048, 1051], "start_point": {"row": 259, "column": 12}, "end_point": {"row": 259, "column": 26}}, {"id": 1048, "type": "field_expression", "text": "frame->data", "parent": 1047, "children": [1049, 1050], "start_point": {"row": 259, "column": 12}, "end_point": {"row": 259, "column": 23}}, {"id": 1049, "type": "identifier", "text": "frame", "parent": 1048, "children": [], "start_point": {"row": 259, "column": 12}, "end_point": {"row": 259, "column": 17}}, {"id": 1050, "type": "field_identifier", "text": "data", "parent": 1048, "children": [], "start_point": {"row": 259, "column": 19}, "end_point": {"row": 259, "column": 23}}, {"id": 1051, "type": "number_literal", "text": "0", "parent": 1047, "children": [], "start_point": {"row": 259, "column": 24}, "end_point": {"row": 259, "column": 25}}, {"id": 1052, "type": "subscript_expression", "text": "frame->linesize[0]", "parent": 1041, "children": [1053, 1056], "start_point": {"row": 259, "column": 28}, "end_point": {"row": 259, "column": 46}}, {"id": 1053, "type": "field_expression", "text": "frame->linesize", "parent": 1052, "children": [1054, 1055], "start_point": {"row": 259, "column": 28}, "end_point": {"row": 259, "column": 43}}, {"id": 1054, "type": "identifier", "text": "frame", "parent": 1053, "children": [], "start_point": {"row": 259, "column": 28}, "end_point": {"row": 259, "column": 33}}, {"id": 1055, "type": "field_identifier", "text": "linesize", "parent": 1053, "children": [], "start_point": {"row": 259, "column": 35}, "end_point": {"row": 259, "column": 43}}, {"id": 1056, "type": "number_literal", "text": "0", "parent": 1052, "children": [], "start_point": {"row": 259, "column": 44}, "end_point": {"row": 259, "column": 45}}, {"id": 1057, "type": "subscript_expression", "text": "frame->data[1]", "parent": 1041, "children": [1058, 1061], "start_point": {"row": 260, "column": 12}, "end_point": {"row": 260, "column": 26}}, {"id": 1058, "type": "field_expression", "text": "frame->data", "parent": 1057, "children": [1059, 1060], "start_point": {"row": 260, "column": 12}, "end_point": {"row": 260, "column": 23}}, {"id": 1059, "type": "identifier", "text": "frame", "parent": 1058, "children": [], "start_point": {"row": 260, "column": 12}, "end_point": {"row": 260, "column": 17}}, {"id": 1060, "type": "field_identifier", "text": "data", "parent": 1058, "children": [], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 23}}, {"id": 1061, "type": "number_literal", "text": "1", "parent": 1057, "children": [], "start_point": {"row": 260, "column": 24}, "end_point": {"row": 260, "column": 25}}, {"id": 1062, "type": "subscript_expression", "text": "frame->linesize[1]", "parent": 1041, "children": [1063, 1066], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 46}}, {"id": 1063, "type": "field_expression", "text": "frame->linesize", "parent": 1062, "children": [1064, 1065], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 43}}, {"id": 1064, "type": "identifier", "text": "frame", "parent": 1063, "children": [], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 33}}, {"id": 1065, "type": "field_identifier", "text": "linesize", "parent": 1063, "children": [], "start_point": {"row": 260, "column": 35}, "end_point": {"row": 260, "column": 43}}, {"id": 1066, "type": "number_literal", "text": "1", "parent": 1062, "children": [], "start_point": {"row": 260, "column": 44}, "end_point": {"row": 260, "column": 45}}, {"id": 1067, "type": "subscript_expression", "text": "frame->data[2]", "parent": 1041, "children": [1068, 1071], "start_point": {"row": 261, "column": 12}, "end_point": {"row": 261, "column": 26}}, {"id": 1068, "type": "field_expression", "text": "frame->data", "parent": 1067, "children": [1069, 1070], "start_point": {"row": 261, "column": 12}, "end_point": {"row": 261, "column": 23}}, {"id": 1069, "type": "identifier", "text": "frame", "parent": 1068, "children": [], "start_point": {"row": 261, "column": 12}, "end_point": {"row": 261, "column": 17}}, {"id": 1070, "type": "field_identifier", "text": "data", "parent": 1068, "children": [], "start_point": {"row": 261, "column": 19}, "end_point": {"row": 261, "column": 23}}, {"id": 1071, "type": "number_literal", "text": "2", "parent": 1067, "children": [], "start_point": {"row": 261, "column": 24}, "end_point": {"row": 261, "column": 25}}, {"id": 1072, "type": "subscript_expression", "text": "frame->linesize[2]", "parent": 1041, "children": [1073, 1076], "start_point": {"row": 261, "column": 28}, "end_point": {"row": 261, "column": 46}}, {"id": 1073, "type": "field_expression", "text": "frame->linesize", "parent": 1072, "children": [1074, 1075], "start_point": {"row": 261, "column": 28}, "end_point": {"row": 261, "column": 43}}, {"id": 1074, "type": "identifier", "text": "frame", "parent": 1073, "children": [], "start_point": {"row": 261, "column": 28}, "end_point": {"row": 261, "column": 33}}, {"id": 1075, "type": "field_identifier", "text": "linesize", "parent": 1073, "children": [], "start_point": {"row": 261, "column": 35}, "end_point": {"row": 261, "column": 43}}, {"id": 1076, "type": "number_literal", "text": "2", "parent": 1072, "children": [], "start_point": {"row": 261, "column": 44}, "end_point": {"row": 261, "column": 45}}, {"id": 1077, "type": "function_definition", "text": "bool\nscreen_update_frame(struct screen *screen, struct video_buffer *vb) {\n mutex_lock(vb->mutex);\n const AVFrame *frame = video_buffer_consume_rendered_frame(vb);\n struct size new_frame_size = {frame->width, frame->height};\n screen->frame_changed = false;\n if (!prepare_for_frame(screen, new_frame_size)) {\n mutex_unlock(vb->mutex);\n return false;\n }\n update_texture(screen, frame);\n mutex_unlock(vb->mutex);\n\n screen_render(screen);\n return true;\n}", "parent": null, "children": [1078, 1079], "start_point": {"row": 264, "column": 0}, "end_point": {"row": 279, "column": 1}}, {"id": 1078, "type": "primitive_type", "text": "bool", "parent": 1077, "children": [], "start_point": {"row": 264, "column": 0}, "end_point": {"row": 264, "column": 4}}, {"id": 1079, "type": "function_declarator", "text": "screen_update_frame(struct screen *screen, struct video_buffer *vb)", "parent": 1077, "children": [1080, 1081], "start_point": {"row": 265, "column": 0}, "end_point": {"row": 265, "column": 67}}, {"id": 1080, "type": "identifier", "text": "screen_update_frame", "parent": 1079, "children": [], "start_point": {"row": 265, "column": 0}, "end_point": {"row": 265, "column": 19}}, {"id": 1081, "type": "parameter_list", "text": "(struct screen *screen, struct video_buffer *vb)", "parent": 1079, "children": [1082, 1089], "start_point": {"row": 265, "column": 19}, "end_point": {"row": 265, "column": 67}}, {"id": 1082, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 1081, "children": [1083, 1086], "start_point": {"row": 265, "column": 20}, "end_point": {"row": 265, "column": 41}}, {"id": 1083, "type": "struct_specifier", "text": "struct screen", "parent": 1082, "children": [1084, 1085], "start_point": {"row": 265, "column": 20}, "end_point": {"row": 265, "column": 33}}, {"id": 1084, "type": "struct", "text": "struct", "parent": 1083, "children": [], "start_point": {"row": 265, "column": 20}, "end_point": {"row": 265, "column": 26}}, {"id": 1085, "type": "type_identifier", "text": "screen", "parent": 1083, "children": [], "start_point": {"row": 265, "column": 27}, "end_point": {"row": 265, "column": 33}}, {"id": 1086, "type": "pointer_declarator", "text": "*screen", "parent": 1082, "children": [1087, 1088], "start_point": {"row": 265, "column": 34}, "end_point": {"row": 265, "column": 41}}, {"id": 1087, "type": "*", "text": "*", "parent": 1086, "children": [], "start_point": {"row": 265, "column": 34}, "end_point": {"row": 265, "column": 35}}, {"id": 1088, "type": "identifier", "text": "screen", "parent": 1086, "children": [], "start_point": {"row": 265, "column": 35}, "end_point": {"row": 265, "column": 41}}, {"id": 1089, "type": "parameter_declaration", "text": "struct video_buffer *vb", "parent": 1081, "children": [1090, 1093], "start_point": {"row": 265, "column": 43}, "end_point": {"row": 265, "column": 66}}, {"id": 1090, "type": "struct_specifier", "text": "struct video_buffer", "parent": 1089, "children": [1091, 1092], "start_point": {"row": 265, "column": 43}, "end_point": {"row": 265, "column": 62}}, {"id": 1091, "type": "struct", "text": "struct", "parent": 1090, "children": [], "start_point": {"row": 265, "column": 43}, "end_point": {"row": 265, "column": 49}}, {"id": 1092, "type": "type_identifier", "text": "video_buffer", "parent": 1090, "children": [], "start_point": {"row": 265, "column": 50}, "end_point": {"row": 265, "column": 62}}, {"id": 1093, "type": "pointer_declarator", "text": "*vb", "parent": 1089, "children": [1094, 1095], "start_point": {"row": 265, "column": 63}, "end_point": {"row": 265, "column": 66}}, {"id": 1094, "type": "*", "text": "*", "parent": 1093, "children": [], "start_point": {"row": 265, "column": 63}, "end_point": {"row": 265, "column": 64}}, {"id": 1095, "type": "identifier", "text": "vb", "parent": 1093, "children": [], "start_point": {"row": 265, "column": 64}, "end_point": {"row": 265, "column": 66}}, {"id": 1096, "type": "call_expression", "text": "mutex_lock(vb->mutex)", "parent": 1077, "children": [1097, 1098], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 25}}, {"id": 1097, "type": "identifier", "text": "mutex_lock", "parent": 1096, "children": [], "start_point": {"row": 266, "column": 4}, "end_point": {"row": 266, "column": 14}}, {"id": 1098, "type": "argument_list", "text": "(vb->mutex)", "parent": 1096, "children": [1099], "start_point": {"row": 266, "column": 14}, "end_point": {"row": 266, "column": 25}}, {"id": 1099, "type": "field_expression", "text": "vb->mutex", "parent": 1098, "children": [1100, 1101], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 24}}, {"id": 1100, "type": "identifier", "text": "vb", "parent": 1099, "children": [], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 17}}, {"id": 1101, "type": "field_identifier", "text": "mutex", "parent": 1099, "children": [], "start_point": {"row": 266, "column": 19}, "end_point": {"row": 266, "column": 24}}, {"id": 1102, "type": "declaration", "text": "const AVFrame *frame = video_buffer_consume_rendered_frame(vb);", "parent": 1077, "children": [1103, 1104], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 67}}, {"id": 1103, "type": "type_identifier", "text": "AVFrame", "parent": 1102, "children": [], "start_point": {"row": 267, "column": 10}, "end_point": {"row": 267, "column": 17}}, {"id": 1104, "type": "init_declarator", "text": "*frame = video_buffer_consume_rendered_frame(vb)", "parent": 1102, "children": [1105, 1108, 1109], "start_point": {"row": 267, "column": 18}, "end_point": {"row": 267, "column": 66}}, {"id": 1105, "type": "pointer_declarator", "text": "*frame", "parent": 1104, "children": [1106, 1107], "start_point": {"row": 267, "column": 18}, "end_point": {"row": 267, "column": 24}}, {"id": 1106, "type": "*", "text": "*", "parent": 1105, "children": [], "start_point": {"row": 267, "column": 18}, "end_point": {"row": 267, "column": 19}}, {"id": 1107, "type": "identifier", "text": "frame", "parent": 1105, "children": [], "start_point": {"row": 267, "column": 19}, "end_point": {"row": 267, "column": 24}}, {"id": 1108, "type": "=", "text": "=", "parent": 1104, "children": [], "start_point": {"row": 267, "column": 25}, "end_point": {"row": 267, "column": 26}}, {"id": 1109, "type": "call_expression", "text": "video_buffer_consume_rendered_frame(vb)", "parent": 1104, "children": [1110, 1111], "start_point": {"row": 267, "column": 27}, "end_point": {"row": 267, "column": 66}}, {"id": 1110, "type": "identifier", "text": "video_buffer_consume_rendered_frame", "parent": 1109, "children": [], "start_point": {"row": 267, "column": 27}, "end_point": {"row": 267, "column": 62}}, {"id": 1111, "type": "argument_list", "text": "(vb)", "parent": 1109, "children": [1112], "start_point": {"row": 267, "column": 62}, "end_point": {"row": 267, "column": 66}}, {"id": 1112, "type": "identifier", "text": "vb", "parent": 1111, "children": [], "start_point": {"row": 267, "column": 63}, "end_point": {"row": 267, "column": 65}}, {"id": 1113, "type": "declaration", "text": "struct size new_frame_size = {frame->width, frame->height};", "parent": 1077, "children": [1114, 1117], "start_point": {"row": 268, "column": 4}, "end_point": {"row": 268, "column": 63}}, {"id": 1114, "type": "struct_specifier", "text": "struct size", "parent": 1113, "children": [1115, 1116], "start_point": {"row": 268, "column": 4}, "end_point": {"row": 268, "column": 15}}, {"id": 1115, "type": "struct", "text": "struct", "parent": 1114, "children": [], "start_point": {"row": 268, "column": 4}, "end_point": {"row": 268, "column": 10}}, {"id": 1116, "type": "type_identifier", "text": "size", "parent": 1114, "children": [], "start_point": {"row": 268, "column": 11}, "end_point": {"row": 268, "column": 15}}, {"id": 1117, "type": "init_declarator", "text": "new_frame_size = {frame->width, frame->height}", "parent": 1113, "children": [1118, 1119, 1120], "start_point": {"row": 268, "column": 16}, "end_point": {"row": 268, "column": 62}}, {"id": 1118, "type": "identifier", "text": "new_frame_size", "parent": 1117, "children": [], "start_point": {"row": 268, "column": 16}, "end_point": {"row": 268, "column": 30}}, {"id": 1119, "type": "=", "text": "=", "parent": 1117, "children": [], "start_point": {"row": 268, "column": 31}, "end_point": {"row": 268, "column": 32}}, {"id": 1120, "type": "initializer_list", "text": "{frame->width, frame->height}", "parent": 1117, "children": [1121, 1124], "start_point": {"row": 268, "column": 33}, "end_point": {"row": 268, "column": 62}}, {"id": 1121, "type": "field_expression", "text": "frame->width", "parent": 1120, "children": [1122, 1123], "start_point": {"row": 268, "column": 34}, "end_point": {"row": 268, "column": 46}}, {"id": 1122, "type": "identifier", "text": "frame", "parent": 1121, "children": [], "start_point": {"row": 268, "column": 34}, "end_point": {"row": 268, "column": 39}}, {"id": 1123, "type": "field_identifier", "text": "width", "parent": 1121, "children": [], "start_point": {"row": 268, "column": 41}, "end_point": {"row": 268, "column": 46}}, {"id": 1124, "type": "field_expression", "text": "frame->height", "parent": 1120, "children": [1125, 1126], "start_point": {"row": 268, "column": 48}, "end_point": {"row": 268, "column": 61}}, {"id": 1125, "type": "identifier", "text": "frame", "parent": 1124, "children": [], "start_point": {"row": 268, "column": 48}, "end_point": {"row": 268, "column": 53}}, {"id": 1126, "type": "field_identifier", "text": "height", "parent": 1124, "children": [], "start_point": {"row": 268, "column": 55}, "end_point": {"row": 268, "column": 61}}, {"id": 1127, "type": "assignment_expression", "text": "screen->frame_changed = false", "parent": 1077, "children": [1128, 1131, 1132], "start_point": {"row": 269, "column": 4}, "end_point": {"row": 269, "column": 33}}, {"id": 1128, "type": "field_expression", "text": "screen->frame_changed", "parent": 1127, "children": [1129, 1130], "start_point": {"row": 269, "column": 4}, "end_point": {"row": 269, "column": 25}}, {"id": 1129, "type": "identifier", "text": "screen", "parent": 1128, "children": [], "start_point": {"row": 269, "column": 4}, "end_point": {"row": 269, "column": 10}}, {"id": 1130, "type": "field_identifier", "text": "frame_changed", "parent": 1128, "children": [], "start_point": {"row": 269, "column": 12}, "end_point": {"row": 269, "column": 25}}, {"id": 1131, "type": "=", "text": "=", "parent": 1127, "children": [], "start_point": {"row": 269, "column": 26}, "end_point": {"row": 269, "column": 27}}, {"id": 1132, "type": "false", "text": "false", "parent": 1127, "children": [], "start_point": {"row": 269, "column": 28}, "end_point": {"row": 269, "column": 33}}, {"id": 1133, "type": "if_statement", "text": "if (!prepare_for_frame(screen, new_frame_size)) {\n mutex_unlock(vb->mutex);\n return false;\n }", "parent": 1077, "children": [1134], "start_point": {"row": 270, "column": 4}, "end_point": {"row": 273, "column": 5}}, {"id": 1134, "type": "parenthesized_expression", "text": "(!prepare_for_frame(screen, new_frame_size))", "parent": 1133, "children": [1135], "start_point": {"row": 270, "column": 7}, "end_point": {"row": 270, "column": 51}}, {"id": 1135, "type": "unary_expression", "text": "!prepare_for_frame(screen, new_frame_size)", "parent": 1134, "children": [1136, 1137], "start_point": {"row": 270, "column": 8}, "end_point": {"row": 270, "column": 50}}, {"id": 1136, "type": "!", "text": "!", "parent": 1135, "children": [], "start_point": {"row": 270, "column": 8}, "end_point": {"row": 270, "column": 9}}, {"id": 1137, "type": "call_expression", "text": "prepare_for_frame(screen, new_frame_size)", "parent": 1135, "children": [1138, 1139], "start_point": {"row": 270, "column": 9}, "end_point": {"row": 270, "column": 50}}, {"id": 1138, "type": "identifier", "text": "prepare_for_frame", "parent": 1137, "children": [], "start_point": {"row": 270, "column": 9}, "end_point": {"row": 270, "column": 26}}, {"id": 1139, "type": "argument_list", "text": "(screen, new_frame_size)", "parent": 1137, "children": [1140, 1141], "start_point": {"row": 270, "column": 26}, "end_point": {"row": 270, "column": 50}}, {"id": 1140, "type": "identifier", "text": "screen", "parent": 1139, "children": [], "start_point": {"row": 270, "column": 27}, "end_point": {"row": 270, "column": 33}}, {"id": 1141, "type": "identifier", "text": "new_frame_size", "parent": 1139, "children": [], "start_point": {"row": 270, "column": 35}, "end_point": {"row": 270, "column": 49}}, {"id": 1142, "type": "call_expression", "text": "mutex_unlock(vb->mutex)", "parent": 1133, "children": [1143, 1144], "start_point": {"row": 271, "column": 8}, "end_point": {"row": 271, "column": 31}}, {"id": 1143, "type": "identifier", "text": "mutex_unlock", "parent": 1142, "children": [], "start_point": {"row": 271, "column": 8}, "end_point": {"row": 271, "column": 20}}, {"id": 1144, "type": "argument_list", "text": "(vb->mutex)", "parent": 1142, "children": [1145], "start_point": {"row": 271, "column": 20}, "end_point": {"row": 271, "column": 31}}, {"id": 1145, "type": "field_expression", "text": "vb->mutex", "parent": 1144, "children": [1146, 1147], "start_point": {"row": 271, "column": 21}, "end_point": {"row": 271, "column": 30}}, {"id": 1146, "type": "identifier", "text": "vb", "parent": 1145, "children": [], "start_point": {"row": 271, "column": 21}, "end_point": {"row": 271, "column": 23}}, {"id": 1147, "type": "field_identifier", "text": "mutex", "parent": 1145, "children": [], "start_point": {"row": 271, "column": 25}, "end_point": {"row": 271, "column": 30}}, {"id": 1148, "type": "return_statement", "text": "return false;", "parent": 1133, "children": [1149], "start_point": {"row": 272, "column": 8}, "end_point": {"row": 272, "column": 21}}, {"id": 1149, "type": "false", "text": "false", "parent": 1148, "children": [], "start_point": {"row": 272, "column": 15}, "end_point": {"row": 272, "column": 20}}, {"id": 1150, "type": "call_expression", "text": "update_texture(screen, frame)", "parent": 1077, "children": [1151, 1152], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 274, "column": 33}}, {"id": 1151, "type": "identifier", "text": "update_texture", "parent": 1150, "children": [], "start_point": {"row": 274, "column": 4}, "end_point": {"row": 274, "column": 18}}, {"id": 1152, "type": "argument_list", "text": "(screen, frame)", "parent": 1150, "children": [1153, 1154], "start_point": {"row": 274, "column": 18}, "end_point": {"row": 274, "column": 33}}, {"id": 1153, "type": "identifier", "text": "screen", "parent": 1152, "children": [], "start_point": {"row": 274, "column": 19}, "end_point": {"row": 274, "column": 25}}, {"id": 1154, "type": "identifier", "text": "frame", "parent": 1152, "children": [], "start_point": {"row": 274, "column": 27}, "end_point": {"row": 274, "column": 32}}, {"id": 1155, "type": "call_expression", "text": "mutex_unlock(vb->mutex)", "parent": 1077, "children": [1156, 1157], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 27}}, {"id": 1156, "type": "identifier", "text": "mutex_unlock", "parent": 1155, "children": [], "start_point": {"row": 275, "column": 4}, "end_point": {"row": 275, "column": 16}}, {"id": 1157, "type": "argument_list", "text": "(vb->mutex)", "parent": 1155, "children": [1158], "start_point": {"row": 275, "column": 16}, "end_point": {"row": 275, "column": 27}}, {"id": 1158, "type": "field_expression", "text": "vb->mutex", "parent": 1157, "children": [1159, 1160], "start_point": {"row": 275, "column": 17}, "end_point": {"row": 275, "column": 26}}, {"id": 1159, "type": "identifier", "text": "vb", "parent": 1158, "children": [], "start_point": {"row": 275, "column": 17}, "end_point": {"row": 275, "column": 19}}, {"id": 1160, "type": "field_identifier", "text": "mutex", "parent": 1158, "children": [], "start_point": {"row": 275, "column": 21}, "end_point": {"row": 275, "column": 26}}, {"id": 1161, "type": "call_expression", "text": "screen_render(screen)", "parent": 1077, "children": [1162, 1163], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 277, "column": 25}}, {"id": 1162, "type": "identifier", "text": "screen_render", "parent": 1161, "children": [], "start_point": {"row": 277, "column": 4}, "end_point": {"row": 277, "column": 17}}, {"id": 1163, "type": "argument_list", "text": "(screen)", "parent": 1161, "children": [1164], "start_point": {"row": 277, "column": 17}, "end_point": {"row": 277, "column": 25}}, {"id": 1164, "type": "identifier", "text": "screen", "parent": 1163, "children": [], "start_point": {"row": 277, "column": 18}, "end_point": {"row": 277, "column": 24}}, {"id": 1165, "type": "return_statement", "text": "return true;", "parent": 1077, "children": [1166], "start_point": {"row": 278, "column": 4}, "end_point": {"row": 278, "column": 16}}, {"id": 1166, "type": "true", "text": "true", "parent": 1165, "children": [], "start_point": {"row": 278, "column": 11}, "end_point": {"row": 278, "column": 15}}, {"id": 1167, "type": "function_definition", "text": "void\nscreen_render(struct screen *screen) {\n SDL_RenderClear(screen->renderer);\n SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL);\n SDL_RenderPresent(screen->renderer);\n}", "parent": null, "children": [1168, 1169], "start_point": {"row": 281, "column": 0}, "end_point": {"row": 286, "column": 1}}, {"id": 1168, "type": "primitive_type", "text": "void", "parent": 1167, "children": [], "start_point": {"row": 281, "column": 0}, "end_point": {"row": 281, "column": 4}}, {"id": 1169, "type": "function_declarator", "text": "screen_render(struct screen *screen)", "parent": 1167, "children": [1170, 1171], "start_point": {"row": 282, "column": 0}, "end_point": {"row": 282, "column": 36}}, {"id": 1170, "type": "identifier", "text": "screen_render", "parent": 1169, "children": [], "start_point": {"row": 282, "column": 0}, "end_point": {"row": 282, "column": 13}}, {"id": 1171, "type": "parameter_list", "text": "(struct screen *screen)", "parent": 1169, "children": [1172], "start_point": {"row": 282, "column": 13}, "end_point": {"row": 282, "column": 36}}, {"id": 1172, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 1171, "children": [1173, 1176], "start_point": {"row": 282, "column": 14}, "end_point": {"row": 282, "column": 35}}, {"id": 1173, "type": "struct_specifier", "text": "struct screen", "parent": 1172, "children": [1174, 1175], "start_point": {"row": 282, "column": 14}, "end_point": {"row": 282, "column": 27}}, {"id": 1174, "type": "struct", "text": "struct", "parent": 1173, "children": [], "start_point": {"row": 282, "column": 14}, "end_point": {"row": 282, "column": 20}}, {"id": 1175, "type": "type_identifier", "text": "screen", "parent": 1173, "children": [], "start_point": {"row": 282, "column": 21}, "end_point": {"row": 282, "column": 27}}, {"id": 1176, "type": "pointer_declarator", "text": "*screen", "parent": 1172, "children": [1177, 1178], "start_point": {"row": 282, "column": 28}, "end_point": {"row": 282, "column": 35}}, {"id": 1177, "type": "*", "text": "*", "parent": 1176, "children": [], "start_point": {"row": 282, "column": 28}, "end_point": {"row": 282, "column": 29}}, {"id": 1178, "type": "identifier", "text": "screen", "parent": 1176, "children": [], "start_point": {"row": 282, "column": 29}, "end_point": {"row": 282, "column": 35}}, {"id": 1179, "type": "call_expression", "text": "SDL_RenderClear(screen->renderer)", "parent": 1167, "children": [1180, 1181], "start_point": {"row": 283, "column": 4}, "end_point": {"row": 283, "column": 37}}, {"id": 1180, "type": "identifier", "text": "SDL_RenderClear", "parent": 1179, "children": [], "start_point": {"row": 283, "column": 4}, "end_point": {"row": 283, "column": 19}}, {"id": 1181, "type": "argument_list", "text": "(screen->renderer)", "parent": 1179, "children": [1182], "start_point": {"row": 283, "column": 19}, "end_point": {"row": 283, "column": 37}}, {"id": 1182, "type": "field_expression", "text": "screen->renderer", "parent": 1181, "children": [1183, 1184], "start_point": {"row": 283, "column": 20}, "end_point": {"row": 283, "column": 36}}, {"id": 1183, "type": "identifier", "text": "screen", "parent": 1182, "children": [], "start_point": {"row": 283, "column": 20}, "end_point": {"row": 283, "column": 26}}, {"id": 1184, "type": "field_identifier", "text": "renderer", "parent": 1182, "children": [], "start_point": {"row": 283, "column": 28}, "end_point": {"row": 283, "column": 36}}, {"id": 1185, "type": "call_expression", "text": "SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL)", "parent": 1167, "children": [1186, 1187], "start_point": {"row": 284, "column": 4}, "end_point": {"row": 284, "column": 65}}, {"id": 1186, "type": "identifier", "text": "SDL_RenderCopy", "parent": 1185, "children": [], "start_point": {"row": 284, "column": 4}, "end_point": {"row": 284, "column": 18}}, {"id": 1187, "type": "argument_list", "text": "(screen->renderer, screen->texture, NULL, NULL)", "parent": 1185, "children": [1188, 1191, 1194, 1196], "start_point": {"row": 284, "column": 18}, "end_point": {"row": 284, "column": 65}}, {"id": 1188, "type": "field_expression", "text": "screen->renderer", "parent": 1187, "children": [1189, 1190], "start_point": {"row": 284, "column": 19}, "end_point": {"row": 284, "column": 35}}, {"id": 1189, "type": "identifier", "text": "screen", "parent": 1188, "children": [], "start_point": {"row": 284, "column": 19}, "end_point": {"row": 284, "column": 25}}, {"id": 1190, "type": "field_identifier", "text": "renderer", "parent": 1188, "children": [], "start_point": {"row": 284, "column": 27}, "end_point": {"row": 284, "column": 35}}, {"id": 1191, "type": "field_expression", "text": "screen->texture", "parent": 1187, "children": [1192, 1193], "start_point": {"row": 284, "column": 37}, "end_point": {"row": 284, "column": 52}}, {"id": 1192, "type": "identifier", "text": "screen", "parent": 1191, "children": [], "start_point": {"row": 284, "column": 37}, "end_point": {"row": 284, "column": 43}}, {"id": 1193, "type": "field_identifier", "text": "texture", "parent": 1191, "children": [], "start_point": {"row": 284, "column": 45}, "end_point": {"row": 284, "column": 52}}, {"id": 1194, "type": "null", "text": "NULL", "parent": 1187, "children": [1195], "start_point": {"row": 284, "column": 54}, "end_point": {"row": 284, "column": 58}}, {"id": 1195, "type": "NULL", "text": "NULL", "parent": 1194, "children": [], "start_point": {"row": 284, "column": 54}, "end_point": {"row": 284, "column": 58}}, {"id": 1196, "type": "null", "text": "NULL", "parent": 1187, "children": [1197], "start_point": {"row": 284, "column": 60}, "end_point": {"row": 284, "column": 64}}, {"id": 1197, "type": "NULL", "text": "NULL", "parent": 1196, "children": [], "start_point": {"row": 284, "column": 60}, "end_point": {"row": 284, "column": 64}}, {"id": 1198, "type": "call_expression", "text": "SDL_RenderPresent(screen->renderer)", "parent": 1167, "children": [1199, 1200], "start_point": {"row": 285, "column": 4}, "end_point": {"row": 285, "column": 39}}, {"id": 1199, "type": "identifier", "text": "SDL_RenderPresent", "parent": 1198, "children": [], "start_point": {"row": 285, "column": 4}, "end_point": {"row": 285, "column": 21}}, {"id": 1200, "type": "argument_list", "text": "(screen->renderer)", "parent": 1198, "children": [1201], "start_point": {"row": 285, "column": 21}, "end_point": {"row": 285, "column": 39}}, {"id": 1201, "type": "field_expression", "text": "screen->renderer", "parent": 1200, "children": [1202, 1203], "start_point": {"row": 285, "column": 22}, "end_point": {"row": 285, "column": 38}}, {"id": 1202, "type": "identifier", "text": "screen", "parent": 1201, "children": [], "start_point": {"row": 285, "column": 22}, "end_point": {"row": 285, "column": 28}}, {"id": 1203, "type": "field_identifier", "text": "renderer", "parent": 1201, "children": [], "start_point": {"row": 285, "column": 30}, "end_point": {"row": 285, "column": 38}}, {"id": 1204, "type": "function_definition", "text": "void\nscreen_switch_fullscreen(struct screen *screen) {\n if (!screen->fullscreen) {\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }\n uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP;\n if (SDL_SetWindowFullscreen(screen->window, new_mode)) {\n LOGW(\"Could not switch fullscreen mode: %s\", SDL_GetError());\n return;\n }\n\n screen->fullscreen = !screen->fullscreen;\n if (!screen->fullscreen) {\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }\n\n LOGD(\"Switched to %s mode\", screen->fullscreen ? \"fullscreen\" : \"windowed\");\n screen_render(screen);\n}", "parent": null, "children": [1205, 1206], "start_point": {"row": 288, "column": 0}, "end_point": {"row": 309, "column": 1}}, {"id": 1205, "type": "primitive_type", "text": "void", "parent": 1204, "children": [], "start_point": {"row": 288, "column": 0}, "end_point": {"row": 288, "column": 4}}, {"id": 1206, "type": "function_declarator", "text": "screen_switch_fullscreen(struct screen *screen)", "parent": 1204, "children": [1207, 1208], "start_point": {"row": 289, "column": 0}, "end_point": {"row": 289, "column": 47}}, {"id": 1207, "type": "identifier", "text": "screen_switch_fullscreen", "parent": 1206, "children": [], "start_point": {"row": 289, "column": 0}, "end_point": {"row": 289, "column": 24}}, {"id": 1208, "type": "parameter_list", "text": "(struct screen *screen)", "parent": 1206, "children": [1209], "start_point": {"row": 289, "column": 24}, "end_point": {"row": 289, "column": 47}}, {"id": 1209, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 1208, "children": [1210, 1213], "start_point": {"row": 289, "column": 25}, "end_point": {"row": 289, "column": 46}}, {"id": 1210, "type": "struct_specifier", "text": "struct screen", "parent": 1209, "children": [1211, 1212], "start_point": {"row": 289, "column": 25}, "end_point": {"row": 289, "column": 38}}, {"id": 1211, "type": "struct", "text": "struct", "parent": 1210, "children": [], "start_point": {"row": 289, "column": 25}, "end_point": {"row": 289, "column": 31}}, {"id": 1212, "type": "type_identifier", "text": "screen", "parent": 1210, "children": [], "start_point": {"row": 289, "column": 32}, "end_point": {"row": 289, "column": 38}}, {"id": 1213, "type": "pointer_declarator", "text": "*screen", "parent": 1209, "children": [1214, 1215], "start_point": {"row": 289, "column": 39}, "end_point": {"row": 289, "column": 46}}, {"id": 1214, "type": "*", "text": "*", "parent": 1213, "children": [], "start_point": {"row": 289, "column": 39}, "end_point": {"row": 289, "column": 40}}, {"id": 1215, "type": "identifier", "text": "screen", "parent": 1213, "children": [], "start_point": {"row": 289, "column": 40}, "end_point": {"row": 289, "column": 46}}, {"id": 1216, "type": "if_statement", "text": "if (!screen->fullscreen) {\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }", "parent": 1204, "children": [1217], "start_point": {"row": 290, "column": 4}, "end_point": {"row": 293, "column": 5}}, {"id": 1217, "type": "parenthesized_expression", "text": "(!screen->fullscreen)", "parent": 1216, "children": [1218], "start_point": {"row": 290, "column": 7}, "end_point": {"row": 290, "column": 28}}, {"id": 1218, "type": "unary_expression", "text": "!screen->fullscreen", "parent": 1217, "children": [1219, 1220], "start_point": {"row": 290, "column": 8}, "end_point": {"row": 290, "column": 27}}, {"id": 1219, "type": "!", "text": "!", "parent": 1218, "children": [], "start_point": {"row": 290, "column": 8}, "end_point": {"row": 290, "column": 9}}, {"id": 1220, "type": "field_expression", "text": "screen->fullscreen", "parent": 1218, "children": [1221, 1222], "start_point": {"row": 290, "column": 9}, "end_point": {"row": 290, "column": 27}}, {"id": 1221, "type": "identifier", "text": "screen", "parent": 1220, "children": [], "start_point": {"row": 290, "column": 9}, "end_point": {"row": 290, "column": 15}}, {"id": 1222, "type": "field_identifier", "text": "fullscreen", "parent": 1220, "children": [], "start_point": {"row": 290, "column": 17}, "end_point": {"row": 290, "column": 27}}, {"id": 1223, "type": "assignment_expression", "text": "screen->windowed_window_size = get_native_window_size(screen->window)", "parent": 1216, "children": [1224, 1227, 1228], "start_point": {"row": 292, "column": 8}, "end_point": {"row": 292, "column": 77}}, {"id": 1224, "type": "field_expression", "text": "screen->windowed_window_size", "parent": 1223, "children": [1225, 1226], "start_point": {"row": 292, "column": 8}, "end_point": {"row": 292, "column": 36}}, {"id": 1225, "type": "identifier", "text": "screen", "parent": 1224, "children": [], "start_point": {"row": 292, "column": 8}, "end_point": {"row": 292, "column": 14}}, {"id": 1226, "type": "field_identifier", "text": "windowed_window_size", "parent": 1224, "children": [], "start_point": {"row": 292, "column": 16}, "end_point": {"row": 292, "column": 36}}, {"id": 1227, "type": "=", "text": "=", "parent": 1223, "children": [], "start_point": {"row": 292, "column": 37}, "end_point": {"row": 292, "column": 38}}, {"id": 1228, "type": "call_expression", "text": "get_native_window_size(screen->window)", "parent": 1223, "children": [1229, 1230], "start_point": {"row": 292, "column": 39}, "end_point": {"row": 292, "column": 77}}, {"id": 1229, "type": "identifier", "text": "get_native_window_size", "parent": 1228, "children": [], "start_point": {"row": 292, "column": 39}, "end_point": {"row": 292, "column": 61}}, {"id": 1230, "type": "argument_list", "text": "(screen->window)", "parent": 1228, "children": [1231], "start_point": {"row": 292, "column": 61}, "end_point": {"row": 292, "column": 77}}, {"id": 1231, "type": "field_expression", "text": "screen->window", "parent": 1230, "children": [1232, 1233], "start_point": {"row": 292, "column": 62}, "end_point": {"row": 292, "column": 76}}, {"id": 1232, "type": "identifier", "text": "screen", "parent": 1231, "children": [], "start_point": {"row": 292, "column": 62}, "end_point": {"row": 292, "column": 68}}, {"id": 1233, "type": "field_identifier", "text": "window", "parent": 1231, "children": [], "start_point": {"row": 292, "column": 70}, "end_point": {"row": 292, "column": 76}}, {"id": 1234, "type": "declaration", "text": "uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP;", "parent": 1204, "children": [1235, 1236], "start_point": {"row": 294, "column": 4}, "end_point": {"row": 294, "column": 79}}, {"id": 1235, "type": "primitive_type", "text": "uint32_t", "parent": 1234, "children": [], "start_point": {"row": 294, "column": 4}, "end_point": {"row": 294, "column": 12}}, {"id": 1236, "type": "init_declarator", "text": "new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP", "parent": 1234, "children": [1237, 1238, 1239], "start_point": {"row": 294, "column": 13}, "end_point": {"row": 294, "column": 78}}, {"id": 1237, "type": "identifier", "text": "new_mode", "parent": 1236, "children": [], "start_point": {"row": 294, "column": 13}, "end_point": {"row": 294, "column": 21}}, {"id": 1238, "type": "=", "text": "=", "parent": 1236, "children": [], "start_point": {"row": 294, "column": 22}, "end_point": {"row": 294, "column": 23}}, {"id": 1239, "type": "conditional_expression", "text": "screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP", "parent": 1236, "children": [1240, 1243, 1244, 1245], "start_point": {"row": 294, "column": 24}, "end_point": {"row": 294, "column": 78}}, {"id": 1240, "type": "field_expression", "text": "screen->fullscreen", "parent": 1239, "children": [1241, 1242], "start_point": {"row": 294, "column": 24}, "end_point": {"row": 294, "column": 42}}, {"id": 1241, "type": "identifier", "text": "screen", "parent": 1240, "children": [], "start_point": {"row": 294, "column": 24}, "end_point": {"row": 294, "column": 30}}, {"id": 1242, "type": "field_identifier", "text": "fullscreen", "parent": 1240, "children": [], "start_point": {"row": 294, "column": 32}, "end_point": {"row": 294, "column": 42}}, {"id": 1243, "type": "?", "text": "?", "parent": 1239, "children": [], "start_point": {"row": 294, "column": 43}, "end_point": {"row": 294, "column": 44}}, {"id": 1244, "type": "number_literal", "text": "0", "parent": 1239, "children": [], "start_point": {"row": 294, "column": 45}, "end_point": {"row": 294, "column": 46}}, {"id": 1245, "type": "identifier", "text": "SDL_WINDOW_FULLSCREEN_DESKTOP", "parent": 1239, "children": [], "start_point": {"row": 294, "column": 49}, "end_point": {"row": 294, "column": 78}}, {"id": 1246, "type": "if_statement", "text": "if (SDL_SetWindowFullscreen(screen->window, new_mode)) {\n LOGW(\"Could not switch fullscreen mode: %s\", SDL_GetError());\n return;\n }", "parent": 1204, "children": [1247], "start_point": {"row": 295, "column": 4}, "end_point": {"row": 298, "column": 5}}, {"id": 1247, "type": "parenthesized_expression", "text": "(SDL_SetWindowFullscreen(screen->window, new_mode))", "parent": 1246, "children": [1248], "start_point": {"row": 295, "column": 7}, "end_point": {"row": 295, "column": 58}}, {"id": 1248, "type": "call_expression", "text": "SDL_SetWindowFullscreen(screen->window, new_mode)", "parent": 1247, "children": [1249, 1250], "start_point": {"row": 295, "column": 8}, "end_point": {"row": 295, "column": 57}}, {"id": 1249, "type": "identifier", "text": "SDL_SetWindowFullscreen", "parent": 1248, "children": [], "start_point": {"row": 295, "column": 8}, "end_point": {"row": 295, "column": 31}}, {"id": 1250, "type": "argument_list", "text": "(screen->window, new_mode)", "parent": 1248, "children": [1251, 1254], "start_point": {"row": 295, "column": 31}, "end_point": {"row": 295, "column": 57}}, {"id": 1251, "type": "field_expression", "text": "screen->window", "parent": 1250, "children": [1252, 1253], "start_point": {"row": 295, "column": 32}, "end_point": {"row": 295, "column": 46}}, {"id": 1252, "type": "identifier", "text": "screen", "parent": 1251, "children": [], "start_point": {"row": 295, "column": 32}, "end_point": {"row": 295, "column": 38}}, {"id": 1253, "type": "field_identifier", "text": "window", "parent": 1251, "children": [], "start_point": {"row": 295, "column": 40}, "end_point": {"row": 295, "column": 46}}, {"id": 1254, "type": "identifier", "text": "new_mode", "parent": 1250, "children": [], "start_point": {"row": 295, "column": 48}, "end_point": {"row": 295, "column": 56}}, {"id": 1255, "type": "call_expression", "text": "LOGW(\"Could not switch fullscreen mode: %s\", SDL_GetError())", "parent": 1246, "children": [1256, 1257], "start_point": {"row": 296, "column": 8}, "end_point": {"row": 296, "column": 68}}, {"id": 1256, "type": "identifier", "text": "LOGW", "parent": 1255, "children": [], "start_point": {"row": 296, "column": 8}, "end_point": {"row": 296, "column": 12}}, {"id": 1257, "type": "argument_list", "text": "(\"Could not switch fullscreen mode: %s\", SDL_GetError())", "parent": 1255, "children": [1258, 1259], "start_point": {"row": 296, "column": 12}, "end_point": {"row": 296, "column": 68}}, {"id": 1258, "type": "string_literal", "text": "\"Could not switch fullscreen mode: %s\"", "parent": 1257, "children": [], "start_point": {"row": 296, "column": 13}, "end_point": {"row": 296, "column": 51}}, {"id": 1259, "type": "call_expression", "text": "SDL_GetError()", "parent": 1257, "children": [1260, 1261], "start_point": {"row": 296, "column": 53}, "end_point": {"row": 296, "column": 67}}, {"id": 1260, "type": "identifier", "text": "SDL_GetError", "parent": 1259, "children": [], "start_point": {"row": 296, "column": 53}, "end_point": {"row": 296, "column": 65}}, {"id": 1261, "type": "argument_list", "text": "()", "parent": 1259, "children": [], "start_point": {"row": 296, "column": 65}, "end_point": {"row": 296, "column": 67}}, {"id": 1262, "type": "return_statement", "text": "return;", "parent": 1246, "children": [], "start_point": {"row": 297, "column": 8}, "end_point": {"row": 297, "column": 15}}, {"id": 1263, "type": "assignment_expression", "text": "screen->fullscreen = !screen->fullscreen", "parent": 1204, "children": [1264, 1267, 1268], "start_point": {"row": 300, "column": 4}, "end_point": {"row": 300, "column": 44}}, {"id": 1264, "type": "field_expression", "text": "screen->fullscreen", "parent": 1263, "children": [1265, 1266], "start_point": {"row": 300, "column": 4}, "end_point": {"row": 300, "column": 22}}, {"id": 1265, "type": "identifier", "text": "screen", "parent": 1264, "children": [], "start_point": {"row": 300, "column": 4}, "end_point": {"row": 300, "column": 10}}, {"id": 1266, "type": "field_identifier", "text": "fullscreen", "parent": 1264, "children": [], "start_point": {"row": 300, "column": 12}, "end_point": {"row": 300, "column": 22}}, {"id": 1267, "type": "=", "text": "=", "parent": 1263, "children": [], "start_point": {"row": 300, "column": 23}, "end_point": {"row": 300, "column": 24}}, {"id": 1268, "type": "unary_expression", "text": "!screen->fullscreen", "parent": 1263, "children": [1269, 1270], "start_point": {"row": 300, "column": 25}, "end_point": {"row": 300, "column": 44}}, {"id": 1269, "type": "!", "text": "!", "parent": 1268, "children": [], "start_point": {"row": 300, "column": 25}, "end_point": {"row": 300, "column": 26}}, {"id": 1270, "type": "field_expression", "text": "screen->fullscreen", "parent": 1268, "children": [1271, 1272], "start_point": {"row": 300, "column": 26}, "end_point": {"row": 300, "column": 44}}, {"id": 1271, "type": "identifier", "text": "screen", "parent": 1270, "children": [], "start_point": {"row": 300, "column": 26}, "end_point": {"row": 300, "column": 32}}, {"id": 1272, "type": "field_identifier", "text": "fullscreen", "parent": 1270, "children": [], "start_point": {"row": 300, "column": 34}, "end_point": {"row": 300, "column": 44}}, {"id": 1273, "type": "if_statement", "text": "if (!screen->fullscreen) {\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }", "parent": 1204, "children": [1274], "start_point": {"row": 301, "column": 4}, "end_point": {"row": 305, "column": 5}}, {"id": 1274, "type": "parenthesized_expression", "text": "(!screen->fullscreen)", "parent": 1273, "children": [1275], "start_point": {"row": 301, "column": 7}, "end_point": {"row": 301, "column": 28}}, {"id": 1275, "type": "unary_expression", "text": "!screen->fullscreen", "parent": 1274, "children": [1276, 1277], "start_point": {"row": 301, "column": 8}, "end_point": {"row": 301, "column": 27}}, {"id": 1276, "type": "!", "text": "!", "parent": 1275, "children": [], "start_point": {"row": 301, "column": 8}, "end_point": {"row": 301, "column": 9}}, {"id": 1277, "type": "field_expression", "text": "screen->fullscreen", "parent": 1275, "children": [1278, 1279], "start_point": {"row": 301, "column": 9}, "end_point": {"row": 301, "column": 27}}, {"id": 1278, "type": "identifier", "text": "screen", "parent": 1277, "children": [], "start_point": {"row": 301, "column": 9}, "end_point": {"row": 301, "column": 15}}, {"id": 1279, "type": "field_identifier", "text": "fullscreen", "parent": 1277, "children": [], "start_point": {"row": 301, "column": 17}, "end_point": {"row": 301, "column": 27}}, {"id": 1280, "type": "call_expression", "text": "SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height)", "parent": 1273, "children": [1281, 1282], "start_point": {"row": 303, "column": 8}, "end_point": {"row": 304, "column": 62}}, {"id": 1281, "type": "identifier", "text": "SDL_SetWindowSize", "parent": 1280, "children": [], "start_point": {"row": 303, "column": 8}, "end_point": {"row": 303, "column": 25}}, {"id": 1282, "type": "argument_list", "text": "(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height)", "parent": 1280, "children": [1283, 1286, 1291], "start_point": {"row": 303, "column": 25}, "end_point": {"row": 304, "column": 62}}, {"id": 1283, "type": "field_expression", "text": "screen->window", "parent": 1282, "children": [1284, 1285], "start_point": {"row": 303, "column": 26}, "end_point": {"row": 303, "column": 40}}, {"id": 1284, "type": "identifier", "text": "screen", "parent": 1283, "children": [], "start_point": {"row": 303, "column": 26}, "end_point": {"row": 303, "column": 32}}, {"id": 1285, "type": "field_identifier", "text": "window", "parent": 1283, "children": [], "start_point": {"row": 303, "column": 34}, "end_point": {"row": 303, "column": 40}}, {"id": 1286, "type": "field_expression", "text": "screen->windowed_window_size.width", "parent": 1282, "children": [1287, 1290], "start_point": {"row": 303, "column": 42}, "end_point": {"row": 303, "column": 76}}, {"id": 1287, "type": "field_expression", "text": "screen->windowed_window_size", "parent": 1286, "children": [1288, 1289], "start_point": {"row": 303, "column": 42}, "end_point": {"row": 303, "column": 70}}, {"id": 1288, "type": "identifier", "text": "screen", "parent": 1287, "children": [], "start_point": {"row": 303, "column": 42}, "end_point": {"row": 303, "column": 48}}, {"id": 1289, "type": "field_identifier", "text": "windowed_window_size", "parent": 1287, "children": [], "start_point": {"row": 303, "column": 50}, "end_point": {"row": 303, "column": 70}}, {"id": 1290, "type": "field_identifier", "text": "width", "parent": 1286, "children": [], "start_point": {"row": 303, "column": 71}, "end_point": {"row": 303, "column": 76}}, {"id": 1291, "type": "field_expression", "text": "screen->windowed_window_size.height", "parent": 1282, "children": [1292, 1295], "start_point": {"row": 304, "column": 26}, "end_point": {"row": 304, "column": 61}}, {"id": 1292, "type": "field_expression", "text": "screen->windowed_window_size", "parent": 1291, "children": [1293, 1294], "start_point": {"row": 304, "column": 26}, "end_point": {"row": 304, "column": 54}}, {"id": 1293, "type": "identifier", "text": "screen", "parent": 1292, "children": [], "start_point": {"row": 304, "column": 26}, "end_point": {"row": 304, "column": 32}}, {"id": 1294, "type": "field_identifier", "text": "windowed_window_size", "parent": 1292, "children": [], "start_point": {"row": 304, "column": 34}, "end_point": {"row": 304, "column": 54}}, {"id": 1295, "type": "field_identifier", "text": "height", "parent": 1291, "children": [], "start_point": {"row": 304, "column": 55}, "end_point": {"row": 304, "column": 61}}, {"id": 1296, "type": "call_expression", "text": "LOGD(\"Switched to %s mode\", screen->fullscreen ? \"fullscreen\" : \"windowed\")", "parent": 1204, "children": [1297, 1298], "start_point": {"row": 307, "column": 4}, "end_point": {"row": 307, "column": 79}}, {"id": 1297, "type": "identifier", "text": "LOGD", "parent": 1296, "children": [], "start_point": {"row": 307, "column": 4}, "end_point": {"row": 307, "column": 8}}, {"id": 1298, "type": "argument_list", "text": "(\"Switched to %s mode\", screen->fullscreen ? \"fullscreen\" : \"windowed\")", "parent": 1296, "children": [1299, 1300], "start_point": {"row": 307, "column": 8}, "end_point": {"row": 307, "column": 79}}, {"id": 1299, "type": "string_literal", "text": "\"Switched to %s mode\"", "parent": 1298, "children": [], "start_point": {"row": 307, "column": 9}, "end_point": {"row": 307, "column": 30}}, {"id": 1300, "type": "conditional_expression", "text": "screen->fullscreen ? \"fullscreen\" : \"windowed\"", "parent": 1298, "children": [1301, 1304, 1305, 1306], "start_point": {"row": 307, "column": 32}, "end_point": {"row": 307, "column": 78}}, {"id": 1301, "type": "field_expression", "text": "screen->fullscreen", "parent": 1300, "children": [1302, 1303], "start_point": {"row": 307, "column": 32}, "end_point": {"row": 307, "column": 50}}, {"id": 1302, "type": "identifier", "text": "screen", "parent": 1301, "children": [], "start_point": {"row": 307, "column": 32}, "end_point": {"row": 307, "column": 38}}, {"id": 1303, "type": "field_identifier", "text": "fullscreen", "parent": 1301, "children": [], "start_point": {"row": 307, "column": 40}, "end_point": {"row": 307, "column": 50}}, {"id": 1304, "type": "?", "text": "?", "parent": 1300, "children": [], "start_point": {"row": 307, "column": 51}, "end_point": {"row": 307, "column": 52}}, {"id": 1305, "type": "string_literal", "text": "\"fullscreen\"", "parent": 1300, "children": [], "start_point": {"row": 307, "column": 53}, "end_point": {"row": 307, "column": 65}}, {"id": 1306, "type": "string_literal", "text": "\"windowed\"", "parent": 1300, "children": [], "start_point": {"row": 307, "column": 68}, "end_point": {"row": 307, "column": 78}}, {"id": 1307, "type": "call_expression", "text": "screen_render(screen)", "parent": 1204, "children": [1308, 1309], "start_point": {"row": 308, "column": 4}, "end_point": {"row": 308, "column": 25}}, {"id": 1308, "type": "identifier", "text": "screen_render", "parent": 1307, "children": [], "start_point": {"row": 308, "column": 4}, "end_point": {"row": 308, "column": 17}}, {"id": 1309, "type": "argument_list", "text": "(screen)", "parent": 1307, "children": [1310], "start_point": {"row": 308, "column": 17}, "end_point": {"row": 308, "column": 25}}, {"id": 1310, "type": "identifier", "text": "screen", "parent": 1309, "children": [], "start_point": {"row": 308, "column": 18}, "end_point": {"row": 308, "column": 24}}, {"id": 1311, "type": "function_definition", "text": "void\nscreen_resize_to_fit(struct screen *screen) {\n if (!screen->fullscreen) {\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD(\"Resized to optimal size\");\n }\n}", "parent": null, "children": [1312, 1313], "start_point": {"row": 311, "column": 0}, "end_point": {"row": 320, "column": 1}}, {"id": 1312, "type": "primitive_type", "text": "void", "parent": 1311, "children": [], "start_point": {"row": 311, "column": 0}, "end_point": {"row": 311, "column": 4}}, {"id": 1313, "type": "function_declarator", "text": "screen_resize_to_fit(struct screen *screen)", "parent": 1311, "children": [1314, 1315], "start_point": {"row": 312, "column": 0}, "end_point": {"row": 312, "column": 43}}, {"id": 1314, "type": "identifier", "text": "screen_resize_to_fit", "parent": 1313, "children": [], "start_point": {"row": 312, "column": 0}, "end_point": {"row": 312, "column": 20}}, {"id": 1315, "type": "parameter_list", "text": "(struct screen *screen)", "parent": 1313, "children": [1316], "start_point": {"row": 312, "column": 20}, "end_point": {"row": 312, "column": 43}}, {"id": 1316, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 1315, "children": [1317, 1320], "start_point": {"row": 312, "column": 21}, "end_point": {"row": 312, "column": 42}}, {"id": 1317, "type": "struct_specifier", "text": "struct screen", "parent": 1316, "children": [1318, 1319], "start_point": {"row": 312, "column": 21}, "end_point": {"row": 312, "column": 34}}, {"id": 1318, "type": "struct", "text": "struct", "parent": 1317, "children": [], "start_point": {"row": 312, "column": 21}, "end_point": {"row": 312, "column": 27}}, {"id": 1319, "type": "type_identifier", "text": "screen", "parent": 1317, "children": [], "start_point": {"row": 312, "column": 28}, "end_point": {"row": 312, "column": 34}}, {"id": 1320, "type": "pointer_declarator", "text": "*screen", "parent": 1316, "children": [1321, 1322], "start_point": {"row": 312, "column": 35}, "end_point": {"row": 312, "column": 42}}, {"id": 1321, "type": "*", "text": "*", "parent": 1320, "children": [], "start_point": {"row": 312, "column": 35}, "end_point": {"row": 312, "column": 36}}, {"id": 1322, "type": "identifier", "text": "screen", "parent": 1320, "children": [], "start_point": {"row": 312, "column": 36}, "end_point": {"row": 312, "column": 42}}, {"id": 1323, "type": "if_statement", "text": "if (!screen->fullscreen) {\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD(\"Resized to optimal size\");\n }", "parent": 1311, "children": [1324], "start_point": {"row": 313, "column": 4}, "end_point": {"row": 319, "column": 5}}, {"id": 1324, "type": "parenthesized_expression", "text": "(!screen->fullscreen)", "parent": 1323, "children": [1325], "start_point": {"row": 313, "column": 7}, "end_point": {"row": 313, "column": 28}}, {"id": 1325, "type": "unary_expression", "text": "!screen->fullscreen", "parent": 1324, "children": [1326, 1327], "start_point": {"row": 313, "column": 8}, "end_point": {"row": 313, "column": 27}}, {"id": 1326, "type": "!", "text": "!", "parent": 1325, "children": [], "start_point": {"row": 313, "column": 8}, "end_point": {"row": 313, "column": 9}}, {"id": 1327, "type": "field_expression", "text": "screen->fullscreen", "parent": 1325, "children": [1328, 1329], "start_point": {"row": 313, "column": 9}, "end_point": {"row": 313, "column": 27}}, {"id": 1328, "type": "identifier", "text": "screen", "parent": 1327, "children": [], "start_point": {"row": 313, "column": 9}, "end_point": {"row": 313, "column": 15}}, {"id": 1329, "type": "field_identifier", "text": "fullscreen", "parent": 1327, "children": [], "start_point": {"row": 313, "column": 17}, "end_point": {"row": 313, "column": 27}}, {"id": 1330, "type": "declaration", "text": "struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);", "parent": 1323, "children": [1331, 1334], "start_point": {"row": 314, "column": 8}, "end_point": {"row": 315, "column": 79}}, {"id": 1331, "type": "struct_specifier", "text": "struct size", "parent": 1330, "children": [1332, 1333], "start_point": {"row": 314, "column": 8}, "end_point": {"row": 314, "column": 19}}, {"id": 1332, "type": "struct", "text": "struct", "parent": 1331, "children": [], "start_point": {"row": 314, "column": 8}, "end_point": {"row": 314, "column": 14}}, {"id": 1333, "type": "type_identifier", "text": "size", "parent": 1331, "children": [], "start_point": {"row": 314, "column": 15}, "end_point": {"row": 314, "column": 19}}, {"id": 1334, "type": "init_declarator", "text": "optimal_size = get_optimal_window_size(screen,\n screen->frame_size)", "parent": 1330, "children": [1335, 1336, 1337], "start_point": {"row": 314, "column": 20}, "end_point": {"row": 315, "column": 78}}, {"id": 1335, "type": "identifier", "text": "optimal_size", "parent": 1334, "children": [], "start_point": {"row": 314, "column": 20}, "end_point": {"row": 314, "column": 32}}, {"id": 1336, "type": "=", "text": "=", "parent": 1334, "children": [], "start_point": {"row": 314, "column": 33}, "end_point": {"row": 314, "column": 34}}, {"id": 1337, "type": "call_expression", "text": "get_optimal_window_size(screen,\n screen->frame_size)", "parent": 1334, "children": [1338, 1339], "start_point": {"row": 314, "column": 35}, "end_point": {"row": 315, "column": 78}}, {"id": 1338, "type": "identifier", "text": "get_optimal_window_size", "parent": 1337, "children": [], "start_point": {"row": 314, "column": 35}, "end_point": {"row": 314, "column": 58}}, {"id": 1339, "type": "argument_list", "text": "(screen,\n screen->frame_size)", "parent": 1337, "children": [1340, 1341], "start_point": {"row": 314, "column": 58}, "end_point": {"row": 315, "column": 78}}, {"id": 1340, "type": "identifier", "text": "screen", "parent": 1339, "children": [], "start_point": {"row": 314, "column": 59}, "end_point": {"row": 314, "column": 65}}, {"id": 1341, "type": "field_expression", "text": "screen->frame_size", "parent": 1339, "children": [1342, 1343], "start_point": {"row": 315, "column": 59}, "end_point": {"row": 315, "column": 77}}, {"id": 1342, "type": "identifier", "text": "screen", "parent": 1341, "children": [], "start_point": {"row": 315, "column": 59}, "end_point": {"row": 315, "column": 65}}, {"id": 1343, "type": "field_identifier", "text": "frame_size", "parent": 1341, "children": [], "start_point": {"row": 315, "column": 67}, "end_point": {"row": 315, "column": 77}}, {"id": 1344, "type": "call_expression", "text": "SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height)", "parent": 1323, "children": [1345, 1346], "start_point": {"row": 316, "column": 8}, "end_point": {"row": 317, "column": 46}}, {"id": 1345, "type": "identifier", "text": "SDL_SetWindowSize", "parent": 1344, "children": [], "start_point": {"row": 316, "column": 8}, "end_point": {"row": 316, "column": 25}}, {"id": 1346, "type": "argument_list", "text": "(screen->window, optimal_size.width,\n optimal_size.height)", "parent": 1344, "children": [1347, 1350, 1353], "start_point": {"row": 316, "column": 25}, "end_point": {"row": 317, "column": 46}}, {"id": 1347, "type": "field_expression", "text": "screen->window", "parent": 1346, "children": [1348, 1349], "start_point": {"row": 316, "column": 26}, "end_point": {"row": 316, "column": 40}}, {"id": 1348, "type": "identifier", "text": "screen", "parent": 1347, "children": [], "start_point": {"row": 316, "column": 26}, "end_point": {"row": 316, "column": 32}}, {"id": 1349, "type": "field_identifier", "text": "window", "parent": 1347, "children": [], "start_point": {"row": 316, "column": 34}, "end_point": {"row": 316, "column": 40}}, {"id": 1350, "type": "field_expression", "text": "optimal_size.width", "parent": 1346, "children": [1351, 1352], "start_point": {"row": 316, "column": 42}, "end_point": {"row": 316, "column": 60}}, {"id": 1351, "type": "identifier", "text": "optimal_size", "parent": 1350, "children": [], "start_point": {"row": 316, "column": 42}, "end_point": {"row": 316, "column": 54}}, {"id": 1352, "type": "field_identifier", "text": "width", "parent": 1350, "children": [], "start_point": {"row": 316, "column": 55}, "end_point": {"row": 316, "column": 60}}, {"id": 1353, "type": "field_expression", "text": "optimal_size.height", "parent": 1346, "children": [1354, 1355], "start_point": {"row": 317, "column": 26}, "end_point": {"row": 317, "column": 45}}, {"id": 1354, "type": "identifier", "text": "optimal_size", "parent": 1353, "children": [], "start_point": {"row": 317, "column": 26}, "end_point": {"row": 317, "column": 38}}, {"id": 1355, "type": "field_identifier", "text": "height", "parent": 1353, "children": [], "start_point": {"row": 317, "column": 39}, "end_point": {"row": 317, "column": 45}}, {"id": 1356, "type": "call_expression", "text": "LOGD(\"Resized to optimal size\")", "parent": 1323, "children": [1357, 1358], "start_point": {"row": 318, "column": 8}, "end_point": {"row": 318, "column": 39}}, {"id": 1357, "type": "identifier", "text": "LOGD", "parent": 1356, "children": [], "start_point": {"row": 318, "column": 8}, "end_point": {"row": 318, "column": 12}}, {"id": 1358, "type": "argument_list", "text": "(\"Resized to optimal size\")", "parent": 1356, "children": [1359], "start_point": {"row": 318, "column": 12}, "end_point": {"row": 318, "column": 39}}, {"id": 1359, "type": "string_literal", "text": "\"Resized to optimal size\"", "parent": 1358, "children": [], "start_point": {"row": 318, "column": 13}, "end_point": {"row": 318, "column": 38}}, {"id": 1360, "type": "function_definition", "text": "void\nscreen_resize_to_pixel_perfect(struct screen *screen) {\n if (!screen->fullscreen) {\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD(\"Resized to pixel-perfect\");\n }\n}", "parent": null, "children": [1361, 1362], "start_point": {"row": 322, "column": 0}, "end_point": {"row": 329, "column": 1}}, {"id": 1361, "type": "primitive_type", "text": "void", "parent": 1360, "children": [], "start_point": {"row": 322, "column": 0}, "end_point": {"row": 322, "column": 4}}, {"id": 1362, "type": "function_declarator", "text": "screen_resize_to_pixel_perfect(struct screen *screen)", "parent": 1360, "children": [1363, 1364], "start_point": {"row": 323, "column": 0}, "end_point": {"row": 323, "column": 53}}, {"id": 1363, "type": "identifier", "text": "screen_resize_to_pixel_perfect", "parent": 1362, "children": [], "start_point": {"row": 323, "column": 0}, "end_point": {"row": 323, "column": 30}}, {"id": 1364, "type": "parameter_list", "text": "(struct screen *screen)", "parent": 1362, "children": [1365], "start_point": {"row": 323, "column": 30}, "end_point": {"row": 323, "column": 53}}, {"id": 1365, "type": "parameter_declaration", "text": "struct screen *screen", "parent": 1364, "children": [1366, 1369], "start_point": {"row": 323, "column": 31}, "end_point": {"row": 323, "column": 52}}, {"id": 1366, "type": "struct_specifier", "text": "struct screen", "parent": 1365, "children": [1367, 1368], "start_point": {"row": 323, "column": 31}, "end_point": {"row": 323, "column": 44}}, {"id": 1367, "type": "struct", "text": "struct", "parent": 1366, "children": [], "start_point": {"row": 323, "column": 31}, "end_point": {"row": 323, "column": 37}}, {"id": 1368, "type": "type_identifier", "text": "screen", "parent": 1366, "children": [], "start_point": {"row": 323, "column": 38}, "end_point": {"row": 323, "column": 44}}, {"id": 1369, "type": "pointer_declarator", "text": "*screen", "parent": 1365, "children": [1370, 1371], "start_point": {"row": 323, "column": 45}, "end_point": {"row": 323, "column": 52}}, {"id": 1370, "type": "*", "text": "*", "parent": 1369, "children": [], "start_point": {"row": 323, "column": 45}, "end_point": {"row": 323, "column": 46}}, {"id": 1371, "type": "identifier", "text": "screen", "parent": 1369, "children": [], "start_point": {"row": 323, "column": 46}, "end_point": {"row": 323, "column": 52}}, {"id": 1372, "type": "if_statement", "text": "if (!screen->fullscreen) {\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD(\"Resized to pixel-perfect\");\n }", "parent": 1360, "children": [1373], "start_point": {"row": 324, "column": 4}, "end_point": {"row": 328, "column": 5}}, {"id": 1373, "type": "parenthesized_expression", "text": "(!screen->fullscreen)", "parent": 1372, "children": [1374], "start_point": {"row": 324, "column": 7}, "end_point": {"row": 324, "column": 28}}, {"id": 1374, "type": "unary_expression", "text": "!screen->fullscreen", "parent": 1373, "children": [1375, 1376], "start_point": {"row": 324, "column": 8}, "end_point": {"row": 324, "column": 27}}, {"id": 1375, "type": "!", "text": "!", "parent": 1374, "children": [], "start_point": {"row": 324, "column": 8}, "end_point": {"row": 324, "column": 9}}, {"id": 1376, "type": "field_expression", "text": "screen->fullscreen", "parent": 1374, "children": [1377, 1378], "start_point": {"row": 324, "column": 9}, "end_point": {"row": 324, "column": 27}}, {"id": 1377, "type": "identifier", "text": "screen", "parent": 1376, "children": [], "start_point": {"row": 324, "column": 9}, "end_point": {"row": 324, "column": 15}}, {"id": 1378, "type": "field_identifier", "text": "fullscreen", "parent": 1376, "children": [], "start_point": {"row": 324, "column": 17}, "end_point": {"row": 324, "column": 27}}, {"id": 1379, "type": "call_expression", "text": "SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height)", "parent": 1372, "children": [1380, 1381], "start_point": {"row": 325, "column": 8}, "end_point": {"row": 326, "column": 52}}, {"id": 1380, "type": "identifier", "text": "SDL_SetWindowSize", "parent": 1379, "children": [], "start_point": {"row": 325, "column": 8}, "end_point": {"row": 325, "column": 25}}, {"id": 1381, "type": "argument_list", "text": "(screen->window, screen->frame_size.width,\n screen->frame_size.height)", "parent": 1379, "children": [1382, 1385, 1390], "start_point": {"row": 325, "column": 25}, "end_point": {"row": 326, "column": 52}}, {"id": 1382, "type": "field_expression", "text": "screen->window", "parent": 1381, "children": [1383, 1384], "start_point": {"row": 325, "column": 26}, "end_point": {"row": 325, "column": 40}}, {"id": 1383, "type": "identifier", "text": "screen", "parent": 1382, "children": [], "start_point": {"row": 325, "column": 26}, "end_point": {"row": 325, "column": 32}}, {"id": 1384, "type": "field_identifier", "text": "window", "parent": 1382, "children": [], "start_point": {"row": 325, "column": 34}, "end_point": {"row": 325, "column": 40}}, {"id": 1385, "type": "field_expression", "text": "screen->frame_size.width", "parent": 1381, "children": [1386, 1389], "start_point": {"row": 325, "column": 42}, "end_point": {"row": 325, "column": 66}}, {"id": 1386, "type": "field_expression", "text": "screen->frame_size", "parent": 1385, "children": [1387, 1388], "start_point": {"row": 325, "column": 42}, "end_point": {"row": 325, "column": 60}}, {"id": 1387, "type": "identifier", "text": "screen", "parent": 1386, "children": [], "start_point": {"row": 325, "column": 42}, "end_point": {"row": 325, "column": 48}}, {"id": 1388, "type": "field_identifier", "text": "frame_size", "parent": 1386, "children": [], "start_point": {"row": 325, "column": 50}, "end_point": {"row": 325, "column": 60}}, {"id": 1389, "type": "field_identifier", "text": "width", "parent": 1385, "children": [], "start_point": {"row": 325, "column": 61}, "end_point": {"row": 325, "column": 66}}, {"id": 1390, "type": "field_expression", "text": "screen->frame_size.height", "parent": 1381, "children": [1391, 1394], "start_point": {"row": 326, "column": 26}, "end_point": {"row": 326, "column": 51}}, {"id": 1391, "type": "field_expression", "text": "screen->frame_size", "parent": 1390, "children": [1392, 1393], "start_point": {"row": 326, "column": 26}, "end_point": {"row": 326, "column": 44}}, {"id": 1392, "type": "identifier", "text": "screen", "parent": 1391, "children": [], "start_point": {"row": 326, "column": 26}, "end_point": {"row": 326, "column": 32}}, {"id": 1393, "type": "field_identifier", "text": "frame_size", "parent": 1391, "children": [], "start_point": {"row": 326, "column": 34}, "end_point": {"row": 326, "column": 44}}, {"id": 1394, "type": "field_identifier", "text": "height", "parent": 1390, "children": [], "start_point": {"row": 326, "column": 45}, "end_point": {"row": 326, "column": 51}}, {"id": 1395, "type": "call_expression", "text": "LOGD(\"Resized to pixel-perfect\")", "parent": 1372, "children": [1396, 1397], "start_point": {"row": 327, "column": 8}, "end_point": {"row": 327, "column": 40}}, {"id": 1396, "type": "identifier", "text": "LOGD", "parent": 1395, "children": [], "start_point": {"row": 327, "column": 8}, "end_point": {"row": 327, "column": 12}}, {"id": 1397, "type": "argument_list", "text": "(\"Resized to pixel-perfect\")", "parent": 1395, "children": [1398], "start_point": {"row": 327, "column": 12}, "end_point": {"row": 327, "column": 40}}, {"id": 1398, "type": "string_literal", "text": "\"Resized to pixel-perfect\"", "parent": 1397, "children": [], "start_point": {"row": 327, "column": 13}, "end_point": {"row": 327, "column": 39}}]}, "node_categories": {"declarations": {"functions": [34, 38, 79, 83, 109, 111, 150, 152, 168, 177, 234, 238, 399, 405, 437, 443, 457, 459, 480, 486, 512, 514, 761, 763, 779, 781, 824, 826, 1022, 1024, 1077, 1079, 1167, 1169, 1204, 1206, 1311, 1313, 1360, 1362], "variables": [41, 46, 49, 60, 86, 114, 121, 155, 162, 241, 246, 269, 274, 277, 326, 408, 415, 420, 446, 462, 489, 494, 517, 524, 529, 534, 543, 554, 683, 766, 784, 829, 836, 900, 911, 1027, 1034, 1082, 1089, 1102, 1113, 1172, 1209, 1234, 1316, 1330, 1365], "classes": [35, 36, 61, 62, 80, 81, 87, 88, 115, 116, 122, 123, 156, 157, 235, 236, 242, 243, 247, 248, 270, 271, 393, 394, 400, 402, 403, 409, 410, 416, 417, 421, 422, 438, 440, 441, 447, 448, 463, 464, 476, 477, 481, 495, 496, 518, 519, 530, 531, 544, 545, 767, 768, 785, 786, 830, 831, 837, 838, 901, 902, 912, 913, 1028, 1029, 1083, 1084, 1090, 1091, 1114, 1115, 1173, 1174, 1210, 1211, 1317, 1318, 1331, 1332, 1366, 1367], "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": [52, 56, 58, 66, 72, 94, 95, 99, 103, 106, 127, 128, 132, 138, 141, 144, 147, 186, 187, 191, 193, 197, 203, 207, 211, 212, 218, 222, 226, 227, 252, 253, 254, 255, 261, 262, 281, 282, 284, 287, 292, 298, 305, 308, 311, 317, 320, 323, 331, 332, 333, 339, 340, 346, 351, 352, 353, 359, 366, 367, 368, 374, 377, 380, 381, 386, 391, 427, 432, 452, 470, 474, 500, 506, 509, 538, 550, 559, 571, 582, 590, 594, 600, 603, 608, 609, 611, 614, 618, 624, 628, 631, 637, 638, 640, 643, 647, 650, 657, 658, 661, 664, 667, 670, 674, 677, 690, 695, 697, 700, 704, 709, 713, 721, 724, 728, 732, 735, 740, 741, 743, 746, 750, 753, 773, 776, 792, 793, 796, 799, 803, 804, 807, 810, 814, 815, 818, 821, 842, 843, 844, 845, 846, 851, 855, 856, 857, 862, 866, 872, 873, 876, 879, 882, 885, 889, 894, 897, 907, 919, 920, 921, 924, 928, 932, 933, 937, 938, 939, 942, 946, 950, 951, 958, 963, 969, 974, 982, 983, 987, 988, 993, 997, 1000, 1005, 1006, 1008, 1011, 1015, 1039, 1042, 1047, 1048, 1052, 1053, 1057, 1058, 1062, 1063, 1067, 1068, 1072, 1073, 1096, 1099, 1109, 1121, 1124, 1128, 1134, 1135, 1137, 1142, 1145, 1150, 1155, 1158, 1161, 1179, 1182, 1185, 1188, 1191, 1198, 1201, 1217, 1218, 1220, 1224, 1228, 1231, 1240, 1247, 1248, 1251, 1255, 1259, 1264, 1268, 1270, 1274, 1275, 1277, 1280, 1283, 1286, 1287, 1291, 1292, 1296, 1301, 1307, 1324, 1325, 1327, 1337, 1341, 1344, 1347, 1350, 1353, 1356, 1373, 1374, 1376, 1379, 1382, 1385, 1386, 1390, 1391, 1395], "assignments": [65, 71, 131, 202, 217, 289, 295, 302, 314, 348, 363, 469, 537, 565, 576, 589, 623, 727, 865, 955, 968, 992, 1127, 1223, 1263], "loops": [], "conditionals": [32, 37, 39, 42, 45, 48, 51, 53, 55, 57, 59, 63, 64, 67, 68, 70, 73, 74, 76, 78, 82, 84, 89, 92, 93, 96, 97, 100, 101, 104, 107, 108, 112, 117, 120, 124, 125, 126, 129, 130, 133, 134, 136, 139, 142, 143, 145, 146, 148, 149, 153, 158, 161, 163, 164, 165, 166, 167, 170, 172, 173, 179, 181, 182, 184, 185, 188, 192, 194, 198, 204, 205, 208, 213, 214, 216, 219, 220, 223, 228, 229, 231, 237, 239, 244, 245, 249, 250, 251, 256, 257, 263, 264, 268, 272, 273, 276, 279, 280, 285, 288, 290, 293, 294, 296, 299, 300, 303, 306, 309, 310, 312, 313, 315, 318, 321, 322, 324, 325, 329, 334, 335, 337, 341, 342, 344, 345, 347, 349, 354, 355, 357, 360, 361, 364, 369, 370, 372, 375, 376, 378, 382, 387, 395, 397, 398, 404, 406, 411, 414, 418, 419, 423, 425, 428, 430, 433, 435, 436, 442, 444, 449, 450, 453, 455, 456, 460, 465, 468, 472, 478, 479, 483, 487, 490, 493, 497, 498, 501, 503, 504, 505, 507, 508, 510, 511, 515, 520, 523, 528, 532, 533, 536, 539, 540, 542, 546, 548, 551, 553, 557, 560, 561, 562, 563, 564, 566, 568, 569, 570, 572, 573, 574, 575, 577, 579, 583, 588, 591, 592, 595, 597, 598, 599, 601, 602, 604, 605, 606, 607, 612, 613, 615, 619, 625, 626, 629, 632, 633, 635, 636, 641, 642, 644, 648, 651, 653, 656, 659, 662, 663, 665, 666, 668, 669, 671, 675, 678, 680, 684, 688, 691, 693, 694, 696, 698, 701, 702, 703, 705, 707, 710, 714, 718, 720, 722, 723, 725, 726, 729, 730, 733, 736, 737, 738, 739, 744, 745, 747, 751, 754, 756, 764, 769, 772, 774, 777, 778, 782, 787, 790, 791, 794, 795, 797, 800, 801, 802, 805, 806, 808, 811, 812, 813, 816, 817, 819, 822, 823, 827, 832, 835, 839, 840, 841, 847, 848, 849, 852, 853, 858, 859, 860, 863, 864, 867, 868, 871, 874, 877, 878, 880, 881, 883, 884, 886, 890, 895, 898, 899, 903, 905, 908, 910, 914, 916, 925, 926, 929, 930, 934, 935, 936, 943, 944, 947, 948, 952, 953, 954, 956, 959, 961, 962, 964, 966, 967, 970, 971, 973, 975, 979, 981, 984, 985, 986, 989, 990, 991, 994, 995, 998, 1001, 1002, 1003, 1004, 1009, 1010, 1012, 1016, 1025, 1030, 1033, 1035, 1038, 1040, 1043, 1044, 1049, 1050, 1054, 1055, 1059, 1060, 1064, 1065, 1069, 1070, 1074, 1075, 1080, 1085, 1088, 1092, 1095, 1097, 1100, 1101, 1103, 1107, 1110, 1112, 1116, 1118, 1122, 1123, 1125, 1126, 1129, 1130, 1133, 1138, 1140, 1141, 1143, 1146, 1147, 1151, 1153, 1154, 1156, 1159, 1160, 1162, 1164, 1170, 1175, 1178, 1180, 1183, 1184, 1186, 1189, 1190, 1192, 1193, 1199, 1202, 1203, 1207, 1212, 1215, 1216, 1221, 1222, 1225, 1226, 1229, 1232, 1233, 1237, 1239, 1241, 1242, 1245, 1246, 1249, 1252, 1253, 1254, 1256, 1260, 1265, 1266, 1271, 1272, 1273, 1278, 1279, 1281, 1284, 1285, 1288, 1289, 1290, 1293, 1294, 1295, 1297, 1300, 1302, 1303, 1308, 1310, 1314, 1319, 1322, 1323, 1328, 1329, 1333, 1335, 1338, 1340, 1342, 1343, 1345, 1348, 1349, 1351, 1352, 1354, 1355, 1357, 1363, 1368, 1371, 1372, 1377, 1378, 1380, 1383, 1384, 1387, 1388, 1389, 1392, 1393, 1394, 1396], "returns": [77, 98, 102, 200, 232, 267, 390, 431, 451, 499, 621, 654, 681, 757, 759, 892, 1018, 1020, 1148, 1165, 1262], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 190, 196, 210, 225, 259, 266, 384, 389, 585, 586, 587, 617, 634, 646, 673, 712, 716, 717, 719, 749, 888, 977, 978, 980, 1014, 1051, 1056, 1061, 1066, 1071, 1076, 1244, 1258, 1299, 1305, 1306, 1359, 1398], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "size", "text_snippet": "static struct size\nget_native_window_size(SDL_Window *window) {\n int width;\n int height;\n S"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "get_native_window_size(SDL_Window *window)"}, {"node_id": 79, "universal_type": "function", "name": "size", "text_snippet": "static struct size\nget_window_size(const struct screen *screen) {\n if (screen->fullscreen) {\n "}, {"node_id": 83, "universal_type": "function", "name": "screen", "text_snippet": "get_window_size(const struct screen *screen)"}, {"node_id": 109, "universal_type": "function", "name": "set_window_size", "text_snippet": "static void\nset_window_size(struct screen *screen, struct size new_size) {\n // setting the window"}, {"node_id": 111, "universal_type": "function", "name": "size", "text_snippet": "set_window_size(struct screen *screen, struct size new_size)"}, {"node_id": 150, "universal_type": "function", "name": "get_preferred_display_bounds", "text_snippet": "static bool\nget_preferred_display_bounds(struct size *bounds) {\n SDL_Rect rect;\n#ifdef SCRCPY_SDL"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "get_preferred_display_bounds(struct size *bounds)"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n"}, {"node_id": 234, "universal_type": "function", "name": "size", "text_snippet": "static struct size\nget_optimal_size(struct size current_size, struct size frame_size) {\n if (fram"}, {"node_id": 238, "universal_type": "function", "name": "size", "text_snippet": "get_optimal_size(struct size current_size, struct size frame_size)"}, {"node_id": 399, "universal_type": "function", "name": "size", "text_snippet": "static inline struct size\nget_optimal_window_size(const struct screen *screen, struct size frame_siz"}, {"node_id": 405, "universal_type": "function", "name": "screen", "text_snippet": "get_optimal_window_size(const struct screen *screen, struct size frame_size)"}, {"node_id": 437, "universal_type": "function", "name": "size", "text_snippet": "static inline struct size\nget_initial_optimal_size(struct size frame_size) {\n return get_optimal_"}, {"node_id": 443, "universal_type": "function", "name": "unknown", "text_snippet": "get_initial_optimal_size(struct size frame_size)"}, {"node_id": 457, "universal_type": "function", "name": "screen_init", "text_snippet": "void\nscreen_init(struct screen *screen) {\n *screen = (struct screen) SCREEN_INITIALIZER;\n}"}, {"node_id": 459, "universal_type": "function", "name": "unknown", "text_snippet": "screen_init(struct screen *screen)"}, {"node_id": 480, "universal_type": "function", "name": "size", "text_snippet": "static inline SDL_Texture *\ncreate_texture(SDL_Renderer *renderer, struct size frame_size) {\n ret"}, {"node_id": 486, "universal_type": "function", "name": "size", "text_snippet": "create_texture(SDL_Renderer *renderer, struct size frame_size)"}, {"node_id": 512, "universal_type": "function", "name": "screen_init_rendering", "text_snippet": "bool\nscreen_init_rendering(struct screen *screen, const char *window_title,\n st"}, {"node_id": 514, "universal_type": "function", "name": "size", "text_snippet": "screen_init_rendering(struct screen *screen, const char *window_title,\n struct "}, {"node_id": 761, "universal_type": "function", "name": "screen_show_window", "text_snippet": "void\nscreen_show_window(struct screen *screen) {\n SDL_ShowWindow(screen->window);\n}"}, {"node_id": 763, "universal_type": "function", "name": "unknown", "text_snippet": "screen_show_window(struct screen *screen)"}, {"node_id": 779, "universal_type": "function", "name": "screen_destroy", "text_snippet": "void\nscreen_destroy(struct screen *screen) {\n if (screen->texture) {\n SDL_DestroyTexture(s"}, {"node_id": 781, "universal_type": "function", "name": "unknown", "text_snippet": "screen_destroy(struct screen *screen)"}, {"node_id": 824, "universal_type": "function", "name": "prepare_for_frame", "text_snippet": "static bool\nprepare_for_frame(struct screen *screen, struct size new_frame_size) {\n if (screen->f"}, {"node_id": 826, "universal_type": "function", "name": "size", "text_snippet": "prepare_for_frame(struct screen *screen, struct size new_frame_size)"}, {"node_id": 1022, "universal_type": "function", "name": "update_texture", "text_snippet": "static void\nupdate_texture(struct screen *screen, const AVFrame *frame) {\n SDL_UpdateYUVTexture(s"}, {"node_id": 1024, "universal_type": "function", "name": "unknown", "text_snippet": "update_texture(struct screen *screen, const AVFrame *frame)"}, {"node_id": 1077, "universal_type": "function", "name": "screen_update_frame", "text_snippet": "bool\nscreen_update_frame(struct screen *screen, struct video_buffer *vb) {\n mutex_lock(vb->mutex)"}, {"node_id": 1079, "universal_type": "function", "name": "video_buffer", "text_snippet": "screen_update_frame(struct screen *screen, struct video_buffer *vb)"}, {"node_id": 1167, "universal_type": "function", "name": "screen_render", "text_snippet": "void\nscreen_render(struct screen *screen) {\n SDL_RenderClear(screen->renderer);\n SDL_RenderCop"}, {"node_id": 1169, "universal_type": "function", "name": "unknown", "text_snippet": "screen_render(struct screen *screen)"}, {"node_id": 1204, "universal_type": "function", "name": "screen_switch_fullscreen", "text_snippet": "void\nscreen_switch_fullscreen(struct screen *screen) {\n if (!screen->fullscreen) {\n // goi"}, {"node_id": 1206, "universal_type": "function", "name": "unknown", "text_snippet": "screen_switch_fullscreen(struct screen *screen)"}, {"node_id": 1311, "universal_type": "function", "name": "screen_resize_to_fit", "text_snippet": "void\nscreen_resize_to_fit(struct screen *screen) {\n if (!screen->fullscreen) {\n struct siz"}, {"node_id": 1313, "universal_type": "function", "name": "unknown", "text_snippet": "screen_resize_to_fit(struct screen *screen)"}, {"node_id": 1360, "universal_type": "function", "name": "screen_resize_to_pixel_perfect", "text_snippet": "void\nscreen_resize_to_pixel_perfect(struct screen *screen) {\n if (!screen->fullscreen) {\n "}, {"node_id": 1362, "universal_type": "function", "name": "unknown", "text_snippet": "screen_resize_to_pixel_perfect(struct screen *screen)"}], "class_declarations": [{"node_id": 35, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 36, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 61, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 62, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 80, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 81, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 115, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 116, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 122, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 123, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 156, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 157, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 235, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 236, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 242, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 243, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 247, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 248, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 270, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 271, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 393, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 394, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 400, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 402, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 403, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 409, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 410, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 416, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 417, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 421, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 422, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 438, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 440, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 441, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 447, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 448, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 463, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 464, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 476, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 477, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 481, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 495, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 496, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 518, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 519, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 530, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 531, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 544, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 545, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 767, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 768, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 785, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 786, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 830, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 831, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 837, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 838, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 901, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 902, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 912, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 913, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1028, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 1029, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1083, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 1084, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1090, "universal_type": "class", "name": "video_buffer", "text_snippet": "struct video_buffer"}, {"node_id": 1091, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1114, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 1115, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1173, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 1174, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1210, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 1211, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1317, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 1318, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1331, "universal_type": "class", "name": "size", "text_snippet": "struct size"}, {"node_id": 1332, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1366, "universal_type": "class", "name": "screen", "text_snippet": "struct screen"}, {"node_id": 1367, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"screen.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <string.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <SDL2/SDL.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"common.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"compat.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"icon.xpm\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"lock_util.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"log.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"tiny_xpm.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"video_buffer.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "#include \"screen.h\"\n\n#include <string.h>\n#include <SDL2/SDL.h>\n\n#include \"common.h\"\n#include \"compat.h\"\n#include \"icon.xpm\"\n#include \"lock_util.h\"\n#include \"log.h\"\n#include \"tiny_xpm.h\"\n#include \"video_buffer.h\"\n\n#define DISPLAY_MARGINS 96\n\n// get the window size in a struct size\nstatic struct size\nget_native_window_size(SDL_Window *window) {\n int width;\n int height;\n SDL_GetWindowSize(window, &width, &height);\n\n struct size size;\n size.width = width;\n size.height = height;\n return size;\n}\n\n// get the windowed window size\nstatic struct size\nget_window_size(const struct screen *screen) {\n if (screen->fullscreen) {\n return screen->windowed_window_size;\n }\n return get_native_window_size(screen->window);\n}\n\n// set the window size to be applied when fullscreen is disabled\nstatic void\nset_window_size(struct screen *screen, struct size new_size) {\n // setting the window size during fullscreen is implementation defined,\n // so apply the resize only after fullscreen is disabled\n if (screen->fullscreen) {\n // SDL_SetWindowSize will be called when fullscreen will be disabled\n screen->windowed_window_size = new_size;\n } else {\n SDL_SetWindowSize(screen->window, new_size.width, new_size.height);\n }\n}\n\n// get the preferred display bounds (i.e. the screen bounds with some margins)\nstatic bool\nget_preferred_display_bounds(struct size *bounds) {\n SDL_Rect rect;\n#ifdef SCRCPY_SDL_HAS_GET_DISPLAY_USABLE_BOUNDS\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayUsableBounds((i), (r))\n#else\n# define GET_DISPLAY_BOUNDS(i, r) SDL_GetDisplayBounds((i), (r))\n#endif\n if (GET_DISPLAY_BOUNDS(0, &rect)) {\n LOGW(\"Could not get display usable bounds: %s\", SDL_GetError());\n return false;\n }\n\n bounds->width = MAX(0, rect.w - DISPLAY_MARGINS);\n bounds->height = MAX(0, rect.h - DISPLAY_MARGINS);\n return true;\n}\n\n// return the optimal size of the window, with the following constraints:\n// - it attempts to keep at least one dimension of the current_size (i.e. it\n// crops the black borders)\n// - it keeps the aspect ratio\n// - it scales down to make it fit in the display_size\nstatic struct size\nget_optimal_size(struct size current_size, struct size frame_size) {\n if (frame_size.width == 0 || frame_size.height == 0) {\n // avoid division by 0\n return current_size;\n }\n\n struct size display_size;\n // 32 bits because we need to multiply two 16 bits values\n uint32_t w;\n uint32_t h;\n\n if (!get_preferred_display_bounds(&display_size)) {\n // could not get display bounds, do not constraint the size\n w = current_size.width;\n h = current_size.height;\n } else {\n w = MIN(current_size.width, display_size.width);\n h = MIN(current_size.height, display_size.height);\n }\n\n bool keep_width = frame_size.width * h > frame_size.height * w;\n if (keep_width) {\n // remove black borders on top and bottom\n h = frame_size.height * w / frame_size.width;\n } else {\n // remove black borders on left and right (or none at all if it already\n // fits)\n w = frame_size.width * h / frame_size.height;\n }\n\n // w and h must fit into 16 bits\n SDL_assert_release(w < 0x10000 && h < 0x10000);\n return (struct size) {w, h};\n}\n\n// same as get_optimal_size(), but read the current size from the window\nstatic inline struct size\nget_optimal_window_size(const struct screen *screen, struct size frame_size) {\n struct size current_size = get_window_size(screen);\n return get_optimal_size(current_size, frame_size);\n}\n\n// initially, there is no current size, so use the frame size as current size\nstatic inline struct size\nget_initial_optimal_size(struct size frame_size) {\n return get_optimal_size(frame_size, frame_size);\n}\n\nvoid\nscreen_init(struct screen *screen) {\n *screen = (struct screen) SCREEN_INITIALIZER;\n}\n\nstatic inline SDL_Texture *\ncreate_texture(SDL_Renderer *renderer, struct size frame_size) {\n return SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12,\n SDL_TEXTUREACCESS_STREAMING,\n frame_size.width, frame_size.height);\n}\n\nbool\nscreen_init_rendering(struct screen *screen, const char *window_title,\n struct size frame_size, bool always_on_top) {\n screen->frame_size = frame_size;\n\n struct size window_size = get_initial_optimal_size(frame_size);\n uint32_t window_flags = SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE;\n#ifdef HIDPI_SUPPORT\n window_flags |= SDL_WINDOW_ALLOW_HIGHDPI;\n#endif\n if (always_on_top) {\n#ifdef SCRCPY_SDL_HAS_WINDOW_ALWAYS_ON_TOP\n window_flags |= SDL_WINDOW_ALWAYS_ON_TOP;\n#else\n LOGW(\"The 'always on top' flag is not available \"\n \"(compile with SDL >= 2.0.5 to enable it)\");\n#endif\n }\n\n screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,\n SDL_WINDOWPOS_UNDEFINED,\n window_size.width, window_size.height,\n window_flags);\n if (!screen->window) {\n LOGC(\"Could not create window: %s\", SDL_GetError());\n return false;\n }\n\n screen->renderer = SDL_CreateRenderer(screen->window, -1,\n SDL_RENDERER_ACCELERATED);\n if (!screen->renderer) {\n LOGC(\"Could not create renderer: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n if (SDL_RenderSetLogicalSize(screen->renderer, frame_size.width,\n frame_size.height)) {\n LOGE(\"Could not set renderer logical size: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n SDL_Surface *icon = read_xpm(icon_xpm);\n if (icon) {\n SDL_SetWindowIcon(screen->window, icon);\n SDL_FreeSurface(icon);\n } else {\n LOGW(\"Could not load icon\");\n }\n\n LOGI(\"Initial texture: %\" PRIu16 \"x%\" PRIu16, frame_size.width,\n frame_size.height);\n screen->texture = create_texture(screen->renderer, frame_size);\n if (!screen->texture) {\n LOGC(\"Could not create texture: %s\", SDL_GetError());\n screen_destroy(screen);\n return false;\n }\n\n return true;\n}\n\nvoid\nscreen_show_window(struct screen *screen) {\n SDL_ShowWindow(screen->window);\n}\n\nvoid\nscreen_destroy(struct screen *screen) {\n if (screen->texture) {\n SDL_DestroyTexture(screen->texture);\n }\n if (screen->renderer) {\n SDL_DestroyRenderer(screen->renderer);\n }\n if (screen->window) {\n SDL_DestroyWindow(screen->window);\n }\n}\n\n// recreate the texture and resize the window if the frame size has changed\nstatic bool\nprepare_for_frame(struct screen *screen, struct size new_frame_size) {\n if (screen->frame_size.width != new_frame_size.width\n || screen->frame_size.height != new_frame_size.height) {\n screen->frame_changed = true;\n if (SDL_RenderSetLogicalSize(screen->renderer, new_frame_size.width,\n new_frame_size.height)) {\n LOGE(\"Could not set renderer logical size: %s\", SDL_GetError());\n return false;\n }\n\n // frame dimension changed, destroy texture\n SDL_DestroyTexture(screen->texture);\n\n struct size current_size = get_window_size(screen);\n struct size target_size = {\n (uint32_t) current_size.width * new_frame_size.width\n / screen->frame_size.width,\n (uint32_t) current_size.height * new_frame_size.height\n / screen->frame_size.height,\n };\n target_size = get_optimal_size(target_size, new_frame_size);\n set_window_size(screen, target_size);\n\n screen->frame_size = new_frame_size;\n\n LOGI(\"New texture: %\" PRIu16 \"x%\" PRIu16,\n screen->frame_size.width, screen->frame_size.height);\n screen->texture = create_texture(screen->renderer, new_frame_size);\n if (!screen->texture) {\n LOGC(\"Could not create texture: %s\", SDL_GetError());\n return false;\n }\n }\n\n return true;\n}\n\n// write the frame into the texture\nstatic void\nupdate_texture(struct screen *screen, const AVFrame *frame) {\n SDL_UpdateYUVTexture(screen->texture, NULL,\n frame->data[0], frame->linesize[0],\n frame->data[1], frame->linesize[1],\n frame->data[2], frame->linesize[2]);\n}\n\nbool\nscreen_update_frame(struct screen *screen, struct video_buffer *vb) {\n mutex_lock(vb->mutex);\n const AVFrame *frame = video_buffer_consume_rendered_frame(vb);\n struct size new_frame_size = {frame->width, frame->height};\n screen->frame_changed = false;\n if (!prepare_for_frame(screen, new_frame_size)) {\n mutex_unlock(vb->mutex);\n return false;\n }\n update_texture(screen, frame);\n mutex_unlock(vb->mutex);\n\n screen_render(screen);\n return true;\n}\n\nvoid\nscreen_render(struct screen *screen) {\n SDL_RenderClear(screen->renderer);\n SDL_RenderCopy(screen->renderer, screen->texture, NULL, NULL);\n SDL_RenderPresent(screen->renderer);\n}\n\nvoid\nscreen_switch_fullscreen(struct screen *screen) {\n if (!screen->fullscreen) {\n // going to fullscreen, store the current windowed window size\n screen->windowed_window_size = get_native_window_size(screen->window);\n }\n uint32_t new_mode = screen->fullscreen ? 0 : SDL_WINDOW_FULLSCREEN_DESKTOP;\n if (SDL_SetWindowFullscreen(screen->window, new_mode)) {\n LOGW(\"Could not switch fullscreen mode: %s\", SDL_GetError());\n return;\n }\n\n screen->fullscreen = !screen->fullscreen;\n if (!screen->fullscreen) {\n // fullscreen disabled, restore expected windowed window size\n SDL_SetWindowSize(screen->window, screen->windowed_window_size.width,\n screen->windowed_window_size.height);\n }\n\n LOGD(\"Switched to %s mode\", screen->fullscreen ? \"fullscreen\" : \"windowed\");\n screen_render(screen);\n}\n\nvoid\nscreen_resize_to_fit(struct screen *screen) {\n if (!screen->fullscreen) {\n struct size optimal_size = get_optimal_window_size(screen,\n screen->frame_size);\n SDL_SetWindowSize(screen->window, optimal_size.width,\n optimal_size.height);\n LOGD(\"Resized to optimal size\");\n }\n}\n\nvoid\nscreen_resize_to_pixel_perfect(struct screen *screen) {\n if (!screen->fullscreen) {\n SDL_SetWindowSize(screen->window, screen->frame_size.width,\n screen->frame_size.height);\n LOGD(\"Resized to pixel-perfect\");\n }\n}\n"}
80,866
c
#include "shell.h" int32_t main(int argc, char **argv) { //Load config // Run command loop shloop(); //Cleanup return EXIT_SUCCESS; }
16.11
9
(translation_unit) "#include "shell.h"\n\nint32_t main(int argc, char **argv)\n{\n //Load config\n\n // Run command loop\n shloop();\n\n //Cleanup\n\n return EXIT_SUCCESS;\n}\n" (preproc_include) "#include "shell.h"\n" (#include) "#include" (string_literal) ""shell.h"" (") """ (string_content) "shell.h" (") """ (function_definition) "int32_t main(int argc, char **argv)\n{\n //Load config\n\n // Run command loop\n shloop();\n\n //Cleanup\n\n return EXIT_SUCCESS;\n}" (primitive_type) "int32_t" (function_declarator) "main(int argc, char **argv)" (identifier) "main" (parameter_list) "(int argc, char **argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char **argv" (primitive_type) "char" (pointer_declarator) "**argv" (*) "*" (pointer_declarator) "*argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n //Load config\n\n // Run command loop\n shloop();\n\n //Cleanup\n\n return EXIT_SUCCESS;\n}" ({) "{" (comment) "//Load config" (comment) "// Run command loop" (expression_statement) "shloop();" (call_expression) "shloop()" (identifier) "shloop" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "//Cleanup" (return_statement) "return EXIT_SUCCESS;" (return) "return" (identifier) "EXIT_SUCCESS" (;) ";" (}) "}"
42
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.11, "nodes": 23, "errors": 0, "source_hash": "2ee65695312c40830936131e9aba114ce49326d4731a51d6a5d67d3f0b822363", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"shell.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": "\"shell.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int32_t main(int argc, char **argv)\n{\n //Load config\n\n // Run command loop\n shloop();\n\n //Cleanup\n\n return EXIT_SUCCESS;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int32_t", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 35}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 12}}, {"id": 7, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 5, "children": [8, 11], "start_point": {"row": 2, "column": 12}, "end_point": {"row": 2, "column": 35}}, {"id": 8, "type": "parameter_declaration", "text": "int argc", "parent": 7, "children": [9, 10], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 21}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 16}}, {"id": 10, "type": "identifier", "text": "argc", "parent": 8, "children": [], "start_point": {"row": 2, "column": 17}, "end_point": {"row": 2, "column": 21}}, {"id": 11, "type": "parameter_declaration", "text": "char **argv", "parent": 7, "children": [12, 13], "start_point": {"row": 2, "column": 23}, "end_point": {"row": 2, "column": 34}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 2, "column": 23}, "end_point": {"row": 2, "column": 27}}, {"id": 13, "type": "pointer_declarator", "text": "**argv", "parent": 11, "children": [14, 15], "start_point": {"row": 2, "column": 28}, "end_point": {"row": 2, "column": 34}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 2, "column": 28}, "end_point": {"row": 2, "column": 29}}, {"id": 15, "type": "pointer_declarator", "text": "*argv", "parent": 13, "children": [16, 17], "start_point": {"row": 2, "column": 29}, "end_point": {"row": 2, "column": 34}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 2, "column": 29}, "end_point": {"row": 2, "column": 30}}, {"id": 17, "type": "identifier", "text": "argv", "parent": 15, "children": [], "start_point": {"row": 2, "column": 30}, "end_point": {"row": 2, "column": 34}}, {"id": 18, "type": "call_expression", "text": "shloop()", "parent": 3, "children": [19, 20], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 12}}, {"id": 19, "type": "identifier", "text": "shloop", "parent": 18, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 20, "type": "argument_list", "text": "()", "parent": 18, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 21, "type": "return_statement", "text": "return EXIT_SUCCESS;", "parent": 3, "children": [22], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 24}}, {"id": 22, "type": "identifier", "text": "EXIT_SUCCESS", "parent": 21, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 23}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 11], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [18], "assignments": [], "loops": [], "conditionals": [6, 10, 17, 19, 22], "returns": [21], "exceptions": []}, "expressions": {"calls": [], "literals": [2], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "int32_t main(int argc, char **argv)\n{\n //Load config\n\n // Run command loop\n shloop();\n\n "}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char **argv)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"shell.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"shell.h\"\n\nint32_t main(int argc, char **argv)\n{\n //Load config\n\n // Run command loop\n shloop();\n\n //Cleanup\n\n return EXIT_SUCCESS;\n}\n"}
80,867
c
// <NAME> // // Game object #pragma once #include <allegro.h> #include "Apple.h" #include "Snake.h" #include "System.h" class Game { private: BITMAP* buffer; Snake snake; public: Game(); ~Game(); System system; Apple apple; bool done; void init(); void update(); void drawBoard(); };
15.17
23
(translation_unit) "// <NAME>\n//\n// Game object\n\n#pragma once\n#include <allegro.h>\n#include "Apple.h"\n#include "Snake.h"\n#include "System.h"\n\nclass Game\n{\n private:\n BITMAP* buffer;\n Snake snake;\n\n public:\n Game();\n ~Game();\n System system;\n Apple apple;\n bool done;\n void init();\n void update();\n void drawBoard();\n};\n" (comment) "// <NAME>" (comment) "//" (comment) "// Game object" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <allegro.h>\n" (#include) "#include" (system_lib_string) "<allegro.h>" (preproc_include) "#include "Apple.h"\n" (#include) "#include" (string_literal) ""Apple.h"" (") """ (string_content) "Apple.h" (") """ (preproc_include) "#include "Snake.h"\n" (#include) "#include" (string_literal) ""Snake.h"" (") """ (string_content) "Snake.h" (") """ (preproc_include) "#include "System.h"\n" (#include) "#include" (string_literal) ""System.h"" (") """ (string_content) "System.h" (") """ (function_definition) "class Game\n{\n private:\n BITMAP* buffer;\n Snake snake;\n\n public:\n Game();\n ~Game();\n System system;\n Apple apple;\n bool done;\n void init();\n void update();\n void drawBoard();\n}" (type_identifier) "class" (identifier) "Game" (compound_statement) "{\n private:\n BITMAP* buffer;\n Snake snake;\n\n public:\n Game();\n ~Game();\n System system;\n Apple apple;\n bool done;\n void init();\n void update();\n void drawBoard();\n}" ({) "{" (labeled_statement) "private:\n BITMAP* buffer;" (statement_identifier) "private" (:) ":" (declaration) "BITMAP* buffer;" (type_identifier) "BITMAP" (pointer_declarator) "* buffer" (*) "*" (identifier) "buffer" (;) ";" (declaration) "Snake snake;" (type_identifier) "Snake" (identifier) "snake" (;) ";" (labeled_statement) "public:\n Game();" (statement_identifier) "public" (:) ":" (expression_statement) "Game();" (call_expression) "Game()" (identifier) "Game" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~Game();" (unary_expression) "~Game()" (~) "~" (call_expression) "Game()" (identifier) "Game" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "System system;" (type_identifier) "System" (identifier) "system" (;) ";" (declaration) "Apple apple;" (type_identifier) "Apple" (identifier) "apple" (;) ";" (declaration) "bool done;" (primitive_type) "bool" (identifier) "done" (;) ";" (declaration) "void init();" (primitive_type) "void" (function_declarator) "init()" (identifier) "init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void update();" (primitive_type) "void" (function_declarator) "update()" (identifier) "update" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void drawBoard();" (primitive_type) "void" (function_declarator) "drawBoard()" (identifier) "drawBoard" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
104
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 15.17, "nodes": 59, "errors": 0, "source_hash": "e382d0b04ea9c6480268f2509cd12e593bc105e70de3f712b024428b7977ef4b", "categorized_nodes": 43}, "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 <allegro.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<allegro.h>", "parent": 3, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"Apple.h\"\n", "parent": null, "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": "\"Apple.h\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"Snake.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"Snake.h\"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include \"System.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"System.h\"", "parent": 12, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 15, "type": "function_definition", "text": "class Game\n{\n private:\n BITMAP* buffer;\n Snake snake;\n\n public:\n Game();\n ~Game();\n System system;\n Apple apple;\n bool done;\n void init();\n void update();\n void drawBoard();\n}", "parent": null, "children": [16], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 16, "type": "identifier", "text": "Game", "parent": 15, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 10}}, {"id": 17, "type": "labeled_statement", "text": "private:\n BITMAP* buffer;", "parent": 15, "children": [18], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 13, "column": 23}}, {"id": 18, "type": "declaration", "text": "BITMAP* buffer;", "parent": 17, "children": [19, 20], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 23}}, {"id": 19, "type": "type_identifier", "text": "BITMAP", "parent": 18, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 14}}, {"id": 20, "type": "pointer_declarator", "text": "* buffer", "parent": 18, "children": [21, 22], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 22}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 15}}, {"id": 22, "type": "identifier", "text": "buffer", "parent": 20, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 22}}, {"id": 23, "type": "declaration", "text": "Snake snake;", "parent": 15, "children": [24, 25], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 20}}, {"id": 24, "type": "type_identifier", "text": "Snake", "parent": 23, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 13}}, {"id": 25, "type": "identifier", "text": "snake", "parent": 23, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 19}}, {"id": 26, "type": "labeled_statement", "text": "public:\n Game();", "parent": 15, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 17, "column": 15}}, {"id": 27, "type": "call_expression", "text": "Game()", "parent": 26, "children": [28, 29], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 14}}, {"id": 28, "type": "identifier", "text": "Game", "parent": 27, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 12}}, {"id": 29, "type": "argument_list", "text": "()", "parent": 27, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 14}}, {"id": 30, "type": "unary_expression", "text": "~Game()", "parent": 15, "children": [31, 32], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 15}}, {"id": 31, "type": "~", "text": "~", "parent": 30, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 32, "type": "call_expression", "text": "Game()", "parent": 30, "children": [33, 34], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 15}}, {"id": 33, "type": "identifier", "text": "Game", "parent": 32, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 34, "type": "argument_list", "text": "()", "parent": 32, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 15}}, {"id": 35, "type": "declaration", "text": "System system;", "parent": 15, "children": [36, 37], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 36, "type": "type_identifier", "text": "System", "parent": 35, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 14}}, {"id": 37, "type": "identifier", "text": "system", "parent": 35, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 21}}, {"id": 38, "type": "declaration", "text": "Apple apple;", "parent": 15, "children": [39, 40], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 20}}, {"id": 39, "type": "type_identifier", "text": "Apple", "parent": 38, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 40, "type": "identifier", "text": "apple", "parent": 38, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 19}}, {"id": 41, "type": "declaration", "text": "bool done;", "parent": 15, "children": [42, 43], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 18}}, {"id": 42, "type": "primitive_type", "text": "bool", "parent": 41, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 12}}, {"id": 43, "type": "identifier", "text": "done", "parent": 41, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 17}}, {"id": 44, "type": "declaration", "text": "void init();", "parent": 15, "children": [45, 46], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 20}}, {"id": 45, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 12}}, {"id": 46, "type": "function_declarator", "text": "init()", "parent": 44, "children": [47, 48], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 19}}, {"id": 47, "type": "identifier", "text": "init", "parent": 46, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 17}}, {"id": 48, "type": "parameter_list", "text": "()", "parent": 46, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 19}}, {"id": 49, "type": "declaration", "text": "void update();", "parent": 15, "children": [50, 51], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 22}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 12}}, {"id": 51, "type": "function_declarator", "text": "update()", "parent": 49, "children": [52, 53], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 21}}, {"id": 52, "type": "identifier", "text": "update", "parent": 51, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 19}}, {"id": 53, "type": "parameter_list", "text": "()", "parent": 51, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 21}}, {"id": 54, "type": "declaration", "text": "void drawBoard();", "parent": 15, "children": [55, 56], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 25}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 56, "type": "function_declarator", "text": "drawBoard()", "parent": 54, "children": [57, 58], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 24}}, {"id": 57, "type": "identifier", "text": "drawBoard", "parent": 56, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 22}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 24}}]}, "node_categories": {"declarations": {"functions": [15, 46, 51, 56], "variables": [18, 23, 35, 38, 41, 44, 49, 54], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [27, 30, 32], "assignments": [], "loops": [], "conditionals": [16, 19, 22, 24, 25, 28, 33, 36, 37, 39, 40, 43, 47, 52, 57], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "Game", "text_snippet": "class Game\n{\n private:\n BITMAP* buffer;\n Snake snake;\n\n public:\n Game();\n"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "init()"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "update()"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "drawBoard()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <allegro.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Apple.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Snake.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"System.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "// <NAME>\n//\n// Game object\n\n#pragma once\n#include <allegro.h>\n#include \"Apple.h\"\n#include \"Snake.h\"\n#include \"System.h\"\n\nclass Game\n{\n private:\n BITMAP* buffer;\n Snake snake;\n\n public:\n Game();\n ~Game();\n System system;\n Apple apple;\n bool done;\n void init();\n void update();\n void drawBoard();\n};\n"}
80,868
c
/* *********************************************************** * * * Copyright, (C) Honeywell Bull Inc., 1987 * * * * Copyright, (C) Honeywell Information Systems Inc., 1986 * * * *********************************************************** */ /* HISTORY COMMENTS: 1) change(86-07-06,Westcott), approve(87-07-13,MCR7580), audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072): Created. END HISTORY COMMENTS */ /* : PROCEDURE FUNCTION (conresp) Sends a "CONNECT_REPONSE" minor capability message to the addressed major capability. This message is used by the major capability to either accept or reject a requested connection. */ #include <stdio.h> #include <ws.h> #include <wsmincap.h> #include <ws_mcb.h> #include <ws_error.h> conresp (p_status, p_cap_num, p_mcb_ptr) int p_status; /* WSACCEPT or WSREJECT */ int p_cap_num; /* Capability number to respond to */ mcb *p_mcb_ptr; /* MCB of caller */ { int sysid; int major; /* : call execap to send message to application */ sysid = ((p_cap_num & 0xff00) >> 8); major = (p_cap_num & 0xff); if (p_mcb_ptr == NULL) return (WSINVMCB); if ((sysid != WSIBMPC) && (sysid != WSMULTICS)) return(WSINVSYS); if ((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER)) return(WSINVNUM); if ((p_status != WSACCEPT) && (p_status != WSREJECT)) return (WSINVCON); return (execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr)); } 
39.09
44
(translation_unit) "/* ***********************************************************\n * *\n * Copyright, (C) Honeywell Bull Inc., 1987 *\n * *\n * Copyright, (C) Honeywell Information Systems Inc., 1986 *\n * *\n *********************************************************** */\n\n/* HISTORY COMMENTS:\n 1) change(86-07-06,Westcott), approve(87-07-13,MCR7580),\n audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072):\n Created.\n END HISTORY COMMENTS */\n\n/* : PROCEDURE FUNCTION (conresp)\n\nSends a "CONNECT_REPONSE" minor capability message to the addressed major \ncapability. This message is used by the major capability to either accept \nor reject a requested connection.\n*/\n\n#include <stdio.h>\n#include <ws.h>\n#include <wsmincap.h>\n#include <ws_mcb.h>\n#include <ws_error.h>\n\nconresp (p_status, p_cap_num, p_mcb_ptr)\n\nint p_status; /* WSACCEPT or WSREJECT */\nint p_cap_num; /* Capability number to respond to */\nmcb *p_mcb_ptr; /* MCB of caller */\n{\nint sysid;\nint major;\n\n/* : call execap to send message to application */\n\n sysid = ((p_cap_num & 0xff00) >> 8);\n major = (p_cap_num & 0xff);\n\n if (p_mcb_ptr == NULL)\n return (WSINVMCB);\n\n if ((sysid != WSIBMPC) && (sysid != WSMULTICS))\n return(WSINVSYS);\n\n if ((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))\n return(WSINVNUM);\n\n if ((p_status != WSACCEPT) && (p_status != WSREJECT))\n return (WSINVCON);\n \n return (execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr));\n}\n" (comment) "/* ***********************************************************\n * *\n * Copyright, (C) Honeywell Bull Inc., 1987 *\n * *\n * Copyright, (C) Honeywell Information Systems Inc., 1986 *\n * *\n *********************************************************** */" (comment) "/* HISTORY COMMENTS:\n 1) change(86-07-06,Westcott), approve(87-07-13,MCR7580),\n audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072):\n Created.\n END HISTORY COMMENTS */" (comment) "/* : PROCEDURE FUNCTION (conresp)\n\nSends a "CONNECT_REPONSE" minor capability message to the addressed major \ncapability. This message is used by the major capability to either accept \nor reject a requested connection.\n*/" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <ws.h>\n" (#include) "#include" (system_lib_string) "<ws.h>" (preproc_include) "#include <wsmincap.h>\n" (#include) "#include" (system_lib_string) "<wsmincap.h>" (preproc_include) "#include <ws_mcb.h>\n" (#include) "#include" (system_lib_string) "<ws_mcb.h>" (preproc_include) "#include <ws_error.h>\n" (#include) "#include" (system_lib_string) "<ws_error.h>" (expression_statement) "conresp (p_status, p_cap_num, p_mcb_ptr)" (call_expression) "conresp (p_status, p_cap_num, p_mcb_ptr)" (identifier) "conresp" (argument_list) "(p_status, p_cap_num, p_mcb_ptr)" (() "(" (identifier) "p_status" (,) "," (identifier) "p_cap_num" (,) "," (identifier) "p_mcb_ptr" ()) ")" (;) "" (declaration) "int p_status;" (primitive_type) "int" (identifier) "p_status" (;) ";" (comment) "/* WSACCEPT or WSREJECT */" (declaration) "int p_cap_num;" (primitive_type) "int" (identifier) "p_cap_num" (;) ";" (comment) "/* Capability number to respond to */" (declaration) "mcb *p_mcb_ptr;" (type_identifier) "mcb" (pointer_declarator) "*p_mcb_ptr" (*) "*" (identifier) "p_mcb_ptr" (;) ";" (comment) "/* MCB of caller */" (compound_statement) "{\nint sysid;\nint major;\n\n/* : call execap to send message to application */\n\n sysid = ((p_cap_num & 0xff00) >> 8);\n major = (p_cap_num & 0xff);\n\n if (p_mcb_ptr == NULL)\n return (WSINVMCB);\n\n if ((sysid != WSIBMPC) && (sysid != WSMULTICS))\n return(WSINVSYS);\n\n if ((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))\n return(WSINVNUM);\n\n if ((p_status != WSACCEPT) && (p_status != WSREJECT))\n return (WSINVCON);\n \n return (execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr));\n}" ({) "{" (declaration) "int sysid;" (primitive_type) "int" (identifier) "sysid" (;) ";" (declaration) "int major;" (primitive_type) "int" (identifier) "major" (;) ";" (comment) "/* : call execap to send message to application */" (expression_statement) "sysid = ((p_cap_num & 0xff00) >> 8);" (assignment_expression) "sysid = ((p_cap_num & 0xff00) >> 8)" (identifier) "sysid" (=) "=" (parenthesized_expression) "((p_cap_num & 0xff00) >> 8)" (() "(" (binary_expression) "(p_cap_num & 0xff00) >> 8" (parenthesized_expression) "(p_cap_num & 0xff00)" (() "(" (binary_expression) "p_cap_num & 0xff00" (identifier) "p_cap_num" (&) "&" (number_literal) "0xff00" ()) ")" (>>) ">>" (number_literal) "8" ()) ")" (;) ";" (expression_statement) "major = (p_cap_num & 0xff);" (assignment_expression) "major = (p_cap_num & 0xff)" (identifier) "major" (=) "=" (parenthesized_expression) "(p_cap_num & 0xff)" (() "(" (binary_expression) "p_cap_num & 0xff" (identifier) "p_cap_num" (&) "&" (number_literal) "0xff" ()) ")" (;) ";" (if_statement) "if (p_mcb_ptr == NULL)\n return (WSINVMCB);" (if) "if" (parenthesized_expression) "(p_mcb_ptr == NULL)" (() "(" (binary_expression) "p_mcb_ptr == NULL" (identifier) "p_mcb_ptr" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return (WSINVMCB);" (return) "return" (parenthesized_expression) "(WSINVMCB)" (() "(" (identifier) "WSINVMCB" ()) ")" (;) ";" (if_statement) "if ((sysid != WSIBMPC) && (sysid != WSMULTICS))\n return(WSINVSYS);" (if) "if" (parenthesized_expression) "((sysid != WSIBMPC) && (sysid != WSMULTICS))" (() "(" (binary_expression) "(sysid != WSIBMPC) && (sysid != WSMULTICS)" (parenthesized_expression) "(sysid != WSIBMPC)" (() "(" (binary_expression) "sysid != WSIBMPC" (identifier) "sysid" (!=) "!=" (identifier) "WSIBMPC" ()) ")" (&&) "&&" (parenthesized_expression) "(sysid != WSMULTICS)" (() "(" (binary_expression) "sysid != WSMULTICS" (identifier) "sysid" (!=) "!=" (identifier) "WSMULTICS" ()) ")" ()) ")" (return_statement) "return(WSINVSYS);" (return) "return" (parenthesized_expression) "(WSINVSYS)" (() "(" (identifier) "WSINVSYS" ()) ")" (;) ";" (if_statement) "if ((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))\n return(WSINVNUM);" (if) "if" (parenthesized_expression) "((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))" (() "(" (binary_expression) "(major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER)" (parenthesized_expression) "(major < WSMAJCAP)" (() "(" (binary_expression) "major < WSMAJCAP" (identifier) "major" (<) "<" (identifier) "WSMAJCAP" ()) ")" (&&) "&&" (parenthesized_expression) "(major > MAX_CAPABILITY_NUMBER)" (() "(" (binary_expression) "major > MAX_CAPABILITY_NUMBER" (identifier) "major" (>) ">" (identifier) "MAX_CAPABILITY_NUMBER" ()) ")" ()) ")" (return_statement) "return(WSINVNUM);" (return) "return" (parenthesized_expression) "(WSINVNUM)" (() "(" (identifier) "WSINVNUM" ()) ")" (;) ";" (if_statement) "if ((p_status != WSACCEPT) && (p_status != WSREJECT))\n return (WSINVCON);" (if) "if" (parenthesized_expression) "((p_status != WSACCEPT) && (p_status != WSREJECT))" (() "(" (binary_expression) "(p_status != WSACCEPT) && (p_status != WSREJECT)" (parenthesized_expression) "(p_status != WSACCEPT)" (() "(" (binary_expression) "p_status != WSACCEPT" (identifier) "p_status" (!=) "!=" (identifier) "WSACCEPT" ()) ")" (&&) "&&" (parenthesized_expression) "(p_status != WSREJECT)" (() "(" (binary_expression) "p_status != WSREJECT" (identifier) "p_status" (!=) "!=" (identifier) "WSREJECT" ()) ")" ()) ")" (return_statement) "return (WSINVCON);" (return) "return" (parenthesized_expression) "(WSINVCON)" (() "(" (identifier) "WSINVCON" ()) ")" (;) ";" (return_statement) "return (execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr));" (return) "return" (parenthesized_expression) "(execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr))" (() "(" (call_expression) "execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr)" (identifier) "execap" (argument_list) "(p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr)" (() "(" (identifier) "p_cap_num" (,) "," (identifier) "RESPONSE_CONNECT" (,) "," (pointer_expression) "&p_status" (&) "&" (identifier) "p_status" (,) "," (number_literal) "1" (,) "," (identifier) "p_mcb_ptr" ()) ")" ()) ")" (;) ";" (}) "}" (ERROR) "" (ERROR) ""
215
2
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 39.09, "nodes": 130, "errors": 0, "source_hash": "961129e3eb58fa84c71beaff5549594d8a90ebf1cfca07b33c052df46f76df30", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <ws.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<ws.h>", "parent": 3, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 15}}, {"id": 6, "type": "preproc_include", "text": "#include <wsmincap.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<wsmincap.h>", "parent": 6, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <ws_mcb.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<ws_mcb.h>", "parent": 9, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <ws_error.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<ws_error.h>", "parent": 12, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 21}}, {"id": 15, "type": "call_expression", "text": "conresp (p_status, p_cap_num, p_mcb_ptr)", "parent": null, "children": [16, 17], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 40}}, {"id": 16, "type": "identifier", "text": "conresp", "parent": 15, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 17, "type": "argument_list", "text": "(p_status, p_cap_num, p_mcb_ptr)", "parent": 15, "children": [18, 19, 20], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 40}}, {"id": 18, "type": "identifier", "text": "p_status", "parent": 17, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 17}}, {"id": 19, "type": "identifier", "text": "p_cap_num", "parent": 17, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 28}}, {"id": 20, "type": "identifier", "text": "p_mcb_ptr", "parent": 17, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 39}}, {"id": 21, "type": "declaration", "text": "int p_status;", "parent": null, "children": [22, 23], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 13}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 3}}, {"id": 23, "type": "identifier", "text": "p_status", "parent": 21, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 24, "type": "declaration", "text": "int p_cap_num;", "parent": null, "children": [25, 26], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 14}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 3}}, {"id": 26, "type": "identifier", "text": "p_cap_num", "parent": 24, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 27, "type": "declaration", "text": "mcb *p_mcb_ptr;", "parent": null, "children": [28, 29], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 15}}, {"id": 28, "type": "type_identifier", "text": "mcb", "parent": 27, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 3}}, {"id": 29, "type": "pointer_declarator", "text": "*p_mcb_ptr", "parent": 27, "children": [30, 31], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 14}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 31, "type": "identifier", "text": "p_mcb_ptr", "parent": 29, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 14}}, {"id": 32, "type": "declaration", "text": "int sysid;", "parent": null, "children": [33, 34], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 10}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 34, "type": "identifier", "text": "sysid", "parent": 32, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 9}}, {"id": 35, "type": "declaration", "text": "int major;", "parent": null, "children": [36, 37], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 10}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 3}}, {"id": 37, "type": "identifier", "text": "major", "parent": 35, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 9}}, {"id": 38, "type": "assignment_expression", "text": "sysid = ((p_cap_num & 0xff00) >> 8)", "parent": null, "children": [39, 40, 41], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 38}}, {"id": 39, "type": "identifier", "text": "sysid", "parent": 38, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 8}}, {"id": 40, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 41, "type": "parenthesized_expression", "text": "((p_cap_num & 0xff00) >> 8)", "parent": 38, "children": [42], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 38}}, {"id": 42, "type": "binary_expression", "text": "(p_cap_num & 0xff00) >> 8", "parent": 41, "children": [43, 47, 48], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 37}}, {"id": 43, "type": "parenthesized_expression", "text": "(p_cap_num & 0xff00)", "parent": 42, "children": [44], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 32}}, {"id": 44, "type": "binary_expression", "text": "p_cap_num & 0xff00", "parent": 43, "children": [45, 46], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 31}}, {"id": 45, "type": "identifier", "text": "p_cap_num", "parent": 44, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 22}}, {"id": 46, "type": "number_literal", "text": "0xff00", "parent": 44, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 31}}, {"id": 47, "type": ">>", "text": ">>", "parent": 42, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 35}}, {"id": 48, "type": "number_literal", "text": "8", "parent": 42, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 37}}, {"id": 49, "type": "assignment_expression", "text": "major = (p_cap_num & 0xff)", "parent": null, "children": [50, 51, 52], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 29}}, {"id": 50, "type": "identifier", "text": "major", "parent": 49, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 8}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 10}}, {"id": 52, "type": "parenthesized_expression", "text": "(p_cap_num & 0xff)", "parent": 49, "children": [53], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 29}}, {"id": 53, "type": "binary_expression", "text": "p_cap_num & 0xff", "parent": 52, "children": [54, 55], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 28}}, {"id": 54, "type": "identifier", "text": "p_cap_num", "parent": 53, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 21}}, {"id": 55, "type": "number_literal", "text": "0xff", "parent": 53, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 28}}, {"id": 56, "type": "if_statement", "text": "if (p_mcb_ptr == NULL)\n return (WSINVMCB);", "parent": null, "children": [57, 63], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 42, "column": 24}}, {"id": 57, "type": "parenthesized_expression", "text": "(p_mcb_ptr == NULL)", "parent": 56, "children": [58], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 25}}, {"id": 58, "type": "binary_expression", "text": "p_mcb_ptr == NULL", "parent": 57, "children": [59, 60, 61], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 24}}, {"id": 59, "type": "identifier", "text": "p_mcb_ptr", "parent": 58, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 16}}, {"id": 60, "type": "==", "text": "==", "parent": 58, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 61, "type": "null", "text": "NULL", "parent": 58, "children": [62], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 24}}, {"id": 62, "type": "NULL", "text": "NULL", "parent": 61, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 24}}, {"id": 63, "type": "return_statement", "text": "return (WSINVMCB);", "parent": 56, "children": [64], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 24}}, {"id": 64, "type": "parenthesized_expression", "text": "(WSINVMCB)", "parent": 63, "children": [65], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 23}}, {"id": 65, "type": "identifier", "text": "WSINVMCB", "parent": 64, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 22}}, {"id": 66, "type": "if_statement", "text": "if ((sysid != WSIBMPC) && (sysid != WSMULTICS))\n return(WSINVSYS);", "parent": null, "children": [67, 80], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 45, "column": 23}}, {"id": 67, "type": "parenthesized_expression", "text": "((sysid != WSIBMPC) && (sysid != WSMULTICS))", "parent": 66, "children": [68], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 50}}, {"id": 68, "type": "binary_expression", "text": "(sysid != WSIBMPC) && (sysid != WSMULTICS)", "parent": 67, "children": [69, 74, 75], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 49}}, {"id": 69, "type": "parenthesized_expression", "text": "(sysid != WSIBMPC)", "parent": 68, "children": [70], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 25}}, {"id": 70, "type": "binary_expression", "text": "sysid != WSIBMPC", "parent": 69, "children": [71, 72, 73], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 24}}, {"id": 71, "type": "identifier", "text": "sysid", "parent": 70, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 13}}, {"id": 72, "type": "!=", "text": "!=", "parent": 70, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 16}}, {"id": 73, "type": "identifier", "text": "WSIBMPC", "parent": 70, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 24}}, {"id": 74, "type": "&&", "text": "&&", "parent": 68, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 28}}, {"id": 75, "type": "parenthesized_expression", "text": "(sysid != WSMULTICS)", "parent": 68, "children": [76], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 49}}, {"id": 76, "type": "binary_expression", "text": "sysid != WSMULTICS", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 48}}, {"id": 77, "type": "identifier", "text": "sysid", "parent": 76, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 35}}, {"id": 78, "type": "!=", "text": "!=", "parent": 76, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 38}}, {"id": 79, "type": "identifier", "text": "WSMULTICS", "parent": 76, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 48}}, {"id": 80, "type": "return_statement", "text": "return(WSINVSYS);", "parent": 66, "children": [81], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 23}}, {"id": 81, "type": "parenthesized_expression", "text": "(WSINVSYS)", "parent": 80, "children": [82], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 22}}, {"id": 82, "type": "identifier", "text": "WSINVSYS", "parent": 81, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 21}}, {"id": 83, "type": "if_statement", "text": "if ((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))\n return(WSINVNUM);", "parent": null, "children": [84, 97], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 48, "column": 23}}, {"id": 84, "type": "parenthesized_expression", "text": "((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))", "parent": 83, "children": [85], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 61}}, {"id": 85, "type": "binary_expression", "text": "(major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER)", "parent": 84, "children": [86, 91, 92], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 60}}, {"id": 86, "type": "parenthesized_expression", "text": "(major < WSMAJCAP)", "parent": 85, "children": [87], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 25}}, {"id": 87, "type": "binary_expression", "text": "major < WSMAJCAP", "parent": 86, "children": [88, 89, 90], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 24}}, {"id": 88, "type": "identifier", "text": "major", "parent": 87, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 13}}, {"id": 89, "type": "<", "text": "<", "parent": 87, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 90, "type": "identifier", "text": "WSMAJCAP", "parent": 87, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 24}}, {"id": 91, "type": "&&", "text": "&&", "parent": 85, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 28}}, {"id": 92, "type": "parenthesized_expression", "text": "(major > MAX_CAPABILITY_NUMBER)", "parent": 85, "children": [93], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 60}}, {"id": 93, "type": "binary_expression", "text": "major > MAX_CAPABILITY_NUMBER", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 59}}, {"id": 94, "type": "identifier", "text": "major", "parent": 93, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 35}}, {"id": 95, "type": ">", "text": ">", "parent": 93, "children": [], "start_point": {"row": 47, "column": 36}, "end_point": {"row": 47, "column": 37}}, {"id": 96, "type": "identifier", "text": "MAX_CAPABILITY_NUMBER", "parent": 93, "children": [], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 59}}, {"id": 97, "type": "return_statement", "text": "return(WSINVNUM);", "parent": 83, "children": [98], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 23}}, {"id": 98, "type": "parenthesized_expression", "text": "(WSINVNUM)", "parent": 97, "children": [99], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 22}}, {"id": 99, "type": "identifier", "text": "WSINVNUM", "parent": 98, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 21}}, {"id": 100, "type": "if_statement", "text": "if ((p_status != WSACCEPT) && (p_status != WSREJECT))\n return (WSINVCON);", "parent": null, "children": [101, 114], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 51, "column": 24}}, {"id": 101, "type": "parenthesized_expression", "text": "((p_status != WSACCEPT) && (p_status != WSREJECT))", "parent": 100, "children": [102], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 56}}, {"id": 102, "type": "binary_expression", "text": "(p_status != WSACCEPT) && (p_status != WSREJECT)", "parent": 101, "children": [103, 108, 109], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 55}}, {"id": 103, "type": "parenthesized_expression", "text": "(p_status != WSACCEPT)", "parent": 102, "children": [104], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 29}}, {"id": 104, "type": "binary_expression", "text": "p_status != WSACCEPT", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 28}}, {"id": 105, "type": "identifier", "text": "p_status", "parent": 104, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 16}}, {"id": 106, "type": "!=", "text": "!=", "parent": 104, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 19}}, {"id": 107, "type": "identifier", "text": "WSACCEPT", "parent": 104, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 28}}, {"id": 108, "type": "&&", "text": "&&", "parent": 102, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 32}}, {"id": 109, "type": "parenthesized_expression", "text": "(p_status != WSREJECT)", "parent": 102, "children": [110], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 55}}, {"id": 110, "type": "binary_expression", "text": "p_status != WSREJECT", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 54}}, {"id": 111, "type": "identifier", "text": "p_status", "parent": 110, "children": [], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 42}}, {"id": 112, "type": "!=", "text": "!=", "parent": 110, "children": [], "start_point": {"row": 50, "column": 43}, "end_point": {"row": 50, "column": 45}}, {"id": 113, "type": "identifier", "text": "WSREJECT", "parent": 110, "children": [], "start_point": {"row": 50, "column": 46}, "end_point": {"row": 50, "column": 54}}, {"id": 114, "type": "return_statement", "text": "return (WSINVCON);", "parent": 100, "children": [115], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 24}}, {"id": 115, "type": "parenthesized_expression", "text": "(WSINVCON)", "parent": 114, "children": [116], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 23}}, {"id": 116, "type": "identifier", "text": "WSINVCON", "parent": 115, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 22}}, {"id": 117, "type": "return_statement", "text": "return (execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr));", "parent": null, "children": [118], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 74}}, {"id": 118, "type": "parenthesized_expression", "text": "(execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr))", "parent": 117, "children": [119], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 73}}, {"id": 119, "type": "call_expression", "text": "execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr)", "parent": 118, "children": [120, 121], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 72}}, {"id": 120, "type": "identifier", "text": "execap", "parent": 119, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 17}}, {"id": 121, "type": "argument_list", "text": "(p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr)", "parent": 119, "children": [122, 123, 124, 126, 127], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 72}}, {"id": 122, "type": "identifier", "text": "p_cap_num", "parent": 121, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 28}}, {"id": 123, "type": "identifier", "text": "RESPONSE_CONNECT", "parent": 121, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 46}}, {"id": 124, "type": "pointer_expression", "text": "&p_status", "parent": 121, "children": [125], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 57}}, {"id": 125, "type": "identifier", "text": "p_status", "parent": 124, "children": [], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 57}}, {"id": 126, "type": "number_literal", "text": "1", "parent": 121, "children": [], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 60}}, {"id": 127, "type": "identifier", "text": "p_mcb_ptr", "parent": 121, "children": [], "start_point": {"row": 53, "column": 62}, "end_point": {"row": 53, "column": 71}}, {"id": 128, "type": "ERROR", "text": "\u001a", "parent": null, "children": [129], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 129, "type": "ERROR", "text": "\u001a", "parent": 128, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [21, 24, 27, 32, 35], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [15, 41, 42, 43, 44, 52, 53, 57, 58, 64, 67, 68, 69, 70, 75, 76, 81, 84, 85, 86, 87, 92, 93, 98, 101, 102, 103, 104, 109, 110, 115, 118, 119, 124], "assignments": [38, 49], "loops": [], "conditionals": [16, 18, 19, 20, 23, 26, 28, 31, 34, 37, 39, 45, 50, 54, 56, 59, 65, 66, 71, 73, 77, 79, 82, 83, 88, 90, 94, 96, 99, 100, 105, 107, 111, 113, 116, 120, 122, 123, 125, 127], "returns": [63, 80, 97, 114, 117], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 46, 48, 55, 126], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <ws.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <wsmincap.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <ws_mcb.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <ws_error.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/* ***********************************************************\n * *\n * Copyright, (C) Honeywell Bull Inc., 1987 *\n * *\n * Copyright, (C) Honeywell Information Systems Inc., 1986 *\n * *\n *********************************************************** */\n\n/* HISTORY COMMENTS:\n 1) change(86-07-06,Westcott), approve(87-07-13,MCR7580),\n audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072):\n Created.\n END HISTORY COMMENTS */\n\n/* : PROCEDURE FUNCTION (conresp)\n\nSends a \"CONNECT_REPONSE\" minor capability message to the addressed major \ncapability. This message is used by the major capability to either accept \nor reject a requested connection.\n*/\n\n#include <stdio.h>\n#include <ws.h>\n#include <wsmincap.h>\n#include <ws_mcb.h>\n#include <ws_error.h>\n\nconresp (p_status, p_cap_num, p_mcb_ptr)\n\nint p_status; /* WSACCEPT or WSREJECT */\nint p_cap_num; /* Capability number to respond to */\nmcb *p_mcb_ptr; /* MCB of caller */\n{\nint sysid;\nint major;\n\n/* : call execap to send message to application */\n\n sysid = ((p_cap_num & 0xff00) >> 8);\n major = (p_cap_num & 0xff);\n\n if (p_mcb_ptr == NULL)\n return (WSINVMCB);\n\n if ((sysid != WSIBMPC) && (sysid != WSMULTICS))\n return(WSINVSYS);\n\n if ((major < WSMAJCAP) && (major > MAX_CAPABILITY_NUMBER))\n return(WSINVNUM);\n\n if ((p_status != WSACCEPT) && (p_status != WSREJECT))\n return (WSINVCON);\n \n return (execap (p_cap_num, RESPONSE_CONNECT, &p_status, 1, p_mcb_ptr));\n}\n\u001a"}
80,869
c
#pragma once #include "UrlManager.h" #include "WinPCap.h" #include "../../../wptdriver/ipfw.h" #define MSG_UPDATE_UI (WM_APP + 1) #define MSG_CONTINUE_STARTUP (WM_APP + 2) class CurlBlastDlg; class CSpeed { public: CSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;} CSpeed(const CSpeed& src){*this = src;} ~CSpeed(void){} const CSpeed & operator =(const CSpeed& src) { connType = src.connType; addr.S_un.S_addr = src.addr.S_un.S_addr; mask.S_un.S_addr = src.mask.S_un.S_addr; return src; } DWORD connType; IN_ADDR addr; IN_ADDR mask; }; class CURLBlaster { public: CURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef); ~CURLBlaster(void); bool Start(int userIndex); void Stop(void); CString userName; void ThreadProc(void); HANDLE hThread; HANDLE hMustExit; HANDLE hLogonToken; HANDLE hProfile; CString password; CString accountBase; int index; DWORD count; HWND hDlg; CIpfw &ipfw; CString errorLog; CUrlManager * urlManager; DWORD timeout; CRect pos; CRect desktop; CString customEventText; CTestInfo info; CString preLaunch; CString postLaunch; CString dynaTrace; CString dynaTraceSessions; DWORD pipeIn; DWORD pipeOut; DWORD useBitBlt; int keepDNS; CRITICAL_SECTION cs; DWORD browserPID; PSID userSID; protected: bool DoUserLogon(void); void ClearCache(void); bool LaunchBrowser(void); bool GetUrl(void); void ConfigurePagetest(void); bool ConfigureIE(void); void CloneIESettings(void); void CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey); void EncodeVideo(void); bool ConfigureIpfw(); void ResetIpfw(); void KillProcs(); void FlushDNS(); CLog &log; bool cached; CString eventName; HANDLE hDynaTrace; CWinPCap winpcap; HANDLE &testingMutex; CString heartbeatEventName; HANDLE heartbeatEvent; CurlBlastDlg &dlg; // directories CString profile; CString cookies; CString history; CString tempFiles; CString tempDir; CString silverlight; CString recovery; CString flash; CString domStorage; CString desktopPath; CString windir; CString webCache; bool Launch(CString cmd, HANDLE * phProc = NULL); void LaunchDynaTrace(); void CloseDynaTrace(); int ZipDir(CString dir, CString dest, CString depth, zipFile file); };
20.32
113
(translation_unit) "#pragma once \n#include "UrlManager.h" \n#include "WinPCap.h" \n#include "../../../wptdriver/ipfw.h" \n \n#define MSG_UPDATE_UI (WM_APP + 1) \n#define MSG_CONTINUE_STARTUP (WM_APP + 2) \n \nclass CurlBlastDlg; \n \nclass CSpeed \n{ \npublic: \n CSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;} \n CSpeed(const CSpeed& src){*this = src;} \n ~CSpeed(void){} \n const CSpeed & operator =(const CSpeed& src) \n { \n connType = src.connType; \n addr.S_un.S_addr = src.addr.S_un.S_addr; \n mask.S_un.S_addr = src.mask.S_un.S_addr; \n \n return src; \n } \n \n DWORD connType; \n IN_ADDR addr; \n IN_ADDR mask; \n}; \n \nclass CURLBlaster \n{ \npublic: \n CURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef); \n ~CURLBlaster(void); \n bool Start(int userIndex); \n void Stop(void); \n CString userName; \n void ThreadProc(void); \n HANDLE hThread; \n HANDLE hMustExit; \n HANDLE hLogonToken; \n HANDLE hProfile; \n CString password; \n CString accountBase; \n int index; \n DWORD count; \n HWND hDlg; \n CIpfw &ipfw; \n \n CString errorLog; \n CUrlManager * urlManager; \n DWORD timeout; \n CRect pos; \n CRect desktop; \n CString customEventText; \n CTestInfo info; \n CString preLaunch; \n CString postLaunch; \n CString dynaTrace; \n CString dynaTraceSessions; \n DWORD pipeIn; \n DWORD pipeOut; \n DWORD useBitBlt; \n int keepDNS; \n \n CRITICAL_SECTION cs; \n DWORD browserPID; \n PSID userSID; \n \nprotected: \n bool DoUserLogon(void); \n void ClearCache(void); \n bool LaunchBrowser(void); \n bool GetUrl(void); \n void ConfigurePagetest(void); \n bool ConfigureIE(void); \n void CloneIESettings(void); \n void CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey); \n void EncodeVideo(void); \n bool ConfigureIpfw(); \n void ResetIpfw(); \n void KillProcs(); \n void FlushDNS(); \n CLog &log; \n bool cached; \n CString eventName; \n HANDLE hDynaTrace; \n CWinPCap winpcap; \n HANDLE &testingMutex; \n CString heartbeatEventName; \n HANDLE heartbeatEvent; \n CurlBlastDlg &dlg; \n \n // directories \n CString profile; \n CString cookies; \n CString history; \n CString tempFiles; \n CString tempDir; \n CString silverlight; \n CString recovery; \n CString flash; \n CString domStorage; \n CString desktopPath; \n CString windir; \n CString webCache; \n \n bool Launch(CString cmd, HANDLE * phProc = NULL); \n void LaunchDynaTrace(); \n void CloseDynaTrace(); \n int ZipDir(CString dir, CString dest, CString depth, zipFile file); \n}; \n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (preproc_include) "#include "UrlManager.h" \n" (#include) "#include" (string_literal) ""UrlManager.h"" (") """ (string_content) "UrlManager.h" (") """ (preproc_include) "#include "WinPCap.h" \n" (#include) "#include" (string_literal) ""WinPCap.h"" (") """ (string_content) "WinPCap.h" (") """ (preproc_include) "#include "../../../wptdriver/ipfw.h" \n" (#include) "#include" (string_literal) ""../../../wptdriver/ipfw.h"" (") """ (string_content) "../../../wptdriver/ipfw.h" (") """ (preproc_def) "#define MSG_UPDATE_UI (WM_APP + 1) \n" (#define) "#define" (identifier) "MSG_UPDATE_UI" (preproc_arg) "(WM_APP + 1) " (preproc_def) "#define MSG_CONTINUE_STARTUP (WM_APP + 2) \n" (#define) "#define" (identifier) "MSG_CONTINUE_STARTUP" (preproc_arg) "(WM_APP + 2) " (declaration) "class CurlBlastDlg;" (type_identifier) "class" (identifier) "CurlBlastDlg" (;) ";" (function_definition) "class CSpeed \n{ \npublic: \n CSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;} \n CSpeed(const CSpeed& src){*this = src;}" (type_identifier) "class" (identifier) "CSpeed" (compound_statement) "{ \npublic: \n CSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;} \n CSpeed(const CSpeed& src){*this = src;}" ({) "{" (labeled_statement) "public: \n CSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;}" (statement_identifier) "public" (:) ":" (ERROR) "CSpeed():connType(0)" (call_expression) "CSpeed()" (identifier) "CSpeed" (argument_list) "()" (() "(" ()) ")" (:) ":" (call_expression) "connType(0)" (identifier) "connType" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (compound_statement) "{addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;}" ({) "{" (expression_statement) "addr.S_un.S_addr = 0;" (assignment_expression) "addr.S_un.S_addr = 0" (field_expression) "addr.S_un.S_addr" (field_expression) "addr.S_un" (identifier) "addr" (.) "." (field_identifier) "S_un" (.) "." (field_identifier) "S_addr" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "mask.S_un.S_addr = 0;" (assignment_expression) "mask.S_un.S_addr = 0" (field_expression) "mask.S_un.S_addr" (field_expression) "mask.S_un" (identifier) "mask" (.) "." (field_identifier) "S_un" (.) "." (field_identifier) "S_addr" (=) "=" (number_literal) "0" (;) ";" (}) "}" (declaration) "CSpeed(const CSpeed& src){*this = src;" (macro_type_specifier) "CSpeed(const CSpeed& src)" (identifier) "CSpeed" (() "(" (type_descriptor) "const CSpeed" (type_qualifier) "const" (const) "const" (type_identifier) "CSpeed" (ERROR) "& src" (&) "&" (identifier) "src" ()) ")" (ERROR) "{" ({) "{" (init_declarator) "*this = src" (pointer_declarator) "*this" (*) "*" (identifier) "this" (=) "=" (identifier) "src" (;) ";" (}) "}" (expression_statement) "~CSpeed(void)" (unary_expression) "~CSpeed(void)" (~) "~" (call_expression) "CSpeed(void)" (identifier) "CSpeed" (argument_list) "(void)" (() "(" (identifier) "void" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (declaration) "const CSpeed & operator =(const CSpeed& src)" (type_qualifier) "const" (const) "const" (type_identifier) "CSpeed" (ERROR) "&" (&) "&" (init_declarator) "operator =(const CSpeed& src)" (identifier) "operator" (=) "=" (parenthesized_expression) "(const CSpeed& src)" (() "(" (ERROR) "const CSpeed" (type_descriptor) "const CSpeed" (type_qualifier) "const" (const) "const" (type_identifier) "CSpeed" (pointer_expression) "& src" (&) "&" (identifier) "src" ()) ")" (;) "" (compound_statement) "{ \n connType = src.connType; \n addr.S_un.S_addr = src.addr.S_un.S_addr; \n mask.S_un.S_addr = src.mask.S_un.S_addr; \n \n return src; \n }" ({) "{" (expression_statement) "connType = src.connType;" (assignment_expression) "connType = src.connType" (identifier) "connType" (=) "=" (field_expression) "src.connType" (identifier) "src" (.) "." (field_identifier) "connType" (;) ";" (expression_statement) "addr.S_un.S_addr = src.addr.S_un.S_addr;" (assignment_expression) "addr.S_un.S_addr = src.addr.S_un.S_addr" (field_expression) "addr.S_un.S_addr" (field_expression) "addr.S_un" (identifier) "addr" (.) "." (field_identifier) "S_un" (.) "." (field_identifier) "S_addr" (=) "=" (field_expression) "src.addr.S_un.S_addr" (field_expression) "src.addr.S_un" (field_expression) "src.addr" (identifier) "src" (.) "." (field_identifier) "addr" (.) "." (field_identifier) "S_un" (.) "." (field_identifier) "S_addr" (;) ";" (expression_statement) "mask.S_un.S_addr = src.mask.S_un.S_addr;" (assignment_expression) "mask.S_un.S_addr = src.mask.S_un.S_addr" (field_expression) "mask.S_un.S_addr" (field_expression) "mask.S_un" (identifier) "mask" (.) "." (field_identifier) "S_un" (.) "." (field_identifier) "S_addr" (=) "=" (field_expression) "src.mask.S_un.S_addr" (field_expression) "src.mask.S_un" (field_expression) "src.mask" (identifier) "src" (.) "." (field_identifier) "mask" (.) "." (field_identifier) "S_un" (.) "." (field_identifier) "S_addr" (;) ";" (return_statement) "return src;" (return) "return" (identifier) "src" (;) ";" (}) "}" (declaration) "DWORD connType;" (type_identifier) "DWORD" (identifier) "connType" (;) ";" (declaration) "IN_ADDR addr;" (type_identifier) "IN_ADDR" (identifier) "addr" (;) ";" (declaration) "IN_ADDR mask;" (type_identifier) "IN_ADDR" (identifier) "mask" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class CURLBlaster \n{ \npublic: \n CURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef); \n ~CURLBlaster(void); \n bool Start(int userIndex); \n void Stop(void); \n CString userName; \n void ThreadProc(void); \n HANDLE hThread; \n HANDLE hMustExit; \n HANDLE hLogonToken; \n HANDLE hProfile; \n CString password; \n CString accountBase; \n int index; \n DWORD count; \n HWND hDlg; \n CIpfw &ipfw; \n \n CString errorLog; \n CUrlManager * urlManager; \n DWORD timeout; \n CRect pos; \n CRect desktop; \n CString customEventText; \n CTestInfo info; \n CString preLaunch; \n CString postLaunch; \n CString dynaTrace; \n CString dynaTraceSessions; \n DWORD pipeIn; \n DWORD pipeOut; \n DWORD useBitBlt; \n int keepDNS; \n \n CRITICAL_SECTION cs; \n DWORD browserPID; \n PSID userSID; \n \nprotected: \n bool DoUserLogon(void); \n void ClearCache(void); \n bool LaunchBrowser(void); \n bool GetUrl(void); \n void ConfigurePagetest(void); \n bool ConfigureIE(void); \n void CloneIESettings(void); \n void CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey); \n void EncodeVideo(void); \n bool ConfigureIpfw(); \n void ResetIpfw(); \n void KillProcs(); \n void FlushDNS(); \n CLog &log; \n bool cached; \n CString eventName; \n HANDLE hDynaTrace; \n CWinPCap winpcap; \n HANDLE &testingMutex; \n CString heartbeatEventName; \n HANDLE heartbeatEvent; \n CurlBlastDlg &dlg; \n \n // directories \n CString profile; \n CString cookies; \n CString history; \n CString tempFiles; \n CString tempDir; \n CString silverlight; \n CString recovery; \n CString flash; \n CString domStorage; \n CString desktopPath; \n CString windir; \n CString webCache; \n \n bool Launch(CString cmd, HANDLE * phProc = NULL); \n void LaunchDynaTrace(); \n void CloseDynaTrace(); \n int ZipDir(CString dir, CString dest, CString depth, zipFile file); \n}" (type_identifier) "class" (identifier) "CURLBlaster" (compound_statement) "{ \npublic: \n CURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef); \n ~CURLBlaster(void); \n bool Start(int userIndex); \n void Stop(void); \n CString userName; \n void ThreadProc(void); \n HANDLE hThread; \n HANDLE hMustExit; \n HANDLE hLogonToken; \n HANDLE hProfile; \n CString password; \n CString accountBase; \n int index; \n DWORD count; \n HWND hDlg; \n CIpfw &ipfw; \n \n CString errorLog; \n CUrlManager * urlManager; \n DWORD timeout; \n CRect pos; \n CRect desktop; \n CString customEventText; \n CTestInfo info; \n CString preLaunch; \n CString postLaunch; \n CString dynaTrace; \n CString dynaTraceSessions; \n DWORD pipeIn; \n DWORD pipeOut; \n DWORD useBitBlt; \n int keepDNS; \n \n CRITICAL_SECTION cs; \n DWORD browserPID; \n PSID userSID; \n \nprotected: \n bool DoUserLogon(void); \n void ClearCache(void); \n bool LaunchBrowser(void); \n bool GetUrl(void); \n void ConfigurePagetest(void); \n bool ConfigureIE(void); \n void CloneIESettings(void); \n void CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey); \n void EncodeVideo(void); \n bool ConfigureIpfw(); \n void ResetIpfw(); \n void KillProcs(); \n void FlushDNS(); \n CLog &log; \n bool cached; \n CString eventName; \n HANDLE hDynaTrace; \n CWinPCap winpcap; \n HANDLE &testingMutex; \n CString heartbeatEventName; \n HANDLE heartbeatEvent; \n CurlBlastDlg &dlg; \n \n // directories \n CString profile; \n CString cookies; \n CString history; \n CString tempFiles; \n CString tempDir; \n CString silverlight; \n CString recovery; \n CString flash; \n CString domStorage; \n CString desktopPath; \n CString windir; \n CString webCache; \n \n bool Launch(CString cmd, HANDLE * phProc = NULL); \n void LaunchDynaTrace(); \n void CloseDynaTrace(); \n int ZipDir(CString dir, CString dest, CString depth, zipFile file); \n}" ({) "{" (labeled_statement) "public: \n CURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef);" (statement_identifier) "public" (:) ":" (ERROR) "CURLBlaster(HWND hWnd, CLog" (macro_type_specifier) "CURLBlaster(HWND" (identifier) "CURLBlaster" (() "(" (type_descriptor) "HWND" (type_identifier) "HWND" ()) "" (identifier) "hWnd" (,) "," (identifier) "CLog" (expression_statement) "&logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef);" (comma_expression) "&logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef" (pointer_expression) "&logRef" (&) "&" (identifier) "logRef" (,) "," (comma_expression) "CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef" (binary_expression) "CIpfw &ipfwRef" (identifier) "CIpfw" (&) "&" (identifier) "ipfwRef" (,) "," (comma_expression) "HANDLE &testingMutexRef, CurlBlastDlg &dlgRef" (binary_expression) "HANDLE &testingMutexRef" (identifier) "HANDLE" (&) "&" (identifier) "testingMutexRef" (,) "," (binary_expression) "CurlBlastDlg &dlgRef" (identifier) "CurlBlastDlg" (&) "&" (identifier) "dlgRef" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "~CURLBlaster(void);" (unary_expression) "~CURLBlaster(void)" (~) "~" (call_expression) "CURLBlaster(void)" (identifier) "CURLBlaster" (argument_list) "(void)" (() "(" (identifier) "void" ()) ")" (;) ";" (declaration) "bool Start(int userIndex);" (primitive_type) "bool" (function_declarator) "Start(int userIndex)" (identifier) "Start" (parameter_list) "(int userIndex)" (() "(" (parameter_declaration) "int userIndex" (primitive_type) "int" (identifier) "userIndex" ()) ")" (;) ";" (declaration) "void Stop(void);" (primitive_type) "void" (function_declarator) "Stop(void)" (identifier) "Stop" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "CString userName;" (type_identifier) "CString" (identifier) "userName" (;) ";" (declaration) "void ThreadProc(void);" (primitive_type) "void" (function_declarator) "ThreadProc(void)" (identifier) "ThreadProc" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "HANDLE hThread;" (type_identifier) "HANDLE" (identifier) "hThread" (;) ";" (declaration) "HANDLE hMustExit;" (type_identifier) "HANDLE" (identifier) "hMustExit" (;) ";" (declaration) "HANDLE hLogonToken;" (type_identifier) "HANDLE" (identifier) "hLogonToken" (;) ";" (declaration) "HANDLE hProfile;" (type_identifier) "HANDLE" (identifier) "hProfile" (;) ";" (declaration) "CString password;" (type_identifier) "CString" (identifier) "password" (;) ";" (declaration) "CString accountBase;" (type_identifier) "CString" (identifier) "accountBase" (;) ";" (declaration) "int index;" (primitive_type) "int" (identifier) "index" (;) ";" (declaration) "DWORD count;" (type_identifier) "DWORD" (identifier) "count" (;) ";" (declaration) "HWND hDlg;" (type_identifier) "HWND" (identifier) "hDlg" (;) ";" (expression_statement) "CIpfw &ipfw;" (binary_expression) "CIpfw &ipfw" (identifier) "CIpfw" (&) "&" (identifier) "ipfw" (;) ";" (declaration) "CString errorLog;" (type_identifier) "CString" (identifier) "errorLog" (;) ";" (declaration) "CUrlManager * urlManager;" (type_identifier) "CUrlManager" (pointer_declarator) "* urlManager" (*) "*" (identifier) "urlManager" (;) ";" (declaration) "DWORD timeout;" (type_identifier) "DWORD" (identifier) "timeout" (;) ";" (declaration) "CRect pos;" (type_identifier) "CRect" (identifier) "pos" (;) ";" (declaration) "CRect desktop;" (type_identifier) "CRect" (identifier) "desktop" (;) ";" (declaration) "CString customEventText;" (type_identifier) "CString" (identifier) "customEventText" (;) ";" (declaration) "CTestInfo info;" (type_identifier) "CTestInfo" (identifier) "info" (;) ";" (declaration) "CString preLaunch;" (type_identifier) "CString" (identifier) "preLaunch" (;) ";" (declaration) "CString postLaunch;" (type_identifier) "CString" (identifier) "postLaunch" (;) ";" (declaration) "CString dynaTrace;" (type_identifier) "CString" (identifier) "dynaTrace" (;) ";" (declaration) "CString dynaTraceSessions;" (type_identifier) "CString" (identifier) "dynaTraceSessions" (;) ";" (declaration) "DWORD pipeIn;" (type_identifier) "DWORD" (identifier) "pipeIn" (;) ";" (declaration) "DWORD pipeOut;" (type_identifier) "DWORD" (identifier) "pipeOut" (;) ";" (declaration) "DWORD useBitBlt;" (type_identifier) "DWORD" (identifier) "useBitBlt" (;) ";" (declaration) "int keepDNS;" (primitive_type) "int" (identifier) "keepDNS" (;) ";" (declaration) "CRITICAL_SECTION cs;" (type_identifier) "CRITICAL_SECTION" (identifier) "cs" (;) ";" (declaration) "DWORD browserPID;" (type_identifier) "DWORD" (identifier) "browserPID" (;) ";" (declaration) "PSID userSID;" (type_identifier) "PSID" (identifier) "userSID" (;) ";" (labeled_statement) "protected: \n bool DoUserLogon(void);" (statement_identifier) "protected" (:) ":" (declaration) "bool DoUserLogon(void);" (primitive_type) "bool" (function_declarator) "DoUserLogon(void)" (identifier) "DoUserLogon" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void ClearCache(void);" (primitive_type) "void" (function_declarator) "ClearCache(void)" (identifier) "ClearCache" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "bool LaunchBrowser(void);" (primitive_type) "bool" (function_declarator) "LaunchBrowser(void)" (identifier) "LaunchBrowser" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "bool GetUrl(void);" (primitive_type) "bool" (function_declarator) "GetUrl(void)" (identifier) "GetUrl" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void ConfigurePagetest(void);" (primitive_type) "void" (function_declarator) "ConfigurePagetest(void)" (identifier) "ConfigurePagetest" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "bool ConfigureIE(void);" (primitive_type) "bool" (function_declarator) "ConfigureIE(void)" (identifier) "ConfigureIE" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void CloneIESettings(void);" (primitive_type) "void" (function_declarator) "CloneIESettings(void)" (identifier) "CloneIESettings" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey);" (primitive_type) "void" (function_declarator) "CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey)" (identifier) "CloneRegKey" (parameter_list) "(HKEY hSrc, HKEY hDest, LPCTSTR subKey)" (() "(" (parameter_declaration) "HKEY hSrc" (type_identifier) "HKEY" (identifier) "hSrc" (,) "," (parameter_declaration) "HKEY hDest" (type_identifier) "HKEY" (identifier) "hDest" (,) "," (parameter_declaration) "LPCTSTR subKey" (type_identifier) "LPCTSTR" (identifier) "subKey" ()) ")" (;) ";" (declaration) "void EncodeVideo(void);" (primitive_type) "void" (function_declarator) "EncodeVideo(void)" (identifier) "EncodeVideo" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "bool ConfigureIpfw();" (primitive_type) "bool" (function_declarator) "ConfigureIpfw()" (identifier) "ConfigureIpfw" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void ResetIpfw();" (primitive_type) "void" (function_declarator) "ResetIpfw()" (identifier) "ResetIpfw" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void KillProcs();" (primitive_type) "void" (function_declarator) "KillProcs()" (identifier) "KillProcs" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void FlushDNS();" (primitive_type) "void" (function_declarator) "FlushDNS()" (identifier) "FlushDNS" (parameter_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "CLog &log;" (binary_expression) "CLog &log" (identifier) "CLog" (&) "&" (identifier) "log" (;) ";" (declaration) "bool cached;" (primitive_type) "bool" (identifier) "cached" (;) ";" (declaration) "CString eventName;" (type_identifier) "CString" (identifier) "eventName" (;) ";" (declaration) "HANDLE hDynaTrace;" (type_identifier) "HANDLE" (identifier) "hDynaTrace" (;) ";" (declaration) "CWinPCap winpcap;" (type_identifier) "CWinPCap" (identifier) "winpcap" (;) ";" (expression_statement) "HANDLE &testingMutex;" (binary_expression) "HANDLE &testingMutex" (identifier) "HANDLE" (&) "&" (identifier) "testingMutex" (;) ";" (declaration) "CString heartbeatEventName;" (type_identifier) "CString" (identifier) "heartbeatEventName" (;) ";" (declaration) "HANDLE heartbeatEvent;" (type_identifier) "HANDLE" (identifier) "heartbeatEvent" (;) ";" (expression_statement) "CurlBlastDlg &dlg;" (binary_expression) "CurlBlastDlg &dlg" (identifier) "CurlBlastDlg" (&) "&" (identifier) "dlg" (;) ";" (comment) "// directories " (declaration) "CString profile;" (type_identifier) "CString" (identifier) "profile" (;) ";" (declaration) "CString cookies;" (type_identifier) "CString" (identifier) "cookies" (;) ";" (declaration) "CString history;" (type_identifier) "CString" (identifier) "history" (;) ";" (declaration) "CString tempFiles;" (type_identifier) "CString" (identifier) "tempFiles" (;) ";" (declaration) "CString tempDir;" (type_identifier) "CString" (identifier) "tempDir" (;) ";" (declaration) "CString silverlight;" (type_identifier) "CString" (identifier) "silverlight" (;) ";" (declaration) "CString recovery;" (type_identifier) "CString" (identifier) "recovery" (;) ";" (declaration) "CString flash;" (type_identifier) "CString" (identifier) "flash" (;) ";" (declaration) "CString domStorage;" (type_identifier) "CString" (identifier) "domStorage" (;) ";" (declaration) "CString desktopPath;" (type_identifier) "CString" (identifier) "desktopPath" (;) ";" (declaration) "CString windir;" (type_identifier) "CString" (identifier) "windir" (;) ";" (declaration) "CString webCache;" (type_identifier) "CString" (identifier) "webCache" (;) ";" (declaration) "bool Launch(CString cmd, HANDLE * phProc = NULL);" (primitive_type) "bool" (init_declarator) "Launch(CString cmd, HANDLE * phProc = NULL" (function_declarator) "Launch(CString cmd, HANDLE * phProc" (identifier) "Launch" (parameter_list) "(CString cmd, HANDLE * phProc" (() "(" (parameter_declaration) "CString cmd" (type_identifier) "CString" (identifier) "cmd" (,) "," (parameter_declaration) "HANDLE * phProc" (type_identifier) "HANDLE" (pointer_declarator) "* phProc" (*) "*" (identifier) "phProc" ()) "" (=) "=" (null) "NULL" (NULL) "NULL" (ERROR) ")" ()) ")" (;) ";" (declaration) "void LaunchDynaTrace();" (primitive_type) "void" (function_declarator) "LaunchDynaTrace()" (identifier) "LaunchDynaTrace" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void CloseDynaTrace();" (primitive_type) "void" (function_declarator) "CloseDynaTrace()" (identifier) "CloseDynaTrace" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int ZipDir(CString dir, CString dest, CString depth, zipFile file);" (primitive_type) "int" (function_declarator) "ZipDir(CString dir, CString dest, CString depth, zipFile file)" (identifier) "ZipDir" (parameter_list) "(CString dir, CString dest, CString depth, zipFile file)" (() "(" (parameter_declaration) "CString dir" (type_identifier) "CString" (identifier) "dir" (,) "," (parameter_declaration) "CString dest" (type_identifier) "CString" (identifier) "dest" (,) "," (parameter_declaration) "CString depth" (type_identifier) "CString" (identifier) "depth" (,) "," (parameter_declaration) "zipFile file" (type_identifier) "zipFile" (identifier) "file" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
706
9
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 20.32, "nodes": 463, "errors": 0, "source_hash": "3908e37c1753849a78b47039c8003ff30d9967686e346db596dbd8ad19e9fbb2", "categorized_nodes": 366}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once\r", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 13}}, {"id": 3, "type": "preproc_include", "text": "#include \"UrlManager.h\"\r\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": "\"UrlManager.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 23}}, {"id": 6, "type": "preproc_include", "text": "#include \"WinPCap.h\"\r\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": "\"WinPCap.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"../../../wptdriver/ipfw.h\"\r\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": "\"../../../wptdriver/ipfw.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 36}}, {"id": 12, "type": "preproc_def", "text": "#define MSG_UPDATE_UI (WM_APP + 1)\r\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 14, "type": "identifier", "text": "MSG_UPDATE_UI", "parent": 12, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 21}}, {"id": 15, "type": "preproc_arg", "text": "(WM_APP + 1)\r", "parent": 12, "children": [], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 35}}, {"id": 16, "type": "preproc_def", "text": "#define MSG_CONTINUE_STARTUP (WM_APP + 2)\r\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 18, "type": "identifier", "text": "MSG_CONTINUE_STARTUP", "parent": 16, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 28}}, {"id": 19, "type": "preproc_arg", "text": "(WM_APP + 2)\r", "parent": 16, "children": [], "start_point": {"row": 6, "column": 29}, "end_point": {"row": 6, "column": 42}}, {"id": 20, "type": "declaration", "text": "class CurlBlastDlg;", "parent": null, "children": [21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 19}}, {"id": 21, "type": "identifier", "text": "CurlBlastDlg", "parent": 20, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 18}}, {"id": 22, "type": "function_definition", "text": "class CSpeed\r\n{\r\npublic:\r\n\tCSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;}\r\n\tCSpeed(const CSpeed& src){*this = src;}", "parent": null, "children": [23], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 40}}, {"id": 23, "type": "identifier", "text": "CSpeed", "parent": 22, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 24, "type": "labeled_statement", "text": "public:\r\n\tCSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;}", "parent": 22, "children": [25], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 66}}, {"id": 25, "type": "ERROR", "text": "CSpeed():connType(0)", "parent": 24, "children": [26, 29], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 21}}, {"id": 26, "type": "call_expression", "text": "CSpeed()", "parent": 25, "children": [27, 28], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 27, "type": "identifier", "text": "CSpeed", "parent": 26, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 7}}, {"id": 28, "type": "argument_list", "text": "()", "parent": 26, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 9}}, {"id": 29, "type": "call_expression", "text": "connType(0)", "parent": 25, "children": [30, 31], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 21}}, {"id": 30, "type": "identifier", "text": "connType", "parent": 29, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 18}}, {"id": 31, "type": "argument_list", "text": "(0)", "parent": 29, "children": [32], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 21}}, {"id": 32, "type": "number_literal", "text": "0", "parent": 31, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 20}}, {"id": 33, "type": "assignment_expression", "text": "addr.S_un.S_addr = 0", "parent": 24, "children": [34, 39, 40], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 42}}, {"id": 34, "type": "field_expression", "text": "addr.S_un.S_addr", "parent": 33, "children": [35, 38], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 38}}, {"id": 35, "type": "field_expression", "text": "addr.S_un", "parent": 34, "children": [36, 37], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 31}}, {"id": 36, "type": "identifier", "text": "addr", "parent": 35, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 26}}, {"id": 37, "type": "field_identifier", "text": "S_un", "parent": 35, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 31}}, {"id": 38, "type": "field_identifier", "text": "S_addr", "parent": 34, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 38}}, {"id": 39, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 40}}, {"id": 40, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 42}}, {"id": 41, "type": "assignment_expression", "text": "mask.S_un.S_addr = 0", "parent": 24, "children": [42, 47, 48], "start_point": {"row": 13, "column": 44}, "end_point": {"row": 13, "column": 64}}, {"id": 42, "type": "field_expression", "text": "mask.S_un.S_addr", "parent": 41, "children": [43, 46], "start_point": {"row": 13, "column": 44}, "end_point": {"row": 13, "column": 60}}, {"id": 43, "type": "field_expression", "text": "mask.S_un", "parent": 42, "children": [44, 45], "start_point": {"row": 13, "column": 44}, "end_point": {"row": 13, "column": 53}}, {"id": 44, "type": "identifier", "text": "mask", "parent": 43, "children": [], "start_point": {"row": 13, "column": 44}, "end_point": {"row": 13, "column": 48}}, {"id": 45, "type": "field_identifier", "text": "S_un", "parent": 43, "children": [], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 53}}, {"id": 46, "type": "field_identifier", "text": "S_addr", "parent": 42, "children": [], "start_point": {"row": 13, "column": 54}, "end_point": {"row": 13, "column": 60}}, {"id": 47, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 13, "column": 61}, "end_point": {"row": 13, "column": 62}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 41, "children": [], "start_point": {"row": 13, "column": 63}, "end_point": {"row": 13, "column": 64}}, {"id": 49, "type": "declaration", "text": "CSpeed(const CSpeed& src){*this = src;", "parent": 22, "children": [50, 56], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 39}}, {"id": 50, "type": "macro_type_specifier", "text": "CSpeed(const CSpeed& src)", "parent": 49, "children": [51, 52, 54], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 26}}, {"id": 51, "type": "identifier", "text": "CSpeed", "parent": 50, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 7}}, {"id": 52, "type": "type_descriptor", "text": "const CSpeed", "parent": 50, "children": [53], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 20}}, {"id": 53, "type": "type_identifier", "text": "CSpeed", "parent": 52, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 20}}, {"id": 54, "type": "ERROR", "text": "& src", "parent": 50, "children": [55], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 25}}, {"id": 55, "type": "identifier", "text": "src", "parent": 54, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 25}}, {"id": 56, "type": "init_declarator", "text": "*this = src", "parent": 49, "children": [57, 60, 61], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 38}}, {"id": 57, "type": "pointer_declarator", "text": "*this", "parent": 56, "children": [58, 59], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 32}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 28}}, {"id": 59, "type": "identifier", "text": "this", "parent": 57, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 32}}, {"id": 60, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 34}}, {"id": 61, "type": "identifier", "text": "src", "parent": 56, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 38}}, {"id": 62, "type": "unary_expression", "text": "~CSpeed(void)", "parent": null, "children": [63, 64], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 14}}, {"id": 63, "type": "~", "text": "~", "parent": 62, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 2}}, {"id": 64, "type": "call_expression", "text": "CSpeed(void)", "parent": 62, "children": [65, 66], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 14}}, {"id": 65, "type": "identifier", "text": "CSpeed", "parent": 64, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 66, "type": "argument_list", "text": "(void)", "parent": 64, "children": [67], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 14}}, {"id": 67, "type": "identifier", "text": "void", "parent": 66, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 13}}, {"id": 68, "type": "declaration", "text": "const CSpeed & operator =(const CSpeed& src)", "parent": null, "children": [69, 70], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 45}}, {"id": 69, "type": "type_identifier", "text": "CSpeed", "parent": 68, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 13}}, {"id": 70, "type": "init_declarator", "text": "operator =(const CSpeed& src)", "parent": 68, "children": [71, 72, 73], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 45}}, {"id": 71, "type": "identifier", "text": "operator", "parent": 70, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 24}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 26}}, {"id": 73, "type": "parenthesized_expression", "text": "(const CSpeed& src)", "parent": 70, "children": [74, 77], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 45}}, {"id": 74, "type": "ERROR", "text": "const CSpeed", "parent": 73, "children": [75], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 39}}, {"id": 75, "type": "type_descriptor", "text": "const CSpeed", "parent": 74, "children": [76], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 39}}, {"id": 76, "type": "type_identifier", "text": "CSpeed", "parent": 75, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 39}}, {"id": 77, "type": "pointer_expression", "text": "& src", "parent": 73, "children": [78], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 44}}, {"id": 78, "type": "identifier", "text": "src", "parent": 77, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 44}}, {"id": 79, "type": "assignment_expression", "text": "connType = src.connType", "parent": null, "children": [80, 81, 82], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 25}}, {"id": 80, "type": "identifier", "text": "connType", "parent": 79, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 10}}, {"id": 81, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 82, "type": "field_expression", "text": "src.connType", "parent": 79, "children": [83, 84], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 25}}, {"id": 83, "type": "identifier", "text": "src", "parent": 82, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 16}}, {"id": 84, "type": "field_identifier", "text": "connType", "parent": 82, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 25}}, {"id": 85, "type": "assignment_expression", "text": "addr.S_un.S_addr = src.addr.S_un.S_addr", "parent": null, "children": [86, 91, 92], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 41}}, {"id": 86, "type": "field_expression", "text": "addr.S_un.S_addr", "parent": 85, "children": [87, 90], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 18}}, {"id": 87, "type": "field_expression", "text": "addr.S_un", "parent": 86, "children": [88, 89], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 11}}, {"id": 88, "type": "identifier", "text": "addr", "parent": 87, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 6}}, {"id": 89, "type": "field_identifier", "text": "S_un", "parent": 87, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 11}}, {"id": 90, "type": "field_identifier", "text": "S_addr", "parent": 86, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 18}}, {"id": 91, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 20}}, {"id": 92, "type": "field_expression", "text": "src.addr.S_un.S_addr", "parent": 85, "children": [93, 98], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 41}}, {"id": 93, "type": "field_expression", "text": "src.addr.S_un", "parent": 92, "children": [94, 97], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 34}}, {"id": 94, "type": "field_expression", "text": "src.addr", "parent": 93, "children": [95, 96], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 29}}, {"id": 95, "type": "identifier", "text": "src", "parent": 94, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 24}}, {"id": 96, "type": "field_identifier", "text": "addr", "parent": 94, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 29}}, {"id": 97, "type": "field_identifier", "text": "S_un", "parent": 93, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 34}}, {"id": 98, "type": "field_identifier", "text": "S_addr", "parent": 92, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 41}}, {"id": 99, "type": "assignment_expression", "text": "mask.S_un.S_addr = src.mask.S_un.S_addr", "parent": null, "children": [100, 105, 106], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 41}}, {"id": 100, "type": "field_expression", "text": "mask.S_un.S_addr", "parent": 99, "children": [101, 104], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 18}}, {"id": 101, "type": "field_expression", "text": "mask.S_un", "parent": 100, "children": [102, 103], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 11}}, {"id": 102, "type": "identifier", "text": "mask", "parent": 101, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 6}}, {"id": 103, "type": "field_identifier", "text": "S_un", "parent": 101, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 11}}, {"id": 104, "type": "field_identifier", "text": "S_addr", "parent": 100, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 18}}, {"id": 105, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 106, "type": "field_expression", "text": "src.mask.S_un.S_addr", "parent": 99, "children": [107, 112], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 41}}, {"id": 107, "type": "field_expression", "text": "src.mask.S_un", "parent": 106, "children": [108, 111], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 34}}, {"id": 108, "type": "field_expression", "text": "src.mask", "parent": 107, "children": [109, 110], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 29}}, {"id": 109, "type": "identifier", "text": "src", "parent": 108, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 24}}, {"id": 110, "type": "field_identifier", "text": "mask", "parent": 108, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 29}}, {"id": 111, "type": "field_identifier", "text": "S_un", "parent": 107, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 34}}, {"id": 112, "type": "field_identifier", "text": "S_addr", "parent": 106, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 41}}, {"id": 113, "type": "return_statement", "text": "return src;", "parent": null, "children": [114], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 13}}, {"id": 114, "type": "identifier", "text": "src", "parent": 113, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 12}}, {"id": 115, "type": "declaration", "text": "DWORD\tconnType;", "parent": null, "children": [116, 117], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 16}}, {"id": 116, "type": "type_identifier", "text": "DWORD", "parent": 115, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 6}}, {"id": 117, "type": "identifier", "text": "connType", "parent": 115, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 15}}, {"id": 118, "type": "declaration", "text": "IN_ADDR\taddr;", "parent": null, "children": [119, 120], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 14}}, {"id": 119, "type": "type_identifier", "text": "IN_ADDR", "parent": 118, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 8}}, {"id": 120, "type": "identifier", "text": "addr", "parent": 118, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 13}}, {"id": 121, "type": "declaration", "text": "IN_ADDR\tmask;", "parent": null, "children": [122, 123], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 14}}, {"id": 122, "type": "type_identifier", "text": "IN_ADDR", "parent": 121, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 8}}, {"id": 123, "type": "identifier", "text": "mask", "parent": 121, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 13}}, {"id": 124, "type": "function_definition", "text": "class CURLBlaster\r\n{\r\npublic:\r\n\tCURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef);\r\n\t~CURLBlaster(void);\r\n\tbool Start(int userIndex);\r\n\tvoid Stop(void);\r\n\tCString userName;\r\n\tvoid ThreadProc(void);\r\n\tHANDLE hThread;\r\n\tHANDLE hMustExit;\r\n\tHANDLE hLogonToken;\r\n\tHANDLE hProfile;\r\n\tCString password;\r\n\tCString accountBase;\r\n\tint index;\r\n\tDWORD count;\r\n\tHWND hDlg;\r\n\tCIpfw &ipfw;\r\n\r\n\tCString errorLog;\r\n\tCUrlManager * urlManager;\r\n\tDWORD timeout;\r\n\tCRect pos;\r\n\tCRect\tdesktop;\r\n\tCString customEventText;\r\n\tCTestInfo info;\r\n\tCString preLaunch;\r\n\tCString postLaunch;\r\n\tCString dynaTrace;\r\n CString dynaTraceSessions;\r\n\tDWORD pipeIn;\r\n\tDWORD pipeOut;\r\n\tDWORD useBitBlt;\r\n int keepDNS;\r\n\t\r\n\tCRITICAL_SECTION cs;\r\n\tDWORD browserPID;\r\n\tPSID userSID;\r\n\r\nprotected:\r\n\tbool DoUserLogon(void);\r\n\tvoid ClearCache(void);\r\n\tbool LaunchBrowser(void);\r\n\tbool GetUrl(void);\r\n\tvoid ConfigurePagetest(void);\r\n\tbool ConfigureIE(void);\r\n\tvoid CloneIESettings(void);\r\n\tvoid CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey);\r\n\tvoid EncodeVideo(void);\r\n\tbool ConfigureIpfw();\r\n\tvoid ResetIpfw();\r\n\tvoid KillProcs();\r\n\tvoid FlushDNS();\r\n\tCLog\t&log;\r\n\tbool\tcached;\r\n\tCString eventName;\r\n\tHANDLE hDynaTrace;\r\n CWinPCap winpcap;\r\n HANDLE &testingMutex;\r\n CString heartbeatEventName;\r\n HANDLE heartbeatEvent;\r\n CurlBlastDlg &dlg;\r\n\t\r\n\t// directories\r\n\tCString\tprofile;\r\n\tCString cookies;\r\n\tCString history;\r\n\tCString tempFiles;\r\n CString tempDir;\r\n\tCString silverlight;\r\n\tCString recovery;\r\n\tCString flash;\r\n CString domStorage;\r\n\tCString desktopPath;\r\n\tCString windir;\r\n\tCString webCache;\r\n\r\n bool Launch(CString cmd, HANDLE * phProc = NULL);\r\n\tvoid LaunchDynaTrace();\r\n\tvoid CloseDynaTrace();\r\n\tint ZipDir(CString dir, CString dest, CString depth, zipFile file);\r\n}", "parent": null, "children": [125], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 125, "type": "identifier", "text": "CURLBlaster", "parent": 124, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 17}}, {"id": 126, "type": "labeled_statement", "text": "public:\r\n\tCURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef);", "parent": 124, "children": [127], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 101}}, {"id": 127, "type": "ERROR", "text": "CURLBlaster(HWND hWnd, CLog", "parent": 126, "children": [128, 132, 133], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 28}}, {"id": 128, "type": "macro_type_specifier", "text": "CURLBlaster(HWND", "parent": 127, "children": [129, 130], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 17}}, {"id": 129, "type": "identifier", "text": "CURLBlaster", "parent": 128, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 12}}, {"id": 130, "type": "type_descriptor", "text": "HWND", "parent": 128, "children": [131], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 17}}, {"id": 131, "type": "type_identifier", "text": "HWND", "parent": 130, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 17}}, {"id": 132, "type": "identifier", "text": "hWnd", "parent": 127, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 22}}, {"id": 133, "type": "identifier", "text": "CLog", "parent": 127, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 28}}, {"id": 134, "type": "comma_expression", "text": "&logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef", "parent": 126, "children": [135, 137], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 99}}, {"id": 135, "type": "pointer_expression", "text": "&logRef", "parent": 134, "children": [136], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 36}}, {"id": 136, "type": "identifier", "text": "logRef", "parent": 135, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 36}}, {"id": 137, "type": "comma_expression", "text": "CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef", "parent": 134, "children": [138, 141], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 99}}, {"id": 138, "type": "binary_expression", "text": "CIpfw &ipfwRef", "parent": 137, "children": [139, 140], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 52}}, {"id": 139, "type": "identifier", "text": "CIpfw", "parent": 138, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 43}}, {"id": 140, "type": "identifier", "text": "ipfwRef", "parent": 138, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 52}}, {"id": 141, "type": "comma_expression", "text": "HANDLE &testingMutexRef, CurlBlastDlg &dlgRef", "parent": 137, "children": [142, 145], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 99}}, {"id": 142, "type": "binary_expression", "text": "HANDLE &testingMutexRef", "parent": 141, "children": [143, 144], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 77}}, {"id": 143, "type": "identifier", "text": "HANDLE", "parent": 142, "children": [], "start_point": {"row": 33, "column": 54}, "end_point": {"row": 33, "column": 60}}, {"id": 144, "type": "identifier", "text": "testingMutexRef", "parent": 142, "children": [], "start_point": {"row": 33, "column": 62}, "end_point": {"row": 33, "column": 77}}, {"id": 145, "type": "binary_expression", "text": "CurlBlastDlg &dlgRef", "parent": 141, "children": [146, 147], "start_point": {"row": 33, "column": 79}, "end_point": {"row": 33, "column": 99}}, {"id": 146, "type": "identifier", "text": "CurlBlastDlg", "parent": 145, "children": [], "start_point": {"row": 33, "column": 79}, "end_point": {"row": 33, "column": 91}}, {"id": 147, "type": "identifier", "text": "dlgRef", "parent": 145, "children": [], "start_point": {"row": 33, "column": 93}, "end_point": {"row": 33, "column": 99}}, {"id": 148, "type": "unary_expression", "text": "~CURLBlaster(void)", "parent": 124, "children": [149, 150], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 19}}, {"id": 149, "type": "~", "text": "~", "parent": 148, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 2}}, {"id": 150, "type": "call_expression", "text": "CURLBlaster(void)", "parent": 148, "children": [151, 152], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 19}}, {"id": 151, "type": "identifier", "text": "CURLBlaster", "parent": 150, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 13}}, {"id": 152, "type": "argument_list", "text": "(void)", "parent": 150, "children": [153], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 19}}, {"id": 153, "type": "identifier", "text": "void", "parent": 152, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 18}}, {"id": 154, "type": "declaration", "text": "bool Start(int userIndex);", "parent": 124, "children": [155, 156], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 27}}, {"id": 155, "type": "primitive_type", "text": "bool", "parent": 154, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 156, "type": "function_declarator", "text": "Start(int userIndex)", "parent": 154, "children": [157, 158], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 26}}, {"id": 157, "type": "identifier", "text": "Start", "parent": 156, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 11}}, {"id": 158, "type": "parameter_list", "text": "(int userIndex)", "parent": 156, "children": [159], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 26}}, {"id": 159, "type": "parameter_declaration", "text": "int userIndex", "parent": 158, "children": [160, 161], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 25}}, {"id": 160, "type": "primitive_type", "text": "int", "parent": 159, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 15}}, {"id": 161, "type": "identifier", "text": "userIndex", "parent": 159, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 25}}, {"id": 162, "type": "declaration", "text": "void Stop(void);", "parent": 124, "children": [163, 164], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 17}}, {"id": 163, "type": "primitive_type", "text": "void", "parent": 162, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 164, "type": "function_declarator", "text": "Stop(void)", "parent": 162, "children": [165, 166], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 16}}, {"id": 165, "type": "identifier", "text": "Stop", "parent": 164, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 10}}, {"id": 166, "type": "parameter_list", "text": "(void)", "parent": 164, "children": [167], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 16}}, {"id": 167, "type": "parameter_declaration", "text": "void", "parent": 166, "children": [168], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 15}}, {"id": 168, "type": "primitive_type", "text": "void", "parent": 167, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 15}}, {"id": 169, "type": "declaration", "text": "CString userName;", "parent": 124, "children": [170, 171], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 18}}, {"id": 170, "type": "type_identifier", "text": "CString", "parent": 169, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 8}}, {"id": 171, "type": "identifier", "text": "userName", "parent": 169, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 17}}, {"id": 172, "type": "declaration", "text": "void ThreadProc(void);", "parent": 124, "children": [173, 174], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 23}}, {"id": 173, "type": "primitive_type", "text": "void", "parent": 172, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 174, "type": "function_declarator", "text": "ThreadProc(void)", "parent": 172, "children": [175, 176], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 22}}, {"id": 175, "type": "identifier", "text": "ThreadProc", "parent": 174, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 16}}, {"id": 176, "type": "parameter_list", "text": "(void)", "parent": 174, "children": [177], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 22}}, {"id": 177, "type": "parameter_declaration", "text": "void", "parent": 176, "children": [178], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 21}}, {"id": 178, "type": "primitive_type", "text": "void", "parent": 177, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 21}}, {"id": 179, "type": "declaration", "text": "HANDLE hThread;", "parent": 124, "children": [180, 181], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 16}}, {"id": 180, "type": "type_identifier", "text": "HANDLE", "parent": 179, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 181, "type": "identifier", "text": "hThread", "parent": 179, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 15}}, {"id": 182, "type": "declaration", "text": "HANDLE hMustExit;", "parent": 124, "children": [183, 184], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 18}}, {"id": 183, "type": "type_identifier", "text": "HANDLE", "parent": 182, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 7}}, {"id": 184, "type": "identifier", "text": "hMustExit", "parent": 182, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 17}}, {"id": 185, "type": "declaration", "text": "HANDLE hLogonToken;", "parent": 124, "children": [186, 187], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 20}}, {"id": 186, "type": "type_identifier", "text": "HANDLE", "parent": 185, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 187, "type": "identifier", "text": "hLogonToken", "parent": 185, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 19}}, {"id": 188, "type": "declaration", "text": "HANDLE hProfile;", "parent": 124, "children": [189, 190], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 17}}, {"id": 189, "type": "type_identifier", "text": "HANDLE", "parent": 188, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 7}}, {"id": 190, "type": "identifier", "text": "hProfile", "parent": 188, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 16}}, {"id": 191, "type": "declaration", "text": "CString password;", "parent": 124, "children": [192, 193], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 18}}, {"id": 192, "type": "type_identifier", "text": "CString", "parent": 191, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 193, "type": "identifier", "text": "password", "parent": 191, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 17}}, {"id": 194, "type": "declaration", "text": "CString accountBase;", "parent": 124, "children": [195, 196], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 21}}, {"id": 195, "type": "type_identifier", "text": "CString", "parent": 194, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 196, "type": "identifier", "text": "accountBase", "parent": 194, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 20}}, {"id": 197, "type": "declaration", "text": "int index;", "parent": 124, "children": [198, 199], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 11}}, {"id": 198, "type": "primitive_type", "text": "int", "parent": 197, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 4}}, {"id": 199, "type": "identifier", "text": "index", "parent": 197, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 10}}, {"id": 200, "type": "declaration", "text": "DWORD count;", "parent": 124, "children": [201, 202], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 13}}, {"id": 201, "type": "type_identifier", "text": "DWORD", "parent": 200, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 6}}, {"id": 202, "type": "identifier", "text": "count", "parent": 200, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 12}}, {"id": 203, "type": "declaration", "text": "HWND hDlg;", "parent": 124, "children": [204, 205], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 11}}, {"id": 204, "type": "type_identifier", "text": "HWND", "parent": 203, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 5}}, {"id": 205, "type": "identifier", "text": "hDlg", "parent": 203, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 10}}, {"id": 206, "type": "binary_expression", "text": "CIpfw &ipfw", "parent": 124, "children": [207, 208], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 12}}, {"id": 207, "type": "identifier", "text": "CIpfw", "parent": 206, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 6}}, {"id": 208, "type": "identifier", "text": "ipfw", "parent": 206, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 12}}, {"id": 209, "type": "declaration", "text": "CString errorLog;", "parent": 124, "children": [210, 211], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 18}}, {"id": 210, "type": "type_identifier", "text": "CString", "parent": 209, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 8}}, {"id": 211, "type": "identifier", "text": "errorLog", "parent": 209, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 17}}, {"id": 212, "type": "declaration", "text": "CUrlManager * urlManager;", "parent": 124, "children": [213, 214], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 26}}, {"id": 213, "type": "type_identifier", "text": "CUrlManager", "parent": 212, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 12}}, {"id": 214, "type": "pointer_declarator", "text": "* urlManager", "parent": 212, "children": [215, 216], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 25}}, {"id": 215, "type": "*", "text": "*", "parent": 214, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 14}}, {"id": 216, "type": "identifier", "text": "urlManager", "parent": 214, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 25}}, {"id": 217, "type": "declaration", "text": "DWORD timeout;", "parent": 124, "children": [218, 219], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 15}}, {"id": 218, "type": "type_identifier", "text": "DWORD", "parent": 217, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 6}}, {"id": 219, "type": "identifier", "text": "timeout", "parent": 217, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 14}}, {"id": 220, "type": "declaration", "text": "CRect pos;", "parent": 124, "children": [221, 222], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 11}}, {"id": 221, "type": "type_identifier", "text": "CRect", "parent": 220, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 6}}, {"id": 222, "type": "identifier", "text": "pos", "parent": 220, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 10}}, {"id": 223, "type": "declaration", "text": "CRect\tdesktop;", "parent": 124, "children": [224, 225], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 15}}, {"id": 224, "type": "type_identifier", "text": "CRect", "parent": 223, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 6}}, {"id": 225, "type": "identifier", "text": "desktop", "parent": 223, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 14}}, {"id": 226, "type": "declaration", "text": "CString customEventText;", "parent": 124, "children": [227, 228], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 25}}, {"id": 227, "type": "type_identifier", "text": "CString", "parent": 226, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 8}}, {"id": 228, "type": "identifier", "text": "customEventText", "parent": 226, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 24}}, {"id": 229, "type": "declaration", "text": "CTestInfo info;", "parent": 124, "children": [230, 231], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 16}}, {"id": 230, "type": "type_identifier", "text": "CTestInfo", "parent": 229, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 10}}, {"id": 231, "type": "identifier", "text": "info", "parent": 229, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 15}}, {"id": 232, "type": "declaration", "text": "CString preLaunch;", "parent": 124, "children": [233, 234], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 19}}, {"id": 233, "type": "type_identifier", "text": "CString", "parent": 232, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 8}}, {"id": 234, "type": "identifier", "text": "preLaunch", "parent": 232, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 18}}, {"id": 235, "type": "declaration", "text": "CString postLaunch;", "parent": 124, "children": [236, 237], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 20}}, {"id": 236, "type": "type_identifier", "text": "CString", "parent": 235, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 8}}, {"id": 237, "type": "identifier", "text": "postLaunch", "parent": 235, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 19}}, {"id": 238, "type": "declaration", "text": "CString dynaTrace;", "parent": 124, "children": [239, 240], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 19}}, {"id": 239, "type": "type_identifier", "text": "CString", "parent": 238, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 8}}, {"id": 240, "type": "identifier", "text": "dynaTrace", "parent": 238, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 18}}, {"id": 241, "type": "declaration", "text": "CString dynaTraceSessions;", "parent": 124, "children": [242, 243], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 28}}, {"id": 242, "type": "type_identifier", "text": "CString", "parent": 241, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 9}}, {"id": 243, "type": "identifier", "text": "dynaTraceSessions", "parent": 241, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 27}}, {"id": 244, "type": "declaration", "text": "DWORD pipeIn;", "parent": 124, "children": [245, 246], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 14}}, {"id": 245, "type": "type_identifier", "text": "DWORD", "parent": 244, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 6}}, {"id": 246, "type": "identifier", "text": "pipeIn", "parent": 244, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 13}}, {"id": 247, "type": "declaration", "text": "DWORD pipeOut;", "parent": 124, "children": [248, 249], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 15}}, {"id": 248, "type": "type_identifier", "text": "DWORD", "parent": 247, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 6}}, {"id": 249, "type": "identifier", "text": "pipeOut", "parent": 247, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 14}}, {"id": 250, "type": "declaration", "text": "DWORD useBitBlt;", "parent": 124, "children": [251, 252], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 17}}, {"id": 251, "type": "type_identifier", "text": "DWORD", "parent": 250, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 6}}, {"id": 252, "type": "identifier", "text": "useBitBlt", "parent": 250, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 16}}, {"id": 253, "type": "declaration", "text": "int keepDNS;", "parent": 124, "children": [254, 255], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 14}}, {"id": 254, "type": "primitive_type", "text": "int", "parent": 253, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 5}}, {"id": 255, "type": "identifier", "text": "keepDNS", "parent": 253, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 13}}, {"id": 256, "type": "declaration", "text": "CRITICAL_SECTION cs;", "parent": 124, "children": [257, 258], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 21}}, {"id": 257, "type": "type_identifier", "text": "CRITICAL_SECTION", "parent": 256, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 17}}, {"id": 258, "type": "identifier", "text": "cs", "parent": 256, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 20}}, {"id": 259, "type": "declaration", "text": "DWORD browserPID;", "parent": 124, "children": [260, 261], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 18}}, {"id": 260, "type": "type_identifier", "text": "DWORD", "parent": 259, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 6}}, {"id": 261, "type": "identifier", "text": "browserPID", "parent": 259, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 17}}, {"id": 262, "type": "declaration", "text": "PSID userSID;", "parent": 124, "children": [263, 264], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 14}}, {"id": 263, "type": "type_identifier", "text": "PSID", "parent": 262, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 5}}, {"id": 264, "type": "identifier", "text": "userSID", "parent": 262, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 13}}, {"id": 265, "type": "labeled_statement", "text": "protected:\r\n\tbool DoUserLogon(void);", "parent": 124, "children": [266], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 24}}, {"id": 266, "type": "declaration", "text": "bool DoUserLogon(void);", "parent": 265, "children": [267, 268], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 24}}, {"id": 267, "type": "primitive_type", "text": "bool", "parent": 266, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 5}}, {"id": 268, "type": "function_declarator", "text": "DoUserLogon(void)", "parent": 266, "children": [269, 270], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 23}}, {"id": 269, "type": "identifier", "text": "DoUserLogon", "parent": 268, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 17}}, {"id": 270, "type": "parameter_list", "text": "(void)", "parent": 268, "children": [271], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 23}}, {"id": 271, "type": "parameter_declaration", "text": "void", "parent": 270, "children": [272], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 22}}, {"id": 272, "type": "primitive_type", "text": "void", "parent": 271, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 22}}, {"id": 273, "type": "declaration", "text": "void ClearCache(void);", "parent": 124, "children": [274, 275], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 23}}, {"id": 274, "type": "primitive_type", "text": "void", "parent": 273, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 275, "type": "function_declarator", "text": "ClearCache(void)", "parent": 273, "children": [276, 277], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 22}}, {"id": 276, "type": "identifier", "text": "ClearCache", "parent": 275, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 16}}, {"id": 277, "type": "parameter_list", "text": "(void)", "parent": 275, "children": [278], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 22}}, {"id": 278, "type": "parameter_declaration", "text": "void", "parent": 277, "children": [279], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 21}}, {"id": 279, "type": "primitive_type", "text": "void", "parent": 278, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 21}}, {"id": 280, "type": "declaration", "text": "bool LaunchBrowser(void);", "parent": 124, "children": [281, 282], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 26}}, {"id": 281, "type": "primitive_type", "text": "bool", "parent": 280, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 5}}, {"id": 282, "type": "function_declarator", "text": "LaunchBrowser(void)", "parent": 280, "children": [283, 284], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 25}}, {"id": 283, "type": "identifier", "text": "LaunchBrowser", "parent": 282, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 19}}, {"id": 284, "type": "parameter_list", "text": "(void)", "parent": 282, "children": [285], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 25}}, {"id": 285, "type": "parameter_declaration", "text": "void", "parent": 284, "children": [286], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 24}}, {"id": 286, "type": "primitive_type", "text": "void", "parent": 285, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 24}}, {"id": 287, "type": "declaration", "text": "bool GetUrl(void);", "parent": 124, "children": [288, 289], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 19}}, {"id": 288, "type": "primitive_type", "text": "bool", "parent": 287, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 5}}, {"id": 289, "type": "function_declarator", "text": "GetUrl(void)", "parent": 287, "children": [290, 291], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 18}}, {"id": 290, "type": "identifier", "text": "GetUrl", "parent": 289, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 12}}, {"id": 291, "type": "parameter_list", "text": "(void)", "parent": 289, "children": [292], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 18}}, {"id": 292, "type": "parameter_declaration", "text": "void", "parent": 291, "children": [293], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 17}}, {"id": 293, "type": "primitive_type", "text": "void", "parent": 292, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 17}}, {"id": 294, "type": "declaration", "text": "void ConfigurePagetest(void);", "parent": 124, "children": [295, 296], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 30}}, {"id": 295, "type": "primitive_type", "text": "void", "parent": 294, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 5}}, {"id": 296, "type": "function_declarator", "text": "ConfigurePagetest(void)", "parent": 294, "children": [297, 298], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 29}}, {"id": 297, "type": "identifier", "text": "ConfigurePagetest", "parent": 296, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 23}}, {"id": 298, "type": "parameter_list", "text": "(void)", "parent": 296, "children": [299], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 29}}, {"id": 299, "type": "parameter_declaration", "text": "void", "parent": 298, "children": [300], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 28}}, {"id": 300, "type": "primitive_type", "text": "void", "parent": 299, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 28}}, {"id": 301, "type": "declaration", "text": "bool ConfigureIE(void);", "parent": 124, "children": [302, 303], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 24}}, {"id": 302, "type": "primitive_type", "text": "bool", "parent": 301, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 5}}, {"id": 303, "type": "function_declarator", "text": "ConfigureIE(void)", "parent": 301, "children": [304, 305], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 23}}, {"id": 304, "type": "identifier", "text": "ConfigureIE", "parent": 303, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 17}}, {"id": 305, "type": "parameter_list", "text": "(void)", "parent": 303, "children": [306], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 23}}, {"id": 306, "type": "parameter_declaration", "text": "void", "parent": 305, "children": [307], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 22}}, {"id": 307, "type": "primitive_type", "text": "void", "parent": 306, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 22}}, {"id": 308, "type": "declaration", "text": "void CloneIESettings(void);", "parent": 124, "children": [309, 310], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 28}}, {"id": 309, "type": "primitive_type", "text": "void", "parent": 308, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 5}}, {"id": 310, "type": "function_declarator", "text": "CloneIESettings(void)", "parent": 308, "children": [311, 312], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 27}}, {"id": 311, "type": "identifier", "text": "CloneIESettings", "parent": 310, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 21}}, {"id": 312, "type": "parameter_list", "text": "(void)", "parent": 310, "children": [313], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 27}}, {"id": 313, "type": "parameter_declaration", "text": "void", "parent": 312, "children": [314], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 26}}, {"id": 314, "type": "primitive_type", "text": "void", "parent": 313, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 26}}, {"id": 315, "type": "declaration", "text": "void CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey);", "parent": 124, "children": [316, 317], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 57}}, {"id": 316, "type": "primitive_type", "text": "void", "parent": 315, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 5}}, {"id": 317, "type": "function_declarator", "text": "CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey)", "parent": 315, "children": [318, 319], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 56}}, {"id": 318, "type": "identifier", "text": "CloneRegKey", "parent": 317, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 17}}, {"id": 319, "type": "parameter_list", "text": "(HKEY hSrc, HKEY hDest, LPCTSTR subKey)", "parent": 317, "children": [320, 323, 326], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 56}}, {"id": 320, "type": "parameter_declaration", "text": "HKEY hSrc", "parent": 319, "children": [321, 322], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 27}}, {"id": 321, "type": "type_identifier", "text": "HKEY", "parent": 320, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 22}}, {"id": 322, "type": "identifier", "text": "hSrc", "parent": 320, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 27}}, {"id": 323, "type": "parameter_declaration", "text": "HKEY hDest", "parent": 319, "children": [324, 325], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 39}}, {"id": 324, "type": "type_identifier", "text": "HKEY", "parent": 323, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 33}}, {"id": 325, "type": "identifier", "text": "hDest", "parent": 323, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 39}}, {"id": 326, "type": "parameter_declaration", "text": "LPCTSTR subKey", "parent": 319, "children": [327, 328], "start_point": {"row": 78, "column": 41}, "end_point": {"row": 78, "column": 55}}, {"id": 327, "type": "type_identifier", "text": "LPCTSTR", "parent": 326, "children": [], "start_point": {"row": 78, "column": 41}, "end_point": {"row": 78, "column": 48}}, {"id": 328, "type": "identifier", "text": "subKey", "parent": 326, "children": [], "start_point": {"row": 78, "column": 49}, "end_point": {"row": 78, "column": 55}}, {"id": 329, "type": "declaration", "text": "void EncodeVideo(void);", "parent": 124, "children": [330, 331], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 24}}, {"id": 330, "type": "primitive_type", "text": "void", "parent": 329, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 5}}, {"id": 331, "type": "function_declarator", "text": "EncodeVideo(void)", "parent": 329, "children": [332, 333], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 23}}, {"id": 332, "type": "identifier", "text": "EncodeVideo", "parent": 331, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 17}}, {"id": 333, "type": "parameter_list", "text": "(void)", "parent": 331, "children": [334], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 23}}, {"id": 334, "type": "parameter_declaration", "text": "void", "parent": 333, "children": [335], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 22}}, {"id": 335, "type": "primitive_type", "text": "void", "parent": 334, "children": [], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 22}}, {"id": 336, "type": "declaration", "text": "bool ConfigureIpfw();", "parent": 124, "children": [337, 338], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 22}}, {"id": 337, "type": "primitive_type", "text": "bool", "parent": 336, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 338, "type": "function_declarator", "text": "ConfigureIpfw()", "parent": 336, "children": [339, 340], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 21}}, {"id": 339, "type": "identifier", "text": "ConfigureIpfw", "parent": 338, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 19}}, {"id": 340, "type": "parameter_list", "text": "()", "parent": 338, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 21}}, {"id": 341, "type": "declaration", "text": "void ResetIpfw();", "parent": 124, "children": [342, 343], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 18}}, {"id": 342, "type": "primitive_type", "text": "void", "parent": 341, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 343, "type": "function_declarator", "text": "ResetIpfw()", "parent": 341, "children": [344, 345], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 17}}, {"id": 344, "type": "identifier", "text": "ResetIpfw", "parent": 343, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 15}}, {"id": 345, "type": "parameter_list", "text": "()", "parent": 343, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 17}}, {"id": 346, "type": "declaration", "text": "void KillProcs();", "parent": 124, "children": [347, 348], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 18}}, {"id": 347, "type": "primitive_type", "text": "void", "parent": 346, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 5}}, {"id": 348, "type": "function_declarator", "text": "KillProcs()", "parent": 346, "children": [349, 350], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 17}}, {"id": 349, "type": "identifier", "text": "KillProcs", "parent": 348, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 15}}, {"id": 350, "type": "parameter_list", "text": "()", "parent": 348, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 17}}, {"id": 351, "type": "declaration", "text": "void FlushDNS();", "parent": 124, "children": [352, 353], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 17}}, {"id": 352, "type": "primitive_type", "text": "void", "parent": 351, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 5}}, {"id": 353, "type": "function_declarator", "text": "FlushDNS()", "parent": 351, "children": [354, 355], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 16}}, {"id": 354, "type": "identifier", "text": "FlushDNS", "parent": 353, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 14}}, {"id": 355, "type": "parameter_list", "text": "()", "parent": 353, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 16}}, {"id": 356, "type": "binary_expression", "text": "CLog\t&log", "parent": 124, "children": [357, 358], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 10}}, {"id": 357, "type": "identifier", "text": "CLog", "parent": 356, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 5}}, {"id": 358, "type": "identifier", "text": "log", "parent": 356, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 10}}, {"id": 359, "type": "declaration", "text": "bool\tcached;", "parent": 124, "children": [360, 361], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 13}}, {"id": 360, "type": "primitive_type", "text": "bool", "parent": 359, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 5}}, {"id": 361, "type": "identifier", "text": "cached", "parent": 359, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 12}}, {"id": 362, "type": "declaration", "text": "CString eventName;", "parent": 124, "children": [363, 364], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 19}}, {"id": 363, "type": "type_identifier", "text": "CString", "parent": 362, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 8}}, {"id": 364, "type": "identifier", "text": "eventName", "parent": 362, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 18}}, {"id": 365, "type": "declaration", "text": "HANDLE hDynaTrace;", "parent": 124, "children": [366, 367], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 19}}, {"id": 366, "type": "type_identifier", "text": "HANDLE", "parent": 365, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 7}}, {"id": 367, "type": "identifier", "text": "hDynaTrace", "parent": 365, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 18}}, {"id": 368, "type": "declaration", "text": "CWinPCap winpcap;", "parent": 124, "children": [369, 370], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 20}}, {"id": 369, "type": "type_identifier", "text": "CWinPCap", "parent": 368, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 10}}, {"id": 370, "type": "identifier", "text": "winpcap", "parent": 368, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 19}}, {"id": 371, "type": "binary_expression", "text": "HANDLE &testingMutex", "parent": 124, "children": [372, 373], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 22}}, {"id": 372, "type": "identifier", "text": "HANDLE", "parent": 371, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 8}}, {"id": 373, "type": "identifier", "text": "testingMutex", "parent": 371, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 22}}, {"id": 374, "type": "declaration", "text": "CString heartbeatEventName;", "parent": 124, "children": [375, 376], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 29}}, {"id": 375, "type": "type_identifier", "text": "CString", "parent": 374, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 9}}, {"id": 376, "type": "identifier", "text": "heartbeatEventName", "parent": 374, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 28}}, {"id": 377, "type": "declaration", "text": "HANDLE heartbeatEvent;", "parent": 124, "children": [378, 379], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 25}}, {"id": 378, "type": "type_identifier", "text": "HANDLE", "parent": 377, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 8}}, {"id": 379, "type": "identifier", "text": "heartbeatEvent", "parent": 377, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 24}}, {"id": 380, "type": "binary_expression", "text": "CurlBlastDlg &dlg", "parent": 124, "children": [381, 382], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 19}}, {"id": 381, "type": "identifier", "text": "CurlBlastDlg", "parent": 380, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 14}}, {"id": 382, "type": "identifier", "text": "dlg", "parent": 380, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 19}}, {"id": 383, "type": "declaration", "text": "CString\tprofile;", "parent": 124, "children": [384, 385], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 17}}, {"id": 384, "type": "type_identifier", "text": "CString", "parent": 383, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 8}}, {"id": 385, "type": "identifier", "text": "profile", "parent": 383, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 16}}, {"id": 386, "type": "declaration", "text": "CString cookies;", "parent": 124, "children": [387, 388], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 17}}, {"id": 387, "type": "type_identifier", "text": "CString", "parent": 386, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 8}}, {"id": 388, "type": "identifier", "text": "cookies", "parent": 386, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 16}}, {"id": 389, "type": "declaration", "text": "CString history;", "parent": 124, "children": [390, 391], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 17}}, {"id": 390, "type": "type_identifier", "text": "CString", "parent": 389, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 8}}, {"id": 391, "type": "identifier", "text": "history", "parent": 389, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 16}}, {"id": 392, "type": "declaration", "text": "CString tempFiles;", "parent": 124, "children": [393, 394], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 19}}, {"id": 393, "type": "type_identifier", "text": "CString", "parent": 392, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 8}}, {"id": 394, "type": "identifier", "text": "tempFiles", "parent": 392, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 18}}, {"id": 395, "type": "declaration", "text": "CString tempDir;", "parent": 124, "children": [396, 397], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 18}}, {"id": 396, "type": "type_identifier", "text": "CString", "parent": 395, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 9}}, {"id": 397, "type": "identifier", "text": "tempDir", "parent": 395, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 17}}, {"id": 398, "type": "declaration", "text": "CString silverlight;", "parent": 124, "children": [399, 400], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 21}}, {"id": 399, "type": "type_identifier", "text": "CString", "parent": 398, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 8}}, {"id": 400, "type": "identifier", "text": "silverlight", "parent": 398, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 20}}, {"id": 401, "type": "declaration", "text": "CString recovery;", "parent": 124, "children": [402, 403], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 18}}, {"id": 402, "type": "type_identifier", "text": "CString", "parent": 401, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 8}}, {"id": 403, "type": "identifier", "text": "recovery", "parent": 401, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 17}}, {"id": 404, "type": "declaration", "text": "CString flash;", "parent": 124, "children": [405, 406], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 15}}, {"id": 405, "type": "type_identifier", "text": "CString", "parent": 404, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 8}}, {"id": 406, "type": "identifier", "text": "flash", "parent": 404, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 14}}, {"id": 407, "type": "declaration", "text": "CString domStorage;", "parent": 124, "children": [408, 409], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 21}}, {"id": 408, "type": "type_identifier", "text": "CString", "parent": 407, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 9}}, {"id": 409, "type": "identifier", "text": "domStorage", "parent": 407, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 20}}, {"id": 410, "type": "declaration", "text": "CString desktopPath;", "parent": 124, "children": [411, 412], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 21}}, {"id": 411, "type": "type_identifier", "text": "CString", "parent": 410, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 8}}, {"id": 412, "type": "identifier", "text": "desktopPath", "parent": 410, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 20}}, {"id": 413, "type": "declaration", "text": "CString windir;", "parent": 124, "children": [414, 415], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 16}}, {"id": 414, "type": "type_identifier", "text": "CString", "parent": 413, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 8}}, {"id": 415, "type": "identifier", "text": "windir", "parent": 413, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 15}}, {"id": 416, "type": "declaration", "text": "CString webCache;", "parent": 124, "children": [417, 418], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 18}}, {"id": 417, "type": "type_identifier", "text": "CString", "parent": 416, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 8}}, {"id": 418, "type": "identifier", "text": "webCache", "parent": 416, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 17}}, {"id": 419, "type": "declaration", "text": "bool Launch(CString cmd, HANDLE * phProc = NULL);", "parent": 124, "children": [420, 421], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 51}}, {"id": 420, "type": "primitive_type", "text": "bool", "parent": 419, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 6}}, {"id": 421, "type": "init_declarator", "text": "Launch(CString cmd, HANDLE * phProc = NULL", "parent": 419, "children": [422, 433, 434], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 49}}, {"id": 422, "type": "function_declarator", "text": "Launch(CString cmd, HANDLE * phProc", "parent": 421, "children": [423, 424], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 42}}, {"id": 423, "type": "identifier", "text": "Launch", "parent": 422, "children": [], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 13}}, {"id": 424, "type": "parameter_list", "text": "(CString cmd, HANDLE * phProc", "parent": 422, "children": [425, 428], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 42}}, {"id": 425, "type": "parameter_declaration", "text": "CString cmd", "parent": 424, "children": [426, 427], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 25}}, {"id": 426, "type": "type_identifier", "text": "CString", "parent": 425, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 21}}, {"id": 427, "type": "identifier", "text": "cmd", "parent": 425, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 25}}, {"id": 428, "type": "parameter_declaration", "text": "HANDLE * phProc", "parent": 424, "children": [429, 430], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 42}}, {"id": 429, "type": "type_identifier", "text": "HANDLE", "parent": 428, "children": [], "start_point": {"row": 108, "column": 27}, "end_point": {"row": 108, "column": 33}}, {"id": 430, "type": "pointer_declarator", "text": "* phProc", "parent": 428, "children": [431, 432], "start_point": {"row": 108, "column": 34}, "end_point": {"row": 108, "column": 42}}, {"id": 431, "type": "*", "text": "*", "parent": 430, "children": [], "start_point": {"row": 108, "column": 34}, "end_point": {"row": 108, "column": 35}}, {"id": 432, "type": "identifier", "text": "phProc", "parent": 430, "children": [], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 42}}, {"id": 433, "type": "=", "text": "=", "parent": 421, "children": [], "start_point": {"row": 108, "column": 43}, "end_point": {"row": 108, "column": 44}}, {"id": 434, "type": "null", "text": "NULL", "parent": 421, "children": [435], "start_point": {"row": 108, "column": 45}, "end_point": {"row": 108, "column": 49}}, {"id": 435, "type": "NULL", "text": "NULL", "parent": 434, "children": [], "start_point": {"row": 108, "column": 45}, "end_point": {"row": 108, "column": 49}}, {"id": 436, "type": "declaration", "text": "void LaunchDynaTrace();", "parent": 124, "children": [437, 438], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 24}}, {"id": 437, "type": "primitive_type", "text": "void", "parent": 436, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 5}}, {"id": 438, "type": "function_declarator", "text": "LaunchDynaTrace()", "parent": 436, "children": [439, 440], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 23}}, {"id": 439, "type": "identifier", "text": "LaunchDynaTrace", "parent": 438, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 21}}, {"id": 440, "type": "parameter_list", "text": "()", "parent": 438, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 23}}, {"id": 441, "type": "declaration", "text": "void CloseDynaTrace();", "parent": 124, "children": [442, 443], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 23}}, {"id": 442, "type": "primitive_type", "text": "void", "parent": 441, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 5}}, {"id": 443, "type": "function_declarator", "text": "CloseDynaTrace()", "parent": 441, "children": [444, 445], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 22}}, {"id": 444, "type": "identifier", "text": "CloseDynaTrace", "parent": 443, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 20}}, {"id": 445, "type": "parameter_list", "text": "()", "parent": 443, "children": [], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 22}}, {"id": 446, "type": "declaration", "text": "int ZipDir(CString dir, CString dest, CString depth, zipFile file);", "parent": 124, "children": [447, 448], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 68}}, {"id": 447, "type": "primitive_type", "text": "int", "parent": 446, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 4}}, {"id": 448, "type": "function_declarator", "text": "ZipDir(CString dir, CString dest, CString depth, zipFile file)", "parent": 446, "children": [449, 450], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 67}}, {"id": 449, "type": "identifier", "text": "ZipDir", "parent": 448, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 11}}, {"id": 450, "type": "parameter_list", "text": "(CString dir, CString dest, CString depth, zipFile file)", "parent": 448, "children": [451, 454, 457, 460], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 67}}, {"id": 451, "type": "parameter_declaration", "text": "CString dir", "parent": 450, "children": [452, 453], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 23}}, {"id": 452, "type": "type_identifier", "text": "CString", "parent": 451, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 19}}, {"id": 453, "type": "identifier", "text": "dir", "parent": 451, "children": [], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 23}}, {"id": 454, "type": "parameter_declaration", "text": "CString dest", "parent": 450, "children": [455, 456], "start_point": {"row": 111, "column": 25}, "end_point": {"row": 111, "column": 37}}, {"id": 455, "type": "type_identifier", "text": "CString", "parent": 454, "children": [], "start_point": {"row": 111, "column": 25}, "end_point": {"row": 111, "column": 32}}, {"id": 456, "type": "identifier", "text": "dest", "parent": 454, "children": [], "start_point": {"row": 111, "column": 33}, "end_point": {"row": 111, "column": 37}}, {"id": 457, "type": "parameter_declaration", "text": "CString depth", "parent": 450, "children": [458, 459], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 111, "column": 52}}, {"id": 458, "type": "type_identifier", "text": "CString", "parent": 457, "children": [], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 111, "column": 46}}, {"id": 459, "type": "identifier", "text": "depth", "parent": 457, "children": [], "start_point": {"row": 111, "column": 47}, "end_point": {"row": 111, "column": 52}}, {"id": 460, "type": "parameter_declaration", "text": "zipFile file", "parent": 450, "children": [461, 462], "start_point": {"row": 111, "column": 54}, "end_point": {"row": 111, "column": 66}}, {"id": 461, "type": "type_identifier", "text": "zipFile", "parent": 460, "children": [], "start_point": {"row": 111, "column": 54}, "end_point": {"row": 111, "column": 61}}, {"id": 462, "type": "identifier", "text": "file", "parent": 460, "children": [], "start_point": {"row": 111, "column": 62}, "end_point": {"row": 111, "column": 66}}]}, "node_categories": {"declarations": {"functions": [22, 124, 156, 164, 174, 268, 275, 282, 289, 296, 303, 310, 317, 331, 338, 343, 348, 353, 422, 438, 443, 448], "variables": [20, 49, 68, 115, 118, 121, 154, 159, 162, 167, 169, 172, 177, 179, 182, 185, 188, 191, 194, 197, 200, 203, 209, 212, 217, 220, 223, 226, 229, 232, 235, 238, 241, 244, 247, 250, 253, 256, 259, 262, 266, 271, 273, 278, 280, 285, 287, 292, 294, 299, 301, 306, 308, 313, 315, 320, 323, 326, 329, 334, 336, 341, 346, 351, 359, 362, 365, 368, 374, 377, 383, 386, 389, 392, 395, 398, 401, 404, 407, 410, 413, 416, 419, 425, 428, 436, 441, 446, 451, 454, 457, 460], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [26, 29, 34, 35, 42, 43, 62, 64, 73, 77, 82, 86, 87, 92, 93, 94, 100, 101, 106, 107, 108, 134, 135, 137, 138, 141, 142, 145, 148, 150, 206, 356, 371, 380], "assignments": [33, 41, 79, 85, 99], "loops": [], "conditionals": [14, 18, 21, 23, 27, 30, 36, 37, 38, 44, 45, 46, 50, 51, 53, 55, 59, 61, 65, 67, 69, 71, 76, 78, 80, 83, 84, 88, 89, 90, 95, 96, 97, 98, 102, 103, 104, 109, 110, 111, 112, 114, 116, 117, 119, 120, 122, 123, 125, 128, 129, 131, 132, 133, 136, 139, 140, 143, 144, 146, 147, 151, 153, 157, 161, 165, 170, 171, 175, 180, 181, 183, 184, 186, 187, 189, 190, 192, 193, 195, 196, 199, 201, 202, 204, 205, 207, 208, 210, 211, 213, 216, 218, 219, 221, 222, 224, 225, 227, 228, 230, 231, 233, 234, 236, 237, 239, 240, 242, 243, 245, 246, 248, 249, 251, 252, 255, 257, 258, 260, 261, 263, 264, 269, 276, 283, 290, 297, 304, 311, 318, 321, 322, 324, 325, 327, 328, 332, 339, 344, 349, 354, 357, 358, 361, 363, 364, 366, 367, 369, 370, 372, 373, 375, 376, 378, 379, 381, 382, 384, 385, 387, 388, 390, 391, 393, 394, 396, 397, 399, 400, 402, 403, 405, 406, 408, 409, 411, 412, 414, 415, 417, 418, 423, 426, 427, 429, 432, 439, 444, 449, 452, 453, 455, 456, 458, 459, 461, 462], "returns": [113], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 32, 40, 48], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "CSpeed", "text_snippet": "class CSpeed\r\n{\r\npublic:\r\n\tCSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;}\r\n\tCSpee"}, {"node_id": 124, "universal_type": "function", "name": "CURLBlaster", "text_snippet": "class CURLBlaster\r\n{\r\npublic:\r\n\tCURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testing"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "Start(int userIndex)"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "Stop(void)"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "ThreadProc(void)"}, {"node_id": 268, "universal_type": "function", "name": "unknown", "text_snippet": "DoUserLogon(void)"}, {"node_id": 275, "universal_type": "function", "name": "unknown", "text_snippet": "ClearCache(void)"}, {"node_id": 282, "universal_type": "function", "name": "unknown", "text_snippet": "LaunchBrowser(void)"}, {"node_id": 289, "universal_type": "function", "name": "unknown", "text_snippet": "GetUrl(void)"}, {"node_id": 296, "universal_type": "function", "name": "unknown", "text_snippet": "ConfigurePagetest(void)"}, {"node_id": 303, "universal_type": "function", "name": "unknown", "text_snippet": "ConfigureIE(void)"}, {"node_id": 310, "universal_type": "function", "name": "unknown", "text_snippet": "CloneIESettings(void)"}, {"node_id": 317, "universal_type": "function", "name": "unknown", "text_snippet": "CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey)"}, {"node_id": 331, "universal_type": "function", "name": "unknown", "text_snippet": "EncodeVideo(void)"}, {"node_id": 338, "universal_type": "function", "name": "unknown", "text_snippet": "ConfigureIpfw()"}, {"node_id": 343, "universal_type": "function", "name": "unknown", "text_snippet": "ResetIpfw()"}, {"node_id": 348, "universal_type": "function", "name": "unknown", "text_snippet": "KillProcs()"}, {"node_id": 353, "universal_type": "function", "name": "unknown", "text_snippet": "FlushDNS()"}, {"node_id": 422, "universal_type": "function", "name": "unknown", "text_snippet": "Launch(CString cmd, HANDLE * phProc"}, {"node_id": 438, "universal_type": "function", "name": "unknown", "text_snippet": "LaunchDynaTrace()"}, {"node_id": 443, "universal_type": "function", "name": "unknown", "text_snippet": "CloseDynaTrace()"}, {"node_id": 448, "universal_type": "function", "name": "unknown", "text_snippet": "ZipDir(CString dir, CString dest, CString depth, zipFile file)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"UrlManager.h\"\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"WinPCap.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"../../../wptdriver/ipfw.h\"\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\r\n#include \"UrlManager.h\"\r\n#include \"WinPCap.h\"\r\n#include \"../../../wptdriver/ipfw.h\"\r\n\r\n#define MSG_UPDATE_UI (WM_APP + 1)\r\n#define MSG_CONTINUE_STARTUP (WM_APP + 2)\r\n\r\nclass CurlBlastDlg;\r\n\r\nclass CSpeed\r\n{\r\npublic:\r\n\tCSpeed():connType(0){addr.S_un.S_addr = 0; mask.S_un.S_addr = 0;}\r\n\tCSpeed(const CSpeed& src){*this = src;}\r\n\t~CSpeed(void){}\r\n\tconst CSpeed & operator =(const CSpeed& src)\r\n\t{\r\n\t\tconnType = src.connType;\r\n\t\taddr.S_un.S_addr = src.addr.S_un.S_addr;\r\n\t\tmask.S_un.S_addr = src.mask.S_un.S_addr;\r\n\t\t\r\n\t\treturn src;\r\n\t}\r\n\t\r\n\tDWORD\tconnType;\r\n\tIN_ADDR\taddr;\r\n\tIN_ADDR\tmask;\r\n};\r\n\r\nclass CURLBlaster\r\n{\r\npublic:\r\n\tCURLBlaster(HWND hWnd, CLog &logRef, CIpfw &ipfwRef, HANDLE &testingMutexRef, CurlBlastDlg &dlgRef);\r\n\t~CURLBlaster(void);\r\n\tbool Start(int userIndex);\r\n\tvoid Stop(void);\r\n\tCString userName;\r\n\tvoid ThreadProc(void);\r\n\tHANDLE hThread;\r\n\tHANDLE hMustExit;\r\n\tHANDLE hLogonToken;\r\n\tHANDLE hProfile;\r\n\tCString password;\r\n\tCString accountBase;\r\n\tint index;\r\n\tDWORD count;\r\n\tHWND hDlg;\r\n\tCIpfw &ipfw;\r\n\r\n\tCString errorLog;\r\n\tCUrlManager * urlManager;\r\n\tDWORD timeout;\r\n\tCRect pos;\r\n\tCRect\tdesktop;\r\n\tCString customEventText;\r\n\tCTestInfo info;\r\n\tCString preLaunch;\r\n\tCString postLaunch;\r\n\tCString dynaTrace;\r\n CString dynaTraceSessions;\r\n\tDWORD pipeIn;\r\n\tDWORD pipeOut;\r\n\tDWORD useBitBlt;\r\n int keepDNS;\r\n\t\r\n\tCRITICAL_SECTION cs;\r\n\tDWORD browserPID;\r\n\tPSID userSID;\r\n\r\nprotected:\r\n\tbool DoUserLogon(void);\r\n\tvoid ClearCache(void);\r\n\tbool LaunchBrowser(void);\r\n\tbool GetUrl(void);\r\n\tvoid ConfigurePagetest(void);\r\n\tbool ConfigureIE(void);\r\n\tvoid CloneIESettings(void);\r\n\tvoid CloneRegKey(HKEY hSrc, HKEY hDest, LPCTSTR subKey);\r\n\tvoid EncodeVideo(void);\r\n\tbool ConfigureIpfw();\r\n\tvoid ResetIpfw();\r\n\tvoid KillProcs();\r\n\tvoid FlushDNS();\r\n\tCLog\t&log;\r\n\tbool\tcached;\r\n\tCString eventName;\r\n\tHANDLE hDynaTrace;\r\n CWinPCap winpcap;\r\n HANDLE &testingMutex;\r\n CString heartbeatEventName;\r\n HANDLE heartbeatEvent;\r\n CurlBlastDlg &dlg;\r\n\t\r\n\t// directories\r\n\tCString\tprofile;\r\n\tCString cookies;\r\n\tCString history;\r\n\tCString tempFiles;\r\n CString tempDir;\r\n\tCString silverlight;\r\n\tCString recovery;\r\n\tCString flash;\r\n CString domStorage;\r\n\tCString desktopPath;\r\n\tCString windir;\r\n\tCString webCache;\r\n\r\n bool Launch(CString cmd, HANDLE * phProc = NULL);\r\n\tvoid LaunchDynaTrace();\r\n\tvoid CloseDynaTrace();\r\n\tint ZipDir(CString dir, CString dest, CString depth, zipFile file);\r\n};\r\n"}
80,870
c
#ifndef HACKERRANK_EULER_068_H_ #define HACKERRANK_EULER_068_H_ #include <set> #include <string> #include <array> #include <vector> // https://www.hackerrank.com/contests/projecteuler/challenges/euler068/problem //#define _GET_MAX_POSSIBLE_LINES struct P068MagicNGonRing { std::set<std::string> results; void Solve(int lines, int total); static void main(); #ifdef _GET_MAX_POSSIBLE_LINES static size_t max_possible_lines; #endif // _GET_MAX_POSSIBLE_LINES private: // use 4 instead of 3 for better optimization due to alignment using Line3 = std::array<int8_t, 4>; enum { kMaxLineSize = 10, kMaxNumber = kMaxLineSize * 2, kMaxPossibleLineCandidates = 45, }; struct NGonRingCandidate { int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10}; // true means inner node bool inner_flags[kMaxNumber+1] = { 0 }; std::vector<Line3> all_lines; int lines; int total; public: NGonRingCandidate(int lines, int total); void GenerateAllPossibleLines(); bool CheckInnerRing(); bool MakeNextInnerRing(); private: const int kInner_ring_sum; const int kMax_first_inner_num; }; friend class NGonRingBuilder; //using Rings = std::array<Line3, 10>; //using Rings = std::vector<Line3>; using Rings = Line3[10]; class NGonRingBuilder { public: NGonRingBuilder(P068MagicNGonRing* problem); void Build(NGonRingCandidate& ngon); private: bool GetValidLines(NGonRingCandidate& ngon); void BuildNextLineForRing(int line_num); private: int first_inner_num_; P068MagicNGonRing* problem_; int lines_; Rings rings_; Line3 valid_lines_[kMaxPossibleLineCandidates]; int line_count_ = 0; char used_num_[kMaxNumber+1] = { 0 }; }; }; #endif // HACKERRANK_EULER_068_H_
25.89
64
(translation_unit) "#ifndef HACKERRANK_EULER_068_H_\n#define HACKERRANK_EULER_068_H_\n\n#include <set>\n#include <string>\n#include <array>\n#include <vector>\n\n// https://www.hackerrank.com/contests/projecteuler/challenges/euler068/problem\n\n//#define _GET_MAX_POSSIBLE_LINES\n\nstruct P068MagicNGonRing\n{\n std::set<std::string> results;\n\n void Solve(int lines, int total);\n\n static void main();\n\n#ifdef _GET_MAX_POSSIBLE_LINES\n static size_t max_possible_lines;\n#endif // _GET_MAX_POSSIBLE_LINES\nprivate:\n // use 4 instead of 3 for better optimization due to alignment\n using Line3 = std::array<int8_t, 4>;\n\n enum {\n kMaxLineSize = 10,\n kMaxNumber = kMaxLineSize * 2,\n kMaxPossibleLineCandidates = 45,\n };\n\n struct NGonRingCandidate \n {\n int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n // true means inner node\n bool inner_flags[kMaxNumber+1] = { 0 };\n std::vector<Line3> all_lines;\n int lines;\n int total;\n public:\n NGonRingCandidate(int lines, int total);\n\n void GenerateAllPossibleLines();\n\n bool CheckInnerRing();\n\n bool MakeNextInnerRing();\n private:\n const int kInner_ring_sum;\n const int kMax_first_inner_num;\n };\n\n friend class NGonRingBuilder;\n\n //using Rings = std::array<Line3, 10>;\n //using Rings = std::vector<Line3>;\n using Rings = Line3[10];\n\n class NGonRingBuilder\n {\n public:\n NGonRingBuilder(P068MagicNGonRing* problem);\n\n void Build(NGonRingCandidate& ngon);\n private:\n bool GetValidLines(NGonRingCandidate& ngon);\n\n void BuildNextLineForRing(int line_num);\n private:\n int first_inner_num_;\n P068MagicNGonRing* problem_;\n int lines_;\n Rings rings_;\n Line3 valid_lines_[kMaxPossibleLineCandidates];\n int line_count_ = 0;\n char used_num_[kMaxNumber+1] = { 0 };\n };\n};\n\n#endif // HACKERRANK_EULER_068_H_\n" (preproc_ifdef) "#ifndef HACKERRANK_EULER_068_H_\n#define HACKERRANK_EULER_068_H_\n\n#include <set>\n#include <string>\n#include <array>\n#include <vector>\n\n// https://www.hackerrank.com/contests/projecteuler/challenges/euler068/problem\n\n//#define _GET_MAX_POSSIBLE_LINES\n\nstruct P068MagicNGonRing\n{\n std::set<std::string> results;\n\n void Solve(int lines, int total);\n\n static void main();\n\n#ifdef _GET_MAX_POSSIBLE_LINES\n static size_t max_possible_lines;\n#endif // _GET_MAX_POSSIBLE_LINES\nprivate:\n // use 4 instead of 3 for better optimization due to alignment\n using Line3 = std::array<int8_t, 4>;\n\n enum {\n kMaxLineSize = 10,\n kMaxNumber = kMaxLineSize * 2,\n kMaxPossibleLineCandidates = 45,\n };\n\n struct NGonRingCandidate \n {\n int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n // true means inner node\n bool inner_flags[kMaxNumber+1] = { 0 };\n std::vector<Line3> all_lines;\n int lines;\n int total;\n public:\n NGonRingCandidate(int lines, int total);\n\n void GenerateAllPossibleLines();\n\n bool CheckInnerRing();\n\n bool MakeNextInnerRing();\n private:\n const int kInner_ring_sum;\n const int kMax_first_inner_num;\n };\n\n friend class NGonRingBuilder;\n\n //using Rings = std::array<Line3, 10>;\n //using Rings = std::vector<Line3>;\n using Rings = Line3[10];\n\n class NGonRingBuilder\n {\n public:\n NGonRingBuilder(P068MagicNGonRing* problem);\n\n void Build(NGonRingCandidate& ngon);\n private:\n bool GetValidLines(NGonRingCandidate& ngon);\n\n void BuildNextLineForRing(int line_num);\n private:\n int first_inner_num_;\n P068MagicNGonRing* problem_;\n int lines_;\n Rings rings_;\n Line3 valid_lines_[kMaxPossibleLineCandidates];\n int line_count_ = 0;\n char used_num_[kMaxNumber+1] = { 0 };\n };\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "HACKERRANK_EULER_068_H_" (preproc_def) "#define HACKERRANK_EULER_068_H_\n" (#define) "#define" (identifier) "HACKERRANK_EULER_068_H_" (preproc_include) "#include <set>\n" (#include) "#include" (system_lib_string) "<set>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <array>\n" (#include) "#include" (system_lib_string) "<array>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (comment) "// https://www.hackerrank.com/contests/projecteuler/challenges/euler068/problem" (comment) "//#define _GET_MAX_POSSIBLE_LINES" (struct_specifier) "struct P068MagicNGonRing\n{\n std::set<std::string> results;\n\n void Solve(int lines, int total);\n\n static void main();\n\n#ifdef _GET_MAX_POSSIBLE_LINES\n static size_t max_possible_lines;\n#endif // _GET_MAX_POSSIBLE_LINES\nprivate:\n // use 4 instead of 3 for better optimization due to alignment\n using Line3 = std::array<int8_t, 4>;\n\n enum {\n kMaxLineSize = 10,\n kMaxNumber = kMaxLineSize * 2,\n kMaxPossibleLineCandidates = 45,\n };\n\n struct NGonRingCandidate \n {\n int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n // true means inner node\n bool inner_flags[kMaxNumber+1] = { 0 };\n std::vector<Line3> all_lines;\n int lines;\n int total;\n public:\n NGonRingCandidate(int lines, int total);\n\n void GenerateAllPossibleLines();\n\n bool CheckInnerRing();\n\n bool MakeNextInnerRing();\n private:\n const int kInner_ring_sum;\n const int kMax_first_inner_num;\n };\n\n friend class NGonRingBuilder;\n\n //using Rings = std::array<Line3, 10>;\n //using Rings = std::vector<Line3>;\n using Rings = Line3[10];\n\n class NGonRingBuilder\n {\n public:\n NGonRingBuilder(P068MagicNGonRing* problem);\n\n void Build(NGonRingCandidate& ngon);\n private:\n bool GetValidLines(NGonRingCandidate& ngon);\n\n void BuildNextLineForRing(int line_num);\n private:\n int first_inner_num_;\n P068MagicNGonRing* problem_;\n int lines_;\n Rings rings_;\n Line3 valid_lines_[kMaxPossibleLineCandidates];\n int line_count_ = 0;\n char used_num_[kMaxNumber+1] = { 0 };\n }" (struct) "struct" (type_identifier) "P068MagicNGonRing" (field_declaration_list) "{\n std::set<std::string> results;\n\n void Solve(int lines, int total);\n\n static void main();\n\n#ifdef _GET_MAX_POSSIBLE_LINES\n static size_t max_possible_lines;\n#endif // _GET_MAX_POSSIBLE_LINES\nprivate:\n // use 4 instead of 3 for better optimization due to alignment\n using Line3 = std::array<int8_t, 4>;\n\n enum {\n kMaxLineSize = 10,\n kMaxNumber = kMaxLineSize * 2,\n kMaxPossibleLineCandidates = 45,\n };\n\n struct NGonRingCandidate \n {\n int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n // true means inner node\n bool inner_flags[kMaxNumber+1] = { 0 };\n std::vector<Line3> all_lines;\n int lines;\n int total;\n public:\n NGonRingCandidate(int lines, int total);\n\n void GenerateAllPossibleLines();\n\n bool CheckInnerRing();\n\n bool MakeNextInnerRing();\n private:\n const int kInner_ring_sum;\n const int kMax_first_inner_num;\n };\n\n friend class NGonRingBuilder;\n\n //using Rings = std::array<Line3, 10>;\n //using Rings = std::vector<Line3>;\n using Rings = Line3[10];\n\n class NGonRingBuilder\n {\n public:\n NGonRingBuilder(P068MagicNGonRing* problem);\n\n void Build(NGonRingCandidate& ngon);\n private:\n bool GetValidLines(NGonRingCandidate& ngon);\n\n void BuildNextLineForRing(int line_num);\n private:\n int first_inner_num_;\n P068MagicNGonRing* problem_;\n int lines_;\n Rings rings_;\n Line3 valid_lines_[kMaxPossibleLineCandidates];\n int line_count_ = 0;\n char used_num_[kMaxNumber+1] = { 0 };\n }" ({) "{" (field_declaration) "std::set<std::string> results;" (type_identifier) "std" (ERROR) "::set<" (:) ":" (:) ":" (field_identifier) "set" (<) "<" (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":string> results" (:) ":" (binary_expression) "string> results" (identifier) "string" (>) ">" (identifier) "results" (;) ";" (field_declaration) "void Solve(int lines, int total);" (primitive_type) "void" (function_declarator) "Solve(int lines, int total)" (field_identifier) "Solve" (parameter_list) "(int lines, int total)" (() "(" (parameter_declaration) "int lines" (primitive_type) "int" (identifier) "lines" (,) "," (parameter_declaration) "int total" (primitive_type) "int" (identifier) "total" ()) ")" (;) ";" (field_declaration) "static void main();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "main()" (field_identifier) "main" (parameter_list) "()" (() "(" ()) ")" (;) ";" (preproc_ifdef) "#ifdef _GET_MAX_POSSIBLE_LINES\n static size_t max_possible_lines;\n#endif" (#ifdef) "#ifdef" (identifier) "_GET_MAX_POSSIBLE_LINES" (field_declaration) "static size_t max_possible_lines;" (storage_class_specifier) "static" (static) "static" (primitive_type) "size_t" (field_identifier) "max_possible_lines" (;) ";" (#endif) "#endif" (comment) "// _GET_MAX_POSSIBLE_LINES" (field_declaration) "private:\n // use 4 instead of 3 for better optimization due to alignment\n using Line3 = std::array<int8_t, 4>;" (type_identifier) "private" (ERROR) ":" (:) ":" (comment) "// use 4 instead of 3 for better optimization due to alignment" (field_identifier) "using" (ERROR) "Line3 = std:" (identifier) "Line3" (=) "=" (identifier) "std" (:) ":" (bitfield_clause) ":array<int8_t" (:) ":" (binary_expression) "array<int8_t" (identifier) "array" (<) "<" (identifier) "int8_t" (ERROR) ", 4>" (,) "," (number_literal) "4" (>) ">" (;) ";" (field_declaration) "enum {\n kMaxLineSize = 10,\n kMaxNumber = kMaxLineSize * 2,\n kMaxPossibleLineCandidates = 45,\n };" (enum_specifier) "enum {\n kMaxLineSize = 10,\n kMaxNumber = kMaxLineSize * 2,\n kMaxPossibleLineCandidates = 45,\n }" (enum) "enum" (enumerator_list) "{\n kMaxLineSize = 10,\n kMaxNumber = kMaxLineSize * 2,\n kMaxPossibleLineCandidates = 45,\n }" ({) "{" (enumerator) "kMaxLineSize = 10" (identifier) "kMaxLineSize" (=) "=" (number_literal) "10" (,) "," (enumerator) "kMaxNumber = kMaxLineSize * 2" (identifier) "kMaxNumber" (=) "=" (binary_expression) "kMaxLineSize * 2" (identifier) "kMaxLineSize" (*) "*" (number_literal) "2" (,) "," (enumerator) "kMaxPossibleLineCandidates = 45" (identifier) "kMaxPossibleLineCandidates" (=) "=" (number_literal) "45" (,) "," (}) "}" (;) ";" (field_declaration) "struct NGonRingCandidate \n {\n int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n // true means inner node\n bool inner_flags[kMaxNumber+1] = { 0 };\n std::vector<Line3> all_lines;\n int lines;\n int total;\n public:\n NGonRingCandidate(int lines, int total);\n\n void GenerateAllPossibleLines();\n\n bool CheckInnerRing();\n\n bool MakeNextInnerRing();\n private:\n const int kInner_ring_sum;\n const int kMax_first_inner_num;\n };" (struct_specifier) "struct NGonRingCandidate \n {\n int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n // true means inner node\n bool inner_flags[kMaxNumber+1] = { 0 };\n std::vector<Line3> all_lines;\n int lines;\n int total;\n public:\n NGonRingCandidate(int lines, int total);\n\n void GenerateAllPossibleLines();\n\n bool CheckInnerRing();\n\n bool MakeNextInnerRing();\n private:\n const int kInner_ring_sum;\n const int kMax_first_inner_num;\n }" (struct) "struct" (type_identifier) "NGonRingCandidate" (field_declaration_list) "{\n int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n // true means inner node\n bool inner_flags[kMaxNumber+1] = { 0 };\n std::vector<Line3> all_lines;\n int lines;\n int total;\n public:\n NGonRingCandidate(int lines, int total);\n\n void GenerateAllPossibleLines();\n\n bool CheckInnerRing();\n\n bool MakeNextInnerRing();\n private:\n const int kInner_ring_sum;\n const int kMax_first_inner_num;\n }" ({) "{" (field_declaration) "int inner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};" (primitive_type) "int" (array_declarator) "inner_nums[kMaxLineSize]" (field_identifier) "inner_nums" ([) "[" (identifier) "kMaxLineSize" (]) "]" (ERROR) "= {1,2,3,4,5,6,7,8,9,10}" (=) "=" ({) "{" (number_literal) "1" (,) "," (number_literal) "2" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (,) "," (number_literal) "7" (,) "," (number_literal) "8" (,) "," (number_literal) "9" (,) "," (number_literal) "10" (}) "}" (;) ";" (comment) "// true means inner node" (field_declaration) "bool inner_flags[kMaxNumber+1] = { 0 };" (primitive_type) "bool" (array_declarator) "inner_flags[kMaxNumber+1]" (field_identifier) "inner_flags" ([) "[" (binary_expression) "kMaxNumber+1" (identifier) "kMaxNumber" (+) "+" (number_literal) "1" (]) "]" (ERROR) "= { 0 }" (=) "=" ({) "{" (number_literal) "0" (}) "}" (;) ";" (field_declaration) "std::vector<Line3> all_lines;" (type_identifier) "std" (ERROR) "::vector<Line3>" (:) ":" (:) ":" (field_identifier) "vector" (<) "<" (field_identifier) "Line3" (>) ">" (field_identifier) "all_lines" (;) ";" (field_declaration) "int lines;" (primitive_type) "int" (field_identifier) "lines" (;) ";" (field_declaration) "int total;" (primitive_type) "int" (field_identifier) "total" (;) ";" (field_declaration) "public:\n NGonRingCandidate(int lines, int total);" (type_identifier) "public" (ERROR) ":" (:) ":" (function_declarator) "NGonRingCandidate(int lines, int total)" (field_identifier) "NGonRingCandidate" (parameter_list) "(int lines, int total)" (() "(" (parameter_declaration) "int lines" (primitive_type) "int" (identifier) "lines" (,) "," (parameter_declaration) "int total" (primitive_type) "int" (identifier) "total" ()) ")" (;) ";" (field_declaration) "void GenerateAllPossibleLines();" (primitive_type) "void" (function_declarator) "GenerateAllPossibleLines()" (field_identifier) "GenerateAllPossibleLines" (parameter_list) "()" (() "(" ()) ")" (;) ";" (field_declaration) "bool CheckInnerRing();" (primitive_type) "bool" (function_declarator) "CheckInnerRing()" (field_identifier) "CheckInnerRing" (parameter_list) "()" (() "(" ()) ")" (;) ";" (field_declaration) "bool MakeNextInnerRing();" (primitive_type) "bool" (function_declarator) "MakeNextInnerRing()" (field_identifier) "MakeNextInnerRing" (parameter_list) "()" (() "(" ()) ")" (;) ";" (field_declaration) "private:\n const int kInner_ring_sum;" (type_identifier) "private" (ERROR) ":" (:) ":" (type_qualifier) "const" (const) "const" (ERROR) "int" (field_identifier) "int" (field_identifier) "kInner_ring_sum" (;) ";" (field_declaration) "const int kMax_first_inner_num;" (type_qualifier) "const" (const) "const" (primitive_type) "int" (field_identifier) "kMax_first_inner_num" (;) ";" (}) "}" (;) ";" (field_declaration) "friend class NGonRingBuilder;" (type_identifier) "friend" (ERROR) "class" (field_identifier) "class" (field_identifier) "NGonRingBuilder" (;) ";" (comment) "//using Rings = std::array<Line3, 10>;" (comment) "//using Rings = std::vector<Line3>;" (field_declaration) "using Rings = Line3[10];" (type_identifier) "using" (ERROR) "Rings =" (field_identifier) "Rings" (=) "=" (array_declarator) "Line3[10]" (field_identifier) "Line3" ([) "[" (number_literal) "10" (]) "]" (;) ";" (field_declaration) "class NGonRingBuilder\n {\n public:\n NGonRingBuilder(P068MagicNGonRing* problem);" (type_identifier) "class" (field_identifier) "NGonRingBuilder" (ERROR) "{\n public" ({) "{" (identifier) "public" (bitfield_clause) ":\n NGonRingBuilder(P068MagicNGonRing* problem)" (:) ":" (call_expression) "NGonRingBuilder(P068MagicNGonRing* problem)" (identifier) "NGonRingBuilder" (argument_list) "(P068MagicNGonRing* problem)" (() "(" (binary_expression) "P068MagicNGonRing* problem" (identifier) "P068MagicNGonRing" (*) "*" (identifier) "problem" ()) ")" (;) ";" (field_declaration) "void Build(NGonRingCandidate& ngon);" (primitive_type) "void" (function_declarator) "Build(NGonRingCandidate& ngon)" (field_identifier) "Build" (parameter_list) "(NGonRingCandidate& ngon)" (() "(" (parameter_declaration) "NGonRingCandidate& ngon" (type_identifier) "NGonRingCandidate" (ERROR) "&" (&) "&" (identifier) "ngon" ()) ")" (;) ";" (ERROR) "private:" (type_identifier) "private" (:) ":" (field_declaration) "bool GetValidLines(NGonRingCandidate& ngon);" (primitive_type) "bool" (function_declarator) "GetValidLines(NGonRingCandidate& ngon)" (field_identifier) "GetValidLines" (parameter_list) "(NGonRingCandidate& ngon)" (() "(" (parameter_declaration) "NGonRingCandidate& ngon" (type_identifier) "NGonRingCandidate" (ERROR) "&" (&) "&" (identifier) "ngon" ()) ")" (;) ";" (field_declaration) "void BuildNextLineForRing(int line_num);" (primitive_type) "void" (function_declarator) "BuildNextLineForRing(int line_num)" (field_identifier) "BuildNextLineForRing" (parameter_list) "(int line_num)" (() "(" (parameter_declaration) "int line_num" (primitive_type) "int" (identifier) "line_num" ()) ")" (;) ";" (ERROR) "private:" (type_identifier) "private" (:) ":" (field_declaration) "int first_inner_num_;" (primitive_type) "int" (field_identifier) "first_inner_num_" (;) ";" (field_declaration) "P068MagicNGonRing* problem_;" (type_identifier) "P068MagicNGonRing" (pointer_declarator) "* problem_" (*) "*" (field_identifier) "problem_" (;) ";" (field_declaration) "int lines_;" (primitive_type) "int" (field_identifier) "lines_" (;) ";" (field_declaration) "Rings rings_;" (type_identifier) "Rings" (field_identifier) "rings_" (;) ";" (field_declaration) "Line3 valid_lines_[kMaxPossibleLineCandidates];" (type_identifier) "Line3" (array_declarator) "valid_lines_[kMaxPossibleLineCandidates]" (field_identifier) "valid_lines_" ([) "[" (identifier) "kMaxPossibleLineCandidates" (]) "]" (;) ";" (field_declaration) "int line_count_ = 0;" (primitive_type) "int" (field_identifier) "line_count_" (ERROR) "= 0" (=) "=" (number_literal) "0" (;) ";" (field_declaration) "char used_num_[kMaxNumber+1] = { 0 };" (primitive_type) "char" (array_declarator) "used_num_[kMaxNumber+1]" (field_identifier) "used_num_" ([) "[" (binary_expression) "kMaxNumber+1" (identifier) "kMaxNumber" (+) "+" (number_literal) "1" (]) "]" (ERROR) "= { 0 }" (=) "=" ({) "{" (number_literal) "0" (}) "}" (;) ";" (}) "}" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// HACKERRANK_EULER_068_H_"
395
21
{"language": "c", "success": true, "metadata": {"lines": 64, "avg_line_length": 25.89, "nodes": 251, "errors": 0, "source_hash": "28c583c096da630630d41811f5d0ffffb85087c4f90a6d05e7c612fc8cb44247", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HACKERRANK_EULER_068_H_\n#define HACKERRANK_EULER_068_H_\n\n#include <set>\n#include <string>\n#include <array>\n#include <vector>\n\n// https://www.hackerrank.com/contests/projecteuler/challenges/euler068/problem\n\n//#define _GET_MAX_POSSIBLE_LINES\n\nstruct P068MagicNGonRing\n{\n\tstd::set<std::string>\tresults;\n\n\tvoid Solve(int lines, int total);\n\n\tstatic void main();\n\n#ifdef _GET_MAX_POSSIBLE_LINES\n\tstatic size_t max_possible_lines;\n#endif // _GET_MAX_POSSIBLE_LINES\nprivate:\n\t// use 4 instead of 3 for better optimization due to alignment\n\tusing Line3 = std::array<int8_t, 4>;\n\n\tenum {\n\t\tkMaxLineSize\t\t\t\t= 10,\n\t\tkMaxNumber\t\t\t\t\t= kMaxLineSize * 2,\n\t\tkMaxPossibleLineCandidates\t= 45,\n\t};\n\n\tstruct NGonRingCandidate \n\t{\n\t\tint\t\tinner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n\t\t// true means inner node\n\t\tbool\tinner_flags[kMaxNumber+1] = { 0 };\n\t\tstd::vector<Line3> all_lines;\n\t\tint\t\tlines;\n\t\tint\t\ttotal;\n\tpublic:\n\t\tNGonRingCandidate(int lines, int total);\n\n\t\tvoid GenerateAllPossibleLines();\n\n\t\tbool CheckInnerRing();\n\n\t\tbool MakeNextInnerRing();\n\tprivate:\n\t\tconst int kInner_ring_sum;\n\t\tconst int kMax_first_inner_num;\n\t};\n\n\tfriend class NGonRingBuilder;\n\n\t//using Rings = std::array<Line3, 10>;\n\t//using Rings = std::vector<Line3>;\n\tusing Rings = Line3[10];\n\n\tclass NGonRingBuilder\n\t{\n\tpublic:\n\t\tNGonRingBuilder(P068MagicNGonRing* problem);\n\n\t\tvoid Build(NGonRingCandidate& ngon);\n\tprivate:\n\t\tbool GetValidLines(NGonRingCandidate& ngon);\n\n\t\tvoid BuildNextLineForRing(int line_num);\n\tprivate:\n\t\tint\t\tfirst_inner_num_;\n\t\tP068MagicNGonRing* problem_;\n\t\tint\t\tlines_;\n\t\tRings\trings_;\n\t\tLine3\tvalid_lines_[kMaxPossibleLineCandidates];\n\t\tint\t\tline_count_ = 0;\n\t\tchar\tused_num_[kMaxNumber+1] = { 0 };\n\t};\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 250], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 81, "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": "HACKERRANK_EULER_068_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 31}}, {"id": 3, "type": "preproc_def", "text": "#define HACKERRANK_EULER_068_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": "HACKERRANK_EULER_068_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 31}}, {"id": 6, "type": "preproc_include", "text": "#include <set>\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": "<set>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 14}}, {"id": 9, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <array>\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": "<array>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 16}}, {"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": "struct_specifier", "text": "struct P068MagicNGonRing\n{\n\tstd::set<std::string>\tresults;\n\n\tvoid Solve(int lines, int total);\n\n\tstatic void main();\n\n#ifdef _GET_MAX_POSSIBLE_LINES\n\tstatic size_t max_possible_lines;\n#endif // _GET_MAX_POSSIBLE_LINES\nprivate:\n\t// use 4 instead of 3 for better optimization due to alignment\n\tusing Line3 = std::array<int8_t, 4>;\n\n\tenum {\n\t\tkMaxLineSize\t\t\t\t= 10,\n\t\tkMaxNumber\t\t\t\t\t= kMaxLineSize * 2,\n\t\tkMaxPossibleLineCandidates\t= 45,\n\t};\n\n\tstruct NGonRingCandidate \n\t{\n\t\tint\t\tinner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n\t\t// true means inner node\n\t\tbool\tinner_flags[kMaxNumber+1] = { 0 };\n\t\tstd::vector<Line3> all_lines;\n\t\tint\t\tlines;\n\t\tint\t\ttotal;\n\tpublic:\n\t\tNGonRingCandidate(int lines, int total);\n\n\t\tvoid GenerateAllPossibleLines();\n\n\t\tbool CheckInnerRing();\n\n\t\tbool MakeNextInnerRing();\n\tprivate:\n\t\tconst int kInner_ring_sum;\n\t\tconst int kMax_first_inner_num;\n\t};\n\n\tfriend class NGonRingBuilder;\n\n\t//using Rings = std::array<Line3, 10>;\n\t//using Rings = std::vector<Line3>;\n\tusing Rings = Line3[10];\n\n\tclass NGonRingBuilder\n\t{\n\tpublic:\n\t\tNGonRingBuilder(P068MagicNGonRing* problem);\n\n\t\tvoid Build(NGonRingCandidate& ngon);\n\tprivate:\n\t\tbool GetValidLines(NGonRingCandidate& ngon);\n\n\t\tvoid BuildNextLineForRing(int line_num);\n\tprivate:\n\t\tint\t\tfirst_inner_num_;\n\t\tP068MagicNGonRing* problem_;\n\t\tint\t\tlines_;\n\t\tRings\trings_;\n\t\tLine3\tvalid_lines_[kMaxPossibleLineCandidates];\n\t\tint\t\tline_count_ = 0;\n\t\tchar\tused_num_[kMaxNumber+1] = { 0 };\n\t}", "parent": 0, "children": [19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 78, "column": 2}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 20, "type": "type_identifier", "text": "P068MagicNGonRing", "parent": 18, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 24}}, {"id": 21, "type": "field_declaration", "text": "std::set<std::string>\tresults;", "parent": 18, "children": [22, 23, 26, 27], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 31}}, {"id": 22, "type": "type_identifier", "text": "std", "parent": 21, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}, {"id": 23, "type": "ERROR", "text": "::set<", "parent": 21, "children": [24, 25], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 24, "type": "field_identifier", "text": "set", "parent": 23, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 9}}, {"id": 25, "type": "<", "text": "<", "parent": 23, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 10}}, {"id": 26, "type": "field_identifier", "text": "std", "parent": 21, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 13}}, {"id": 27, "type": "bitfield_clause", "text": ":string>\tresults", "parent": 21, "children": [28], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 30}}, {"id": 28, "type": "binary_expression", "text": "string>\tresults", "parent": 27, "children": [29, 30, 31], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 30}}, {"id": 29, "type": "identifier", "text": "string", "parent": 28, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 21}}, {"id": 30, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 22}}, {"id": 31, "type": "identifier", "text": "results", "parent": 28, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 30}}, {"id": 32, "type": "field_declaration", "text": "void Solve(int lines, int total);", "parent": 18, "children": [33, 34], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 34}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 5}}, {"id": 34, "type": "function_declarator", "text": "Solve(int lines, int total)", "parent": 32, "children": [35, 36], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 33}}, {"id": 35, "type": "field_identifier", "text": "Solve", "parent": 34, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 11}}, {"id": 36, "type": "parameter_list", "text": "(int lines, int total)", "parent": 34, "children": [37, 40], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 33}}, {"id": 37, "type": "parameter_declaration", "text": "int lines", "parent": 36, "children": [38, 39], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 21}}, {"id": 38, "type": "primitive_type", "text": "int", "parent": 37, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 15}}, {"id": 39, "type": "identifier", "text": "lines", "parent": 37, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 21}}, {"id": 40, "type": "parameter_declaration", "text": "int total", "parent": 36, "children": [41, 42], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 32}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 26}}, {"id": 42, "type": "identifier", "text": "total", "parent": 40, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 32}}, {"id": 43, "type": "field_declaration", "text": "static void main();", "parent": 18, "children": [44, 45], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 20}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 45, "type": "function_declarator", "text": "main()", "parent": 43, "children": [46, 47], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 19}}, {"id": 46, "type": "field_identifier", "text": "main", "parent": 45, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 17}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 19}}, {"id": 48, "type": "preproc_ifdef", "text": "#ifdef _GET_MAX_POSSIBLE_LINES\n\tstatic size_t max_possible_lines;\n#endif", "parent": 18, "children": [49, 50, 51, 54], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 49, "type": "#ifdef", "text": "#ifdef", "parent": 48, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 50, "type": "identifier", "text": "_GET_MAX_POSSIBLE_LINES", "parent": 48, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 30}}, {"id": 51, "type": "field_declaration", "text": "static size_t max_possible_lines;", "parent": 48, "children": [52, 53], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 34}}, {"id": 52, "type": "primitive_type", "text": "size_t", "parent": 51, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 14}}, {"id": 53, "type": "field_identifier", "text": "max_possible_lines", "parent": 51, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 33}}, {"id": 54, "type": "#endif", "text": "#endif", "parent": 48, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 55, "type": "field_declaration", "text": "private:\n\t// use 4 instead of 3 for better optimization due to alignment\n\tusing Line3 = std::array<int8_t, 4>;", "parent": 18, "children": [56, 57, 61, 66], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 25, "column": 37}}, {"id": 56, "type": "field_identifier", "text": "using", "parent": 55, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 6}}, {"id": 57, "type": "ERROR", "text": "Line3 = std:", "parent": 55, "children": [58, 59, 60], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 19}}, {"id": 58, "type": "identifier", "text": "Line3", "parent": 57, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 12}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 14}}, {"id": 60, "type": "identifier", "text": "std", "parent": 57, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 18}}, {"id": 61, "type": "bitfield_clause", "text": ":array<int8_t", "parent": 55, "children": [62], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 32}}, {"id": 62, "type": "binary_expression", "text": "array<int8_t", "parent": 61, "children": [63, 64, 65], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 32}}, {"id": 63, "type": "identifier", "text": "array", "parent": 62, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 25}}, {"id": 64, "type": "<", "text": "<", "parent": 62, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 26}}, {"id": 65, "type": "identifier", "text": "int8_t", "parent": 62, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 32}}, {"id": 66, "type": "ERROR", "text": ", 4>", "parent": 55, "children": [67, 68], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 36}}, {"id": 67, "type": "number_literal", "text": "4", "parent": 66, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 35}}, {"id": 68, "type": ">", "text": ">", "parent": 66, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 36}}, {"id": 69, "type": "field_declaration", "text": "enum {\n\t\tkMaxLineSize\t\t\t\t= 10,\n\t\tkMaxNumber\t\t\t\t\t= kMaxLineSize * 2,\n\t\tkMaxPossibleLineCandidates\t= 45,\n\t};", "parent": 18, "children": [70], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 31, "column": 3}}, {"id": 70, "type": "enum_specifier", "text": "enum {\n\t\tkMaxLineSize\t\t\t\t= 10,\n\t\tkMaxNumber\t\t\t\t\t= kMaxLineSize * 2,\n\t\tkMaxPossibleLineCandidates\t= 45,\n\t}", "parent": 69, "children": [71, 72], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 31, "column": 2}}, {"id": 71, "type": "enum", "text": "enum", "parent": 70, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 72, "type": "enumerator_list", "text": "{\n\t\tkMaxLineSize\t\t\t\t= 10,\n\t\tkMaxNumber\t\t\t\t\t= kMaxLineSize * 2,\n\t\tkMaxPossibleLineCandidates\t= 45,\n\t}", "parent": 70, "children": [73, 77, 84], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 31, "column": 2}}, {"id": 73, "type": "enumerator", "text": "kMaxLineSize\t\t\t\t= 10", "parent": 72, "children": [74, 75, 76], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 22}}, {"id": 74, "type": "identifier", "text": "kMaxLineSize", "parent": 73, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 14}}, {"id": 75, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 19}}, {"id": 76, "type": "number_literal", "text": "10", "parent": 73, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 22}}, {"id": 77, "type": "enumerator", "text": "kMaxNumber\t\t\t\t\t= kMaxLineSize * 2", "parent": 72, "children": [78, 79, 80], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 35}}, {"id": 78, "type": "identifier", "text": "kMaxNumber", "parent": 77, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 12}}, {"id": 79, "type": "=", "text": "=", "parent": 77, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 80, "type": "binary_expression", "text": "kMaxLineSize * 2", "parent": 77, "children": [81, 82, 83], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 35}}, {"id": 81, "type": "identifier", "text": "kMaxLineSize", "parent": 80, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 31}}, {"id": 82, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 33}}, {"id": 83, "type": "number_literal", "text": "2", "parent": 80, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 35}}, {"id": 84, "type": "enumerator", "text": "kMaxPossibleLineCandidates\t= 45", "parent": 72, "children": [85, 86, 87], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 33}}, {"id": 85, "type": "identifier", "text": "kMaxPossibleLineCandidates", "parent": 84, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 28}}, {"id": 86, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 30}}, {"id": 87, "type": "number_literal", "text": "45", "parent": 84, "children": [], "start_point": {"row": 30, "column": 31}, "end_point": {"row": 30, "column": 33}}, {"id": 88, "type": "field_declaration", "text": "struct NGonRingCandidate \n\t{\n\t\tint\t\tinner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n\t\t// true means inner node\n\t\tbool\tinner_flags[kMaxNumber+1] = { 0 };\n\t\tstd::vector<Line3> all_lines;\n\t\tint\t\tlines;\n\t\tint\t\ttotal;\n\tpublic:\n\t\tNGonRingCandidate(int lines, int total);\n\n\t\tvoid GenerateAllPossibleLines();\n\n\t\tbool CheckInnerRing();\n\n\t\tbool MakeNextInnerRing();\n\tprivate:\n\t\tconst int kInner_ring_sum;\n\t\tconst int kMax_first_inner_num;\n\t};", "parent": 18, "children": [89], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 52, "column": 3}}, {"id": 89, "type": "struct_specifier", "text": "struct NGonRingCandidate \n\t{\n\t\tint\t\tinner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n\t\t// true means inner node\n\t\tbool\tinner_flags[kMaxNumber+1] = { 0 };\n\t\tstd::vector<Line3> all_lines;\n\t\tint\t\tlines;\n\t\tint\t\ttotal;\n\tpublic:\n\t\tNGonRingCandidate(int lines, int total);\n\n\t\tvoid GenerateAllPossibleLines();\n\n\t\tbool CheckInnerRing();\n\n\t\tbool MakeNextInnerRing();\n\tprivate:\n\t\tconst int kInner_ring_sum;\n\t\tconst int kMax_first_inner_num;\n\t}", "parent": 88, "children": [90, 91], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 52, "column": 2}}, {"id": 90, "type": "struct", "text": "struct", "parent": 89, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 7}}, {"id": 91, "type": "type_identifier", "text": "NGonRingCandidate", "parent": 89, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 25}}, {"id": 92, "type": "field_declaration", "text": "int\t\tinner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};", "parent": 89, "children": [93, 94, 97], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 57}}, {"id": 93, "type": "primitive_type", "text": "int", "parent": 92, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 5}}, {"id": 94, "type": "array_declarator", "text": "inner_nums[kMaxLineSize]", "parent": 92, "children": [95, 96], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 31}}, {"id": 95, "type": "field_identifier", "text": "inner_nums", "parent": 94, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 17}}, {"id": 96, "type": "identifier", "text": "kMaxLineSize", "parent": 94, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 30}}, {"id": 97, "type": "ERROR", "text": "= {1,2,3,4,5,6,7,8,9,10}", "parent": 92, "children": [98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 56}}, {"id": 98, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 33}}, {"id": 99, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 36}}, {"id": 100, "type": "number_literal", "text": "2", "parent": 97, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 38}}, {"id": 101, "type": "number_literal", "text": "3", "parent": 97, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 40}}, {"id": 102, "type": "number_literal", "text": "4", "parent": 97, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 42}}, {"id": 103, "type": "number_literal", "text": "5", "parent": 97, "children": [], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 44}}, {"id": 104, "type": "number_literal", "text": "6", "parent": 97, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 46}}, {"id": 105, "type": "number_literal", "text": "7", "parent": 97, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 48}}, {"id": 106, "type": "number_literal", "text": "8", "parent": 97, "children": [], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 50}}, {"id": 107, "type": "number_literal", "text": "9", "parent": 97, "children": [], "start_point": {"row": 35, "column": 51}, "end_point": {"row": 35, "column": 52}}, {"id": 108, "type": "number_literal", "text": "10", "parent": 97, "children": [], "start_point": {"row": 35, "column": 53}, "end_point": {"row": 35, "column": 55}}, {"id": 109, "type": "field_declaration", "text": "bool\tinner_flags[kMaxNumber+1] = { 0 };", "parent": 89, "children": [110, 111, 117], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 41}}, {"id": 110, "type": "primitive_type", "text": "bool", "parent": 109, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 6}}, {"id": 111, "type": "array_declarator", "text": "inner_flags[kMaxNumber+1]", "parent": 109, "children": [112, 113], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 32}}, {"id": 112, "type": "field_identifier", "text": "inner_flags", "parent": 111, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 18}}, {"id": 113, "type": "binary_expression", "text": "kMaxNumber+1", "parent": 111, "children": [114, 115, 116], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 31}}, {"id": 114, "type": "identifier", "text": "kMaxNumber", "parent": 113, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 29}}, {"id": 115, "type": "+", "text": "+", "parent": 113, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 30}}, {"id": 116, "type": "number_literal", "text": "1", "parent": 113, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 31}}, {"id": 117, "type": "ERROR", "text": "= { 0 }", "parent": 109, "children": [118, 119], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 40}}, {"id": 118, "type": "=", "text": "=", "parent": 117, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 34}}, {"id": 119, "type": "number_literal", "text": "0", "parent": 117, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 38}}, {"id": 120, "type": "field_declaration", "text": "std::vector<Line3> all_lines;", "parent": 89, "children": [121, 122, 127], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 31}}, {"id": 121, "type": "type_identifier", "text": "std", "parent": 120, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 5}}, {"id": 122, "type": "ERROR", "text": "::vector<Line3>", "parent": 120, "children": [123, 124, 125, 126], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 20}}, {"id": 123, "type": "field_identifier", "text": "vector", "parent": 122, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 13}}, {"id": 124, "type": "<", "text": "<", "parent": 122, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 14}}, {"id": 125, "type": "field_identifier", "text": "Line3", "parent": 122, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 19}}, {"id": 126, "type": ">", "text": ">", "parent": 122, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 20}}, {"id": 127, "type": "field_identifier", "text": "all_lines", "parent": 120, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 30}}, {"id": 128, "type": "field_declaration", "text": "int\t\tlines;", "parent": 89, "children": [129, 130], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 13}}, {"id": 129, "type": "primitive_type", "text": "int", "parent": 128, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 5}}, {"id": 130, "type": "field_identifier", "text": "lines", "parent": 128, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 12}}, {"id": 131, "type": "field_declaration", "text": "int\t\ttotal;", "parent": 89, "children": [132, 133], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 13}}, {"id": 132, "type": "primitive_type", "text": "int", "parent": 131, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 5}}, {"id": 133, "type": "field_identifier", "text": "total", "parent": 131, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 12}}, {"id": 134, "type": "field_declaration", "text": "public:\n\t\tNGonRingCandidate(int lines, int total);", "parent": 89, "children": [135], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 42, "column": 42}}, {"id": 135, "type": "function_declarator", "text": "NGonRingCandidate(int lines, int total)", "parent": 134, "children": [136, 137], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 41}}, {"id": 136, "type": "field_identifier", "text": "NGonRingCandidate", "parent": 135, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 19}}, {"id": 137, "type": "parameter_list", "text": "(int lines, int total)", "parent": 135, "children": [138, 141], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 41}}, {"id": 138, "type": "parameter_declaration", "text": "int lines", "parent": 137, "children": [139, 140], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 29}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 23}}, {"id": 140, "type": "identifier", "text": "lines", "parent": 138, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 29}}, {"id": 141, "type": "parameter_declaration", "text": "int total", "parent": 137, "children": [142, 143], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 40}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 34}}, {"id": 143, "type": "identifier", "text": "total", "parent": 141, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 40}}, {"id": 144, "type": "field_declaration", "text": "void GenerateAllPossibleLines();", "parent": 89, "children": [145, 146], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 34}}, {"id": 145, "type": "primitive_type", "text": "void", "parent": 144, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 6}}, {"id": 146, "type": "function_declarator", "text": "GenerateAllPossibleLines()", "parent": 144, "children": [147, 148], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 33}}, {"id": 147, "type": "field_identifier", "text": "GenerateAllPossibleLines", "parent": 146, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 31}}, {"id": 148, "type": "parameter_list", "text": "()", "parent": 146, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 33}}, {"id": 149, "type": "field_declaration", "text": "bool CheckInnerRing();", "parent": 89, "children": [150, 151], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 24}}, {"id": 150, "type": "primitive_type", "text": "bool", "parent": 149, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 151, "type": "function_declarator", "text": "CheckInnerRing()", "parent": 149, "children": [152, 153], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 23}}, {"id": 152, "type": "field_identifier", "text": "CheckInnerRing", "parent": 151, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 21}}, {"id": 153, "type": "parameter_list", "text": "()", "parent": 151, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 23}}, {"id": 154, "type": "field_declaration", "text": "bool MakeNextInnerRing();", "parent": 89, "children": [155, 156], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 27}}, {"id": 155, "type": "primitive_type", "text": "bool", "parent": 154, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 156, "type": "function_declarator", "text": "MakeNextInnerRing()", "parent": 154, "children": [157, 158], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 26}}, {"id": 157, "type": "field_identifier", "text": "MakeNextInnerRing", "parent": 156, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 24}}, {"id": 158, "type": "parameter_list", "text": "()", "parent": 156, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 26}}, {"id": 159, "type": "field_declaration", "text": "private:\n\t\tconst int kInner_ring_sum;", "parent": 89, "children": [160, 162], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 50, "column": 28}}, {"id": 160, "type": "ERROR", "text": "int", "parent": 159, "children": [161], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 11}}, {"id": 161, "type": "field_identifier", "text": "int", "parent": 160, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 11}}, {"id": 162, "type": "field_identifier", "text": "kInner_ring_sum", "parent": 159, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 27}}, {"id": 163, "type": "field_declaration", "text": "const int kMax_first_inner_num;", "parent": 89, "children": [164, 165], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 33}}, {"id": 164, "type": "primitive_type", "text": "int", "parent": 163, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 11}}, {"id": 165, "type": "field_identifier", "text": "kMax_first_inner_num", "parent": 163, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 32}}, {"id": 166, "type": "field_declaration", "text": "friend class NGonRingBuilder;", "parent": 18, "children": [167, 168], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 30}}, {"id": 167, "type": "type_identifier", "text": "friend", "parent": 166, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 7}}, {"id": 168, "type": "field_identifier", "text": "NGonRingBuilder", "parent": 166, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 29}}, {"id": 169, "type": "field_declaration", "text": "using Rings = Line3[10];", "parent": 18, "children": [170, 171, 174], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 25}}, {"id": 170, "type": "type_identifier", "text": "using", "parent": 169, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 6}}, {"id": 171, "type": "ERROR", "text": "Rings =", "parent": 169, "children": [172, 173], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 14}}, {"id": 172, "type": "field_identifier", "text": "Rings", "parent": 171, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 12}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 174, "type": "array_declarator", "text": "Line3[10]", "parent": 169, "children": [175, 176], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 24}}, {"id": 175, "type": "field_identifier", "text": "Line3", "parent": 174, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 20}}, {"id": 176, "type": "number_literal", "text": "10", "parent": 174, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 23}}, {"id": 177, "type": "field_declaration", "text": "class NGonRingBuilder\n\t{\n\tpublic:\n\t\tNGonRingBuilder(P068MagicNGonRing* problem);", "parent": 18, "children": [178, 179, 180], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 63, "column": 46}}, {"id": 178, "type": "field_identifier", "text": "NGonRingBuilder", "parent": 177, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 22}}, {"id": 179, "type": "ERROR", "text": "{\n\tpublic", "parent": 177, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 62, "column": 7}}, {"id": 180, "type": "bitfield_clause", "text": ":\n\t\tNGonRingBuilder(P068MagicNGonRing* problem)", "parent": 177, "children": [181], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 63, "column": 45}}, {"id": 181, "type": "call_expression", "text": "NGonRingBuilder(P068MagicNGonRing* problem)", "parent": 180, "children": [182, 183], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 45}}, {"id": 182, "type": "identifier", "text": "NGonRingBuilder", "parent": 181, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 17}}, {"id": 183, "type": "argument_list", "text": "(P068MagicNGonRing* problem)", "parent": 181, "children": [184], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 45}}, {"id": 184, "type": "binary_expression", "text": "P068MagicNGonRing* problem", "parent": 183, "children": [185, 186, 187], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 44}}, {"id": 185, "type": "identifier", "text": "P068MagicNGonRing", "parent": 184, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 35}}, {"id": 186, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 63, "column": 35}, "end_point": {"row": 63, "column": 36}}, {"id": 187, "type": "identifier", "text": "problem", "parent": 184, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 44}}, {"id": 188, "type": "field_declaration", "text": "void Build(NGonRingCandidate& ngon);", "parent": 18, "children": [189, 190], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 38}}, {"id": 189, "type": "primitive_type", "text": "void", "parent": 188, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 6}}, {"id": 190, "type": "function_declarator", "text": "Build(NGonRingCandidate& ngon)", "parent": 188, "children": [191, 192], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 37}}, {"id": 191, "type": "field_identifier", "text": "Build", "parent": 190, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 12}}, {"id": 192, "type": "parameter_list", "text": "(NGonRingCandidate& ngon)", "parent": 190, "children": [193], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 37}}, {"id": 193, "type": "parameter_declaration", "text": "NGonRingCandidate& ngon", "parent": 192, "children": [194, 195], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 36}}, {"id": 194, "type": "type_identifier", "text": "NGonRingCandidate", "parent": 193, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 30}}, {"id": 195, "type": "identifier", "text": "ngon", "parent": 193, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 36}}, {"id": 196, "type": "ERROR", "text": "private:", "parent": 18, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 9}}, {"id": 197, "type": "field_declaration", "text": "bool GetValidLines(NGonRingCandidate& ngon);", "parent": 18, "children": [198, 199], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 46}}, {"id": 198, "type": "primitive_type", "text": "bool", "parent": 197, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 6}}, {"id": 199, "type": "function_declarator", "text": "GetValidLines(NGonRingCandidate& ngon)", "parent": 197, "children": [200, 201], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 45}}, {"id": 200, "type": "field_identifier", "text": "GetValidLines", "parent": 199, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 20}}, {"id": 201, "type": "parameter_list", "text": "(NGonRingCandidate& ngon)", "parent": 199, "children": [202], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 45}}, {"id": 202, "type": "parameter_declaration", "text": "NGonRingCandidate& ngon", "parent": 201, "children": [203, 204], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 44}}, {"id": 203, "type": "type_identifier", "text": "NGonRingCandidate", "parent": 202, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 38}}, {"id": 204, "type": "identifier", "text": "ngon", "parent": 202, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 44}}, {"id": 205, "type": "field_declaration", "text": "void BuildNextLineForRing(int line_num);", "parent": 18, "children": [206, 207], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 42}}, {"id": 206, "type": "primitive_type", "text": "void", "parent": 205, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 6}}, {"id": 207, "type": "function_declarator", "text": "BuildNextLineForRing(int line_num)", "parent": 205, "children": [208, 209], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 41}}, {"id": 208, "type": "field_identifier", "text": "BuildNextLineForRing", "parent": 207, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 27}}, {"id": 209, "type": "parameter_list", "text": "(int line_num)", "parent": 207, "children": [210], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 41}}, {"id": 210, "type": "parameter_declaration", "text": "int line_num", "parent": 209, "children": [211, 212], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 40}}, {"id": 211, "type": "primitive_type", "text": "int", "parent": 210, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 31}}, {"id": 212, "type": "identifier", "text": "line_num", "parent": 210, "children": [], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 40}}, {"id": 213, "type": "ERROR", "text": "private:", "parent": 18, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 9}}, {"id": 214, "type": "field_declaration", "text": "int\t\tfirst_inner_num_;", "parent": 18, "children": [215, 216], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 24}}, {"id": 215, "type": "primitive_type", "text": "int", "parent": 214, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 5}}, {"id": 216, "type": "field_identifier", "text": "first_inner_num_", "parent": 214, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 23}}, {"id": 217, "type": "field_declaration", "text": "P068MagicNGonRing* problem_;", "parent": 18, "children": [218, 219], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 30}}, {"id": 218, "type": "type_identifier", "text": "P068MagicNGonRing", "parent": 217, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 19}}, {"id": 219, "type": "pointer_declarator", "text": "* problem_", "parent": 217, "children": [220, 221], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 29}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 20}}, {"id": 221, "type": "field_identifier", "text": "problem_", "parent": 219, "children": [], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 29}}, {"id": 222, "type": "field_declaration", "text": "int\t\tlines_;", "parent": 18, "children": [223, 224], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 14}}, {"id": 223, "type": "primitive_type", "text": "int", "parent": 222, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 5}}, {"id": 224, "type": "field_identifier", "text": "lines_", "parent": 222, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 13}}, {"id": 225, "type": "field_declaration", "text": "Rings\trings_;", "parent": 18, "children": [226, 227], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 15}}, {"id": 226, "type": "type_identifier", "text": "Rings", "parent": 225, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 7}}, {"id": 227, "type": "field_identifier", "text": "rings_", "parent": 225, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 14}}, {"id": 228, "type": "field_declaration", "text": "Line3\tvalid_lines_[kMaxPossibleLineCandidates];", "parent": 18, "children": [229, 230], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 49}}, {"id": 229, "type": "type_identifier", "text": "Line3", "parent": 228, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 7}}, {"id": 230, "type": "array_declarator", "text": "valid_lines_[kMaxPossibleLineCandidates]", "parent": 228, "children": [231, 232], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 48}}, {"id": 231, "type": "field_identifier", "text": "valid_lines_", "parent": 230, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 20}}, {"id": 232, "type": "identifier", "text": "kMaxPossibleLineCandidates", "parent": 230, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 47}}, {"id": 233, "type": "field_declaration", "text": "int\t\tline_count_ = 0;", "parent": 18, "children": [234, 235, 236], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 23}}, {"id": 234, "type": "primitive_type", "text": "int", "parent": 233, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 5}}, {"id": 235, "type": "field_identifier", "text": "line_count_", "parent": 233, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 18}}, {"id": 236, "type": "ERROR", "text": "= 0", "parent": 233, "children": [237, 238], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 22}}, {"id": 237, "type": "=", "text": "=", "parent": 236, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 20}}, {"id": 238, "type": "number_literal", "text": "0", "parent": 236, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 22}}, {"id": 239, "type": "field_declaration", "text": "char\tused_num_[kMaxNumber+1] = { 0 };", "parent": 18, "children": [240, 241, 247], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 39}}, {"id": 240, "type": "primitive_type", "text": "char", "parent": 239, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 241, "type": "array_declarator", "text": "used_num_[kMaxNumber+1]", "parent": 239, "children": [242, 243], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 30}}, {"id": 242, "type": "field_identifier", "text": "used_num_", "parent": 241, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 16}}, {"id": 243, "type": "binary_expression", "text": "kMaxNumber+1", "parent": 241, "children": [244, 245, 246], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 29}}, {"id": 244, "type": "identifier", "text": "kMaxNumber", "parent": 243, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 27}}, {"id": 245, "type": "+", "text": "+", "parent": 243, "children": [], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 28}}, {"id": 246, "type": "number_literal", "text": "1", "parent": 243, "children": [], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 29}}, {"id": 247, "type": "ERROR", "text": "= { 0 }", "parent": 239, "children": [248, 249], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 38}}, {"id": 248, "type": "=", "text": "=", "parent": 247, "children": [], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 32}}, {"id": 249, "type": "number_literal", "text": "0", "parent": 247, "children": [], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 36}}, {"id": 250, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 6}}]}, "node_categories": {"declarations": {"functions": [34, 45, 135, 146, 151, 156, 190, 199, 207], "variables": [21, 32, 37, 40, 43, 51, 55, 69, 88, 92, 109, 120, 128, 131, 134, 138, 141, 144, 149, 154, 159, 163, 166, 169, 177, 188, 193, 197, 202, 205, 210, 214, 217, 222, 225, 228, 233, 239], "classes": [18, 19, 89, 90], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": [70, 71, 72, 73, 77, 84]}, "statements": {"expressions": [28, 62, 80, 113, 181, 184, 243], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 20, 22, 24, 26, 29, 31, 35, 39, 42, 46, 48, 49, 50, 53, 54, 56, 58, 60, 63, 65, 74, 78, 81, 85, 91, 95, 96, 112, 114, 121, 123, 125, 127, 130, 133, 136, 140, 143, 147, 152, 157, 161, 162, 165, 167, 168, 170, 172, 175, 178, 182, 185, 187, 191, 194, 195, 200, 203, 204, 208, 212, 216, 218, 221, 224, 226, 227, 229, 231, 232, 235, 242, 244, 250], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 67, 76, 83, 87, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 116, 119, 176, 238, 246, 249], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [27, 61, 180]}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "total)", "text_snippet": "Solve(int lines, int total)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}, {"node_id": 135, "universal_type": "function", "name": "total)", "text_snippet": "NGonRingCandidate(int lines, int total)"}, {"node_id": 146, "universal_type": "function", "name": "unknown", "text_snippet": "GenerateAllPossibleLines()"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "CheckInnerRing()"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "MakeNextInnerRing()"}, {"node_id": 190, "universal_type": "function", "name": "unknown", "text_snippet": "Build(NGonRingCandidate& ngon)"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "GetValidLines(NGonRingCandidate& ngon)"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "BuildNextLineForRing(int line_num)"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "P068MagicNGonRing", "text_snippet": "struct P068MagicNGonRing\n{\n\tstd::set<std::string>\tresults;\n\n\tvoid Solve(int lines, int total);\n\n\tsta"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 89, "universal_type": "class", "name": "NGonRingCandidate", "text_snippet": "struct NGonRingCandidate \n\t{\n\t\tint\t\tinner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n\t\t// true mea"}, {"node_id": 90, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <set>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <string>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <array>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vector>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef HACKERRANK_EULER_068_H_\n#define HACKERRANK_EULER_068_H_\n\n#include <set>\n#include <string>\n#include <array>\n#include <vector>\n\n// https://www.hackerrank.com/contests/projecteuler/challenges/euler068/problem\n\n//#define _GET_MAX_POSSIBLE_LINES\n\nstruct P068MagicNGonRing\n{\n\tstd::set<std::string>\tresults;\n\n\tvoid Solve(int lines, int total);\n\n\tstatic void main();\n\n#ifdef _GET_MAX_POSSIBLE_LINES\n\tstatic size_t max_possible_lines;\n#endif // _GET_MAX_POSSIBLE_LINES\nprivate:\n\t// use 4 instead of 3 for better optimization due to alignment\n\tusing Line3 = std::array<int8_t, 4>;\n\n\tenum {\n\t\tkMaxLineSize\t\t\t\t= 10,\n\t\tkMaxNumber\t\t\t\t\t= kMaxLineSize * 2,\n\t\tkMaxPossibleLineCandidates\t= 45,\n\t};\n\n\tstruct NGonRingCandidate \n\t{\n\t\tint\t\tinner_nums[kMaxLineSize] = {1,2,3,4,5,6,7,8,9,10};\n\t\t// true means inner node\n\t\tbool\tinner_flags[kMaxNumber+1] = { 0 };\n\t\tstd::vector<Line3> all_lines;\n\t\tint\t\tlines;\n\t\tint\t\ttotal;\n\tpublic:\n\t\tNGonRingCandidate(int lines, int total);\n\n\t\tvoid GenerateAllPossibleLines();\n\n\t\tbool CheckInnerRing();\n\n\t\tbool MakeNextInnerRing();\n\tprivate:\n\t\tconst int kInner_ring_sum;\n\t\tconst int kMax_first_inner_num;\n\t};\n\n\tfriend class NGonRingBuilder;\n\n\t//using Rings = std::array<Line3, 10>;\n\t//using Rings = std::vector<Line3>;\n\tusing Rings = Line3[10];\n\n\tclass NGonRingBuilder\n\t{\n\tpublic:\n\t\tNGonRingBuilder(P068MagicNGonRing* problem);\n\n\t\tvoid Build(NGonRingCandidate& ngon);\n\tprivate:\n\t\tbool GetValidLines(NGonRingCandidate& ngon);\n\n\t\tvoid BuildNextLineForRing(int line_num);\n\tprivate:\n\t\tint\t\tfirst_inner_num_;\n\t\tP068MagicNGonRing* problem_;\n\t\tint\t\tlines_;\n\t\tRings\trings_;\n\t\tLine3\tvalid_lines_[kMaxPossibleLineCandidates];\n\t\tint\t\tline_count_ = 0;\n\t\tchar\tused_num_[kMaxNumber+1] = { 0 };\n\t};\n};\n\n#endif // HACKERRANK_EULER_068_H_\n"}
80,871
c
#ifndef __NT_DEFINITIONS_H__ #define __NT_DEFINITIONS_H__ extern "C" { enum SYSTEM_INFORMATION_CLASS { SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation SystemModuleInformation = 11 }; // Note: simplified structure representation typedef struct _SYSTEM_PROCESS_INFORMATION { ULONG NextEntryOffset; ULONG NumberOfThreads; UCHAR Reserved1[48]; PVOID Reserved2[3]; HANDLE UniqueProcessId; HANDLE InheritedFromUniqueProcessId; ULONG HandleCount; UCHAR Reserved4[4]; PVOID Reserved5[11]; SIZE_T PeakPagefileUsage; SIZE_T PrivatePageCount; LARGE_INTEGER Reserved6[6]; } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION; NTSTATUS NTAPI ZwQuerySystemInformation( __in SYSTEM_INFORMATION_CLASS SystemInformationClass, __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation, __in ULONG SystemInformationLength, __out_opt PULONG ReturnLength ); NTSTATUS NTAPI ZwQueryInformationProcess( __in HANDLE ProcessHandle, __in PROCESSINFOCLASS ProcessInformationClass, __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation, __in ULONG ProcessInformationLength, __out_opt PULONG ReturnLength ); PPEB PsGetProcessPeb ( IN PEPROCESS Process ); typedef struct _PEB_LDR_DATA { UCHAR Reserved1[8]; PVOID Reserved2[3]; LIST_ENTRY InMemoryOrderModuleList; } PEB_LDR_DATA, *PPEB_LDR_DATA; typedef struct _LDR_DATA_TABLE_ENTRY { PVOID Reserved1[2]; LIST_ENTRY InMemoryOrderLinks; PVOID Reserved2[2]; PVOID DllBase; PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported. SIZE_T SizeOfImage; UNICODE_STRING FullDllName; UCHAR Reserved4[8]; PVOID Reserved5[3]; union { ULONG CheckSum; PVOID Reserved6; }; ULONG TimeDateStamp; } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY; typedef struct _RTL_USER_PROCESS_PARAMETERS { UCHAR Reserved1[16]; PVOID Reserved2[10]; UNICODE_STRING ImagePathName; UNICODE_STRING CommandLine; } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS; #ifndef _WIN64 typedef struct _PEB { UCHAR Reserved1[2]; UCHAR BeingDebugged; UCHAR Reserved2[1]; PVOID Reserved3[1]; PVOID ImageBaseAddress; PPEB_LDR_DATA Ldr; PRTL_USER_PROCESS_PARAMETERS ProcessParameters; UCHAR Reserved4[104]; PVOID Reserved5[52]; PVOID PostProcessInitRoutine; UCHAR Reserved6[128]; PVOID Reserved7[1]; ULONG SessionId; } PEB, *PPEB; #else typedef struct _PEB { UCHAR Reserved1[2]; UCHAR BeingDebugged; UCHAR Reserved2[13]; PVOID ImageBaseAddress; PPEB_LDR_DATA Ldr; PRTL_USER_PROCESS_PARAMETERS ProcessParameters; UCHAR Reserved3[520]; PVOID PostProcessInitRoutine; UCHAR Reserved4[136]; ULONG SessionId; } PEB, *PPEB; #endif } // extern "C" #endif //__NT_DEFINITIONS_H__
31.96
104
(translation_unit) "#ifndef __NT_DEFINITIONS_H__\n#define __NT_DEFINITIONS_H__\n\nextern "C"\n{\n enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n };\n\n // Note: simplified structure representation\n typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;\n\n NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );\n\n typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;\n\n typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;\n\n typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;\n\n#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif\n\n} // extern "C"\n\n#endif //__NT_DEFINITIONS_H__" (preproc_ifdef) "#ifndef __NT_DEFINITIONS_H__\n#define __NT_DEFINITIONS_H__\n\nextern "C"\n{\n enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n };\n\n // Note: simplified structure representation\n typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;\n\n NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );\n\n typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;\n\n typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;\n\n typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;\n\n#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif\n\n} // extern "C"\n\n#endif" (#ifndef) "#ifndef" (identifier) "__NT_DEFINITIONS_H__" (preproc_def) "#define __NT_DEFINITIONS_H__\n" (#define) "#define" (identifier) "__NT_DEFINITIONS_H__" (linkage_specification) "extern "C"\n{\n enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n };\n\n // Note: simplified structure representation\n typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;\n\n NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );\n\n typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;\n\n typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;\n\n typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;\n\n#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif\n\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n };\n\n // Note: simplified structure representation\n typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;\n\n NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );\n\n typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;\n\n typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;\n\n typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;\n\n#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif\n\n}" ({) "{" (enum_specifier) "enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n }" (enum) "enum" (type_identifier) "SYSTEM_INFORMATION_CLASS" (enumerator_list) "{\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n }" ({) "{" (enumerator) "SystemProcessInformation = 5" (identifier) "SystemProcessInformation" (=) "=" (number_literal) "5" (,) "," (comment) "// SystemProcessesAndThreadsInformation" (enumerator) "SystemModuleInformation = 11" (identifier) "SystemModuleInformation" (=) "=" (number_literal) "11" (}) "}" (;) ";" (comment) "// Note: simplified structure representation" (type_definition) "typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;" (typedef) "typedef" (struct_specifier) "struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n }" (struct) "struct" (type_identifier) "_SYSTEM_PROCESS_INFORMATION" (field_declaration_list) "{\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n }" ({) "{" (field_declaration) "ULONG NextEntryOffset;" (type_identifier) "ULONG" (field_identifier) "NextEntryOffset" (;) ";" (field_declaration) "ULONG NumberOfThreads;" (type_identifier) "ULONG" (field_identifier) "NumberOfThreads" (;) ";" (field_declaration) "UCHAR Reserved1[48];" (type_identifier) "UCHAR" (array_declarator) "Reserved1[48]" (field_identifier) "Reserved1" ([) "[" (number_literal) "48" (]) "]" (;) ";" (field_declaration) "PVOID Reserved2[3];" (type_identifier) "PVOID" (array_declarator) "Reserved2[3]" (field_identifier) "Reserved2" ([) "[" (number_literal) "3" (]) "]" (;) ";" (field_declaration) "HANDLE UniqueProcessId;" (type_identifier) "HANDLE" (field_identifier) "UniqueProcessId" (;) ";" (field_declaration) "HANDLE InheritedFromUniqueProcessId;" (type_identifier) "HANDLE" (field_identifier) "InheritedFromUniqueProcessId" (;) ";" (field_declaration) "ULONG HandleCount;" (type_identifier) "ULONG" (field_identifier) "HandleCount" (;) ";" (field_declaration) "UCHAR Reserved4[4];" (type_identifier) "UCHAR" (array_declarator) "Reserved4[4]" (field_identifier) "Reserved4" ([) "[" (number_literal) "4" (]) "]" (;) ";" (field_declaration) "PVOID Reserved5[11];" (type_identifier) "PVOID" (array_declarator) "Reserved5[11]" (field_identifier) "Reserved5" ([) "[" (number_literal) "11" (]) "]" (;) ";" (field_declaration) "SIZE_T PeakPagefileUsage;" (type_identifier) "SIZE_T" (field_identifier) "PeakPagefileUsage" (;) ";" (field_declaration) "SIZE_T PrivatePageCount;" (type_identifier) "SIZE_T" (field_identifier) "PrivatePageCount" (;) ";" (field_declaration) "LARGE_INTEGER Reserved6[6];" (type_identifier) "LARGE_INTEGER" (array_declarator) "Reserved6[6]" (field_identifier) "Reserved6" ([) "[" (number_literal) "6" (]) "]" (;) ";" (}) "}" (type_identifier) "SYSTEM_PROCESS_INFORMATION" (,) "," (pointer_declarator) "*PSYSTEM_PROCESS_INFORMATION" (*) "*" (type_identifier) "PSYSTEM_PROCESS_INFORMATION" (;) ";" (declaration) "NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );" (type_identifier) "NTSTATUS" (ERROR) "NTAPI" (identifier) "NTAPI" (function_declarator) "ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n )" (identifier) "ZwQuerySystemInformation" (parameter_list) "(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n )" (() "(" (parameter_declaration) "__in SYSTEM_INFORMATION_CLASS" (type_identifier) "__in" (identifier) "SYSTEM_INFORMATION_CLASS" (ERROR) "SystemInformationClass" (identifier) "SystemInformationClass" (,) "," (parameter_declaration) "__inout_bcount_opt(SystemInformationLength) PVOID SystemInformation" (macro_type_specifier) "__inout_bcount_opt(SystemInformationLength)" (identifier) "__inout_bcount_opt" (() "(" (type_descriptor) "SystemInformationLength" (type_identifier) "SystemInformationLength" ()) ")" (ERROR) "PVOID" (identifier) "PVOID" (identifier) "SystemInformation" (,) "," (parameter_declaration) "__in ULONG SystemInformationLength" (type_identifier) "__in" (ERROR) "ULONG" (identifier) "ULONG" (identifier) "SystemInformationLength" (,) "," (parameter_declaration) "__out_opt PULONG ReturnLength" (type_identifier) "__out_opt" (ERROR) "PULONG" (identifier) "PULONG" (identifier) "ReturnLength" ()) ")" (;) ";" (declaration) "NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );" (type_identifier) "NTSTATUS" (ERROR) "NTAPI" (identifier) "NTAPI" (function_declarator) "ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n )" (identifier) "ZwQueryInformationProcess" (parameter_list) "(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n )" (() "(" (parameter_declaration) "__in HANDLE ProcessHandle" (type_identifier) "__in" (ERROR) "HANDLE" (identifier) "HANDLE" (identifier) "ProcessHandle" (,) "," (parameter_declaration) "__in PROCESSINFOCLASS ProcessInformationClass" (type_identifier) "__in" (ERROR) "PROCESSINFOCLASS" (identifier) "PROCESSINFOCLASS" (identifier) "ProcessInformationClass" (,) "," (parameter_declaration) "__out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation" (macro_type_specifier) "__out_bcount_opt(ProcessInformationLength)" (identifier) "__out_bcount_opt" (() "(" (type_descriptor) "ProcessInformationLength" (type_identifier) "ProcessInformationLength" ()) ")" (ERROR) "PVOID" (identifier) "PVOID" (identifier) "ProcessInformation" (,) "," (parameter_declaration) "__in ULONG ProcessInformationLength" (type_identifier) "__in" (ERROR) "ULONG" (identifier) "ULONG" (identifier) "ProcessInformationLength" (,) "," (parameter_declaration) "__out_opt PULONG ReturnLength" (type_identifier) "__out_opt" (ERROR) "PULONG" (identifier) "PULONG" (identifier) "ReturnLength" ()) ")" (;) ";" (declaration) "PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );" (type_identifier) "PPEB" (function_declarator) "PsGetProcessPeb (\n IN PEPROCESS Process\n )" (identifier) "PsGetProcessPeb" (parameter_list) "(\n IN PEPROCESS Process\n )" (() "(" (parameter_declaration) "IN PEPROCESS" (type_identifier) "IN" (identifier) "PEPROCESS" (ERROR) "Process" (identifier) "Process" ()) ")" (;) ";" (type_definition) "typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;" (typedef) "typedef" (struct_specifier) "struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n }" (struct) "struct" (type_identifier) "_PEB_LDR_DATA" (field_declaration_list) "{\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n }" ({) "{" (field_declaration) "UCHAR Reserved1[8];" (type_identifier) "UCHAR" (array_declarator) "Reserved1[8]" (field_identifier) "Reserved1" ([) "[" (number_literal) "8" (]) "]" (;) ";" (field_declaration) "PVOID Reserved2[3];" (type_identifier) "PVOID" (array_declarator) "Reserved2[3]" (field_identifier) "Reserved2" ([) "[" (number_literal) "3" (]) "]" (;) ";" (field_declaration) "LIST_ENTRY InMemoryOrderModuleList;" (type_identifier) "LIST_ENTRY" (field_identifier) "InMemoryOrderModuleList" (;) ";" (}) "}" (type_identifier) "PEB_LDR_DATA" (,) "," (pointer_declarator) "*PPEB_LDR_DATA" (*) "*" (type_identifier) "PPEB_LDR_DATA" (;) ";" (type_definition) "typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;" (typedef) "typedef" (struct_specifier) "struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n }" (struct) "struct" (type_identifier) "_LDR_DATA_TABLE_ENTRY" (field_declaration_list) "{\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n }" ({) "{" (field_declaration) "PVOID Reserved1[2];" (type_identifier) "PVOID" (array_declarator) "Reserved1[2]" (field_identifier) "Reserved1" ([) "[" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "LIST_ENTRY InMemoryOrderLinks;" (type_identifier) "LIST_ENTRY" (field_identifier) "InMemoryOrderLinks" (;) ";" (field_declaration) "PVOID Reserved2[2];" (type_identifier) "PVOID" (array_declarator) "Reserved2[2]" (field_identifier) "Reserved2" ([) "[" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "PVOID DllBase;" (type_identifier) "PVOID" (field_identifier) "DllBase" (;) ";" (field_declaration) "PVOID EntryPoint;" (type_identifier) "PVOID" (field_identifier) "EntryPoint" (;) ";" (comment) "// Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported." (field_declaration) "SIZE_T SizeOfImage;" (type_identifier) "SIZE_T" (field_identifier) "SizeOfImage" (;) ";" (field_declaration) "UNICODE_STRING FullDllName;" (type_identifier) "UNICODE_STRING" (field_identifier) "FullDllName" (;) ";" (field_declaration) "UCHAR Reserved4[8];" (type_identifier) "UCHAR" (array_declarator) "Reserved4[8]" (field_identifier) "Reserved4" ([) "[" (number_literal) "8" (]) "]" (;) ";" (field_declaration) "PVOID Reserved5[3];" (type_identifier) "PVOID" (array_declarator) "Reserved5[3]" (field_identifier) "Reserved5" ([) "[" (number_literal) "3" (]) "]" (;) ";" (field_declaration) "union {\n ULONG CheckSum;\n PVOID Reserved6;\n };" (union_specifier) "union {\n ULONG CheckSum;\n PVOID Reserved6;\n }" (union) "union" (field_declaration_list) "{\n ULONG CheckSum;\n PVOID Reserved6;\n }" ({) "{" (field_declaration) "ULONG CheckSum;" (type_identifier) "ULONG" (field_identifier) "CheckSum" (;) ";" (field_declaration) "PVOID Reserved6;" (type_identifier) "PVOID" (field_identifier) "Reserved6" (;) ";" (}) "}" (;) ";" (field_declaration) "ULONG TimeDateStamp;" (type_identifier) "ULONG" (field_identifier) "TimeDateStamp" (;) ";" (}) "}" (type_identifier) "LDR_DATA_TABLE_ENTRY" (,) "," (pointer_declarator) "*PLDR_DATA_TABLE_ENTRY" (*) "*" (type_identifier) "PLDR_DATA_TABLE_ENTRY" (;) ";" (type_definition) "typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;" (typedef) "typedef" (struct_specifier) "struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n }" (struct) "struct" (type_identifier) "_RTL_USER_PROCESS_PARAMETERS" (field_declaration_list) "{\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n }" ({) "{" (field_declaration) "UCHAR Reserved1[16];" (type_identifier) "UCHAR" (array_declarator) "Reserved1[16]" (field_identifier) "Reserved1" ([) "[" (number_literal) "16" (]) "]" (;) ";" (field_declaration) "PVOID Reserved2[10];" (type_identifier) "PVOID" (array_declarator) "Reserved2[10]" (field_identifier) "Reserved2" ([) "[" (number_literal) "10" (]) "]" (;) ";" (field_declaration) "UNICODE_STRING ImagePathName;" (type_identifier) "UNICODE_STRING" (field_identifier) "ImagePathName" (;) ";" (field_declaration) "UNICODE_STRING CommandLine;" (type_identifier) "UNICODE_STRING" (field_identifier) "CommandLine" (;) ";" (}) "}" (type_identifier) "RTL_USER_PROCESS_PARAMETERS" (,) "," (pointer_declarator) "*PRTL_USER_PROCESS_PARAMETERS" (*) "*" (type_identifier) "PRTL_USER_PROCESS_PARAMETERS" (;) ";" (preproc_ifdef) "#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif" (#ifndef) "#ifndef" (identifier) "_WIN64" (type_definition) "typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;" (typedef) "typedef" (struct_specifier) "struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n }" (struct) "struct" (type_identifier) "_PEB" (field_declaration_list) "{\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n }" ({) "{" (field_declaration) "UCHAR Reserved1[2];" (type_identifier) "UCHAR" (array_declarator) "Reserved1[2]" (field_identifier) "Reserved1" ([) "[" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "UCHAR BeingDebugged;" (type_identifier) "UCHAR" (field_identifier) "BeingDebugged" (;) ";" (field_declaration) "UCHAR Reserved2[1];" (type_identifier) "UCHAR" (array_declarator) "Reserved2[1]" (field_identifier) "Reserved2" ([) "[" (number_literal) "1" (]) "]" (;) ";" (field_declaration) "PVOID Reserved3[1];" (type_identifier) "PVOID" (array_declarator) "Reserved3[1]" (field_identifier) "Reserved3" ([) "[" (number_literal) "1" (]) "]" (;) ";" (field_declaration) "PVOID ImageBaseAddress;" (type_identifier) "PVOID" (field_identifier) "ImageBaseAddress" (;) ";" (field_declaration) "PPEB_LDR_DATA Ldr;" (type_identifier) "PPEB_LDR_DATA" (field_identifier) "Ldr" (;) ";" (field_declaration) "PRTL_USER_PROCESS_PARAMETERS ProcessParameters;" (type_identifier) "PRTL_USER_PROCESS_PARAMETERS" (field_identifier) "ProcessParameters" (;) ";" (field_declaration) "UCHAR Reserved4[104];" (type_identifier) "UCHAR" (array_declarator) "Reserved4[104]" (field_identifier) "Reserved4" ([) "[" (number_literal) "104" (]) "]" (;) ";" (field_declaration) "PVOID Reserved5[52];" (type_identifier) "PVOID" (array_declarator) "Reserved5[52]" (field_identifier) "Reserved5" ([) "[" (number_literal) "52" (]) "]" (;) ";" (field_declaration) "PVOID PostProcessInitRoutine;" (type_identifier) "PVOID" (field_identifier) "PostProcessInitRoutine" (;) ";" (field_declaration) "UCHAR Reserved6[128];" (type_identifier) "UCHAR" (array_declarator) "Reserved6[128]" (field_identifier) "Reserved6" ([) "[" (number_literal) "128" (]) "]" (;) ";" (field_declaration) "PVOID Reserved7[1];" (type_identifier) "PVOID" (array_declarator) "Reserved7[1]" (field_identifier) "Reserved7" ([) "[" (number_literal) "1" (]) "]" (;) ";" (field_declaration) "ULONG SessionId;" (type_identifier) "ULONG" (field_identifier) "SessionId" (;) ";" (}) "}" (type_identifier) "PEB" (,) "," (pointer_declarator) "*PPEB" (*) "*" (type_identifier) "PPEB" (;) ";" (preproc_else) "#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;" (#else) "#else" (type_definition) "typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;" (typedef) "typedef" (struct_specifier) "struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n }" (struct) "struct" (type_identifier) "_PEB" (field_declaration_list) "{\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n }" ({) "{" (field_declaration) "UCHAR Reserved1[2];" (type_identifier) "UCHAR" (array_declarator) "Reserved1[2]" (field_identifier) "Reserved1" ([) "[" (number_literal) "2" (]) "]" (;) ";" (field_declaration) "UCHAR BeingDebugged;" (type_identifier) "UCHAR" (field_identifier) "BeingDebugged" (;) ";" (field_declaration) "UCHAR Reserved2[13];" (type_identifier) "UCHAR" (array_declarator) "Reserved2[13]" (field_identifier) "Reserved2" ([) "[" (number_literal) "13" (]) "]" (;) ";" (field_declaration) "PVOID ImageBaseAddress;" (type_identifier) "PVOID" (field_identifier) "ImageBaseAddress" (;) ";" (field_declaration) "PPEB_LDR_DATA Ldr;" (type_identifier) "PPEB_LDR_DATA" (field_identifier) "Ldr" (;) ";" (field_declaration) "PRTL_USER_PROCESS_PARAMETERS ProcessParameters;" (type_identifier) "PRTL_USER_PROCESS_PARAMETERS" (field_identifier) "ProcessParameters" (;) ";" (field_declaration) "UCHAR Reserved3[520];" (type_identifier) "UCHAR" (array_declarator) "Reserved3[520]" (field_identifier) "Reserved3" ([) "[" (number_literal) "520" (]) "]" (;) ";" (field_declaration) "PVOID PostProcessInitRoutine;" (type_identifier) "PVOID" (field_identifier) "PostProcessInitRoutine" (;) ";" (field_declaration) "UCHAR Reserved4[136];" (type_identifier) "UCHAR" (array_declarator) "Reserved4[136]" (field_identifier) "Reserved4" ([) "[" (number_literal) "136" (]) "]" (;) ";" (field_declaration) "ULONG SessionId;" (type_identifier) "ULONG" (field_identifier) "SessionId" (;) ";" (}) "}" (type_identifier) "PEB" (,) "," (pointer_declarator) "*PPEB" (*) "*" (type_identifier) "PPEB" (;) ";" (#endif) "#endif" (}) "}" (comment) "// extern "C"" (#endif) "#endif" (comment) "//__NT_DEFINITIONS_H__"
542
12
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 31.96, "nodes": 370, "errors": 0, "source_hash": "1f6557524014b021341c97168d84628aedea0f7dccd4f5f2040ebdabb64b3cb0", "categorized_nodes": 304}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __NT_DEFINITIONS_H__\n#define __NT_DEFINITIONS_H__\n\nextern \"C\"\n{\n enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n };\n\n // Note: simplified structure representation\n typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;\n\n NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );\n\n typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;\n\n typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;\n\n typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;\n\n#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif\n\n} // extern \"C\"\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 369], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 114, "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": "__NT_DEFINITIONS_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define __NT_DEFINITIONS_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": "__NT_DEFINITIONS_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 28}}, {"id": 6, "type": "linkage_specification", "text": "extern \"C\"\n{\n enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n };\n\n // Note: simplified structure representation\n typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;\n\n NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );\n\n typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;\n\n typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;\n\n typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;\n\n#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif\n\n}", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 7, "type": "extern", "text": "extern", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "string_literal", "text": "\"C\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 10}}, {"id": 9, "type": "enum_specifier", "text": "enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n }", "parent": 6, "children": [10, 11, 12], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 9, "column": 5}}, {"id": 10, "type": "enum", "text": "enum", "parent": 9, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "type_identifier", "text": "SYSTEM_INFORMATION_CLASS", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 33}}, {"id": 12, "type": "enumerator_list", "text": "{\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n }", "parent": 9, "children": [13, 17], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 9, "column": 5}}, {"id": 13, "type": "enumerator", "text": "SystemProcessInformation = 5", "parent": 12, "children": [14, 15, 16], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 50}}, {"id": 14, "type": "identifier", "text": "SystemProcessInformation", "parent": 13, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 32}}, {"id": 15, "type": "=", "text": "=", "parent": 13, "children": [], "start_point": {"row": 7, "column": 46}, "end_point": {"row": 7, "column": 47}}, {"id": 16, "type": "number_literal", "text": "5", "parent": 13, "children": [], "start_point": {"row": 7, "column": 49}, "end_point": {"row": 7, "column": 50}}, {"id": 17, "type": "enumerator", "text": "SystemModuleInformation = 11", "parent": 12, "children": [18, 19, 20], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 50}}, {"id": 18, "type": "identifier", "text": "SystemModuleInformation", "parent": 17, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 31}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 8, "column": 46}, "end_point": {"row": 8, "column": 47}}, {"id": 20, "type": "number_literal", "text": "11", "parent": 17, "children": [], "start_point": {"row": 8, "column": 48}, "end_point": {"row": 8, "column": 50}}, {"id": 21, "type": "type_definition", "text": "typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;", "parent": 6, "children": [22, 23, 72, 73], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 25, "column": 63}}, {"id": 22, "type": "typedef", "text": "typedef", "parent": 21, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 11}}, {"id": 23, "type": "struct_specifier", "text": "struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n }", "parent": 21, "children": [24, 25], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 25, "column": 5}}, {"id": 24, "type": "struct", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 18}}, {"id": 25, "type": "type_identifier", "text": "_SYSTEM_PROCESS_INFORMATION", "parent": 23, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 46}}, {"id": 26, "type": "field_declaration", "text": "ULONG NextEntryOffset;", "parent": 23, "children": [27, 28], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 30}}, {"id": 27, "type": "type_identifier", "text": "ULONG", "parent": 26, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 13}}, {"id": 28, "type": "field_identifier", "text": "NextEntryOffset", "parent": 26, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 29}}, {"id": 29, "type": "field_declaration", "text": "ULONG NumberOfThreads;", "parent": 23, "children": [30, 31], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 30}}, {"id": 30, "type": "type_identifier", "text": "ULONG", "parent": 29, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 13}}, {"id": 31, "type": "field_identifier", "text": "NumberOfThreads", "parent": 29, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 29}}, {"id": 32, "type": "field_declaration", "text": "UCHAR Reserved1[48];", "parent": 23, "children": [33, 34], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 28}}, {"id": 33, "type": "type_identifier", "text": "UCHAR", "parent": 32, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 13}}, {"id": 34, "type": "array_declarator", "text": "Reserved1[48]", "parent": 32, "children": [35, 36], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 27}}, {"id": 35, "type": "field_identifier", "text": "Reserved1", "parent": 34, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 23}}, {"id": 36, "type": "number_literal", "text": "48", "parent": 34, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 26}}, {"id": 37, "type": "field_declaration", "text": "PVOID Reserved2[3];", "parent": 23, "children": [38, 39], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 27}}, {"id": 38, "type": "type_identifier", "text": "PVOID", "parent": 37, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 13}}, {"id": 39, "type": "array_declarator", "text": "Reserved2[3]", "parent": 37, "children": [40, 41], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 26}}, {"id": 40, "type": "field_identifier", "text": "Reserved2", "parent": 39, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 23}}, {"id": 41, "type": "number_literal", "text": "3", "parent": 39, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 25}}, {"id": 42, "type": "field_declaration", "text": "HANDLE UniqueProcessId;", "parent": 23, "children": [43, 44], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 31}}, {"id": 43, "type": "type_identifier", "text": "HANDLE", "parent": 42, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 14}}, {"id": 44, "type": "field_identifier", "text": "UniqueProcessId", "parent": 42, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 30}}, {"id": 45, "type": "field_declaration", "text": "HANDLE InheritedFromUniqueProcessId;", "parent": 23, "children": [46, 47], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 44}}, {"id": 46, "type": "type_identifier", "text": "HANDLE", "parent": 45, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 14}}, {"id": 47, "type": "field_identifier", "text": "InheritedFromUniqueProcessId", "parent": 45, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 43}}, {"id": 48, "type": "field_declaration", "text": "ULONG HandleCount;", "parent": 23, "children": [49, 50], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 26}}, {"id": 49, "type": "type_identifier", "text": "ULONG", "parent": 48, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 13}}, {"id": 50, "type": "field_identifier", "text": "HandleCount", "parent": 48, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 25}}, {"id": 51, "type": "field_declaration", "text": "UCHAR Reserved4[4];", "parent": 23, "children": [52, 53], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 27}}, {"id": 52, "type": "type_identifier", "text": "UCHAR", "parent": 51, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 53, "type": "array_declarator", "text": "Reserved4[4]", "parent": 51, "children": [54, 55], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 26}}, {"id": 54, "type": "field_identifier", "text": "Reserved4", "parent": 53, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 23}}, {"id": 55, "type": "number_literal", "text": "4", "parent": 53, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 56, "type": "field_declaration", "text": "PVOID Reserved5[11];", "parent": 23, "children": [57, 58], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 28}}, {"id": 57, "type": "type_identifier", "text": "PVOID", "parent": 56, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 13}}, {"id": 58, "type": "array_declarator", "text": "Reserved5[11]", "parent": 56, "children": [59, 60], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 27}}, {"id": 59, "type": "field_identifier", "text": "Reserved5", "parent": 58, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 23}}, {"id": 60, "type": "number_literal", "text": "11", "parent": 58, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 26}}, {"id": 61, "type": "field_declaration", "text": "SIZE_T PeakPagefileUsage;", "parent": 23, "children": [62, 63], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 33}}, {"id": 62, "type": "type_identifier", "text": "SIZE_T", "parent": 61, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 14}}, {"id": 63, "type": "field_identifier", "text": "PeakPagefileUsage", "parent": 61, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 32}}, {"id": 64, "type": "field_declaration", "text": "SIZE_T PrivatePageCount;", "parent": 23, "children": [65, 66], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 32}}, {"id": 65, "type": "type_identifier", "text": "SIZE_T", "parent": 64, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 14}}, {"id": 66, "type": "field_identifier", "text": "PrivatePageCount", "parent": 64, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 31}}, {"id": 67, "type": "field_declaration", "text": "LARGE_INTEGER Reserved6[6];", "parent": 23, "children": [68, 69], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 35}}, {"id": 68, "type": "type_identifier", "text": "LARGE_INTEGER", "parent": 67, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 21}}, {"id": 69, "type": "array_declarator", "text": "Reserved6[6]", "parent": 67, "children": [70, 71], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 34}}, {"id": 70, "type": "field_identifier", "text": "Reserved6", "parent": 69, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 31}}, {"id": 71, "type": "number_literal", "text": "6", "parent": 69, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 33}}, {"id": 72, "type": "type_identifier", "text": "SYSTEM_PROCESS_INFORMATION", "parent": 21, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 32}}, {"id": 73, "type": "pointer_declarator", "text": "*PSYSTEM_PROCESS_INFORMATION", "parent": 21, "children": [74, 75], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 62}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 35}}, {"id": 75, "type": "type_identifier", "text": "PSYSTEM_PROCESS_INFORMATION", "parent": 73, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 62}}, {"id": 76, "type": "declaration", "text": "NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );", "parent": 6, "children": [77, 78, 80], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 77, "type": "type_identifier", "text": "NTSTATUS", "parent": 76, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 78, "type": "ERROR", "text": "NTAPI", "parent": 76, "children": [79], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 79, "type": "identifier", "text": "NTAPI", "parent": 78, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 80, "type": "function_declarator", "text": "ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n )", "parent": 76, "children": [81, 82], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 34, "column": 9}}, {"id": 81, "type": "identifier", "text": "ZwQuerySystemInformation", "parent": 80, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 32}}, {"id": 82, "type": "parameter_list", "text": "(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n )", "parent": 80, "children": [83, 86, 88, 96, 101], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 34, "column": 9}}, {"id": 83, "type": "parameter_declaration", "text": "__in SYSTEM_INFORMATION_CLASS", "parent": 82, "children": [84, 85], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 43}}, {"id": 84, "type": "type_identifier", "text": "__in", "parent": 83, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 12}}, {"id": 85, "type": "identifier", "text": "SYSTEM_INFORMATION_CLASS", "parent": 83, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 43}}, {"id": 86, "type": "ERROR", "text": "SystemInformationClass", "parent": 82, "children": [87], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 66}}, {"id": 87, "type": "identifier", "text": "SystemInformationClass", "parent": 86, "children": [], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 66}}, {"id": 88, "type": "parameter_declaration", "text": "__inout_bcount_opt(SystemInformationLength) PVOID SystemInformation", "parent": 82, "children": [89, 93, 95], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 78}}, {"id": 89, "type": "macro_type_specifier", "text": "__inout_bcount_opt(SystemInformationLength)", "parent": 88, "children": [90, 91], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 51}}, {"id": 90, "type": "identifier", "text": "__inout_bcount_opt", "parent": 89, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 26}}, {"id": 91, "type": "type_descriptor", "text": "SystemInformationLength", "parent": 89, "children": [92], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 50}}, {"id": 92, "type": "type_identifier", "text": "SystemInformationLength", "parent": 91, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 50}}, {"id": 93, "type": "ERROR", "text": "PVOID", "parent": 88, "children": [94], "start_point": {"row": 31, "column": 55}, "end_point": {"row": 31, "column": 60}}, {"id": 94, "type": "identifier", "text": "PVOID", "parent": 93, "children": [], "start_point": {"row": 31, "column": 55}, "end_point": {"row": 31, "column": 60}}, {"id": 95, "type": "identifier", "text": "SystemInformation", "parent": 88, "children": [], "start_point": {"row": 31, "column": 61}, "end_point": {"row": 31, "column": 78}}, {"id": 96, "type": "parameter_declaration", "text": "__in ULONG SystemInformationLength", "parent": 82, "children": [97, 98, 100], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 48}}, {"id": 97, "type": "type_identifier", "text": "__in", "parent": 96, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 12}}, {"id": 98, "type": "ERROR", "text": "ULONG", "parent": 96, "children": [99], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 24}}, {"id": 99, "type": "identifier", "text": "ULONG", "parent": 98, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 24}}, {"id": 100, "type": "identifier", "text": "SystemInformationLength", "parent": 96, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 48}}, {"id": 101, "type": "parameter_declaration", "text": "__out_opt PULONG ReturnLength", "parent": 82, "children": [102, 103, 105], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 38}}, {"id": 102, "type": "type_identifier", "text": "__out_opt", "parent": 101, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 17}}, {"id": 103, "type": "ERROR", "text": "PULONG", "parent": 101, "children": [104], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 25}}, {"id": 104, "type": "identifier", "text": "PULONG", "parent": 103, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 25}}, {"id": 105, "type": "identifier", "text": "ReturnLength", "parent": 101, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 38}}, {"id": 106, "type": "declaration", "text": "NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );", "parent": 6, "children": [107, 108, 110], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 44, "column": 10}}, {"id": 107, "type": "type_identifier", "text": "NTSTATUS", "parent": 106, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 12}}, {"id": 108, "type": "ERROR", "text": "NTAPI", "parent": 106, "children": [109], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 13}}, {"id": 109, "type": "identifier", "text": "NTAPI", "parent": 108, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 13}}, {"id": 110, "type": "function_declarator", "text": "ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n )", "parent": 106, "children": [111, 112], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 111, "type": "identifier", "text": "ZwQueryInformationProcess", "parent": 110, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 33}}, {"id": 112, "type": "parameter_list", "text": "(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n )", "parent": 110, "children": [113, 118, 123, 131, 136], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 44, "column": 9}}, {"id": 113, "type": "parameter_declaration", "text": "__in HANDLE ProcessHandle", "parent": 112, "children": [114, 115, 117], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 39}}, {"id": 114, "type": "type_identifier", "text": "__in", "parent": 113, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 12}}, {"id": 115, "type": "ERROR", "text": "HANDLE", "parent": 113, "children": [116], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 25}}, {"id": 116, "type": "identifier", "text": "HANDLE", "parent": 115, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 25}}, {"id": 117, "type": "identifier", "text": "ProcessHandle", "parent": 113, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 39}}, {"id": 118, "type": "parameter_declaration", "text": "__in PROCESSINFOCLASS ProcessInformationClass", "parent": 112, "children": [119, 120, 122], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 59}}, {"id": 119, "type": "type_identifier", "text": "__in", "parent": 118, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 120, "type": "ERROR", "text": "PROCESSINFOCLASS", "parent": 118, "children": [121], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 35}}, {"id": 121, "type": "identifier", "text": "PROCESSINFOCLASS", "parent": 120, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 35}}, {"id": 122, "type": "identifier", "text": "ProcessInformationClass", "parent": 118, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 59}}, {"id": 123, "type": "parameter_declaration", "text": "__out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation", "parent": 112, "children": [124, 128, 130], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 80}}, {"id": 124, "type": "macro_type_specifier", "text": "__out_bcount_opt(ProcessInformationLength)", "parent": 123, "children": [125, 126], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 50}}, {"id": 125, "type": "identifier", "text": "__out_bcount_opt", "parent": 124, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 24}}, {"id": 126, "type": "type_descriptor", "text": "ProcessInformationLength", "parent": 124, "children": [127], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 49}}, {"id": 127, "type": "type_identifier", "text": "ProcessInformationLength", "parent": 126, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 49}}, {"id": 128, "type": "ERROR", "text": "PVOID", "parent": 123, "children": [129], "start_point": {"row": 41, "column": 56}, "end_point": {"row": 41, "column": 61}}, {"id": 129, "type": "identifier", "text": "PVOID", "parent": 128, "children": [], "start_point": {"row": 41, "column": 56}, "end_point": {"row": 41, "column": 61}}, {"id": 130, "type": "identifier", "text": "ProcessInformation", "parent": 123, "children": [], "start_point": {"row": 41, "column": 62}, "end_point": {"row": 41, "column": 80}}, {"id": 131, "type": "parameter_declaration", "text": "__in ULONG ProcessInformationLength", "parent": 112, "children": [132, 133, 135], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 49}}, {"id": 132, "type": "type_identifier", "text": "__in", "parent": 131, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 133, "type": "ERROR", "text": "ULONG", "parent": 131, "children": [134], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 24}}, {"id": 134, "type": "identifier", "text": "ULONG", "parent": 133, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 24}}, {"id": 135, "type": "identifier", "text": "ProcessInformationLength", "parent": 131, "children": [], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 49}}, {"id": 136, "type": "parameter_declaration", "text": "__out_opt PULONG ReturnLength", "parent": 112, "children": [137, 138, 140], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 38}}, {"id": 137, "type": "type_identifier", "text": "__out_opt", "parent": 136, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 17}}, {"id": 138, "type": "ERROR", "text": "PULONG", "parent": 136, "children": [139], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 25}}, {"id": 139, "type": "identifier", "text": "PULONG", "parent": 138, "children": [], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 25}}, {"id": 140, "type": "identifier", "text": "ReturnLength", "parent": 136, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 38}}, {"id": 141, "type": "declaration", "text": "PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );", "parent": 6, "children": [142, 143], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 142, "type": "type_identifier", "text": "PPEB", "parent": 141, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 8}}, {"id": 143, "type": "function_declarator", "text": "PsGetProcessPeb (\n IN PEPROCESS Process\n )", "parent": 141, "children": [144, 145], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 49, "column": 9}}, {"id": 144, "type": "identifier", "text": "PsGetProcessPeb", "parent": 143, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 23}}, {"id": 145, "type": "parameter_list", "text": "(\n IN PEPROCESS Process\n )", "parent": 143, "children": [146, 149], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 49, "column": 9}}, {"id": 146, "type": "parameter_declaration", "text": "IN PEPROCESS", "parent": 145, "children": [147, 148], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 20}}, {"id": 147, "type": "type_identifier", "text": "IN", "parent": 146, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 10}}, {"id": 148, "type": "identifier", "text": "PEPROCESS", "parent": 146, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 20}}, {"id": 149, "type": "ERROR", "text": "Process", "parent": 145, "children": [150], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 28}}, {"id": 150, "type": "identifier", "text": "Process", "parent": 149, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 28}}, {"id": 151, "type": "type_definition", "text": "typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;", "parent": 6, "children": [152, 153, 169, 170], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 55, "column": 35}}, {"id": 152, "type": "typedef", "text": "typedef", "parent": 151, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 11}}, {"id": 153, "type": "struct_specifier", "text": "struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n }", "parent": 151, "children": [154, 155], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 55, "column": 5}}, {"id": 154, "type": "struct", "text": "struct", "parent": 153, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 18}}, {"id": 155, "type": "type_identifier", "text": "_PEB_LDR_DATA", "parent": 153, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 32}}, {"id": 156, "type": "field_declaration", "text": "UCHAR Reserved1[8];", "parent": 153, "children": [157, 158], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 27}}, {"id": 157, "type": "type_identifier", "text": "UCHAR", "parent": 156, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 13}}, {"id": 158, "type": "array_declarator", "text": "Reserved1[8]", "parent": 156, "children": [159, 160], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 26}}, {"id": 159, "type": "field_identifier", "text": "Reserved1", "parent": 158, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 23}}, {"id": 160, "type": "number_literal", "text": "8", "parent": 158, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 25}}, {"id": 161, "type": "field_declaration", "text": "PVOID Reserved2[3];", "parent": 153, "children": [162, 163], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 27}}, {"id": 162, "type": "type_identifier", "text": "PVOID", "parent": 161, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 13}}, {"id": 163, "type": "array_declarator", "text": "Reserved2[3]", "parent": 161, "children": [164, 165], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 26}}, {"id": 164, "type": "field_identifier", "text": "Reserved2", "parent": 163, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 23}}, {"id": 165, "type": "number_literal", "text": "3", "parent": 163, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 25}}, {"id": 166, "type": "field_declaration", "text": "LIST_ENTRY InMemoryOrderModuleList;", "parent": 153, "children": [167, 168], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 43}}, {"id": 167, "type": "type_identifier", "text": "LIST_ENTRY", "parent": 166, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 18}}, {"id": 168, "type": "field_identifier", "text": "InMemoryOrderModuleList", "parent": 166, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 42}}, {"id": 169, "type": "type_identifier", "text": "PEB_LDR_DATA", "parent": 151, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 18}}, {"id": 170, "type": "pointer_declarator", "text": "*PPEB_LDR_DATA", "parent": 151, "children": [171, 172], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 34}}, {"id": 171, "type": "*", "text": "*", "parent": 170, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 21}}, {"id": 172, "type": "type_identifier", "text": "PPEB_LDR_DATA", "parent": 170, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 34}}, {"id": 173, "type": "type_definition", "text": "typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;", "parent": 6, "children": [174, 175, 225, 226], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 72, "column": 51}}, {"id": 174, "type": "typedef", "text": "typedef", "parent": 173, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 11}}, {"id": 175, "type": "struct_specifier", "text": "struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n }", "parent": 173, "children": [176, 177], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 72, "column": 5}}, {"id": 176, "type": "struct", "text": "struct", "parent": 175, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 18}}, {"id": 177, "type": "type_identifier", "text": "_LDR_DATA_TABLE_ENTRY", "parent": 175, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 40}}, {"id": 178, "type": "field_declaration", "text": "PVOID Reserved1[2];", "parent": 175, "children": [179, 180], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 27}}, {"id": 179, "type": "type_identifier", "text": "PVOID", "parent": 178, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 13}}, {"id": 180, "type": "array_declarator", "text": "Reserved1[2]", "parent": 178, "children": [181, 182], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 26}}, {"id": 181, "type": "field_identifier", "text": "Reserved1", "parent": 180, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 23}}, {"id": 182, "type": "number_literal", "text": "2", "parent": 180, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 25}}, {"id": 183, "type": "field_declaration", "text": "LIST_ENTRY InMemoryOrderLinks;", "parent": 175, "children": [184, 185], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 38}}, {"id": 184, "type": "type_identifier", "text": "LIST_ENTRY", "parent": 183, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 18}}, {"id": 185, "type": "field_identifier", "text": "InMemoryOrderLinks", "parent": 183, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 37}}, {"id": 186, "type": "field_declaration", "text": "PVOID Reserved2[2];", "parent": 175, "children": [187, 188], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 27}}, {"id": 187, "type": "type_identifier", "text": "PVOID", "parent": 186, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 13}}, {"id": 188, "type": "array_declarator", "text": "Reserved2[2]", "parent": 186, "children": [189, 190], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 26}}, {"id": 189, "type": "field_identifier", "text": "Reserved2", "parent": 188, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 23}}, {"id": 190, "type": "number_literal", "text": "2", "parent": 188, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 25}}, {"id": 191, "type": "field_declaration", "text": "PVOID DllBase;", "parent": 175, "children": [192, 193], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 22}}, {"id": 192, "type": "type_identifier", "text": "PVOID", "parent": 191, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 13}}, {"id": 193, "type": "field_identifier", "text": "DllBase", "parent": 191, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 21}}, {"id": 194, "type": "field_declaration", "text": "PVOID EntryPoint;", "parent": 175, "children": [195, 196], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 25}}, {"id": 195, "type": "type_identifier", "text": "PVOID", "parent": 194, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 13}}, {"id": 196, "type": "field_identifier", "text": "EntryPoint", "parent": 194, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 24}}, {"id": 197, "type": "field_declaration", "text": "SIZE_T SizeOfImage;", "parent": 175, "children": [198, 199], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 27}}, {"id": 198, "type": "type_identifier", "text": "SIZE_T", "parent": 197, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 199, "type": "field_identifier", "text": "SizeOfImage", "parent": 197, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 26}}, {"id": 200, "type": "field_declaration", "text": "UNICODE_STRING FullDllName;", "parent": 175, "children": [201, 202], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 35}}, {"id": 201, "type": "type_identifier", "text": "UNICODE_STRING", "parent": 200, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 22}}, {"id": 202, "type": "field_identifier", "text": "FullDllName", "parent": 200, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 34}}, {"id": 203, "type": "field_declaration", "text": "UCHAR Reserved4[8];", "parent": 175, "children": [204, 205], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 27}}, {"id": 204, "type": "type_identifier", "text": "UCHAR", "parent": 203, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 13}}, {"id": 205, "type": "array_declarator", "text": "Reserved4[8]", "parent": 203, "children": [206, 207], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 26}}, {"id": 206, "type": "field_identifier", "text": "Reserved4", "parent": 205, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 23}}, {"id": 207, "type": "number_literal", "text": "8", "parent": 205, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 25}}, {"id": 208, "type": "field_declaration", "text": "PVOID Reserved5[3];", "parent": 175, "children": [209, 210], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 27}}, {"id": 209, "type": "type_identifier", "text": "PVOID", "parent": 208, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 13}}, {"id": 210, "type": "array_declarator", "text": "Reserved5[3]", "parent": 208, "children": [211, 212], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 26}}, {"id": 211, "type": "field_identifier", "text": "Reserved5", "parent": 210, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 23}}, {"id": 212, "type": "number_literal", "text": "3", "parent": 210, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 25}}, {"id": 213, "type": "field_declaration", "text": "union {\n ULONG CheckSum;\n PVOID Reserved6;\n };", "parent": 175, "children": [214], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 70, "column": 10}}, {"id": 214, "type": "union_specifier", "text": "union {\n ULONG CheckSum;\n PVOID Reserved6;\n }", "parent": 213, "children": [215], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 70, "column": 9}}, {"id": 215, "type": "union", "text": "union", "parent": 214, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 13}}, {"id": 216, "type": "field_declaration", "text": "ULONG CheckSum;", "parent": 214, "children": [217, 218], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 27}}, {"id": 217, "type": "type_identifier", "text": "ULONG", "parent": 216, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 17}}, {"id": 218, "type": "field_identifier", "text": "CheckSum", "parent": 216, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 26}}, {"id": 219, "type": "field_declaration", "text": "PVOID Reserved6;", "parent": 214, "children": [220, 221], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 28}}, {"id": 220, "type": "type_identifier", "text": "PVOID", "parent": 219, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 17}}, {"id": 221, "type": "field_identifier", "text": "Reserved6", "parent": 219, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 27}}, {"id": 222, "type": "field_declaration", "text": "ULONG TimeDateStamp;", "parent": 175, "children": [223, 224], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 28}}, {"id": 223, "type": "type_identifier", "text": "ULONG", "parent": 222, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 13}}, {"id": 224, "type": "field_identifier", "text": "TimeDateStamp", "parent": 222, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 27}}, {"id": 225, "type": "type_identifier", "text": "LDR_DATA_TABLE_ENTRY", "parent": 173, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 26}}, {"id": 226, "type": "pointer_declarator", "text": "*PLDR_DATA_TABLE_ENTRY", "parent": 173, "children": [227, 228], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 50}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 29}}, {"id": 228, "type": "type_identifier", "text": "PLDR_DATA_TABLE_ENTRY", "parent": 226, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 50}}, {"id": 229, "type": "type_definition", "text": "typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;", "parent": 6, "children": [230, 231, 250, 251], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 79, "column": 65}}, {"id": 230, "type": "typedef", "text": "typedef", "parent": 229, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 11}}, {"id": 231, "type": "struct_specifier", "text": "struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n }", "parent": 229, "children": [232, 233], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 79, "column": 5}}, {"id": 232, "type": "struct", "text": "struct", "parent": 231, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 18}}, {"id": 233, "type": "type_identifier", "text": "_RTL_USER_PROCESS_PARAMETERS", "parent": 231, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 47}}, {"id": 234, "type": "field_declaration", "text": "UCHAR Reserved1[16];", "parent": 231, "children": [235, 236], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 37}}, {"id": 235, "type": "type_identifier", "text": "UCHAR", "parent": 234, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 13}}, {"id": 236, "type": "array_declarator", "text": "Reserved1[16]", "parent": 234, "children": [237, 238], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 36}}, {"id": 237, "type": "field_identifier", "text": "Reserved1", "parent": 236, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 32}}, {"id": 238, "type": "number_literal", "text": "16", "parent": 236, "children": [], "start_point": {"row": 75, "column": 33}, "end_point": {"row": 75, "column": 35}}, {"id": 239, "type": "field_declaration", "text": "PVOID Reserved2[10];", "parent": 231, "children": [240, 241], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 37}}, {"id": 240, "type": "type_identifier", "text": "PVOID", "parent": 239, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 13}}, {"id": 241, "type": "array_declarator", "text": "Reserved2[10]", "parent": 239, "children": [242, 243], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 36}}, {"id": 242, "type": "field_identifier", "text": "Reserved2", "parent": 241, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 32}}, {"id": 243, "type": "number_literal", "text": "10", "parent": 241, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 35}}, {"id": 244, "type": "field_declaration", "text": "UNICODE_STRING ImagePathName;", "parent": 231, "children": [245, 246], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 37}}, {"id": 245, "type": "type_identifier", "text": "UNICODE_STRING", "parent": 244, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 22}}, {"id": 246, "type": "field_identifier", "text": "ImagePathName", "parent": 244, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 36}}, {"id": 247, "type": "field_declaration", "text": "UNICODE_STRING CommandLine;", "parent": 231, "children": [248, 249], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 35}}, {"id": 248, "type": "type_identifier", "text": "UNICODE_STRING", "parent": 247, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 22}}, {"id": 249, "type": "field_identifier", "text": "CommandLine", "parent": 247, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 34}}, {"id": 250, "type": "type_identifier", "text": "RTL_USER_PROCESS_PARAMETERS", "parent": 229, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 33}}, {"id": 251, "type": "pointer_declarator", "text": "*PRTL_USER_PROCESS_PARAMETERS", "parent": 229, "children": [252, 253], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 64}}, {"id": 252, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 36}}, {"id": 253, "type": "type_identifier", "text": "PRTL_USER_PROCESS_PARAMETERS", "parent": 251, "children": [], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 64}}, {"id": 254, "type": "preproc_ifdef", "text": "#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif", "parent": 6, "children": [255, 256, 257, 319, 368], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 255, "type": "#ifndef", "text": "#ifndef", "parent": 254, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 7}}, {"id": 256, "type": "identifier", "text": "_WIN64", "parent": 254, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 14}}, {"id": 257, "type": "type_definition", "text": "typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;", "parent": 254, "children": [258, 259, 315, 316], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 96, "column": 17}}, {"id": 258, "type": "typedef", "text": "typedef", "parent": 257, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 11}}, {"id": 259, "type": "struct_specifier", "text": "struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n }", "parent": 257, "children": [260, 261], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 96, "column": 5}}, {"id": 260, "type": "struct", "text": "struct", "parent": 259, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 18}}, {"id": 261, "type": "type_identifier", "text": "_PEB", "parent": 259, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 23}}, {"id": 262, "type": "field_declaration", "text": "UCHAR Reserved1[2];", "parent": 259, "children": [263, 264], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 27}}, {"id": 263, "type": "type_identifier", "text": "UCHAR", "parent": 262, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 13}}, {"id": 264, "type": "array_declarator", "text": "Reserved1[2]", "parent": 262, "children": [265, 266], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 26}}, {"id": 265, "type": "field_identifier", "text": "Reserved1", "parent": 264, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 23}}, {"id": 266, "type": "number_literal", "text": "2", "parent": 264, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 25}}, {"id": 267, "type": "field_declaration", "text": "UCHAR BeingDebugged;", "parent": 259, "children": [268, 269], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 28}}, {"id": 268, "type": "type_identifier", "text": "UCHAR", "parent": 267, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 13}}, {"id": 269, "type": "field_identifier", "text": "BeingDebugged", "parent": 267, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 27}}, {"id": 270, "type": "field_declaration", "text": "UCHAR Reserved2[1];", "parent": 259, "children": [271, 272], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 27}}, {"id": 271, "type": "type_identifier", "text": "UCHAR", "parent": 270, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 13}}, {"id": 272, "type": "array_declarator", "text": "Reserved2[1]", "parent": 270, "children": [273, 274], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 26}}, {"id": 273, "type": "field_identifier", "text": "Reserved2", "parent": 272, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 23}}, {"id": 274, "type": "number_literal", "text": "1", "parent": 272, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 25}}, {"id": 275, "type": "field_declaration", "text": "PVOID Reserved3[1];", "parent": 259, "children": [276, 277], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 27}}, {"id": 276, "type": "type_identifier", "text": "PVOID", "parent": 275, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 13}}, {"id": 277, "type": "array_declarator", "text": "Reserved3[1]", "parent": 275, "children": [278, 279], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 26}}, {"id": 278, "type": "field_identifier", "text": "Reserved3", "parent": 277, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 23}}, {"id": 279, "type": "number_literal", "text": "1", "parent": 277, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 25}}, {"id": 280, "type": "field_declaration", "text": "PVOID ImageBaseAddress;", "parent": 259, "children": [281, 282], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 31}}, {"id": 281, "type": "type_identifier", "text": "PVOID", "parent": 280, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 13}}, {"id": 282, "type": "field_identifier", "text": "ImageBaseAddress", "parent": 280, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 30}}, {"id": 283, "type": "field_declaration", "text": "PPEB_LDR_DATA Ldr;", "parent": 259, "children": [284, 285], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 26}}, {"id": 284, "type": "type_identifier", "text": "PPEB_LDR_DATA", "parent": 283, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 21}}, {"id": 285, "type": "field_identifier", "text": "Ldr", "parent": 283, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 25}}, {"id": 286, "type": "field_declaration", "text": "PRTL_USER_PROCESS_PARAMETERS ProcessParameters;", "parent": 259, "children": [287, 288], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 55}}, {"id": 287, "type": "type_identifier", "text": "PRTL_USER_PROCESS_PARAMETERS", "parent": 286, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 36}}, {"id": 288, "type": "field_identifier", "text": "ProcessParameters", "parent": 286, "children": [], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 54}}, {"id": 289, "type": "field_declaration", "text": "UCHAR Reserved4[104];", "parent": 259, "children": [290, 291], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 29}}, {"id": 290, "type": "type_identifier", "text": "UCHAR", "parent": 289, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 13}}, {"id": 291, "type": "array_declarator", "text": "Reserved4[104]", "parent": 289, "children": [292, 293], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 28}}, {"id": 292, "type": "field_identifier", "text": "Reserved4", "parent": 291, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 23}}, {"id": 293, "type": "number_literal", "text": "104", "parent": 291, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 27}}, {"id": 294, "type": "field_declaration", "text": "PVOID Reserved5[52];", "parent": 259, "children": [295, 296], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 28}}, {"id": 295, "type": "type_identifier", "text": "PVOID", "parent": 294, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 13}}, {"id": 296, "type": "array_declarator", "text": "Reserved5[52]", "parent": 294, "children": [297, 298], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 27}}, {"id": 297, "type": "field_identifier", "text": "Reserved5", "parent": 296, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 23}}, {"id": 298, "type": "number_literal", "text": "52", "parent": 296, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 26}}, {"id": 299, "type": "field_declaration", "text": "PVOID PostProcessInitRoutine;", "parent": 259, "children": [300, 301], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 37}}, {"id": 300, "type": "type_identifier", "text": "PVOID", "parent": 299, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 13}}, {"id": 301, "type": "field_identifier", "text": "PostProcessInitRoutine", "parent": 299, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 36}}, {"id": 302, "type": "field_declaration", "text": "UCHAR Reserved6[128];", "parent": 259, "children": [303, 304], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 29}}, {"id": 303, "type": "type_identifier", "text": "UCHAR", "parent": 302, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 13}}, {"id": 304, "type": "array_declarator", "text": "Reserved6[128]", "parent": 302, "children": [305, 306], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 28}}, {"id": 305, "type": "field_identifier", "text": "Reserved6", "parent": 304, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 23}}, {"id": 306, "type": "number_literal", "text": "128", "parent": 304, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 27}}, {"id": 307, "type": "field_declaration", "text": "PVOID Reserved7[1];", "parent": 259, "children": [308, 309], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 27}}, {"id": 308, "type": "type_identifier", "text": "PVOID", "parent": 307, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 13}}, {"id": 309, "type": "array_declarator", "text": "Reserved7[1]", "parent": 307, "children": [310, 311], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 26}}, {"id": 310, "type": "field_identifier", "text": "Reserved7", "parent": 309, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 23}}, {"id": 311, "type": "number_literal", "text": "1", "parent": 309, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 25}}, {"id": 312, "type": "field_declaration", "text": "ULONG SessionId;", "parent": 259, "children": [313, 314], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 24}}, {"id": 313, "type": "type_identifier", "text": "ULONG", "parent": 312, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 13}}, {"id": 314, "type": "field_identifier", "text": "SessionId", "parent": 312, "children": [], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 23}}, {"id": 315, "type": "type_identifier", "text": "PEB", "parent": 257, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 9}}, {"id": 316, "type": "pointer_declarator", "text": "*PPEB", "parent": 257, "children": [317, 318], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 16}}, {"id": 317, "type": "*", "text": "*", "parent": 316, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 12}}, {"id": 318, "type": "type_identifier", "text": "PPEB", "parent": 316, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 16}}, {"id": 319, "type": "preproc_else", "text": "#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;", "parent": 254, "children": [320, 321], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 109, "column": 17}}, {"id": 320, "type": "#else", "text": "#else", "parent": 319, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 5}}, {"id": 321, "type": "type_definition", "text": "typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;", "parent": 319, "children": [322, 323, 364, 365], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 109, "column": 17}}, {"id": 322, "type": "typedef", "text": "typedef", "parent": 321, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 11}}, {"id": 323, "type": "struct_specifier", "text": "struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n }", "parent": 321, "children": [324, 325], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 109, "column": 5}}, {"id": 324, "type": "struct", "text": "struct", "parent": 323, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 18}}, {"id": 325, "type": "type_identifier", "text": "_PEB", "parent": 323, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 23}}, {"id": 326, "type": "field_declaration", "text": "UCHAR Reserved1[2];", "parent": 323, "children": [327, 328], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 27}}, {"id": 327, "type": "type_identifier", "text": "UCHAR", "parent": 326, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 13}}, {"id": 328, "type": "array_declarator", "text": "Reserved1[2]", "parent": 326, "children": [329, 330], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 26}}, {"id": 329, "type": "field_identifier", "text": "Reserved1", "parent": 328, "children": [], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 23}}, {"id": 330, "type": "number_literal", "text": "2", "parent": 328, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 25}}, {"id": 331, "type": "field_declaration", "text": "UCHAR BeingDebugged;", "parent": 323, "children": [332, 333], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 28}}, {"id": 332, "type": "type_identifier", "text": "UCHAR", "parent": 331, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 13}}, {"id": 333, "type": "field_identifier", "text": "BeingDebugged", "parent": 331, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 27}}, {"id": 334, "type": "field_declaration", "text": "UCHAR Reserved2[13];", "parent": 323, "children": [335, 336], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 28}}, {"id": 335, "type": "type_identifier", "text": "UCHAR", "parent": 334, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 13}}, {"id": 336, "type": "array_declarator", "text": "Reserved2[13]", "parent": 334, "children": [337, 338], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 27}}, {"id": 337, "type": "field_identifier", "text": "Reserved2", "parent": 336, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 23}}, {"id": 338, "type": "number_literal", "text": "13", "parent": 336, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 26}}, {"id": 339, "type": "field_declaration", "text": "PVOID ImageBaseAddress;", "parent": 323, "children": [340, 341], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 31}}, {"id": 340, "type": "type_identifier", "text": "PVOID", "parent": 339, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 13}}, {"id": 341, "type": "field_identifier", "text": "ImageBaseAddress", "parent": 339, "children": [], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 30}}, {"id": 342, "type": "field_declaration", "text": "PPEB_LDR_DATA Ldr;", "parent": 323, "children": [343, 344], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 26}}, {"id": 343, "type": "type_identifier", "text": "PPEB_LDR_DATA", "parent": 342, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 21}}, {"id": 344, "type": "field_identifier", "text": "Ldr", "parent": 342, "children": [], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 25}}, {"id": 345, "type": "field_declaration", "text": "PRTL_USER_PROCESS_PARAMETERS ProcessParameters;", "parent": 323, "children": [346, 347], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 55}}, {"id": 346, "type": "type_identifier", "text": "PRTL_USER_PROCESS_PARAMETERS", "parent": 345, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 36}}, {"id": 347, "type": "field_identifier", "text": "ProcessParameters", "parent": 345, "children": [], "start_point": {"row": 104, "column": 37}, "end_point": {"row": 104, "column": 54}}, {"id": 348, "type": "field_declaration", "text": "UCHAR Reserved3[520];", "parent": 323, "children": [349, 350], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 29}}, {"id": 349, "type": "type_identifier", "text": "UCHAR", "parent": 348, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 13}}, {"id": 350, "type": "array_declarator", "text": "Reserved3[520]", "parent": 348, "children": [351, 352], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 28}}, {"id": 351, "type": "field_identifier", "text": "Reserved3", "parent": 350, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 23}}, {"id": 352, "type": "number_literal", "text": "520", "parent": 350, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 27}}, {"id": 353, "type": "field_declaration", "text": "PVOID PostProcessInitRoutine;", "parent": 323, "children": [354, 355], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 37}}, {"id": 354, "type": "type_identifier", "text": "PVOID", "parent": 353, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 13}}, {"id": 355, "type": "field_identifier", "text": "PostProcessInitRoutine", "parent": 353, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 36}}, {"id": 356, "type": "field_declaration", "text": "UCHAR Reserved4[136];", "parent": 323, "children": [357, 358], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 29}}, {"id": 357, "type": "type_identifier", "text": "UCHAR", "parent": 356, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 13}}, {"id": 358, "type": "array_declarator", "text": "Reserved4[136]", "parent": 356, "children": [359, 360], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 28}}, {"id": 359, "type": "field_identifier", "text": "Reserved4", "parent": 358, "children": [], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 23}}, {"id": 360, "type": "number_literal", "text": "136", "parent": 358, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 27}}, {"id": 361, "type": "field_declaration", "text": "ULONG SessionId;", "parent": 323, "children": [362, 363], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 24}}, {"id": 362, "type": "type_identifier", "text": "ULONG", "parent": 361, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 13}}, {"id": 363, "type": "field_identifier", "text": "SessionId", "parent": 361, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 23}}, {"id": 364, "type": "type_identifier", "text": "PEB", "parent": 321, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 9}}, {"id": 365, "type": "pointer_declarator", "text": "*PPEB", "parent": 321, "children": [366, 367], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 16}}, {"id": 366, "type": "*", "text": "*", "parent": 365, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 12}}, {"id": 367, "type": "type_identifier", "text": "PPEB", "parent": 365, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 16}}, {"id": 368, "type": "#endif", "text": "#endif", "parent": 254, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 369, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 6}}]}, "node_categories": {"declarations": {"functions": [80, 110, 143], "variables": [21, 26, 29, 32, 37, 42, 45, 48, 51, 56, 61, 64, 67, 76, 83, 88, 96, 101, 106, 113, 118, 123, 131, 136, 141, 146, 151, 156, 161, 166, 173, 178, 183, 186, 191, 194, 197, 200, 203, 208, 213, 216, 219, 222, 229, 234, 239, 244, 247, 257, 262, 267, 270, 275, 280, 283, 286, 289, 294, 299, 302, 307, 312, 321, 326, 331, 334, 339, 342, 345, 348, 353, 356, 361], "classes": [23, 24, 153, 154, 175, 176, 214, 215, 231, 232, 259, 260, 323, 324], "imports": [], "modules": [], "enums": [9, 10, 12, 13, 17]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 11, 14, 18, 25, 27, 28, 30, 31, 33, 35, 38, 40, 43, 44, 46, 47, 49, 50, 52, 54, 57, 59, 62, 63, 65, 66, 68, 70, 72, 75, 77, 79, 81, 84, 85, 87, 89, 90, 92, 94, 95, 97, 99, 100, 102, 104, 105, 107, 109, 111, 114, 116, 117, 119, 121, 122, 124, 125, 127, 129, 130, 132, 134, 135, 137, 139, 140, 142, 144, 147, 148, 150, 155, 157, 159, 162, 164, 167, 168, 169, 172, 177, 179, 181, 184, 185, 187, 189, 192, 193, 195, 196, 198, 199, 201, 202, 204, 206, 209, 211, 217, 218, 220, 221, 223, 224, 225, 228, 233, 235, 237, 240, 242, 245, 246, 248, 249, 250, 253, 254, 255, 256, 261, 263, 265, 268, 269, 271, 273, 276, 278, 281, 282, 284, 285, 287, 288, 290, 292, 295, 297, 300, 301, 303, 305, 308, 310, 313, 314, 315, 318, 325, 327, 329, 332, 333, 335, 337, 340, 341, 343, 344, 346, 347, 349, 351, 354, 355, 357, 359, 362, 363, 364, 367, 368, 369], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 16, 20, 36, 41, 55, 60, 71, 160, 165, 182, 190, 207, 212, 238, 243, 266, 274, 279, 293, 298, 306, 311, 330, 338, 352, 360], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n "}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCL"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "PsGetProcessPeb (\n IN PEPROCESS Process\n )"}], "class_declarations": [{"node_id": 23, "universal_type": "class", "name": "_SYSTEM_PROCESS_INFORMATION", "text_snippet": "struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n "}, {"node_id": 24, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 153, "universal_type": "class", "name": "_PEB_LDR_DATA", "text_snippet": "struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY In"}, {"node_id": 154, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 175, "universal_type": "class", "name": "_LDR_DATA_TABLE_ENTRY", "text_snippet": "struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n "}, {"node_id": 176, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 214, "universal_type": "class", "name": "{", "text_snippet": "union {\n ULONG CheckSum;\n PVOID Reserved6;\n }"}, {"node_id": 215, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 231, "universal_type": "class", "name": "_RTL_USER_PROCESS_PARAMETERS", "text_snippet": "struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID R"}, {"node_id": 232, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 259, "universal_type": "class", "name": "_PEB", "text_snippet": "struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n "}, {"node_id": 260, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 323, "universal_type": "class", "name": "_PEB", "text_snippet": "struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n"}, {"node_id": 324, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef __NT_DEFINITIONS_H__\n#define __NT_DEFINITIONS_H__\n\nextern \"C\"\n{\n enum SYSTEM_INFORMATION_CLASS\n {\n SystemProcessInformation = 5, // SystemProcessesAndThreadsInformation\n SystemModuleInformation = 11 \n };\n\n // Note: simplified structure representation\n typedef struct _SYSTEM_PROCESS_INFORMATION {\n ULONG NextEntryOffset;\n ULONG NumberOfThreads;\n UCHAR Reserved1[48];\n PVOID Reserved2[3];\n HANDLE UniqueProcessId;\n HANDLE InheritedFromUniqueProcessId;\n ULONG HandleCount;\n UCHAR Reserved4[4];\n PVOID Reserved5[11];\n SIZE_T PeakPagefileUsage;\n SIZE_T PrivatePageCount;\n LARGE_INTEGER Reserved6[6];\n } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;\n\n NTSTATUS\n NTAPI\n ZwQuerySystemInformation(\n __in SYSTEM_INFORMATION_CLASS SystemInformationClass,\n __inout_bcount_opt(SystemInformationLength) PVOID SystemInformation,\n __in ULONG SystemInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n NTSTATUS\n NTAPI\n ZwQueryInformationProcess(\n __in HANDLE ProcessHandle,\n __in PROCESSINFOCLASS ProcessInformationClass,\n __out_bcount_opt(ProcessInformationLength) PVOID ProcessInformation,\n __in ULONG ProcessInformationLength,\n __out_opt PULONG ReturnLength\n );\n\n PPEB\n PsGetProcessPeb (\n IN PEPROCESS Process\n );\n\n typedef struct _PEB_LDR_DATA {\n UCHAR Reserved1[8];\n PVOID Reserved2[3];\n LIST_ENTRY InMemoryOrderModuleList;\n } PEB_LDR_DATA, *PPEB_LDR_DATA;\n\n typedef struct _LDR_DATA_TABLE_ENTRY {\n PVOID Reserved1[2];\n LIST_ENTRY InMemoryOrderLinks;\n PVOID Reserved2[2];\n PVOID DllBase;\n PVOID EntryPoint; // Windows Server 2003 and Windows XP/2000: The EntryPoint member is not supported.\n SIZE_T SizeOfImage;\n UNICODE_STRING FullDllName;\n UCHAR Reserved4[8];\n PVOID Reserved5[3];\n union {\n ULONG CheckSum;\n PVOID Reserved6;\n };\n ULONG TimeDateStamp;\n } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;\n\n typedef struct _RTL_USER_PROCESS_PARAMETERS {\n UCHAR Reserved1[16];\n PVOID Reserved2[10];\n UNICODE_STRING ImagePathName;\n UNICODE_STRING CommandLine;\n } RTL_USER_PROCESS_PARAMETERS, *PRTL_USER_PROCESS_PARAMETERS;\n\n#ifndef _WIN64\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[1];\n PVOID Reserved3[1];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved4[104];\n PVOID Reserved5[52];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved6[128];\n PVOID Reserved7[1];\n ULONG SessionId;\n } PEB, *PPEB;\n#else\n typedef struct _PEB {\n UCHAR Reserved1[2];\n UCHAR BeingDebugged;\n UCHAR Reserved2[13];\n PVOID ImageBaseAddress;\n PPEB_LDR_DATA Ldr;\n PRTL_USER_PROCESS_PARAMETERS ProcessParameters;\n UCHAR Reserved3[520];\n PVOID PostProcessInitRoutine;\n UCHAR Reserved4[136];\n ULONG SessionId;\n } PEB, *PPEB;\n#endif\n\n} // extern \"C\"\n\n#endif //__NT_DEFINITIONS_H__"}
80,872
c
// C++ libraries #include <string.h> // FOSSA libraries #include <FOSSA-Comms.h> // contributed libraries #include <RadioLib.h> #include <TimerOne.h> // files #include "communication.h" #include "configuration.h" #include "debugging_utilities.h" #include "persistent_storage.h" #include "pin_interface.h" #include "system_info.h"
22.57
14
(translation_unit) "// C++ libraries\n#include <string.h>\n\n// FOSSA libraries\n#include <FOSSA-Comms.h>\n\n// contributed libraries\n#include <RadioLib.h>\n#include <TimerOne.h>\n\n// files\n#include "communication.h"\n#include "configuration.h"\n#include "debugging_utilities.h"\n#include "persistent_storage.h"\n#include "pin_interface.h"\n#include "system_info.h"\n" (comment) "// C++ libraries" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (comment) "// FOSSA libraries" (preproc_include) "#include <FOSSA-Comms.h>\n" (#include) "#include" (system_lib_string) "<FOSSA-Comms.h>" (comment) "// contributed libraries" (preproc_include) "#include <RadioLib.h>\n" (#include) "#include" (system_lib_string) "<RadioLib.h>" (preproc_include) "#include <TimerOne.h>\n" (#include) "#include" (system_lib_string) "<TimerOne.h>" (comment) "// files" (preproc_include) "#include "communication.h"\n" (#include) "#include" (string_literal) ""communication.h"" (") """ (string_content) "communication.h" (") """ (preproc_include) "#include "configuration.h"\n" (#include) "#include" (string_literal) ""configuration.h"" (") """ (string_content) "configuration.h" (") """ (preproc_include) "#include "debugging_utilities.h"\n" (#include) "#include" (string_literal) ""debugging_utilities.h"" (") """ (string_content) "debugging_utilities.h" (") """ (preproc_include) "#include "persistent_storage.h"\n" (#include) "#include" (string_literal) ""persistent_storage.h"" (") """ (string_content) "persistent_storage.h" (") """ (preproc_include) "#include "pin_interface.h"\n" (#include) "#include" (string_literal) ""pin_interface.h"" (") """ (string_content) "pin_interface.h" (") """ (preproc_include) "#include "system_info.h"\n" (#include) "#include" (string_literal) ""system_info.h"" (") """ (string_content) "system_info.h" (") """
53
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.57, "nodes": 30, "errors": 0, "source_hash": "2107a0e5a978a274d08b2496890f01a98d0762ba51374880496b2d1c21fa70f2", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<string.h>", "parent": 0, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <FOSSA-Comms.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<FOSSA-Comms.h>", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <RadioLib.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<RadioLib.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <TimerOne.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<TimerOne.h>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include \"communication.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"communication.h\"", "parent": 12, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 26}}, {"id": 15, "type": "preproc_include", "text": "#include \"configuration.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": "string_literal", "text": "\"configuration.h\"", "parent": 15, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 26}}, {"id": 18, "type": "preproc_include", "text": "#include \"debugging_utilities.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"debugging_utilities.h\"", "parent": 18, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 32}}, {"id": 21, "type": "preproc_include", "text": "#include \"persistent_storage.h\"\n", "parent": null, "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": "\"persistent_storage.h\"", "parent": 21, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 31}}, {"id": 24, "type": "preproc_include", "text": "#include \"pin_interface.h\"\n", "parent": null, "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": "\"pin_interface.h\"", "parent": 24, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 26}}, {"id": 27, "type": "preproc_include", "text": "#include \"system_info.h\"\n", "parent": null, "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": "\"system_info.h\"", "parent": 27, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 24}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "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": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <string.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <FOSSA-Comms.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <RadioLib.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <TimerOne.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"communication.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"configuration.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"debugging_utilities.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"persistent_storage.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"pin_interface.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"system_info.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "// C++ libraries\n#include <string.h>\n\n// FOSSA libraries\n#include <FOSSA-Comms.h>\n\n// contributed libraries\n#include <RadioLib.h>\n#include <TimerOne.h>\n\n// files\n#include \"communication.h\"\n#include \"configuration.h\"\n#include \"debugging_utilities.h\"\n#include \"persistent_storage.h\"\n#include \"pin_interface.h\"\n#include \"system_info.h\"\n"}
80,873
c
// // HachidoriScripting.h // Hachidori // // Created by <NAME> on 6/19/15. // Copyright 2015 MAL Updater OS X Group and <NAME> All rights reserved. Code licensed under New BSD License // #import <Foundation/Foundation.h> @interface ScriptingGetStatus: NSScriptCommand @end @interface ScriptingScrobbleNow: NSScriptCommand @end @interface ScriptingToggleAutoScrobble: NSScriptCommand @end
27.07
14
(translation_unit) "//\n// HachidoriScripting.h\n// Hachidori\n//\n// Created by <NAME> on 6/19/15.\n// Copyright 2015 MAL Updater OS X Group and <NAME> All rights reserved. Code licensed under New BSD License\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ScriptingGetStatus: NSScriptCommand\n\n@end\n\n@interface ScriptingScrobbleNow: NSScriptCommand\n\n@end\n\n@interface ScriptingToggleAutoScrobble: NSScriptCommand\n\n@end\n" (comment) "//" (comment) "// HachidoriScripting.h" (comment) "// Hachidori" (comment) "//" (comment) "// Created by <NAME> on 6/19/15." (comment) "// Copyright 2015 MAL Updater OS X Group and <NAME> All rights reserved. Code licensed under New BSD License" (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (ERROR) "@" (ERROR) "@" (declaration) "interface ScriptingGetStatus: NSScriptCommand\n\n@end\n\n@interface ScriptingScrobbleNow: NSScriptCommand\n\n@end\n\n@interface" (type_identifier) "interface" (ERROR) "ScriptingGetStatus: NSScriptCommand\n\n@end\n\n@interface ScriptingScrobbleNow: NSScriptCommand\n\n@end\n\n@" (identifier) "ScriptingGetStatus" (:) ":" (identifier) "NSScriptCommand" (ERROR) "@" (identifier) "end" (ERROR) "@" (identifier) "interface" (identifier) "ScriptingScrobbleNow" (:) ":" (identifier) "NSScriptCommand" (ERROR) "@" (identifier) "end" (ERROR) "@" (identifier) "interface" (;) "" (labeled_statement) "ScriptingToggleAutoScrobble: NSScriptCommand\n\n@end" (statement_identifier) "ScriptingToggleAutoScrobble" (:) ":" (declaration) "NSScriptCommand\n\n@end" (type_identifier) "NSScriptCommand" (ERROR) "@" (ERROR) "@" (identifier) "end" (;) ""
40
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 27.07, "nodes": 24, "errors": 0, "source_hash": "b91871771cf44357987fcd21d4f294406bf349d2b3e98ea1e252143dc399603d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "declaration", "text": "interface ScriptingGetStatus: NSScriptCommand\n\n@end\n\n@interface ScriptingScrobbleNow: NSScriptCommand\n\n@end\n\n@interface", "parent": null, "children": [6, 7, 17], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 7, "type": "ERROR", "text": "ScriptingGetStatus: NSScriptCommand\n\n@end\n\n@interface ScriptingScrobbleNow: NSScriptCommand\n\n@end\n\n@", "parent": 5, "children": [8, 9, 10, 11, 12, 13, 14, 15, 16], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 18, "column": 1}}, {"id": 8, "type": "identifier", "text": "ScriptingGetStatus", "parent": 7, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 29}}, {"id": 9, "type": "identifier", "text": "NSScriptCommand", "parent": 7, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 46}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 11, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 12, "type": "identifier", "text": "interface", "parent": 7, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 10}}, {"id": 13, "type": "identifier", "text": "ScriptingScrobbleNow", "parent": 7, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 31}}, {"id": 14, "type": "identifier", "text": "NSScriptCommand", "parent": 7, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 48}}, {"id": 15, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 16, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 17, "type": "identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 18, "type": "labeled_statement", "text": "ScriptingToggleAutoScrobble: NSScriptCommand\n\n@end", "parent": null, "children": [19, 20], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 20, "column": 4}}, {"id": 19, "type": "statement_identifier", "text": "ScriptingToggleAutoScrobble", "parent": 18, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 38}}, {"id": 20, "type": "declaration", "text": "NSScriptCommand\n\n@end", "parent": 18, "children": [21, 22], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 20, "column": 4}}, {"id": 21, "type": "type_identifier", "text": "NSScriptCommand", "parent": 20, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 55}}, {"id": 22, "type": "ERROR", "text": "@", "parent": 20, "children": [23], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 23, "type": "ERROR", "text": "@", "parent": 22, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [5, 20], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 8, 9, 12, 13, 14, 17, 19, 21], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// HachidoriScripting.h\n// Hachidori\n//\n// Created by <NAME> on 6/19/15.\n// Copyright 2015 MAL Updater OS X Group and <NAME> All rights reserved. Code licensed under New BSD License\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ScriptingGetStatus: NSScriptCommand\n\n@end\n\n@interface ScriptingScrobbleNow: NSScriptCommand\n\n@end\n\n@interface ScriptingToggleAutoScrobble: NSScriptCommand\n\n@end\n"}
80,874
c
/* * epu_n_unit_ba_terminate.h * * Code generation for function 'epu_n_unit_ba_terminate' * * C source code generated on: Tue Oct 30 14:49:26 2012 * */ #ifndef __EPU_N_UNIT_BA_TERMINATE_H__ #define __EPU_N_UNIT_BA_TERMINATE_H__ /* Include files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "mwmathutil.h" #include "tmwtypes.h" #include "mex.h" #include "emlrt.h" #include "blascompat32.h" #include "rtwtypes.h" #include "epu_n_unit_ba_types.h" /* Type Definitions */ /* Named Constants */ /* Variable Declarations */ /* Variable Definitions */ /* Function Declarations */ extern void epu_n_unit_ba_atexit(void); extern void epu_n_unit_ba_terminate(void); #endif /* End of code generation (epu_n_unit_ba_terminate.h) */
24.03
30
(translation_unit) "/*\n * epu_n_unit_ba_terminate.h\n *\n * Code generation for function 'epu_n_unit_ba_terminate'\n *\n * C source code generated on: Tue Oct 30 14:49:26 2012\n *\n */\n\n#ifndef __EPU_N_UNIT_BA_TERMINATE_H__\n#define __EPU_N_UNIT_BA_TERMINATE_H__\n/* Include files */\n#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n#include "mwmathutil.h"\n\n#include "tmwtypes.h"\n#include "mex.h"\n#include "emlrt.h"\n#include "blascompat32.h"\n#include "rtwtypes.h"\n#include "epu_n_unit_ba_types.h"\n\n/* Type Definitions */\n\n/* Named Constants */\n\n/* Variable Declarations */\n\n/* Variable Definitions */\n\n/* Function Declarations */\nextern void epu_n_unit_ba_atexit(void);\nextern void epu_n_unit_ba_terminate(void);\n#endif\n/* End of code generation (epu_n_unit_ba_terminate.h) */\n" (comment) "/*\n * epu_n_unit_ba_terminate.h\n *\n * Code generation for function 'epu_n_unit_ba_terminate'\n *\n * C source code generated on: Tue Oct 30 14:49:26 2012\n *\n */" (preproc_ifdef) "#ifndef __EPU_N_UNIT_BA_TERMINATE_H__\n#define __EPU_N_UNIT_BA_TERMINATE_H__\n/* Include files */\n#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n#include "mwmathutil.h"\n\n#include "tmwtypes.h"\n#include "mex.h"\n#include "emlrt.h"\n#include "blascompat32.h"\n#include "rtwtypes.h"\n#include "epu_n_unit_ba_types.h"\n\n/* Type Definitions */\n\n/* Named Constants */\n\n/* Variable Declarations */\n\n/* Variable Definitions */\n\n/* Function Declarations */\nextern void epu_n_unit_ba_atexit(void);\nextern void epu_n_unit_ba_terminate(void);\n#endif" (#ifndef) "#ifndef" (identifier) "__EPU_N_UNIT_BA_TERMINATE_H__" (preproc_def) "#define __EPU_N_UNIT_BA_TERMINATE_H__\n" (#define) "#define" (identifier) "__EPU_N_UNIT_BA_TERMINATE_H__" (comment) "/* Include files */" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include "mwmathutil.h"\n" (#include) "#include" (string_literal) ""mwmathutil.h"" (") """ (string_content) "mwmathutil.h" (") """ (preproc_include) "#include "tmwtypes.h"\n" (#include) "#include" (string_literal) ""tmwtypes.h"" (") """ (string_content) "tmwtypes.h" (") """ (preproc_include) "#include "mex.h"\n" (#include) "#include" (string_literal) ""mex.h"" (") """ (string_content) "mex.h" (") """ (preproc_include) "#include "emlrt.h"\n" (#include) "#include" (string_literal) ""emlrt.h"" (") """ (string_content) "emlrt.h" (") """ (preproc_include) "#include "blascompat32.h"\n" (#include) "#include" (string_literal) ""blascompat32.h"" (") """ (string_content) "blascompat32.h" (") """ (preproc_include) "#include "rtwtypes.h"\n" (#include) "#include" (string_literal) ""rtwtypes.h"" (") """ (string_content) "rtwtypes.h" (") """ (preproc_include) "#include "epu_n_unit_ba_types.h"\n" (#include) "#include" (string_literal) ""epu_n_unit_ba_types.h"" (") """ (string_content) "epu_n_unit_ba_types.h" (") """ (comment) "/* Type Definitions */" (comment) "/* Named Constants */" (comment) "/* Variable Declarations */" (comment) "/* Variable Definitions */" (comment) "/* Function Declarations */" (declaration) "extern void epu_n_unit_ba_atexit(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "epu_n_unit_ba_atexit(void)" (identifier) "epu_n_unit_ba_atexit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "extern void epu_n_unit_ba_terminate(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "epu_n_unit_ba_terminate(void)" (identifier) "epu_n_unit_ba_terminate" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* End of code generation (epu_n_unit_ba_terminate.h) */"
91
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 24.03, "nodes": 55, "errors": 0, "source_hash": "1b58293e67e2c5bbc780f2a2067841470f3918cc2a7e36c1103fe57b70d2fb72", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __EPU_N_UNIT_BA_TERMINATE_H__\n#define __EPU_N_UNIT_BA_TERMINATE_H__\n/* Include files */\n#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n#include \"mwmathutil.h\"\n\n#include \"tmwtypes.h\"\n#include \"mex.h\"\n#include \"emlrt.h\"\n#include \"blascompat32.h\"\n#include \"rtwtypes.h\"\n#include \"epu_n_unit_ba_types.h\"\n\n/* Type Definitions */\n\n/* Named Constants */\n\n/* Variable Declarations */\n\n/* Variable Definitions */\n\n/* Function Declarations */\nextern void epu_n_unit_ba_atexit(void);\nextern void epu_n_unit_ba_terminate(void);\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 45, 54], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 2, "type": "identifier", "text": "__EPU_N_UNIT_BA_TERMINATE_H__", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 37}}, {"id": 3, "type": "preproc_def", "text": "#define __EPU_N_UNIT_BA_TERMINATE_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 5, "type": "identifier", "text": "__EPU_N_UNIT_BA_TERMINATE_H__", "parent": 3, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 37}}, {"id": 6, "type": "preproc_include", "text": "#include <math.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<math.h>", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 9, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <string.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<string.h>", "parent": 12, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include \"mwmathutil.h\"\n", "parent": 0, "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": "string_literal", "text": "\"mwmathutil.h\"", "parent": 15, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 23}}, {"id": 18, "type": "preproc_include", "text": "#include \"tmwtypes.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"tmwtypes.h\"", "parent": 18, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 21}}, {"id": 21, "type": "preproc_include", "text": "#include \"mex.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"mex.h\"", "parent": 21, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 16}}, {"id": 24, "type": "preproc_include", "text": "#include \"emlrt.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"emlrt.h\"", "parent": 24, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 18}}, {"id": 27, "type": "preproc_include", "text": "#include \"blascompat32.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"blascompat32.h\"", "parent": 27, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 25}}, {"id": 30, "type": "preproc_include", "text": "#include \"rtwtypes.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"rtwtypes.h\"", "parent": 30, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 21}}, {"id": 33, "type": "preproc_include", "text": "#include \"epu_n_unit_ba_types.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"epu_n_unit_ba_types.h\"", "parent": 33, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 32}}, {"id": 36, "type": "declaration", "text": "extern void epu_n_unit_ba_atexit(void);", "parent": 0, "children": [37, 39, 40], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 39}}, {"id": 37, "type": "storage_class_specifier", "text": "extern", "parent": 36, "children": [38], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 38, "type": "extern", "text": "extern", "parent": 37, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 11}}, {"id": 40, "type": "function_declarator", "text": "epu_n_unit_ba_atexit(void)", "parent": 36, "children": [41, 42], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 38}}, {"id": 41, "type": "identifier", "text": "epu_n_unit_ba_atexit", "parent": 40, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 32}}, {"id": 42, "type": "parameter_list", "text": "(void)", "parent": 40, "children": [43], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 38}}, {"id": 43, "type": "parameter_declaration", "text": "void", "parent": 42, "children": [44], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 37}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 37}}, {"id": 45, "type": "declaration", "text": "extern void epu_n_unit_ba_terminate(void);", "parent": 0, "children": [46, 48, 49], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 42}}, {"id": 46, "type": "storage_class_specifier", "text": "extern", "parent": 45, "children": [47], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 47, "type": "extern", "text": "extern", "parent": 46, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 48, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 11}}, {"id": 49, "type": "function_declarator", "text": "epu_n_unit_ba_terminate(void)", "parent": 45, "children": [50, 51], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 41}}, {"id": 50, "type": "identifier", "text": "epu_n_unit_ba_terminate", "parent": 49, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 35}}, {"id": 51, "type": "parameter_list", "text": "(void)", "parent": 49, "children": [52], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 41}}, {"id": 52, "type": "parameter_declaration", "text": "void", "parent": 51, "children": [53], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 40}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 40}}, {"id": 54, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}]}, "node_categories": {"declarations": {"functions": [40, 49], "variables": [36, 43, 45, 52], "classes": [37, 46], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 41, 50, 54], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "epu_n_unit_ba_atexit(void)"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "epu_n_unit_ba_terminate(void)"}], "class_declarations": [{"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include <math.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 \"mwmathutil.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"tmwtypes.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"mex.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"emlrt.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"blascompat32.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"rtwtypes.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"epu_n_unit_ba_types.h\"\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "/*\n * epu_n_unit_ba_terminate.h\n *\n * Code generation for function 'epu_n_unit_ba_terminate'\n *\n * C source code generated on: Tue Oct 30 14:49:26 2012\n *\n */\n\n#ifndef __EPU_N_UNIT_BA_TERMINATE_H__\n#define __EPU_N_UNIT_BA_TERMINATE_H__\n/* Include files */\n#include <math.h>\n#include <stdlib.h>\n#include <string.h>\n#include \"mwmathutil.h\"\n\n#include \"tmwtypes.h\"\n#include \"mex.h\"\n#include \"emlrt.h\"\n#include \"blascompat32.h\"\n#include \"rtwtypes.h\"\n#include \"epu_n_unit_ba_types.h\"\n\n/* Type Definitions */\n\n/* Named Constants */\n\n/* Variable Declarations */\n\n/* Variable Definitions */\n\n/* Function Declarations */\nextern void epu_n_unit_ba_atexit(void);\nextern void epu_n_unit_ba_terminate(void);\n#endif\n/* End of code generation (epu_n_unit_ba_terminate.h) */\n"}
80,875
c
#include "Lists.h" #include "list.h" #include <Types.h> #include <string.h> // Based on the work of <NAME> (kurisuto). // url: umich.edu/~archive/mac/development/source/simplelistmanager.txt #define StandardList 0 short rowNum = 0; ListHandle Create_List(WindowPtr _win, Rect _rect) { ListHandle _list; Rect ViewRect; Rect DataBounds; short TempInteger; //just do a little math Point CellSize; Cell CellPoint; //Inset the box to make room for the scroll bar. Also inset it so we've got room for a border ViewRect = _rect; InsetRect(&ViewRect, 1, 1); ViewRect.right -= 15; CellSize.v = 15; CellSize.h = 50; //Now adjust the ViewRect to avoid cutting off the last visible cell TempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v; ViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v); //Create the new List SetRect(&DataBounds, 0, 0, 1, 0); InsetRect(&ViewRect, -1, -1); FrameRect(&ViewRect); _list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE); UpdateList(_list); /*CellPoint.h = 0; CellPoint.v = 0; LAddRow(1, 0, _list); LSetCell("Testing 1", 9, CellPoint, _list); LDraw(CellPoint, _list);*/ return _list; } //update the display of the list void UpdateList(ListHandle _list) { Rect ViewRect; RgnHandle ListUpdateRgn; SetPort( (**_list).port); //Get the list manager to update the list ViewRect = (**_list).rView; LDoDraw(TRUE, _list); ListUpdateRgn = NewRgn( ); RectRgn(ListUpdateRgn, &ViewRect); LUpdate(ListUpdateRgn, _list); //Draw the border InsetRect(&ViewRect, -1, -1); FrameRect(&ViewRect); //Clean up after ourselves DisposeRgn(ListUpdateRgn); } short DoClick(ListHandle _list, Point _where) { short result = 0; SetPort((**_list).port); LDoDraw(TRUE, _list); if(LClick(_where, 0, _list)) { result = 1; } return result; } void TurnOffSelection(ListHandle _list) { Point ResultPoint; SetPt(&ResultPoint, 0, 0); if(LGetSelect(TRUE, &ResultPoint, _list)) { LSetSelect(FALSE, ResultPoint, _list); } } char* ListSelection(ListHandle _list) { Point ResultPoint; char* ResultString; Ptr StringPointer; short StringLength; SetPt(&ResultPoint, 0, 0); if(LGetSelect(TRUE, &ResultPoint, _list)) { StringPointer = (Ptr)(*ResultString); StringLength = 255; LGetCell(&StringPointer, &StringLength, ResultPoint, _list); StringPointer = (Ptr)(*ResultString); *StringPointer = StringLength; return ResultString; } else { return ""; } } void AddRow(ListHandle _list, char* _newString) { Cell CellPoint; CellPoint.h = 0; CellPoint.v = rowNum; LAddRow(1, rowNum, _list); LSetCell(_newString, strlen(_newString), CellPoint, _list); LDraw(CellPoint, _list); rowNum++; UpdateList(_list); } void DeleteRow(ListHandle _list, short _row) { Cell CellPoint; CellPoint.h = 0; CellPoint.v = _row; LDelRow(1, _row, _list); rowNum--; } void Activate(ListHandle _list) { LActivate(TRUE, _list); } void DestroyList(ListHandle _list) { LDispose(_list); } //Controls and stuff ControlHandle GetVHandle(ListHandle _list) { ControlHandle _myVHandle; _myVHandle=(**_list).vScroll; return _myVHandle; }
19.45
156
(translation_unit) "#include "Lists.h"\n#include "list.h"\n#include <Types.h>\n#include <string.h>\n\n// Based on the work of <NAME> (kurisuto).\n// url: umich.edu/~archive/mac/development/source/simplelistmanager.txt\n\n#define StandardList 0\n\n\nshort rowNum = 0;\n\nListHandle Create_List(WindowPtr _win, Rect _rect)\n{\n ListHandle _list;\n Rect ViewRect;\n Rect DataBounds;\n short TempInteger; //just do a little math\n Point CellSize;\n Cell CellPoint;\n \n //Inset the box to make room for the scroll bar. Also inset it so we've got room for a border\n ViewRect = _rect;\n InsetRect(&ViewRect, 1, 1);\n ViewRect.right -= 15;\n \n\n CellSize.v = 15;\n CellSize.h = 50;\n \n \n \n //Now adjust the ViewRect to avoid cutting off the last visible cell\n TempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v;\n ViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v);\n \n \n //Create the new List\n SetRect(&DataBounds, 0, 0, 1, 0);\n \n InsetRect(&ViewRect, -1, -1);\n FrameRect(&ViewRect);\n \n _list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE);\n \n UpdateList(_list);\n\n \n /*CellPoint.h = 0;\n CellPoint.v = 0;\n LAddRow(1, 0, _list);\n LSetCell("Testing 1", 9, CellPoint, _list);\n LDraw(CellPoint, _list);*/\n \n return _list;\n\n}\n\n\n//update the display of the list\nvoid UpdateList(ListHandle _list)\n{\n Rect ViewRect;\n RgnHandle ListUpdateRgn;\n \n SetPort( (**_list).port);\n \n //Get the list manager to update the list\n ViewRect = (**_list).rView;\n LDoDraw(TRUE, _list);\n ListUpdateRgn = NewRgn( );\n RectRgn(ListUpdateRgn, &ViewRect);\n LUpdate(ListUpdateRgn, _list);\n \n //Draw the border\n InsetRect(&ViewRect, -1, -1);\n FrameRect(&ViewRect);\n \n //Clean up after ourselves\n DisposeRgn(ListUpdateRgn);\n}\n\nshort DoClick(ListHandle _list, Point _where)\n{\n short result = 0;\n SetPort((**_list).port);\n LDoDraw(TRUE, _list);\n \n if(LClick(_where, 0, _list))\n {\n result = 1;\n }\n \n return result; \n}\n\nvoid TurnOffSelection(ListHandle _list)\n{\n Point ResultPoint;\n \n SetPt(&ResultPoint, 0, 0);\n if(LGetSelect(TRUE, &ResultPoint, _list))\n {\n LSetSelect(FALSE, ResultPoint, _list); \n }\n}\n\nchar* ListSelection(ListHandle _list)\n{\n Point ResultPoint;\n char* ResultString;\n Ptr StringPointer;\n short StringLength;\n \n \n SetPt(&ResultPoint, 0, 0);\n if(LGetSelect(TRUE, &ResultPoint, _list))\n { \n StringPointer = (Ptr)(*ResultString);\n StringLength = 255;\n LGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n StringPointer = (Ptr)(*ResultString);\n *StringPointer = StringLength;\n return ResultString;\n }\n else \n {\n return "";\n }\n}\n\nvoid AddRow(ListHandle _list, char* _newString)\n{\n Cell CellPoint;\n \n CellPoint.h = 0;\n CellPoint.v = rowNum;\n LAddRow(1, rowNum, _list);\n LSetCell(_newString, strlen(_newString), CellPoint, _list);\n LDraw(CellPoint, _list);\n rowNum++;\n UpdateList(_list);\n\n}\n\nvoid DeleteRow(ListHandle _list, short _row)\n{ \n Cell CellPoint;\n CellPoint.h = 0;\n CellPoint.v = _row;\n LDelRow(1, _row, _list);\n rowNum--;\n}\n\nvoid Activate(ListHandle _list)\n{\n LActivate(TRUE, _list);\n}\n\nvoid DestroyList(ListHandle _list)\n{\n LDispose(_list);\n}\n\n//Controls and stuff\nControlHandle GetVHandle(ListHandle _list)\n{\n ControlHandle _myVHandle;\n \n _myVHandle=(**_list).vScroll;\n return _myVHandle;\n}\n" (preproc_include) "#include "Lists.h"\n" (#include) "#include" (string_literal) ""Lists.h"" (") """ (string_content) "Lists.h" (") """ (preproc_include) "#include "list.h"\n" (#include) "#include" (string_literal) ""list.h"" (") """ (string_content) "list.h" (") """ (preproc_include) "#include <Types.h>\n" (#include) "#include" (system_lib_string) "<Types.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (comment) "// Based on the work of <NAME> (kurisuto)." (comment) "// url: umich.edu/~archive/mac/development/source/simplelistmanager.txt" (preproc_def) "#define StandardList 0\n" (#define) "#define" (identifier) "StandardList" (preproc_arg) "0" (declaration) "short rowNum = 0;" (sized_type_specifier) "short" (short) "short" (init_declarator) "rowNum = 0" (identifier) "rowNum" (=) "=" (number_literal) "0" (;) ";" (function_definition) "ListHandle Create_List(WindowPtr _win, Rect _rect)\n{\n ListHandle _list;\n Rect ViewRect;\n Rect DataBounds;\n short TempInteger; //just do a little math\n Point CellSize;\n Cell CellPoint;\n \n //Inset the box to make room for the scroll bar. Also inset it so we've got room for a border\n ViewRect = _rect;\n InsetRect(&ViewRect, 1, 1);\n ViewRect.right -= 15;\n \n\n CellSize.v = 15;\n CellSize.h = 50;\n \n \n \n //Now adjust the ViewRect to avoid cutting off the last visible cell\n TempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v;\n ViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v);\n \n \n //Create the new List\n SetRect(&DataBounds, 0, 0, 1, 0);\n \n InsetRect(&ViewRect, -1, -1);\n FrameRect(&ViewRect);\n \n _list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE);\n \n UpdateList(_list);\n\n \n /*CellPoint.h = 0;\n CellPoint.v = 0;\n LAddRow(1, 0, _list);\n LSetCell("Testing 1", 9, CellPoint, _list);\n LDraw(CellPoint, _list);*/\n \n return _list;\n\n}" (type_identifier) "ListHandle" (function_declarator) "Create_List(WindowPtr _win, Rect _rect)" (identifier) "Create_List" (parameter_list) "(WindowPtr _win, Rect _rect)" (() "(" (parameter_declaration) "WindowPtr _win" (type_identifier) "WindowPtr" (identifier) "_win" (,) "," (parameter_declaration) "Rect _rect" (type_identifier) "Rect" (identifier) "_rect" ()) ")" (compound_statement) "{\n ListHandle _list;\n Rect ViewRect;\n Rect DataBounds;\n short TempInteger; //just do a little math\n Point CellSize;\n Cell CellPoint;\n \n //Inset the box to make room for the scroll bar. Also inset it so we've got room for a border\n ViewRect = _rect;\n InsetRect(&ViewRect, 1, 1);\n ViewRect.right -= 15;\n \n\n CellSize.v = 15;\n CellSize.h = 50;\n \n \n \n //Now adjust the ViewRect to avoid cutting off the last visible cell\n TempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v;\n ViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v);\n \n \n //Create the new List\n SetRect(&DataBounds, 0, 0, 1, 0);\n \n InsetRect(&ViewRect, -1, -1);\n FrameRect(&ViewRect);\n \n _list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE);\n \n UpdateList(_list);\n\n \n /*CellPoint.h = 0;\n CellPoint.v = 0;\n LAddRow(1, 0, _list);\n LSetCell("Testing 1", 9, CellPoint, _list);\n LDraw(CellPoint, _list);*/\n \n return _list;\n\n}" ({) "{" (declaration) "ListHandle _list;" (type_identifier) "ListHandle" (identifier) "_list" (;) ";" (declaration) "Rect ViewRect;" (type_identifier) "Rect" (identifier) "ViewRect" (;) ";" (declaration) "Rect DataBounds;" (type_identifier) "Rect" (identifier) "DataBounds" (;) ";" (declaration) "short TempInteger;" (sized_type_specifier) "short" (short) "short" (identifier) "TempInteger" (;) ";" (comment) "//just do a little math" (declaration) "Point CellSize;" (type_identifier) "Point" (identifier) "CellSize" (;) ";" (declaration) "Cell CellPoint;" (type_identifier) "Cell" (identifier) "CellPoint" (;) ";" (comment) "//Inset the box to make room for the scroll bar. Also inset it so we've got room for a border" (expression_statement) "ViewRect = _rect;" (assignment_expression) "ViewRect = _rect" (identifier) "ViewRect" (=) "=" (identifier) "_rect" (;) ";" (expression_statement) "InsetRect(&ViewRect, 1, 1);" (call_expression) "InsetRect(&ViewRect, 1, 1)" (identifier) "InsetRect" (argument_list) "(&ViewRect, 1, 1)" (() "(" (pointer_expression) "&ViewRect" (&) "&" (identifier) "ViewRect" (,) "," (number_literal) "1" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "ViewRect.right -= 15;" (assignment_expression) "ViewRect.right -= 15" (field_expression) "ViewRect.right" (identifier) "ViewRect" (.) "." (field_identifier) "right" (-=) "-=" (number_literal) "15" (;) ";" (expression_statement) "CellSize.v = 15;" (assignment_expression) "CellSize.v = 15" (field_expression) "CellSize.v" (identifier) "CellSize" (.) "." (field_identifier) "v" (=) "=" (number_literal) "15" (;) ";" (expression_statement) "CellSize.h = 50;" (assignment_expression) "CellSize.h = 50" (field_expression) "CellSize.h" (identifier) "CellSize" (.) "." (field_identifier) "h" (=) "=" (number_literal) "50" (;) ";" (comment) "//Now adjust the ViewRect to avoid cutting off the last visible cell" (expression_statement) "TempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v;" (assignment_expression) "TempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v" (identifier) "TempInteger" (=) "=" (binary_expression) "(ViewRect.bottom-ViewRect.top) % CellSize.v" (parenthesized_expression) "(ViewRect.bottom-ViewRect.top)" (() "(" (binary_expression) "ViewRect.bottom-ViewRect.top" (field_expression) "ViewRect.bottom" (identifier) "ViewRect" (.) "." (field_identifier) "bottom" (-) "-" (field_expression) "ViewRect.top" (identifier) "ViewRect" (.) "." (field_identifier) "top" ()) ")" (%) "%" (field_expression) "CellSize.v" (identifier) "CellSize" (.) "." (field_identifier) "v" (;) ";" (expression_statement) "ViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v);" (assignment_expression) "ViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v)" (field_expression) "ViewRect.bottom" (identifier) "ViewRect" (.) "." (field_identifier) "bottom" (=) "=" (binary_expression) "ViewRect.top + (TempInteger * CellSize.v)" (field_expression) "ViewRect.top" (identifier) "ViewRect" (.) "." (field_identifier) "top" (+) "+" (parenthesized_expression) "(TempInteger * CellSize.v)" (() "(" (binary_expression) "TempInteger * CellSize.v" (identifier) "TempInteger" (*) "*" (field_expression) "CellSize.v" (identifier) "CellSize" (.) "." (field_identifier) "v" ()) ")" (;) ";" (comment) "//Create the new List" (expression_statement) "SetRect(&DataBounds, 0, 0, 1, 0);" (call_expression) "SetRect(&DataBounds, 0, 0, 1, 0)" (identifier) "SetRect" (argument_list) "(&DataBounds, 0, 0, 1, 0)" (() "(" (pointer_expression) "&DataBounds" (&) "&" (identifier) "DataBounds" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "InsetRect(&ViewRect, -1, -1);" (call_expression) "InsetRect(&ViewRect, -1, -1)" (identifier) "InsetRect" (argument_list) "(&ViewRect, -1, -1)" (() "(" (pointer_expression) "&ViewRect" (&) "&" (identifier) "ViewRect" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" ()) ")" (;) ";" (expression_statement) "FrameRect(&ViewRect);" (call_expression) "FrameRect(&ViewRect)" (identifier) "FrameRect" (argument_list) "(&ViewRect)" (() "(" (pointer_expression) "&ViewRect" (&) "&" (identifier) "ViewRect" ()) ")" (;) ";" (expression_statement) "_list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE);" (assignment_expression) "_list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE)" (identifier) "_list" (=) "=" (call_expression) "LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE)" (identifier) "LNew" (argument_list) "(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE)" (() "(" (pointer_expression) "&ViewRect" (&) "&" (identifier) "ViewRect" (,) "," (pointer_expression) "&DataBounds" (&) "&" (identifier) "DataBounds" (,) "," (identifier) "CellSize" (,) "," (identifier) "StandardList" (,) "," (call_expression) "GetWindowPointer()" (identifier) "GetWindowPointer" (argument_list) "()" (() "(" ()) ")" (,) "," (true) "TRUE" (,) "," (false) "FALSE" (,) "," (false) "FALSE" (,) "," (true) "TRUE" ()) ")" (;) ";" (expression_statement) "UpdateList(_list);" (call_expression) "UpdateList(_list)" (identifier) "UpdateList" (argument_list) "(_list)" (() "(" (identifier) "_list" ()) ")" (;) ";" (comment) "/*CellPoint.h = 0;\n CellPoint.v = 0;\n LAddRow(1, 0, _list);\n LSetCell("Testing 1", 9, CellPoint, _list);\n LDraw(CellPoint, _list);*/" (return_statement) "return _list;" (return) "return" (identifier) "_list" (;) ";" (}) "}" (comment) "//update the display of the list" (function_definition) "void UpdateList(ListHandle _list)\n{\n Rect ViewRect;\n RgnHandle ListUpdateRgn;\n \n SetPort( (**_list).port);\n \n //Get the list manager to update the list\n ViewRect = (**_list).rView;\n LDoDraw(TRUE, _list);\n ListUpdateRgn = NewRgn( );\n RectRgn(ListUpdateRgn, &ViewRect);\n LUpdate(ListUpdateRgn, _list);\n \n //Draw the border\n InsetRect(&ViewRect, -1, -1);\n FrameRect(&ViewRect);\n \n //Clean up after ourselves\n DisposeRgn(ListUpdateRgn);\n}" (primitive_type) "void" (function_declarator) "UpdateList(ListHandle _list)" (identifier) "UpdateList" (parameter_list) "(ListHandle _list)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" ()) ")" (compound_statement) "{\n Rect ViewRect;\n RgnHandle ListUpdateRgn;\n \n SetPort( (**_list).port);\n \n //Get the list manager to update the list\n ViewRect = (**_list).rView;\n LDoDraw(TRUE, _list);\n ListUpdateRgn = NewRgn( );\n RectRgn(ListUpdateRgn, &ViewRect);\n LUpdate(ListUpdateRgn, _list);\n \n //Draw the border\n InsetRect(&ViewRect, -1, -1);\n FrameRect(&ViewRect);\n \n //Clean up after ourselves\n DisposeRgn(ListUpdateRgn);\n}" ({) "{" (declaration) "Rect ViewRect;" (type_identifier) "Rect" (identifier) "ViewRect" (;) ";" (declaration) "RgnHandle ListUpdateRgn;" (type_identifier) "RgnHandle" (identifier) "ListUpdateRgn" (;) ";" (expression_statement) "SetPort( (**_list).port);" (call_expression) "SetPort( (**_list).port)" (identifier) "SetPort" (argument_list) "( (**_list).port)" (() "(" (field_expression) "(**_list).port" (parenthesized_expression) "(**_list)" (() "(" (pointer_expression) "**_list" (*) "*" (pointer_expression) "*_list" (*) "*" (identifier) "_list" ()) ")" (.) "." (field_identifier) "port" ()) ")" (;) ";" (comment) "//Get the list manager to update the list" (expression_statement) "ViewRect = (**_list).rView;" (assignment_expression) "ViewRect = (**_list).rView" (identifier) "ViewRect" (=) "=" (field_expression) "(**_list).rView" (parenthesized_expression) "(**_list)" (() "(" (pointer_expression) "**_list" (*) "*" (pointer_expression) "*_list" (*) "*" (identifier) "_list" ()) ")" (.) "." (field_identifier) "rView" (;) ";" (expression_statement) "LDoDraw(TRUE, _list);" (call_expression) "LDoDraw(TRUE, _list)" (identifier) "LDoDraw" (argument_list) "(TRUE, _list)" (() "(" (true) "TRUE" (,) "," (identifier) "_list" ()) ")" (;) ";" (expression_statement) "ListUpdateRgn = NewRgn( );" (assignment_expression) "ListUpdateRgn = NewRgn( )" (identifier) "ListUpdateRgn" (=) "=" (call_expression) "NewRgn( )" (identifier) "NewRgn" (argument_list) "( )" (() "(" ()) ")" (;) ";" (expression_statement) "RectRgn(ListUpdateRgn, &ViewRect);" (call_expression) "RectRgn(ListUpdateRgn, &ViewRect)" (identifier) "RectRgn" (argument_list) "(ListUpdateRgn, &ViewRect)" (() "(" (identifier) "ListUpdateRgn" (,) "," (pointer_expression) "&ViewRect" (&) "&" (identifier) "ViewRect" ()) ")" (;) ";" (expression_statement) "LUpdate(ListUpdateRgn, _list);" (call_expression) "LUpdate(ListUpdateRgn, _list)" (identifier) "LUpdate" (argument_list) "(ListUpdateRgn, _list)" (() "(" (identifier) "ListUpdateRgn" (,) "," (identifier) "_list" ()) ")" (;) ";" (comment) "//Draw the border" (expression_statement) "InsetRect(&ViewRect, -1, -1);" (call_expression) "InsetRect(&ViewRect, -1, -1)" (identifier) "InsetRect" (argument_list) "(&ViewRect, -1, -1)" (() "(" (pointer_expression) "&ViewRect" (&) "&" (identifier) "ViewRect" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" ()) ")" (;) ";" (expression_statement) "FrameRect(&ViewRect);" (call_expression) "FrameRect(&ViewRect)" (identifier) "FrameRect" (argument_list) "(&ViewRect)" (() "(" (pointer_expression) "&ViewRect" (&) "&" (identifier) "ViewRect" ()) ")" (;) ";" (comment) "//Clean up after ourselves" (expression_statement) "DisposeRgn(ListUpdateRgn);" (call_expression) "DisposeRgn(ListUpdateRgn)" (identifier) "DisposeRgn" (argument_list) "(ListUpdateRgn)" (() "(" (identifier) "ListUpdateRgn" ()) ")" (;) ";" (}) "}" (function_definition) "short DoClick(ListHandle _list, Point _where)\n{\n short result = 0;\n SetPort((**_list).port);\n LDoDraw(TRUE, _list);\n \n if(LClick(_where, 0, _list))\n {\n result = 1;\n }\n \n return result; \n}" (sized_type_specifier) "short" (short) "short" (function_declarator) "DoClick(ListHandle _list, Point _where)" (identifier) "DoClick" (parameter_list) "(ListHandle _list, Point _where)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" (,) "," (parameter_declaration) "Point _where" (type_identifier) "Point" (identifier) "_where" ()) ")" (compound_statement) "{\n short result = 0;\n SetPort((**_list).port);\n LDoDraw(TRUE, _list);\n \n if(LClick(_where, 0, _list))\n {\n result = 1;\n }\n \n return result; \n}" ({) "{" (declaration) "short result = 0;" (sized_type_specifier) "short" (short) "short" (init_declarator) "result = 0" (identifier) "result" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "SetPort((**_list).port);" (call_expression) "SetPort((**_list).port)" (identifier) "SetPort" (argument_list) "((**_list).port)" (() "(" (field_expression) "(**_list).port" (parenthesized_expression) "(**_list)" (() "(" (pointer_expression) "**_list" (*) "*" (pointer_expression) "*_list" (*) "*" (identifier) "_list" ()) ")" (.) "." (field_identifier) "port" ()) ")" (;) ";" (expression_statement) "LDoDraw(TRUE, _list);" (call_expression) "LDoDraw(TRUE, _list)" (identifier) "LDoDraw" (argument_list) "(TRUE, _list)" (() "(" (true) "TRUE" (,) "," (identifier) "_list" ()) ")" (;) ";" (if_statement) "if(LClick(_where, 0, _list))\n {\n result = 1;\n }" (if) "if" (parenthesized_expression) "(LClick(_where, 0, _list))" (() "(" (call_expression) "LClick(_where, 0, _list)" (identifier) "LClick" (argument_list) "(_where, 0, _list)" (() "(" (identifier) "_where" (,) "," (number_literal) "0" (,) "," (identifier) "_list" ()) ")" ()) ")" (compound_statement) "{\n result = 1;\n }" ({) "{" (expression_statement) "result = 1;" (assignment_expression) "result = 1" (identifier) "result" (=) "=" (number_literal) "1" (;) ";" (}) "}" (return_statement) "return result;" (return) "return" (identifier) "result" (;) ";" (}) "}" (function_definition) "void TurnOffSelection(ListHandle _list)\n{\n Point ResultPoint;\n \n SetPt(&ResultPoint, 0, 0);\n if(LGetSelect(TRUE, &ResultPoint, _list))\n {\n LSetSelect(FALSE, ResultPoint, _list); \n }\n}" (primitive_type) "void" (function_declarator) "TurnOffSelection(ListHandle _list)" (identifier) "TurnOffSelection" (parameter_list) "(ListHandle _list)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" ()) ")" (compound_statement) "{\n Point ResultPoint;\n \n SetPt(&ResultPoint, 0, 0);\n if(LGetSelect(TRUE, &ResultPoint, _list))\n {\n LSetSelect(FALSE, ResultPoint, _list); \n }\n}" ({) "{" (declaration) "Point ResultPoint;" (type_identifier) "Point" (identifier) "ResultPoint" (;) ";" (expression_statement) "SetPt(&ResultPoint, 0, 0);" (call_expression) "SetPt(&ResultPoint, 0, 0)" (identifier) "SetPt" (argument_list) "(&ResultPoint, 0, 0)" (() "(" (pointer_expression) "&ResultPoint" (&) "&" (identifier) "ResultPoint" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if(LGetSelect(TRUE, &ResultPoint, _list))\n {\n LSetSelect(FALSE, ResultPoint, _list); \n }" (if) "if" (parenthesized_expression) "(LGetSelect(TRUE, &ResultPoint, _list))" (() "(" (call_expression) "LGetSelect(TRUE, &ResultPoint, _list)" (identifier) "LGetSelect" (argument_list) "(TRUE, &ResultPoint, _list)" (() "(" (true) "TRUE" (,) "," (pointer_expression) "&ResultPoint" (&) "&" (identifier) "ResultPoint" (,) "," (identifier) "_list" ()) ")" ()) ")" (compound_statement) "{\n LSetSelect(FALSE, ResultPoint, _list); \n }" ({) "{" (expression_statement) "LSetSelect(FALSE, ResultPoint, _list);" (call_expression) "LSetSelect(FALSE, ResultPoint, _list)" (identifier) "LSetSelect" (argument_list) "(FALSE, ResultPoint, _list)" (() "(" (false) "FALSE" (,) "," (identifier) "ResultPoint" (,) "," (identifier) "_list" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "char* ListSelection(ListHandle _list)\n{\n Point ResultPoint;\n char* ResultString;\n Ptr StringPointer;\n short StringLength;\n \n \n SetPt(&ResultPoint, 0, 0);\n if(LGetSelect(TRUE, &ResultPoint, _list))\n { \n StringPointer = (Ptr)(*ResultString);\n StringLength = 255;\n LGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n StringPointer = (Ptr)(*ResultString);\n *StringPointer = StringLength;\n return ResultString;\n }\n else \n {\n return "";\n }\n}" (primitive_type) "char" (pointer_declarator) "* ListSelection(ListHandle _list)" (*) "*" (function_declarator) "ListSelection(ListHandle _list)" (identifier) "ListSelection" (parameter_list) "(ListHandle _list)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" ()) ")" (compound_statement) "{\n Point ResultPoint;\n char* ResultString;\n Ptr StringPointer;\n short StringLength;\n \n \n SetPt(&ResultPoint, 0, 0);\n if(LGetSelect(TRUE, &ResultPoint, _list))\n { \n StringPointer = (Ptr)(*ResultString);\n StringLength = 255;\n LGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n StringPointer = (Ptr)(*ResultString);\n *StringPointer = StringLength;\n return ResultString;\n }\n else \n {\n return "";\n }\n}" ({) "{" (declaration) "Point ResultPoint;" (type_identifier) "Point" (identifier) "ResultPoint" (;) ";" (declaration) "char* ResultString;" (primitive_type) "char" (pointer_declarator) "* ResultString" (*) "*" (identifier) "ResultString" (;) ";" (declaration) "Ptr StringPointer;" (type_identifier) "Ptr" (identifier) "StringPointer" (;) ";" (declaration) "short StringLength;" (sized_type_specifier) "short" (short) "short" (identifier) "StringLength" (;) ";" (expression_statement) "SetPt(&ResultPoint, 0, 0);" (call_expression) "SetPt(&ResultPoint, 0, 0)" (identifier) "SetPt" (argument_list) "(&ResultPoint, 0, 0)" (() "(" (pointer_expression) "&ResultPoint" (&) "&" (identifier) "ResultPoint" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if(LGetSelect(TRUE, &ResultPoint, _list))\n { \n StringPointer = (Ptr)(*ResultString);\n StringLength = 255;\n LGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n StringPointer = (Ptr)(*ResultString);\n *StringPointer = StringLength;\n return ResultString;\n }\n else \n {\n return "";\n }" (if) "if" (parenthesized_expression) "(LGetSelect(TRUE, &ResultPoint, _list))" (() "(" (call_expression) "LGetSelect(TRUE, &ResultPoint, _list)" (identifier) "LGetSelect" (argument_list) "(TRUE, &ResultPoint, _list)" (() "(" (true) "TRUE" (,) "," (pointer_expression) "&ResultPoint" (&) "&" (identifier) "ResultPoint" (,) "," (identifier) "_list" ()) ")" ()) ")" (compound_statement) "{ \n StringPointer = (Ptr)(*ResultString);\n StringLength = 255;\n LGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n StringPointer = (Ptr)(*ResultString);\n *StringPointer = StringLength;\n return ResultString;\n }" ({) "{" (expression_statement) "StringPointer = (Ptr)(*ResultString);" (assignment_expression) "StringPointer = (Ptr)(*ResultString)" (identifier) "StringPointer" (=) "=" (call_expression) "(Ptr)(*ResultString)" (parenthesized_expression) "(Ptr)" (() "(" (identifier) "Ptr" ()) ")" (argument_list) "(*ResultString)" (() "(" (pointer_expression) "*ResultString" (*) "*" (identifier) "ResultString" ()) ")" (;) ";" (expression_statement) "StringLength = 255;" (assignment_expression) "StringLength = 255" (identifier) "StringLength" (=) "=" (number_literal) "255" (;) ";" (expression_statement) "LGetCell(&StringPointer, &StringLength, ResultPoint, _list);" (call_expression) "LGetCell(&StringPointer, &StringLength, ResultPoint, _list)" (identifier) "LGetCell" (argument_list) "(&StringPointer, &StringLength, ResultPoint, _list)" (() "(" (pointer_expression) "&StringPointer" (&) "&" (identifier) "StringPointer" (,) "," (pointer_expression) "&StringLength" (&) "&" (identifier) "StringLength" (,) "," (identifier) "ResultPoint" (,) "," (identifier) "_list" ()) ")" (;) ";" (expression_statement) "StringPointer = (Ptr)(*ResultString);" (assignment_expression) "StringPointer = (Ptr)(*ResultString)" (identifier) "StringPointer" (=) "=" (call_expression) "(Ptr)(*ResultString)" (parenthesized_expression) "(Ptr)" (() "(" (identifier) "Ptr" ()) ")" (argument_list) "(*ResultString)" (() "(" (pointer_expression) "*ResultString" (*) "*" (identifier) "ResultString" ()) ")" (;) ";" (expression_statement) "*StringPointer = StringLength;" (assignment_expression) "*StringPointer = StringLength" (pointer_expression) "*StringPointer" (*) "*" (identifier) "StringPointer" (=) "=" (identifier) "StringLength" (;) ";" (return_statement) "return ResultString;" (return) "return" (identifier) "ResultString" (;) ";" (}) "}" (else_clause) "else \n {\n return "";\n }" (else) "else" (compound_statement) "{\n return "";\n }" ({) "{" (return_statement) "return "";" (return) "return" (string_literal) """" (") """ (") """ (;) ";" (}) "}" (}) "}" (function_definition) "void AddRow(ListHandle _list, char* _newString)\n{\n Cell CellPoint;\n \n CellPoint.h = 0;\n CellPoint.v = rowNum;\n LAddRow(1, rowNum, _list);\n LSetCell(_newString, strlen(_newString), CellPoint, _list);\n LDraw(CellPoint, _list);\n rowNum++;\n UpdateList(_list);\n\n}" (primitive_type) "void" (function_declarator) "AddRow(ListHandle _list, char* _newString)" (identifier) "AddRow" (parameter_list) "(ListHandle _list, char* _newString)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" (,) "," (parameter_declaration) "char* _newString" (primitive_type) "char" (pointer_declarator) "* _newString" (*) "*" (identifier) "_newString" ()) ")" (compound_statement) "{\n Cell CellPoint;\n \n CellPoint.h = 0;\n CellPoint.v = rowNum;\n LAddRow(1, rowNum, _list);\n LSetCell(_newString, strlen(_newString), CellPoint, _list);\n LDraw(CellPoint, _list);\n rowNum++;\n UpdateList(_list);\n\n}" ({) "{" (declaration) "Cell CellPoint;" (type_identifier) "Cell" (identifier) "CellPoint" (;) ";" (expression_statement) "CellPoint.h = 0;" (assignment_expression) "CellPoint.h = 0" (field_expression) "CellPoint.h" (identifier) "CellPoint" (.) "." (field_identifier) "h" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "CellPoint.v = rowNum;" (assignment_expression) "CellPoint.v = rowNum" (field_expression) "CellPoint.v" (identifier) "CellPoint" (.) "." (field_identifier) "v" (=) "=" (identifier) "rowNum" (;) ";" (expression_statement) "LAddRow(1, rowNum, _list);" (call_expression) "LAddRow(1, rowNum, _list)" (identifier) "LAddRow" (argument_list) "(1, rowNum, _list)" (() "(" (number_literal) "1" (,) "," (identifier) "rowNum" (,) "," (identifier) "_list" ()) ")" (;) ";" (expression_statement) "LSetCell(_newString, strlen(_newString), CellPoint, _list);" (call_expression) "LSetCell(_newString, strlen(_newString), CellPoint, _list)" (identifier) "LSetCell" (argument_list) "(_newString, strlen(_newString), CellPoint, _list)" (() "(" (identifier) "_newString" (,) "," (call_expression) "strlen(_newString)" (identifier) "strlen" (argument_list) "(_newString)" (() "(" (identifier) "_newString" ()) ")" (,) "," (identifier) "CellPoint" (,) "," (identifier) "_list" ()) ")" (;) ";" (expression_statement) "LDraw(CellPoint, _list);" (call_expression) "LDraw(CellPoint, _list)" (identifier) "LDraw" (argument_list) "(CellPoint, _list)" (() "(" (identifier) "CellPoint" (,) "," (identifier) "_list" ()) ")" (;) ";" (expression_statement) "rowNum++;" (update_expression) "rowNum++" (identifier) "rowNum" (++) "++" (;) ";" (expression_statement) "UpdateList(_list);" (call_expression) "UpdateList(_list)" (identifier) "UpdateList" (argument_list) "(_list)" (() "(" (identifier) "_list" ()) ")" (;) ";" (}) "}" (function_definition) "void DeleteRow(ListHandle _list, short _row)\n{ \n Cell CellPoint;\n CellPoint.h = 0;\n CellPoint.v = _row;\n LDelRow(1, _row, _list);\n rowNum--;\n}" (primitive_type) "void" (function_declarator) "DeleteRow(ListHandle _list, short _row)" (identifier) "DeleteRow" (parameter_list) "(ListHandle _list, short _row)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" (,) "," (parameter_declaration) "short _row" (sized_type_specifier) "short" (short) "short" (identifier) "_row" ()) ")" (compound_statement) "{ \n Cell CellPoint;\n CellPoint.h = 0;\n CellPoint.v = _row;\n LDelRow(1, _row, _list);\n rowNum--;\n}" ({) "{" (declaration) "Cell CellPoint;" (type_identifier) "Cell" (identifier) "CellPoint" (;) ";" (expression_statement) "CellPoint.h = 0;" (assignment_expression) "CellPoint.h = 0" (field_expression) "CellPoint.h" (identifier) "CellPoint" (.) "." (field_identifier) "h" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "CellPoint.v = _row;" (assignment_expression) "CellPoint.v = _row" (field_expression) "CellPoint.v" (identifier) "CellPoint" (.) "." (field_identifier) "v" (=) "=" (identifier) "_row" (;) ";" (expression_statement) "LDelRow(1, _row, _list);" (call_expression) "LDelRow(1, _row, _list)" (identifier) "LDelRow" (argument_list) "(1, _row, _list)" (() "(" (number_literal) "1" (,) "," (identifier) "_row" (,) "," (identifier) "_list" ()) ")" (;) ";" (expression_statement) "rowNum--;" (update_expression) "rowNum--" (identifier) "rowNum" (--) "--" (;) ";" (}) "}" (function_definition) "void Activate(ListHandle _list)\n{\n LActivate(TRUE, _list);\n}" (primitive_type) "void" (function_declarator) "Activate(ListHandle _list)" (identifier) "Activate" (parameter_list) "(ListHandle _list)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" ()) ")" (compound_statement) "{\n LActivate(TRUE, _list);\n}" ({) "{" (expression_statement) "LActivate(TRUE, _list);" (call_expression) "LActivate(TRUE, _list)" (identifier) "LActivate" (argument_list) "(TRUE, _list)" (() "(" (true) "TRUE" (,) "," (identifier) "_list" ()) ")" (;) ";" (}) "}" (function_definition) "void DestroyList(ListHandle _list)\n{\n LDispose(_list);\n}" (primitive_type) "void" (function_declarator) "DestroyList(ListHandle _list)" (identifier) "DestroyList" (parameter_list) "(ListHandle _list)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" ()) ")" (compound_statement) "{\n LDispose(_list);\n}" ({) "{" (expression_statement) "LDispose(_list);" (call_expression) "LDispose(_list)" (identifier) "LDispose" (argument_list) "(_list)" (() "(" (identifier) "_list" ()) ")" (;) ";" (}) "}" (comment) "//Controls and stuff" (function_definition) "ControlHandle GetVHandle(ListHandle _list)\n{\n ControlHandle _myVHandle;\n \n _myVHandle=(**_list).vScroll;\n return _myVHandle;\n}" (type_identifier) "ControlHandle" (function_declarator) "GetVHandle(ListHandle _list)" (identifier) "GetVHandle" (parameter_list) "(ListHandle _list)" (() "(" (parameter_declaration) "ListHandle _list" (type_identifier) "ListHandle" (identifier) "_list" ()) ")" (compound_statement) "{\n ControlHandle _myVHandle;\n \n _myVHandle=(**_list).vScroll;\n return _myVHandle;\n}" ({) "{" (declaration) "ControlHandle _myVHandle;" (type_identifier) "ControlHandle" (identifier) "_myVHandle" (;) ";" (expression_statement) "_myVHandle=(**_list).vScroll;" (assignment_expression) "_myVHandle=(**_list).vScroll" (identifier) "_myVHandle" (=) "=" (field_expression) "(**_list).vScroll" (parenthesized_expression) "(**_list)" (() "(" (pointer_expression) "**_list" (*) "*" (pointer_expression) "*_list" (*) "*" (identifier) "_list" ()) ")" (.) "." (field_identifier) "vScroll" (;) ";" (return_statement) "return _myVHandle;" (return) "return" (identifier) "_myVHandle" (;) ";" (}) "}"
923
0
{"language": "c", "success": true, "metadata": {"lines": 156, "avg_line_length": 19.45, "nodes": 544, "errors": 0, "source_hash": "ac406be305cb3d03638a3dffed90e79b1ed9d3fd728d6baaeaf3520be084027d", "categorized_nodes": 425}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"Lists.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": "\"Lists.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include \"list.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": "\"list.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <Types.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": "<Types.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<string.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_def", "text": "#define StandardList 0\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 14, "type": "identifier", "text": "StandardList", "parent": 12, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 20}}, {"id": 15, "type": "preproc_arg", "text": "0", "parent": 12, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 22}}, {"id": 16, "type": "declaration", "text": "short rowNum = 0;", "parent": null, "children": [17, 19], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 17, "type": "sized_type_specifier", "text": "short", "parent": 16, "children": [18], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 18, "type": "short", "text": "short", "parent": 17, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 19, "type": "init_declarator", "text": "rowNum = 0", "parent": 16, "children": [20, 21, 22], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 16}}, {"id": 20, "type": "identifier", "text": "rowNum", "parent": 19, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 12}}, {"id": 21, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 14}}, {"id": 22, "type": "number_literal", "text": "0", "parent": 19, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 23, "type": "function_definition", "text": "ListHandle Create_List(WindowPtr _win, Rect _rect)\n{\n\tListHandle _list;\n\tRect ViewRect;\n\tRect DataBounds;\n\tshort TempInteger; //just do a little math\n\tPoint CellSize;\n\tCell CellPoint;\n\t\n\t//Inset the box to make room for the scroll bar. Also inset it so we've got room for a border\n\tViewRect = _rect;\n\tInsetRect(&ViewRect, 1, 1);\n\tViewRect.right -= 15;\n\t\n\n\tCellSize.v = 15;\n\tCellSize.h = 50;\n\t\n\t\n\t\n\t//Now adjust the ViewRect to avoid cutting off the last visible cell\n\tTempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v;\n\tViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v);\n\t\n\t\n\t//Create the new List\n\tSetRect(&DataBounds, 0, 0, 1, 0);\n\t\n\tInsetRect(&ViewRect, -1, -1);\n\tFrameRect(&ViewRect);\n\t\n\t_list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE);\n\t\n\tUpdateList(_list);\n\n\t\n\t/*CellPoint.h = 0;\n\tCellPoint.v = 0;\n\tLAddRow(1, 0, _list);\n\tLSetCell(\"Testing 1\", 9, CellPoint, _list);\n\tLDraw(CellPoint, _list);*/\n\t\n\treturn _list;\n\n}", "parent": null, "children": [24, 25], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 24, "type": "type_identifier", "text": "ListHandle", "parent": 23, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 10}}, {"id": 25, "type": "function_declarator", "text": "Create_List(WindowPtr _win, Rect _rect)", "parent": 23, "children": [26, 27], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 50}}, {"id": 26, "type": "identifier", "text": "Create_List", "parent": 25, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 22}}, {"id": 27, "type": "parameter_list", "text": "(WindowPtr _win, Rect _rect)", "parent": 25, "children": [28, 31], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 50}}, {"id": 28, "type": "parameter_declaration", "text": "WindowPtr _win", "parent": 27, "children": [29, 30], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 37}}, {"id": 29, "type": "type_identifier", "text": "WindowPtr", "parent": 28, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 32}}, {"id": 30, "type": "identifier", "text": "_win", "parent": 28, "children": [], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 37}}, {"id": 31, "type": "parameter_declaration", "text": "Rect _rect", "parent": 27, "children": [32, 33], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 49}}, {"id": 32, "type": "type_identifier", "text": "Rect", "parent": 31, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 43}}, {"id": 33, "type": "identifier", "text": "_rect", "parent": 31, "children": [], "start_point": {"row": 13, "column": 44}, "end_point": {"row": 13, "column": 49}}, {"id": 34, "type": "declaration", "text": "ListHandle _list;", "parent": 23, "children": [35, 36], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 18}}, {"id": 35, "type": "type_identifier", "text": "ListHandle", "parent": 34, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 11}}, {"id": 36, "type": "identifier", "text": "_list", "parent": 34, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 17}}, {"id": 37, "type": "declaration", "text": "Rect ViewRect;", "parent": 23, "children": [38, 39], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 15}}, {"id": 38, "type": "type_identifier", "text": "Rect", "parent": 37, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 5}}, {"id": 39, "type": "identifier", "text": "ViewRect", "parent": 37, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 14}}, {"id": 40, "type": "declaration", "text": "Rect DataBounds;", "parent": 23, "children": [41, 42], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 17}}, {"id": 41, "type": "type_identifier", "text": "Rect", "parent": 40, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 5}}, {"id": 42, "type": "identifier", "text": "DataBounds", "parent": 40, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 16}}, {"id": 43, "type": "declaration", "text": "short TempInteger;", "parent": 23, "children": [44, 46], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 19}}, {"id": 44, "type": "sized_type_specifier", "text": "short", "parent": 43, "children": [45], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 6}}, {"id": 45, "type": "short", "text": "short", "parent": 44, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 6}}, {"id": 46, "type": "identifier", "text": "TempInteger", "parent": 43, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 18}}, {"id": 47, "type": "declaration", "text": "Point CellSize;", "parent": 23, "children": [48, 49], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 16}}, {"id": 48, "type": "type_identifier", "text": "Point", "parent": 47, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 6}}, {"id": 49, "type": "identifier", "text": "CellSize", "parent": 47, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 15}}, {"id": 50, "type": "declaration", "text": "Cell CellPoint;", "parent": 23, "children": [51, 52], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 16}}, {"id": 51, "type": "type_identifier", "text": "Cell", "parent": 50, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 52, "type": "identifier", "text": "CellPoint", "parent": 50, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 15}}, {"id": 53, "type": "assignment_expression", "text": "ViewRect = _rect", "parent": 23, "children": [54, 55, 56], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 17}}, {"id": 54, "type": "identifier", "text": "ViewRect", "parent": 53, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 11}}, {"id": 56, "type": "identifier", "text": "_rect", "parent": 53, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 17}}, {"id": 57, "type": "call_expression", "text": "InsetRect(&ViewRect, 1, 1)", "parent": 23, "children": [58, 59], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 27}}, {"id": 58, "type": "identifier", "text": "InsetRect", "parent": 57, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 10}}, {"id": 59, "type": "argument_list", "text": "(&ViewRect, 1, 1)", "parent": 57, "children": [60, 62, 63], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 27}}, {"id": 60, "type": "pointer_expression", "text": "&ViewRect", "parent": 59, "children": [61], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 20}}, {"id": 61, "type": "identifier", "text": "ViewRect", "parent": 60, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 20}}, {"id": 62, "type": "number_literal", "text": "1", "parent": 59, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 63, "type": "number_literal", "text": "1", "parent": 59, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 26}}, {"id": 64, "type": "assignment_expression", "text": "ViewRect.right -= 15", "parent": 23, "children": [65, 68, 69], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 21}}, {"id": 65, "type": "field_expression", "text": "ViewRect.right", "parent": 64, "children": [66, 67], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 15}}, {"id": 66, "type": "identifier", "text": "ViewRect", "parent": 65, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 67, "type": "field_identifier", "text": "right", "parent": 65, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 15}}, {"id": 68, "type": "-=", "text": "-=", "parent": 64, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 18}}, {"id": 69, "type": "number_literal", "text": "15", "parent": 64, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 21}}, {"id": 70, "type": "assignment_expression", "text": "CellSize.v = 15", "parent": 23, "children": [71, 74, 75], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 16}}, {"id": 71, "type": "field_expression", "text": "CellSize.v", "parent": 70, "children": [72, 73], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 11}}, {"id": 72, "type": "identifier", "text": "CellSize", "parent": 71, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 9}}, {"id": 73, "type": "field_identifier", "text": "v", "parent": 71, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 74, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 75, "type": "number_literal", "text": "15", "parent": 70, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 16}}, {"id": 76, "type": "assignment_expression", "text": "CellSize.h = 50", "parent": 23, "children": [77, 80, 81], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 16}}, {"id": 77, "type": "field_expression", "text": "CellSize.h", "parent": 76, "children": [78, 79], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 11}}, {"id": 78, "type": "identifier", "text": "CellSize", "parent": 77, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 79, "type": "field_identifier", "text": "h", "parent": 77, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 80, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 81, "type": "number_literal", "text": "50", "parent": 76, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 16}}, {"id": 82, "type": "assignment_expression", "text": "TempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v", "parent": 23, "children": [83, 84, 85], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 58}}, {"id": 83, "type": "identifier", "text": "TempInteger", "parent": 82, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 12}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 14}}, {"id": 85, "type": "binary_expression", "text": "(ViewRect.bottom-ViewRect.top) % CellSize.v", "parent": 82, "children": [86, 95, 96], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 58}}, {"id": 86, "type": "parenthesized_expression", "text": "(ViewRect.bottom-ViewRect.top)", "parent": 85, "children": [87], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 45}}, {"id": 87, "type": "binary_expression", "text": "ViewRect.bottom-ViewRect.top", "parent": 86, "children": [88, 91, 92], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 44}}, {"id": 88, "type": "field_expression", "text": "ViewRect.bottom", "parent": 87, "children": [89, 90], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 31}}, {"id": 89, "type": "identifier", "text": "ViewRect", "parent": 88, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 24}}, {"id": 90, "type": "field_identifier", "text": "bottom", "parent": 88, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 31}}, {"id": 91, "type": "-", "text": "-", "parent": 87, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 32}}, {"id": 92, "type": "field_expression", "text": "ViewRect.top", "parent": 87, "children": [93, 94], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 44}}, {"id": 93, "type": "identifier", "text": "ViewRect", "parent": 92, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 40}}, {"id": 94, "type": "field_identifier", "text": "top", "parent": 92, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 44}}, {"id": 95, "type": "%", "text": "%", "parent": 85, "children": [], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 47}}, {"id": 96, "type": "field_expression", "text": "CellSize.v", "parent": 85, "children": [97, 98], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 58}}, {"id": 97, "type": "identifier", "text": "CellSize", "parent": 96, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 56}}, {"id": 98, "type": "field_identifier", "text": "v", "parent": 96, "children": [], "start_point": {"row": 34, "column": 57}, "end_point": {"row": 34, "column": 58}}, {"id": 99, "type": "assignment_expression", "text": "ViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v)", "parent": 23, "children": [100, 103, 104], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 60}}, {"id": 100, "type": "field_expression", "text": "ViewRect.bottom", "parent": 99, "children": [101, 102], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 16}}, {"id": 101, "type": "identifier", "text": "ViewRect", "parent": 100, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 102, "type": "field_identifier", "text": "bottom", "parent": 100, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 16}}, {"id": 103, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 18}}, {"id": 104, "type": "binary_expression", "text": "ViewRect.top + (TempInteger * CellSize.v)", "parent": 99, "children": [105, 108, 109], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 60}}, {"id": 105, "type": "field_expression", "text": "ViewRect.top", "parent": 104, "children": [106, 107], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 31}}, {"id": 106, "type": "identifier", "text": "ViewRect", "parent": 105, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 27}}, {"id": 107, "type": "field_identifier", "text": "top", "parent": 105, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 31}}, {"id": 108, "type": "+", "text": "+", "parent": 104, "children": [], "start_point": {"row": 35, "column": 32}, "end_point": {"row": 35, "column": 33}}, {"id": 109, "type": "parenthesized_expression", "text": "(TempInteger * CellSize.v)", "parent": 104, "children": [110], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 60}}, {"id": 110, "type": "binary_expression", "text": "TempInteger * CellSize.v", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 59}}, {"id": 111, "type": "identifier", "text": "TempInteger", "parent": 110, "children": [], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 46}}, {"id": 112, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 48}}, {"id": 113, "type": "field_expression", "text": "CellSize.v", "parent": 110, "children": [114, 115], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 59}}, {"id": 114, "type": "identifier", "text": "CellSize", "parent": 113, "children": [], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 57}}, {"id": 115, "type": "field_identifier", "text": "v", "parent": 113, "children": [], "start_point": {"row": 35, "column": 58}, "end_point": {"row": 35, "column": 59}}, {"id": 116, "type": "call_expression", "text": "SetRect(&DataBounds, 0, 0, 1, 0)", "parent": 23, "children": [117, 118], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 33}}, {"id": 117, "type": "identifier", "text": "SetRect", "parent": 116, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 8}}, {"id": 118, "type": "argument_list", "text": "(&DataBounds, 0, 0, 1, 0)", "parent": 116, "children": [119, 121, 122, 123, 124], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 33}}, {"id": 119, "type": "pointer_expression", "text": "&DataBounds", "parent": 118, "children": [120], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 20}}, {"id": 120, "type": "identifier", "text": "DataBounds", "parent": 119, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 20}}, {"id": 121, "type": "number_literal", "text": "0", "parent": 118, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 122, "type": "number_literal", "text": "0", "parent": 118, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 26}}, {"id": 123, "type": "number_literal", "text": "1", "parent": 118, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 29}}, {"id": 124, "type": "number_literal", "text": "0", "parent": 118, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 32}}, {"id": 125, "type": "call_expression", "text": "InsetRect(&ViewRect, -1, -1)", "parent": 23, "children": [126, 127], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 29}}, {"id": 126, "type": "identifier", "text": "InsetRect", "parent": 125, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 10}}, {"id": 127, "type": "argument_list", "text": "(&ViewRect, -1, -1)", "parent": 125, "children": [128, 130, 131], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 29}}, {"id": 128, "type": "pointer_expression", "text": "&ViewRect", "parent": 127, "children": [129], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 20}}, {"id": 129, "type": "identifier", "text": "ViewRect", "parent": 128, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 20}}, {"id": 130, "type": "number_literal", "text": "-1", "parent": 127, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 24}}, {"id": 131, "type": "number_literal", "text": "-1", "parent": 127, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 28}}, {"id": 132, "type": "call_expression", "text": "FrameRect(&ViewRect)", "parent": 23, "children": [133, 134], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 21}}, {"id": 133, "type": "identifier", "text": "FrameRect", "parent": 132, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 10}}, {"id": 134, "type": "argument_list", "text": "(&ViewRect)", "parent": 132, "children": [135], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 21}}, {"id": 135, "type": "pointer_expression", "text": "&ViewRect", "parent": 134, "children": [136], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 20}}, {"id": 136, "type": "identifier", "text": "ViewRect", "parent": 135, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 20}}, {"id": 137, "type": "assignment_expression", "text": "_list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE)", "parent": 23, "children": [138, 139, 140], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 107}}, {"id": 138, "type": "identifier", "text": "_list", "parent": 137, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 6}}, {"id": 139, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 140, "type": "call_expression", "text": "LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE)", "parent": 137, "children": [141, 142], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 107}}, {"id": 141, "type": "identifier", "text": "LNew", "parent": 140, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 13}}, {"id": 142, "type": "argument_list", "text": "(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE)", "parent": 140, "children": [143, 145, 147, 148, 149, 152, 153, 154, 155], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 107}}, {"id": 143, "type": "pointer_expression", "text": "&ViewRect", "parent": 142, "children": [144], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 23}}, {"id": 144, "type": "identifier", "text": "ViewRect", "parent": 143, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 23}}, {"id": 145, "type": "pointer_expression", "text": "&DataBounds", "parent": 142, "children": [146], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 36}}, {"id": 146, "type": "identifier", "text": "DataBounds", "parent": 145, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 36}}, {"id": 147, "type": "identifier", "text": "CellSize", "parent": 142, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 46}}, {"id": 148, "type": "identifier", "text": "StandardList", "parent": 142, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 60}}, {"id": 149, "type": "call_expression", "text": "GetWindowPointer()", "parent": 142, "children": [150, 151], "start_point": {"row": 44, "column": 62}, "end_point": {"row": 44, "column": 80}}, {"id": 150, "type": "identifier", "text": "GetWindowPointer", "parent": 149, "children": [], "start_point": {"row": 44, "column": 62}, "end_point": {"row": 44, "column": 78}}, {"id": 151, "type": "argument_list", "text": "()", "parent": 149, "children": [], "start_point": {"row": 44, "column": 78}, "end_point": {"row": 44, "column": 80}}, {"id": 152, "type": "true", "text": "TRUE", "parent": 142, "children": [], "start_point": {"row": 44, "column": 82}, "end_point": {"row": 44, "column": 86}}, {"id": 153, "type": "false", "text": "FALSE", "parent": 142, "children": [], "start_point": {"row": 44, "column": 88}, "end_point": {"row": 44, "column": 93}}, {"id": 154, "type": "false", "text": "FALSE", "parent": 142, "children": [], "start_point": {"row": 44, "column": 95}, "end_point": {"row": 44, "column": 100}}, {"id": 155, "type": "true", "text": "TRUE", "parent": 142, "children": [], "start_point": {"row": 44, "column": 102}, "end_point": {"row": 44, "column": 106}}, {"id": 156, "type": "call_expression", "text": "UpdateList(_list)", "parent": 23, "children": [157, 158], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 18}}, {"id": 157, "type": "identifier", "text": "UpdateList", "parent": 156, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 11}}, {"id": 158, "type": "argument_list", "text": "(_list)", "parent": 156, "children": [159], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 18}}, {"id": 159, "type": "identifier", "text": "_list", "parent": 158, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 17}}, {"id": 160, "type": "return_statement", "text": "return _list;", "parent": 23, "children": [161], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 14}}, {"id": 161, "type": "identifier", "text": "_list", "parent": 160, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 13}}, {"id": 162, "type": "function_definition", "text": "void UpdateList(ListHandle _list)\n{\n\tRect ViewRect;\n\tRgnHandle ListUpdateRgn;\n\t\n\tSetPort( (**_list).port);\n\t\n\t//Get the list manager to update the list\n\tViewRect = (**_list).rView;\n\tLDoDraw(TRUE, _list);\n\tListUpdateRgn = NewRgn( );\n\tRectRgn(ListUpdateRgn, &ViewRect);\n\tLUpdate(ListUpdateRgn, _list);\n\t\n\t//Draw the border\n\tInsetRect(&ViewRect, -1, -1);\n\tFrameRect(&ViewRect);\n\t\n\t//Clean up after ourselves\n\tDisposeRgn(ListUpdateRgn);\n}", "parent": null, "children": [163, 164], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 163, "type": "primitive_type", "text": "void", "parent": 162, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 4}}, {"id": 164, "type": "function_declarator", "text": "UpdateList(ListHandle _list)", "parent": 162, "children": [165, 166], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 33}}, {"id": 165, "type": "identifier", "text": "UpdateList", "parent": 164, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 15}}, {"id": 166, "type": "parameter_list", "text": "(ListHandle _list)", "parent": 164, "children": [167], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 33}}, {"id": 167, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 166, "children": [168, 169], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 32}}, {"id": 168, "type": "type_identifier", "text": "ListHandle", "parent": 167, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 26}}, {"id": 169, "type": "identifier", "text": "_list", "parent": 167, "children": [], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 32}}, {"id": 170, "type": "declaration", "text": "Rect ViewRect;", "parent": 162, "children": [171, 172], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 15}}, {"id": 171, "type": "type_identifier", "text": "Rect", "parent": 170, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 5}}, {"id": 172, "type": "identifier", "text": "ViewRect", "parent": 170, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 14}}, {"id": 173, "type": "declaration", "text": "RgnHandle ListUpdateRgn;", "parent": 162, "children": [174, 175], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 25}}, {"id": 174, "type": "type_identifier", "text": "RgnHandle", "parent": 173, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 10}}, {"id": 175, "type": "identifier", "text": "ListUpdateRgn", "parent": 173, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 24}}, {"id": 176, "type": "call_expression", "text": "SetPort( (**_list).port)", "parent": 162, "children": [177, 178], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 25}}, {"id": 177, "type": "identifier", "text": "SetPort", "parent": 176, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 8}}, {"id": 178, "type": "argument_list", "text": "( (**_list).port)", "parent": 176, "children": [179], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 25}}, {"id": 179, "type": "field_expression", "text": "(**_list).port", "parent": 178, "children": [180, 186], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 24}}, {"id": 180, "type": "parenthesized_expression", "text": "(**_list)", "parent": 179, "children": [181], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 19}}, {"id": 181, "type": "pointer_expression", "text": "**_list", "parent": 180, "children": [182, 183], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 18}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 12}}, {"id": 183, "type": "pointer_expression", "text": "*_list", "parent": 181, "children": [184, 185], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 18}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 185, "type": "identifier", "text": "_list", "parent": 183, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 18}}, {"id": 186, "type": "field_identifier", "text": "port", "parent": 179, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 24}}, {"id": 187, "type": "assignment_expression", "text": "ViewRect = (**_list).rView", "parent": 162, "children": [188, 189, 190], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 27}}, {"id": 188, "type": "identifier", "text": "ViewRect", "parent": 187, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 9}}, {"id": 189, "type": "=", "text": "=", "parent": 187, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 11}}, {"id": 190, "type": "field_expression", "text": "(**_list).rView", "parent": 187, "children": [191, 197], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 27}}, {"id": 191, "type": "parenthesized_expression", "text": "(**_list)", "parent": 190, "children": [192], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 21}}, {"id": 192, "type": "pointer_expression", "text": "**_list", "parent": 191, "children": [193, 194], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 20}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 14}}, {"id": 194, "type": "pointer_expression", "text": "*_list", "parent": 192, "children": [195, 196], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 20}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 15}}, {"id": 196, "type": "identifier", "text": "_list", "parent": 194, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 20}}, {"id": 197, "type": "field_identifier", "text": "rView", "parent": 190, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 27}}, {"id": 198, "type": "call_expression", "text": "LDoDraw(TRUE, _list)", "parent": 162, "children": [199, 200], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 21}}, {"id": 199, "type": "identifier", "text": "LDoDraw", "parent": 198, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 8}}, {"id": 200, "type": "argument_list", "text": "(TRUE, _list)", "parent": 198, "children": [201, 202], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 21}}, {"id": 201, "type": "true", "text": "TRUE", "parent": 200, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 13}}, {"id": 202, "type": "identifier", "text": "_list", "parent": 200, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 20}}, {"id": 203, "type": "assignment_expression", "text": "ListUpdateRgn = NewRgn( )", "parent": 162, "children": [204, 205, 206], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 26}}, {"id": 204, "type": "identifier", "text": "ListUpdateRgn", "parent": 203, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 14}}, {"id": 205, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 16}}, {"id": 206, "type": "call_expression", "text": "NewRgn( )", "parent": 203, "children": [207, 208], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 26}}, {"id": 207, "type": "identifier", "text": "NewRgn", "parent": 206, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 23}}, {"id": 208, "type": "argument_list", "text": "( )", "parent": 206, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 26}}, {"id": 209, "type": "call_expression", "text": "RectRgn(ListUpdateRgn, &ViewRect)", "parent": 162, "children": [210, 211], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 34}}, {"id": 210, "type": "identifier", "text": "RectRgn", "parent": 209, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 8}}, {"id": 211, "type": "argument_list", "text": "(ListUpdateRgn, &ViewRect)", "parent": 209, "children": [212, 213], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 34}}, {"id": 212, "type": "identifier", "text": "ListUpdateRgn", "parent": 211, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 22}}, {"id": 213, "type": "pointer_expression", "text": "&ViewRect", "parent": 211, "children": [214], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 33}}, {"id": 214, "type": "identifier", "text": "ViewRect", "parent": 213, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 33}}, {"id": 215, "type": "call_expression", "text": "LUpdate(ListUpdateRgn, _list)", "parent": 162, "children": [216, 217], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 30}}, {"id": 216, "type": "identifier", "text": "LUpdate", "parent": 215, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 8}}, {"id": 217, "type": "argument_list", "text": "(ListUpdateRgn, _list)", "parent": 215, "children": [218, 219], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 30}}, {"id": 218, "type": "identifier", "text": "ListUpdateRgn", "parent": 217, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 22}}, {"id": 219, "type": "identifier", "text": "_list", "parent": 217, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 29}}, {"id": 220, "type": "call_expression", "text": "InsetRect(&ViewRect, -1, -1)", "parent": 162, "children": [221, 222], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 29}}, {"id": 221, "type": "identifier", "text": "InsetRect", "parent": 220, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 10}}, {"id": 222, "type": "argument_list", "text": "(&ViewRect, -1, -1)", "parent": 220, "children": [223, 225, 226], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 29}}, {"id": 223, "type": "pointer_expression", "text": "&ViewRect", "parent": 222, "children": [224], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 20}}, {"id": 224, "type": "identifier", "text": "ViewRect", "parent": 223, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 20}}, {"id": 225, "type": "number_literal", "text": "-1", "parent": 222, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 24}}, {"id": 226, "type": "number_literal", "text": "-1", "parent": 222, "children": [], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 28}}, {"id": 227, "type": "call_expression", "text": "FrameRect(&ViewRect)", "parent": 162, "children": [228, 229], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 21}}, {"id": 228, "type": "identifier", "text": "FrameRect", "parent": 227, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 10}}, {"id": 229, "type": "argument_list", "text": "(&ViewRect)", "parent": 227, "children": [230], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 21}}, {"id": 230, "type": "pointer_expression", "text": "&ViewRect", "parent": 229, "children": [231], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 20}}, {"id": 231, "type": "identifier", "text": "ViewRect", "parent": 230, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 20}}, {"id": 232, "type": "call_expression", "text": "DisposeRgn(ListUpdateRgn)", "parent": 162, "children": [233, 234], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 26}}, {"id": 233, "type": "identifier", "text": "DisposeRgn", "parent": 232, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 11}}, {"id": 234, "type": "argument_list", "text": "(ListUpdateRgn)", "parent": 232, "children": [235], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 26}}, {"id": 235, "type": "identifier", "text": "ListUpdateRgn", "parent": 234, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 25}}, {"id": 236, "type": "function_definition", "text": "short DoClick(ListHandle _list, Point _where)\n{\n\tshort result = 0;\n\tSetPort((**_list).port);\n\tLDoDraw(TRUE, _list);\n\t\n\tif(LClick(_where, 0, _list))\n\t{\n\t\tresult = 1;\n\t}\n\t\n\treturn result;\t\n}", "parent": null, "children": [237, 239], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 95, "column": 1}}, {"id": 237, "type": "sized_type_specifier", "text": "short", "parent": 236, "children": [238], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 5}}, {"id": 238, "type": "short", "text": "short", "parent": 237, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 5}}, {"id": 239, "type": "function_declarator", "text": "DoClick(ListHandle _list, Point _where)", "parent": 236, "children": [240, 241], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 45}}, {"id": 240, "type": "identifier", "text": "DoClick", "parent": 239, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 13}}, {"id": 241, "type": "parameter_list", "text": "(ListHandle _list, Point _where)", "parent": 239, "children": [242, 245], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 45}}, {"id": 242, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 241, "children": [243, 244], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 30}}, {"id": 243, "type": "type_identifier", "text": "ListHandle", "parent": 242, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 24}}, {"id": 244, "type": "identifier", "text": "_list", "parent": 242, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 30}}, {"id": 245, "type": "parameter_declaration", "text": "Point _where", "parent": 241, "children": [246, 247], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 44}}, {"id": 246, "type": "type_identifier", "text": "Point", "parent": 245, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 37}}, {"id": 247, "type": "identifier", "text": "_where", "parent": 245, "children": [], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 44}}, {"id": 248, "type": "declaration", "text": "short result = 0;", "parent": 236, "children": [249, 251], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 18}}, {"id": 249, "type": "sized_type_specifier", "text": "short", "parent": 248, "children": [250], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 6}}, {"id": 250, "type": "short", "text": "short", "parent": 249, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 6}}, {"id": 251, "type": "init_declarator", "text": "result = 0", "parent": 248, "children": [252, 253, 254], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 17}}, {"id": 252, "type": "identifier", "text": "result", "parent": 251, "children": [], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 13}}, {"id": 253, "type": "=", "text": "=", "parent": 251, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 15}}, {"id": 254, "type": "number_literal", "text": "0", "parent": 251, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 17}}, {"id": 255, "type": "call_expression", "text": "SetPort((**_list).port)", "parent": 236, "children": [256, 257], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 24}}, {"id": 256, "type": "identifier", "text": "SetPort", "parent": 255, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 8}}, {"id": 257, "type": "argument_list", "text": "((**_list).port)", "parent": 255, "children": [258], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 24}}, {"id": 258, "type": "field_expression", "text": "(**_list).port", "parent": 257, "children": [259, 265], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 23}}, {"id": 259, "type": "parenthesized_expression", "text": "(**_list)", "parent": 258, "children": [260], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 18}}, {"id": 260, "type": "pointer_expression", "text": "**_list", "parent": 259, "children": [261, 262], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 17}}, {"id": 261, "type": "*", "text": "*", "parent": 260, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 11}}, {"id": 262, "type": "pointer_expression", "text": "*_list", "parent": 260, "children": [263, 264], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 17}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 12}}, {"id": 264, "type": "identifier", "text": "_list", "parent": 262, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 17}}, {"id": 265, "type": "field_identifier", "text": "port", "parent": 258, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 23}}, {"id": 266, "type": "call_expression", "text": "LDoDraw(TRUE, _list)", "parent": 236, "children": [267, 268], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 21}}, {"id": 267, "type": "identifier", "text": "LDoDraw", "parent": 266, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 8}}, {"id": 268, "type": "argument_list", "text": "(TRUE, _list)", "parent": 266, "children": [269, 270], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 21}}, {"id": 269, "type": "true", "text": "TRUE", "parent": 268, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 13}}, {"id": 270, "type": "identifier", "text": "_list", "parent": 268, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 20}}, {"id": 271, "type": "if_statement", "text": "if(LClick(_where, 0, _list))\n\t{\n\t\tresult = 1;\n\t}", "parent": 236, "children": [272], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 92, "column": 2}}, {"id": 272, "type": "parenthesized_expression", "text": "(LClick(_where, 0, _list))", "parent": 271, "children": [273], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 29}}, {"id": 273, "type": "call_expression", "text": "LClick(_where, 0, _list)", "parent": 272, "children": [274, 275], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 28}}, {"id": 274, "type": "identifier", "text": "LClick", "parent": 273, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 10}}, {"id": 275, "type": "argument_list", "text": "(_where, 0, _list)", "parent": 273, "children": [276, 277, 278], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 28}}, {"id": 276, "type": "identifier", "text": "_where", "parent": 275, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 17}}, {"id": 277, "type": "number_literal", "text": "0", "parent": 275, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 278, "type": "identifier", "text": "_list", "parent": 275, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 27}}, {"id": 279, "type": "assignment_expression", "text": "result = 1", "parent": 271, "children": [280, 281, 282], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 12}}, {"id": 280, "type": "identifier", "text": "result", "parent": 279, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 8}}, {"id": 281, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 10}}, {"id": 282, "type": "number_literal", "text": "1", "parent": 279, "children": [], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 12}}, {"id": 283, "type": "return_statement", "text": "return result;", "parent": 236, "children": [284], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 15}}, {"id": 284, "type": "identifier", "text": "result", "parent": 283, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 14}}, {"id": 285, "type": "function_definition", "text": "void TurnOffSelection(ListHandle _list)\n{\n\tPoint ResultPoint;\n\t\n\tSetPt(&ResultPoint, 0, 0);\n\tif(LGetSelect(TRUE, &ResultPoint, _list))\n\t{\n\t\tLSetSelect(FALSE, ResultPoint, _list);\t\n\t}\n}", "parent": null, "children": [286, 287], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 286, "type": "primitive_type", "text": "void", "parent": 285, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 4}}, {"id": 287, "type": "function_declarator", "text": "TurnOffSelection(ListHandle _list)", "parent": 285, "children": [288, 289], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 39}}, {"id": 288, "type": "identifier", "text": "TurnOffSelection", "parent": 287, "children": [], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 21}}, {"id": 289, "type": "parameter_list", "text": "(ListHandle _list)", "parent": 287, "children": [290], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 39}}, {"id": 290, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 289, "children": [291, 292], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 38}}, {"id": 291, "type": "type_identifier", "text": "ListHandle", "parent": 290, "children": [], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 32}}, {"id": 292, "type": "identifier", "text": "_list", "parent": 290, "children": [], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 38}}, {"id": 293, "type": "declaration", "text": "Point ResultPoint;", "parent": 285, "children": [294, 295], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 19}}, {"id": 294, "type": "type_identifier", "text": "Point", "parent": 293, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 6}}, {"id": 295, "type": "identifier", "text": "ResultPoint", "parent": 293, "children": [], "start_point": {"row": 99, "column": 7}, "end_point": {"row": 99, "column": 18}}, {"id": 296, "type": "call_expression", "text": "SetPt(&ResultPoint, 0, 0)", "parent": 285, "children": [297, 298], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 26}}, {"id": 297, "type": "identifier", "text": "SetPt", "parent": 296, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 6}}, {"id": 298, "type": "argument_list", "text": "(&ResultPoint, 0, 0)", "parent": 296, "children": [299, 301, 302], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 26}}, {"id": 299, "type": "pointer_expression", "text": "&ResultPoint", "parent": 298, "children": [300], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 19}}, {"id": 300, "type": "identifier", "text": "ResultPoint", "parent": 299, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 19}}, {"id": 301, "type": "number_literal", "text": "0", "parent": 298, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 22}}, {"id": 302, "type": "number_literal", "text": "0", "parent": 298, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 25}}, {"id": 303, "type": "if_statement", "text": "if(LGetSelect(TRUE, &ResultPoint, _list))\n\t{\n\t\tLSetSelect(FALSE, ResultPoint, _list);\t\n\t}", "parent": 285, "children": [304], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 105, "column": 2}}, {"id": 304, "type": "parenthesized_expression", "text": "(LGetSelect(TRUE, &ResultPoint, _list))", "parent": 303, "children": [305], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 42}}, {"id": 305, "type": "call_expression", "text": "LGetSelect(TRUE, &ResultPoint, _list)", "parent": 304, "children": [306, 307], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 41}}, {"id": 306, "type": "identifier", "text": "LGetSelect", "parent": 305, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 14}}, {"id": 307, "type": "argument_list", "text": "(TRUE, &ResultPoint, _list)", "parent": 305, "children": [308, 309, 311], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 41}}, {"id": 308, "type": "true", "text": "TRUE", "parent": 307, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 19}}, {"id": 309, "type": "pointer_expression", "text": "&ResultPoint", "parent": 307, "children": [310], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 33}}, {"id": 310, "type": "identifier", "text": "ResultPoint", "parent": 309, "children": [], "start_point": {"row": 102, "column": 22}, "end_point": {"row": 102, "column": 33}}, {"id": 311, "type": "identifier", "text": "_list", "parent": 307, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 40}}, {"id": 312, "type": "call_expression", "text": "LSetSelect(FALSE, ResultPoint, _list)", "parent": 303, "children": [313, 314], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 39}}, {"id": 313, "type": "identifier", "text": "LSetSelect", "parent": 312, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 12}}, {"id": 314, "type": "argument_list", "text": "(FALSE, ResultPoint, _list)", "parent": 312, "children": [315, 316, 317], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 39}}, {"id": 315, "type": "false", "text": "FALSE", "parent": 314, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 18}}, {"id": 316, "type": "identifier", "text": "ResultPoint", "parent": 314, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 31}}, {"id": 317, "type": "identifier", "text": "_list", "parent": 314, "children": [], "start_point": {"row": 104, "column": 33}, "end_point": {"row": 104, "column": 38}}, {"id": 318, "type": "function_definition", "text": "char* ListSelection(ListHandle _list)\n{\n\tPoint ResultPoint;\n\tchar* ResultString;\n\tPtr StringPointer;\n\tshort StringLength;\n\t\n\t\n\tSetPt(&ResultPoint, 0, 0);\n\tif(LGetSelect(TRUE, &ResultPoint, _list))\n\t{\t\n\t\tStringPointer = (Ptr)(*ResultString);\n\t\tStringLength = 255;\n\t\tLGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n\t\tStringPointer = (Ptr)(*ResultString);\n\t\t*StringPointer = StringLength;\n\t\treturn ResultString;\n\t}\n\telse \n\t{\n\t\treturn \"\";\n\t}\n}", "parent": null, "children": [319, 320], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 130, "column": 1}}, {"id": 319, "type": "primitive_type", "text": "char", "parent": 318, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 4}}, {"id": 320, "type": "pointer_declarator", "text": "* ListSelection(ListHandle _list)", "parent": 318, "children": [321, 322], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 37}}, {"id": 321, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 5}}, {"id": 322, "type": "function_declarator", "text": "ListSelection(ListHandle _list)", "parent": 320, "children": [323, 324], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 37}}, {"id": 323, "type": "identifier", "text": "ListSelection", "parent": 322, "children": [], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 19}}, {"id": 324, "type": "parameter_list", "text": "(ListHandle _list)", "parent": 322, "children": [325], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 37}}, {"id": 325, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 324, "children": [326, 327], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 36}}, {"id": 326, "type": "type_identifier", "text": "ListHandle", "parent": 325, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 30}}, {"id": 327, "type": "identifier", "text": "_list", "parent": 325, "children": [], "start_point": {"row": 108, "column": 31}, "end_point": {"row": 108, "column": 36}}, {"id": 328, "type": "declaration", "text": "Point ResultPoint;", "parent": 318, "children": [329, 330], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 19}}, {"id": 329, "type": "type_identifier", "text": "Point", "parent": 328, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 6}}, {"id": 330, "type": "identifier", "text": "ResultPoint", "parent": 328, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 18}}, {"id": 331, "type": "declaration", "text": "char* ResultString;", "parent": 318, "children": [332, 333], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 20}}, {"id": 332, "type": "primitive_type", "text": "char", "parent": 331, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 5}}, {"id": 333, "type": "pointer_declarator", "text": "* ResultString", "parent": 331, "children": [334, 335], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 19}}, {"id": 334, "type": "*", "text": "*", "parent": 333, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 6}}, {"id": 335, "type": "identifier", "text": "ResultString", "parent": 333, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 19}}, {"id": 336, "type": "declaration", "text": "Ptr StringPointer;", "parent": 318, "children": [337, 338], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 19}}, {"id": 337, "type": "type_identifier", "text": "Ptr", "parent": 336, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 4}}, {"id": 338, "type": "identifier", "text": "StringPointer", "parent": 336, "children": [], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 18}}, {"id": 339, "type": "declaration", "text": "short StringLength;", "parent": 318, "children": [340, 342], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 20}}, {"id": 340, "type": "sized_type_specifier", "text": "short", "parent": 339, "children": [341], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 6}}, {"id": 341, "type": "short", "text": "short", "parent": 340, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 6}}, {"id": 342, "type": "identifier", "text": "StringLength", "parent": 339, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 19}}, {"id": 343, "type": "call_expression", "text": "SetPt(&ResultPoint, 0, 0)", "parent": 318, "children": [344, 345], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 26}}, {"id": 344, "type": "identifier", "text": "SetPt", "parent": 343, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 6}}, {"id": 345, "type": "argument_list", "text": "(&ResultPoint, 0, 0)", "parent": 343, "children": [346, 348, 349], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 26}}, {"id": 346, "type": "pointer_expression", "text": "&ResultPoint", "parent": 345, "children": [347], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 19}}, {"id": 347, "type": "identifier", "text": "ResultPoint", "parent": 346, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 19}}, {"id": 348, "type": "number_literal", "text": "0", "parent": 345, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 22}}, {"id": 349, "type": "number_literal", "text": "0", "parent": 345, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 25}}, {"id": 350, "type": "if_statement", "text": "if(LGetSelect(TRUE, &ResultPoint, _list))\n\t{\t\n\t\tStringPointer = (Ptr)(*ResultString);\n\t\tStringLength = 255;\n\t\tLGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n\t\tStringPointer = (Ptr)(*ResultString);\n\t\t*StringPointer = StringLength;\n\t\treturn ResultString;\n\t}\n\telse \n\t{\n\t\treturn \"\";\n\t}", "parent": 318, "children": [351, 400], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 129, "column": 2}}, {"id": 351, "type": "parenthesized_expression", "text": "(LGetSelect(TRUE, &ResultPoint, _list))", "parent": 350, "children": [352], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 42}}, {"id": 352, "type": "call_expression", "text": "LGetSelect(TRUE, &ResultPoint, _list)", "parent": 351, "children": [353, 354], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 41}}, {"id": 353, "type": "identifier", "text": "LGetSelect", "parent": 352, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 14}}, {"id": 354, "type": "argument_list", "text": "(TRUE, &ResultPoint, _list)", "parent": 352, "children": [355, 356, 358], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 41}}, {"id": 355, "type": "true", "text": "TRUE", "parent": 354, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 19}}, {"id": 356, "type": "pointer_expression", "text": "&ResultPoint", "parent": 354, "children": [357], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 33}}, {"id": 357, "type": "identifier", "text": "ResultPoint", "parent": 356, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 33}}, {"id": 358, "type": "identifier", "text": "_list", "parent": 354, "children": [], "start_point": {"row": 117, "column": 35}, "end_point": {"row": 117, "column": 40}}, {"id": 359, "type": "assignment_expression", "text": "StringPointer = (Ptr)(*ResultString)", "parent": 350, "children": [360, 361, 362], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 38}}, {"id": 360, "type": "identifier", "text": "StringPointer", "parent": 359, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 15}}, {"id": 361, "type": "=", "text": "=", "parent": 359, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 17}}, {"id": 362, "type": "call_expression", "text": "(Ptr)(*ResultString)", "parent": 359, "children": [363, 365], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 38}}, {"id": 363, "type": "parenthesized_expression", "text": "(Ptr)", "parent": 362, "children": [364], "start_point": {"row": 119, "column": 18}, "end_point": {"row": 119, "column": 23}}, {"id": 364, "type": "identifier", "text": "Ptr", "parent": 363, "children": [], "start_point": {"row": 119, "column": 19}, "end_point": {"row": 119, "column": 22}}, {"id": 365, "type": "argument_list", "text": "(*ResultString)", "parent": 362, "children": [366], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 38}}, {"id": 366, "type": "pointer_expression", "text": "*ResultString", "parent": 365, "children": [367, 368], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 37}}, {"id": 367, "type": "*", "text": "*", "parent": 366, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 25}}, {"id": 368, "type": "identifier", "text": "ResultString", "parent": 366, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 37}}, {"id": 369, "type": "assignment_expression", "text": "StringLength = 255", "parent": 350, "children": [370, 371, 372], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 20}}, {"id": 370, "type": "identifier", "text": "StringLength", "parent": 369, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 14}}, {"id": 371, "type": "=", "text": "=", "parent": 369, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 16}}, {"id": 372, "type": "number_literal", "text": "255", "parent": 369, "children": [], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 20}}, {"id": 373, "type": "call_expression", "text": "LGetCell(&StringPointer, &StringLength, ResultPoint, _list)", "parent": 350, "children": [374, 375], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 61}}, {"id": 374, "type": "identifier", "text": "LGetCell", "parent": 373, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 10}}, {"id": 375, "type": "argument_list", "text": "(&StringPointer, &StringLength, ResultPoint, _list)", "parent": 373, "children": [376, 378, 380, 381], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 61}}, {"id": 376, "type": "pointer_expression", "text": "&StringPointer", "parent": 375, "children": [377], "start_point": {"row": 121, "column": 11}, "end_point": {"row": 121, "column": 25}}, {"id": 377, "type": "identifier", "text": "StringPointer", "parent": 376, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 25}}, {"id": 378, "type": "pointer_expression", "text": "&StringLength", "parent": 375, "children": [379], "start_point": {"row": 121, "column": 27}, "end_point": {"row": 121, "column": 40}}, {"id": 379, "type": "identifier", "text": "StringLength", "parent": 378, "children": [], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 40}}, {"id": 380, "type": "identifier", "text": "ResultPoint", "parent": 375, "children": [], "start_point": {"row": 121, "column": 42}, "end_point": {"row": 121, "column": 53}}, {"id": 381, "type": "identifier", "text": "_list", "parent": 375, "children": [], "start_point": {"row": 121, "column": 55}, "end_point": {"row": 121, "column": 60}}, {"id": 382, "type": "assignment_expression", "text": "StringPointer = (Ptr)(*ResultString)", "parent": 350, "children": [383, 384, 385], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 38}}, {"id": 383, "type": "identifier", "text": "StringPointer", "parent": 382, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 15}}, {"id": 384, "type": "=", "text": "=", "parent": 382, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 17}}, {"id": 385, "type": "call_expression", "text": "(Ptr)(*ResultString)", "parent": 382, "children": [386, 388], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 38}}, {"id": 386, "type": "parenthesized_expression", "text": "(Ptr)", "parent": 385, "children": [387], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 23}}, {"id": 387, "type": "identifier", "text": "Ptr", "parent": 386, "children": [], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 22}}, {"id": 388, "type": "argument_list", "text": "(*ResultString)", "parent": 385, "children": [389], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 38}}, {"id": 389, "type": "pointer_expression", "text": "*ResultString", "parent": 388, "children": [390, 391], "start_point": {"row": 122, "column": 24}, "end_point": {"row": 122, "column": 37}}, {"id": 390, "type": "*", "text": "*", "parent": 389, "children": [], "start_point": {"row": 122, "column": 24}, "end_point": {"row": 122, "column": 25}}, {"id": 391, "type": "identifier", "text": "ResultString", "parent": 389, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 37}}, {"id": 392, "type": "assignment_expression", "text": "*StringPointer = StringLength", "parent": 350, "children": [393, 396, 397], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 31}}, {"id": 393, "type": "pointer_expression", "text": "*StringPointer", "parent": 392, "children": [394, 395], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 16}}, {"id": 394, "type": "*", "text": "*", "parent": 393, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 3}}, {"id": 395, "type": "identifier", "text": "StringPointer", "parent": 393, "children": [], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 16}}, {"id": 396, "type": "=", "text": "=", "parent": 392, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 18}}, {"id": 397, "type": "identifier", "text": "StringLength", "parent": 392, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 31}}, {"id": 398, "type": "return_statement", "text": "return ResultString;", "parent": 350, "children": [399], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 22}}, {"id": 399, "type": "identifier", "text": "ResultString", "parent": 398, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 21}}, {"id": 400, "type": "else_clause", "text": "else \n\t{\n\t\treturn \"\";\n\t}", "parent": 350, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 129, "column": 2}}, {"id": 401, "type": "return_statement", "text": "return \"\";", "parent": 400, "children": [402], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 12}}, {"id": 402, "type": "string_literal", "text": "\"\"", "parent": 401, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 11}}, {"id": 403, "type": "function_definition", "text": "void AddRow(ListHandle _list, char* _newString)\n{\n\tCell CellPoint;\n\t\n\tCellPoint.h = 0;\n\tCellPoint.v = rowNum;\n\tLAddRow(1, rowNum, _list);\n\tLSetCell(_newString, strlen(_newString), CellPoint, _list);\n\tLDraw(CellPoint, _list);\n\trowNum++;\n\tUpdateList(_list);\n\n}", "parent": null, "children": [404, 405], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 144, "column": 1}}, {"id": 404, "type": "primitive_type", "text": "void", "parent": 403, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 4}}, {"id": 405, "type": "function_declarator", "text": "AddRow(ListHandle _list, char* _newString)", "parent": 403, "children": [406, 407], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 132, "column": 47}}, {"id": 406, "type": "identifier", "text": "AddRow", "parent": 405, "children": [], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 132, "column": 11}}, {"id": 407, "type": "parameter_list", "text": "(ListHandle _list, char* _newString)", "parent": 405, "children": [408, 411], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 47}}, {"id": 408, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 407, "children": [409, 410], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 28}}, {"id": 409, "type": "type_identifier", "text": "ListHandle", "parent": 408, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 22}}, {"id": 410, "type": "identifier", "text": "_list", "parent": 408, "children": [], "start_point": {"row": 132, "column": 23}, "end_point": {"row": 132, "column": 28}}, {"id": 411, "type": "parameter_declaration", "text": "char* _newString", "parent": 407, "children": [412, 413], "start_point": {"row": 132, "column": 30}, "end_point": {"row": 132, "column": 46}}, {"id": 412, "type": "primitive_type", "text": "char", "parent": 411, "children": [], "start_point": {"row": 132, "column": 30}, "end_point": {"row": 132, "column": 34}}, {"id": 413, "type": "pointer_declarator", "text": "* _newString", "parent": 411, "children": [414, 415], "start_point": {"row": 132, "column": 34}, "end_point": {"row": 132, "column": 46}}, {"id": 414, "type": "*", "text": "*", "parent": 413, "children": [], "start_point": {"row": 132, "column": 34}, "end_point": {"row": 132, "column": 35}}, {"id": 415, "type": "identifier", "text": "_newString", "parent": 413, "children": [], "start_point": {"row": 132, "column": 36}, "end_point": {"row": 132, "column": 46}}, {"id": 416, "type": "declaration", "text": "Cell CellPoint;", "parent": 403, "children": [417, 418], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 16}}, {"id": 417, "type": "type_identifier", "text": "Cell", "parent": 416, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 5}}, {"id": 418, "type": "identifier", "text": "CellPoint", "parent": 416, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 15}}, {"id": 419, "type": "assignment_expression", "text": "CellPoint.h = 0", "parent": 403, "children": [420, 423, 424], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 16}}, {"id": 420, "type": "field_expression", "text": "CellPoint.h", "parent": 419, "children": [421, 422], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 12}}, {"id": 421, "type": "identifier", "text": "CellPoint", "parent": 420, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 10}}, {"id": 422, "type": "field_identifier", "text": "h", "parent": 420, "children": [], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 12}}, {"id": 423, "type": "=", "text": "=", "parent": 419, "children": [], "start_point": {"row": 136, "column": 13}, "end_point": {"row": 136, "column": 14}}, {"id": 424, "type": "number_literal", "text": "0", "parent": 419, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 16}}, {"id": 425, "type": "assignment_expression", "text": "CellPoint.v = rowNum", "parent": 403, "children": [426, 429, 430], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 21}}, {"id": 426, "type": "field_expression", "text": "CellPoint.v", "parent": 425, "children": [427, 428], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 12}}, {"id": 427, "type": "identifier", "text": "CellPoint", "parent": 426, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 10}}, {"id": 428, "type": "field_identifier", "text": "v", "parent": 426, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 12}}, {"id": 429, "type": "=", "text": "=", "parent": 425, "children": [], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 14}}, {"id": 430, "type": "identifier", "text": "rowNum", "parent": 425, "children": [], "start_point": {"row": 137, "column": 15}, "end_point": {"row": 137, "column": 21}}, {"id": 431, "type": "call_expression", "text": "LAddRow(1, rowNum, _list)", "parent": 403, "children": [432, 433], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 26}}, {"id": 432, "type": "identifier", "text": "LAddRow", "parent": 431, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 8}}, {"id": 433, "type": "argument_list", "text": "(1, rowNum, _list)", "parent": 431, "children": [434, 435, 436], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 26}}, {"id": 434, "type": "number_literal", "text": "1", "parent": 433, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 10}}, {"id": 435, "type": "identifier", "text": "rowNum", "parent": 433, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 18}}, {"id": 436, "type": "identifier", "text": "_list", "parent": 433, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 25}}, {"id": 437, "type": "call_expression", "text": "LSetCell(_newString, strlen(_newString), CellPoint, _list)", "parent": 403, "children": [438, 439], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 59}}, {"id": 438, "type": "identifier", "text": "LSetCell", "parent": 437, "children": [], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 9}}, {"id": 439, "type": "argument_list", "text": "(_newString, strlen(_newString), CellPoint, _list)", "parent": 437, "children": [440, 441, 445, 446], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 59}}, {"id": 440, "type": "identifier", "text": "_newString", "parent": 439, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 20}}, {"id": 441, "type": "call_expression", "text": "strlen(_newString)", "parent": 439, "children": [442, 443], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 40}}, {"id": 442, "type": "identifier", "text": "strlen", "parent": 441, "children": [], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 28}}, {"id": 443, "type": "argument_list", "text": "(_newString)", "parent": 441, "children": [444], "start_point": {"row": 139, "column": 28}, "end_point": {"row": 139, "column": 40}}, {"id": 444, "type": "identifier", "text": "_newString", "parent": 443, "children": [], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 39}}, {"id": 445, "type": "identifier", "text": "CellPoint", "parent": 439, "children": [], "start_point": {"row": 139, "column": 42}, "end_point": {"row": 139, "column": 51}}, {"id": 446, "type": "identifier", "text": "_list", "parent": 439, "children": [], "start_point": {"row": 139, "column": 53}, "end_point": {"row": 139, "column": 58}}, {"id": 447, "type": "call_expression", "text": "LDraw(CellPoint, _list)", "parent": 403, "children": [448, 449], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 24}}, {"id": 448, "type": "identifier", "text": "LDraw", "parent": 447, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 6}}, {"id": 449, "type": "argument_list", "text": "(CellPoint, _list)", "parent": 447, "children": [450, 451], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 24}}, {"id": 450, "type": "identifier", "text": "CellPoint", "parent": 449, "children": [], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 16}}, {"id": 451, "type": "identifier", "text": "_list", "parent": 449, "children": [], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 23}}, {"id": 452, "type": "update_expression", "text": "rowNum++", "parent": 403, "children": [453, 454], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 9}}, {"id": 453, "type": "identifier", "text": "rowNum", "parent": 452, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 7}}, {"id": 454, "type": "++", "text": "++", "parent": 452, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 9}}, {"id": 455, "type": "call_expression", "text": "UpdateList(_list)", "parent": 403, "children": [456, 457], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 18}}, {"id": 456, "type": "identifier", "text": "UpdateList", "parent": 455, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 11}}, {"id": 457, "type": "argument_list", "text": "(_list)", "parent": 455, "children": [458], "start_point": {"row": 142, "column": 11}, "end_point": {"row": 142, "column": 18}}, {"id": 458, "type": "identifier", "text": "_list", "parent": 457, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 17}}, {"id": 459, "type": "function_definition", "text": "void DeleteRow(ListHandle _list, short _row)\n{\t\n\tCell CellPoint;\n\tCellPoint.h = 0;\n\tCellPoint.v = _row;\n\tLDelRow(1, _row, _list);\n\trowNum--;\n}", "parent": null, "children": [460, 461], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 460, "type": "primitive_type", "text": "void", "parent": 459, "children": [], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 4}}, {"id": 461, "type": "function_declarator", "text": "DeleteRow(ListHandle _list, short _row)", "parent": 459, "children": [462, 463], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 146, "column": 44}}, {"id": 462, "type": "identifier", "text": "DeleteRow", "parent": 461, "children": [], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 146, "column": 14}}, {"id": 463, "type": "parameter_list", "text": "(ListHandle _list, short _row)", "parent": 461, "children": [464, 467], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 44}}, {"id": 464, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 463, "children": [465, 466], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 31}}, {"id": 465, "type": "type_identifier", "text": "ListHandle", "parent": 464, "children": [], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 25}}, {"id": 466, "type": "identifier", "text": "_list", "parent": 464, "children": [], "start_point": {"row": 146, "column": 26}, "end_point": {"row": 146, "column": 31}}, {"id": 467, "type": "parameter_declaration", "text": "short _row", "parent": 463, "children": [468, 470], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 43}}, {"id": 468, "type": "sized_type_specifier", "text": "short", "parent": 467, "children": [469], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 38}}, {"id": 469, "type": "short", "text": "short", "parent": 468, "children": [], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 38}}, {"id": 470, "type": "identifier", "text": "_row", "parent": 467, "children": [], "start_point": {"row": 146, "column": 39}, "end_point": {"row": 146, "column": 43}}, {"id": 471, "type": "declaration", "text": "Cell CellPoint;", "parent": 459, "children": [472, 473], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 16}}, {"id": 472, "type": "type_identifier", "text": "Cell", "parent": 471, "children": [], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 148, "column": 5}}, {"id": 473, "type": "identifier", "text": "CellPoint", "parent": 471, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 15}}, {"id": 474, "type": "assignment_expression", "text": "CellPoint.h = 0", "parent": 459, "children": [475, 478, 479], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 16}}, {"id": 475, "type": "field_expression", "text": "CellPoint.h", "parent": 474, "children": [476, 477], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 12}}, {"id": 476, "type": "identifier", "text": "CellPoint", "parent": 475, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 10}}, {"id": 477, "type": "field_identifier", "text": "h", "parent": 475, "children": [], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 12}}, {"id": 478, "type": "=", "text": "=", "parent": 474, "children": [], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 14}}, {"id": 479, "type": "number_literal", "text": "0", "parent": 474, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 16}}, {"id": 480, "type": "assignment_expression", "text": "CellPoint.v = _row", "parent": 459, "children": [481, 484, 485], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 19}}, {"id": 481, "type": "field_expression", "text": "CellPoint.v", "parent": 480, "children": [482, 483], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 12}}, {"id": 482, "type": "identifier", "text": "CellPoint", "parent": 481, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 10}}, {"id": 483, "type": "field_identifier", "text": "v", "parent": 481, "children": [], "start_point": {"row": 150, "column": 11}, "end_point": {"row": 150, "column": 12}}, {"id": 484, "type": "=", "text": "=", "parent": 480, "children": [], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 14}}, {"id": 485, "type": "identifier", "text": "_row", "parent": 480, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 19}}, {"id": 486, "type": "call_expression", "text": "LDelRow(1, _row, _list)", "parent": 459, "children": [487, 488], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 24}}, {"id": 487, "type": "identifier", "text": "LDelRow", "parent": 486, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 8}}, {"id": 488, "type": "argument_list", "text": "(1, _row, _list)", "parent": 486, "children": [489, 490, 491], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 24}}, {"id": 489, "type": "number_literal", "text": "1", "parent": 488, "children": [], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 10}}, {"id": 490, "type": "identifier", "text": "_row", "parent": 488, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 16}}, {"id": 491, "type": "identifier", "text": "_list", "parent": 488, "children": [], "start_point": {"row": 151, "column": 18}, "end_point": {"row": 151, "column": 23}}, {"id": 492, "type": "update_expression", "text": "rowNum--", "parent": 459, "children": [493, 494], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 9}}, {"id": 493, "type": "identifier", "text": "rowNum", "parent": 492, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 7}}, {"id": 494, "type": "--", "text": "--", "parent": 492, "children": [], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 9}}, {"id": 495, "type": "function_definition", "text": "void Activate(ListHandle _list)\n{\n\tLActivate(TRUE, _list);\n}", "parent": null, "children": [496, 497], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 158, "column": 1}}, {"id": 496, "type": "primitive_type", "text": "void", "parent": 495, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 4}}, {"id": 497, "type": "function_declarator", "text": "Activate(ListHandle _list)", "parent": 495, "children": [498, 499], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 31}}, {"id": 498, "type": "identifier", "text": "Activate", "parent": 497, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 13}}, {"id": 499, "type": "parameter_list", "text": "(ListHandle _list)", "parent": 497, "children": [500], "start_point": {"row": 155, "column": 13}, "end_point": {"row": 155, "column": 31}}, {"id": 500, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 499, "children": [501, 502], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 30}}, {"id": 501, "type": "type_identifier", "text": "ListHandle", "parent": 500, "children": [], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 24}}, {"id": 502, "type": "identifier", "text": "_list", "parent": 500, "children": [], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 30}}, {"id": 503, "type": "call_expression", "text": "LActivate(TRUE, _list)", "parent": 495, "children": [504, 505], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 23}}, {"id": 504, "type": "identifier", "text": "LActivate", "parent": 503, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 10}}, {"id": 505, "type": "argument_list", "text": "(TRUE, _list)", "parent": 503, "children": [506, 507], "start_point": {"row": 157, "column": 10}, "end_point": {"row": 157, "column": 23}}, {"id": 506, "type": "true", "text": "TRUE", "parent": 505, "children": [], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 15}}, {"id": 507, "type": "identifier", "text": "_list", "parent": 505, "children": [], "start_point": {"row": 157, "column": 17}, "end_point": {"row": 157, "column": 22}}, {"id": 508, "type": "function_definition", "text": "void DestroyList(ListHandle _list)\n{\n\tLDispose(_list);\n}", "parent": null, "children": [509, 510], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 163, "column": 1}}, {"id": 509, "type": "primitive_type", "text": "void", "parent": 508, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 4}}, {"id": 510, "type": "function_declarator", "text": "DestroyList(ListHandle _list)", "parent": 508, "children": [511, 512], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 34}}, {"id": 511, "type": "identifier", "text": "DestroyList", "parent": 510, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 16}}, {"id": 512, "type": "parameter_list", "text": "(ListHandle _list)", "parent": 510, "children": [513], "start_point": {"row": 160, "column": 16}, "end_point": {"row": 160, "column": 34}}, {"id": 513, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 512, "children": [514, 515], "start_point": {"row": 160, "column": 17}, "end_point": {"row": 160, "column": 33}}, {"id": 514, "type": "type_identifier", "text": "ListHandle", "parent": 513, "children": [], "start_point": {"row": 160, "column": 17}, "end_point": {"row": 160, "column": 27}}, {"id": 515, "type": "identifier", "text": "_list", "parent": 513, "children": [], "start_point": {"row": 160, "column": 28}, "end_point": {"row": 160, "column": 33}}, {"id": 516, "type": "call_expression", "text": "LDispose(_list)", "parent": 508, "children": [517, 518], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 16}}, {"id": 517, "type": "identifier", "text": "LDispose", "parent": 516, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 9}}, {"id": 518, "type": "argument_list", "text": "(_list)", "parent": 516, "children": [519], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 16}}, {"id": 519, "type": "identifier", "text": "_list", "parent": 518, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 15}}, {"id": 520, "type": "function_definition", "text": "ControlHandle GetVHandle(ListHandle _list)\n{\n\tControlHandle _myVHandle;\n\t\n\t_myVHandle=(**_list).vScroll;\n\treturn _myVHandle;\n}", "parent": null, "children": [521, 522], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 172, "column": 1}}, {"id": 521, "type": "type_identifier", "text": "ControlHandle", "parent": 520, "children": [], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 166, "column": 13}}, {"id": 522, "type": "function_declarator", "text": "GetVHandle(ListHandle _list)", "parent": 520, "children": [523, 524], "start_point": {"row": 166, "column": 14}, "end_point": {"row": 166, "column": 42}}, {"id": 523, "type": "identifier", "text": "GetVHandle", "parent": 522, "children": [], "start_point": {"row": 166, "column": 14}, "end_point": {"row": 166, "column": 24}}, {"id": 524, "type": "parameter_list", "text": "(ListHandle _list)", "parent": 522, "children": [525], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 42}}, {"id": 525, "type": "parameter_declaration", "text": "ListHandle _list", "parent": 524, "children": [526, 527], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 41}}, {"id": 526, "type": "type_identifier", "text": "ListHandle", "parent": 525, "children": [], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 35}}, {"id": 527, "type": "identifier", "text": "_list", "parent": 525, "children": [], "start_point": {"row": 166, "column": 36}, "end_point": {"row": 166, "column": 41}}, {"id": 528, "type": "declaration", "text": "ControlHandle _myVHandle;", "parent": 520, "children": [529, 530], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 26}}, {"id": 529, "type": "type_identifier", "text": "ControlHandle", "parent": 528, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 14}}, {"id": 530, "type": "identifier", "text": "_myVHandle", "parent": 528, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 25}}, {"id": 531, "type": "assignment_expression", "text": "_myVHandle=(**_list).vScroll", "parent": 520, "children": [532, 533, 534], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 29}}, {"id": 532, "type": "identifier", "text": "_myVHandle", "parent": 531, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 11}}, {"id": 533, "type": "=", "text": "=", "parent": 531, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 12}}, {"id": 534, "type": "field_expression", "text": "(**_list).vScroll", "parent": 531, "children": [535, 541], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 29}}, {"id": 535, "type": "parenthesized_expression", "text": "(**_list)", "parent": 534, "children": [536], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 21}}, {"id": 536, "type": "pointer_expression", "text": "**_list", "parent": 535, "children": [537, 538], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 20}}, {"id": 537, "type": "*", "text": "*", "parent": 536, "children": [], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 14}}, {"id": 538, "type": "pointer_expression", "text": "*_list", "parent": 536, "children": [539, 540], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 20}}, {"id": 539, "type": "*", "text": "*", "parent": 538, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 15}}, {"id": 540, "type": "identifier", "text": "_list", "parent": 538, "children": [], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 20}}, {"id": 541, "type": "field_identifier", "text": "vScroll", "parent": 534, "children": [], "start_point": {"row": 170, "column": 22}, "end_point": {"row": 170, "column": 29}}, {"id": 542, "type": "return_statement", "text": "return _myVHandle;", "parent": 520, "children": [543], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 19}}, {"id": 543, "type": "identifier", "text": "_myVHandle", "parent": 542, "children": [], "start_point": {"row": 171, "column": 8}, "end_point": {"row": 171, "column": 18}}]}, "node_categories": {"declarations": {"functions": [23, 25, 162, 164, 236, 239, 285, 287, 318, 322, 403, 405, 459, 461, 495, 497, 508, 510, 520, 522], "variables": [16, 28, 31, 34, 37, 40, 43, 47, 50, 167, 170, 173, 242, 245, 248, 290, 293, 325, 328, 331, 336, 339, 408, 411, 416, 464, 467, 471, 500, 513, 525, 528], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [57, 60, 65, 71, 77, 85, 86, 87, 88, 92, 96, 100, 104, 105, 109, 110, 113, 116, 119, 125, 128, 132, 135, 140, 143, 145, 149, 156, 176, 179, 180, 181, 183, 190, 191, 192, 194, 198, 206, 209, 213, 215, 220, 223, 227, 230, 232, 255, 258, 259, 260, 262, 266, 272, 273, 296, 299, 304, 305, 309, 312, 343, 346, 351, 352, 356, 362, 363, 366, 373, 376, 378, 385, 386, 389, 393, 420, 426, 431, 437, 441, 447, 452, 455, 475, 481, 486, 492, 503, 516, 534, 535, 536, 538], "assignments": [53, 64, 70, 76, 82, 99, 137, 187, 203, 279, 359, 369, 382, 392, 419, 425, 474, 480, 531], "loops": [], "conditionals": [14, 17, 20, 24, 26, 29, 30, 32, 33, 35, 36, 38, 39, 41, 42, 44, 46, 48, 49, 51, 52, 54, 56, 58, 61, 66, 67, 72, 73, 78, 79, 83, 89, 90, 93, 94, 97, 98, 101, 102, 106, 107, 111, 114, 115, 117, 120, 126, 129, 133, 136, 138, 141, 144, 146, 147, 148, 150, 157, 159, 161, 165, 168, 169, 171, 172, 174, 175, 177, 185, 186, 188, 196, 197, 199, 202, 204, 207, 210, 212, 214, 216, 218, 219, 221, 224, 228, 231, 233, 235, 237, 240, 243, 244, 246, 247, 249, 252, 256, 264, 265, 267, 270, 271, 274, 276, 278, 280, 284, 288, 291, 292, 294, 295, 297, 300, 303, 306, 310, 311, 313, 316, 317, 323, 326, 327, 329, 330, 335, 337, 338, 340, 342, 344, 347, 350, 353, 357, 358, 360, 364, 368, 370, 374, 377, 379, 380, 381, 383, 387, 391, 395, 397, 399, 406, 409, 410, 415, 417, 418, 421, 422, 427, 428, 430, 432, 435, 436, 438, 440, 442, 444, 445, 446, 448, 450, 451, 453, 456, 458, 462, 465, 466, 468, 470, 472, 473, 476, 477, 482, 483, 485, 487, 490, 491, 493, 498, 501, 502, 504, 507, 511, 514, 515, 517, 519, 521, 523, 526, 527, 529, 530, 532, 540, 541, 543], "returns": [160, 283, 398, 401, 542], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 22, 62, 63, 69, 75, 81, 121, 122, 123, 124, 130, 131, 225, 226, 254, 277, 282, 301, 302, 348, 349, 372, 402, 424, 434, 479, 489], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "ListHandle Create_List(WindowPtr _win, Rect _rect)\n{\n\tListHandle _list;\n\tRect ViewRect;\n\tRect DataBo"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "Create_List(WindowPtr _win, Rect _rect)"}, {"node_id": 162, "universal_type": "function", "name": "UpdateList", "text_snippet": "void UpdateList(ListHandle _list)\n{\n\tRect ViewRect;\n\tRgnHandle ListUpdateRgn;\n\t\n\tSetPort( (**_list)."}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateList(ListHandle _list)"}, {"node_id": 236, "universal_type": "function", "name": "unknown", "text_snippet": "short DoClick(ListHandle _list, Point _where)\n{\n\tshort result = 0;\n\tSetPort((**_list).port);\n\tLDoDra"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "DoClick(ListHandle _list, Point _where)"}, {"node_id": 285, "universal_type": "function", "name": "TurnOffSelection", "text_snippet": "void TurnOffSelection(ListHandle _list)\n{\n\tPoint ResultPoint;\n\t\n\tSetPt(&ResultPoint, 0, 0);\n\tif(LGet"}, {"node_id": 287, "universal_type": "function", "name": "unknown", "text_snippet": "TurnOffSelection(ListHandle _list)"}, {"node_id": 318, "universal_type": "function", "name": "unknown", "text_snippet": "char* ListSelection(ListHandle _list)\n{\n\tPoint ResultPoint;\n\tchar* ResultString;\n\tPtr StringPointer;"}, {"node_id": 322, "universal_type": "function", "name": "unknown", "text_snippet": "ListSelection(ListHandle _list)"}, {"node_id": 403, "universal_type": "function", "name": "AddRow", "text_snippet": "void AddRow(ListHandle _list, char* _newString)\n{\n\tCell CellPoint;\n\t\n\tCellPoint.h = 0;\n\tCellPoint.v "}, {"node_id": 405, "universal_type": "function", "name": "unknown", "text_snippet": "AddRow(ListHandle _list, char* _newString)"}, {"node_id": 459, "universal_type": "function", "name": "DeleteRow", "text_snippet": "void DeleteRow(ListHandle _list, short _row)\n{\t\n\tCell CellPoint;\n\tCellPoint.h = 0;\n\tCellPoint.v = _r"}, {"node_id": 461, "universal_type": "function", "name": "unknown", "text_snippet": "DeleteRow(ListHandle _list, short _row)"}, {"node_id": 495, "universal_type": "function", "name": "Activate", "text_snippet": "void Activate(ListHandle _list)\n{\n\tLActivate(TRUE, _list);\n}"}, {"node_id": 497, "universal_type": "function", "name": "unknown", "text_snippet": "Activate(ListHandle _list)"}, {"node_id": 508, "universal_type": "function", "name": "DestroyList", "text_snippet": "void DestroyList(ListHandle _list)\n{\n\tLDispose(_list);\n}"}, {"node_id": 510, "universal_type": "function", "name": "unknown", "text_snippet": "DestroyList(ListHandle _list)"}, {"node_id": 520, "universal_type": "function", "name": "unknown", "text_snippet": "ControlHandle GetVHandle(ListHandle _list)\n{\n\tControlHandle _myVHandle;\n\t\n\t_myVHandle=(**_list).vScr"}, {"node_id": 522, "universal_type": "function", "name": "unknown", "text_snippet": "GetVHandle(ListHandle _list)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"Lists.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"list.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <Types.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <string.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include \"Lists.h\"\n#include \"list.h\"\n#include <Types.h>\n#include <string.h>\n\n// Based on the work of <NAME> (kurisuto).\n// url: umich.edu/~archive/mac/development/source/simplelistmanager.txt\n\n#define StandardList 0\n\n\nshort rowNum = 0;\n\nListHandle Create_List(WindowPtr _win, Rect _rect)\n{\n\tListHandle _list;\n\tRect ViewRect;\n\tRect DataBounds;\n\tshort TempInteger; //just do a little math\n\tPoint CellSize;\n\tCell CellPoint;\n\t\n\t//Inset the box to make room for the scroll bar. Also inset it so we've got room for a border\n\tViewRect = _rect;\n\tInsetRect(&ViewRect, 1, 1);\n\tViewRect.right -= 15;\n\t\n\n\tCellSize.v = 15;\n\tCellSize.h = 50;\n\t\n\t\n\t\n\t//Now adjust the ViewRect to avoid cutting off the last visible cell\n\tTempInteger = (ViewRect.bottom-ViewRect.top) % CellSize.v;\n\tViewRect.bottom = ViewRect.top + (TempInteger * CellSize.v);\n\t\n\t\n\t//Create the new List\n\tSetRect(&DataBounds, 0, 0, 1, 0);\n\t\n\tInsetRect(&ViewRect, -1, -1);\n\tFrameRect(&ViewRect);\n\t\n\t_list = LNew(&ViewRect, &DataBounds, CellSize, StandardList, GetWindowPointer(), TRUE, FALSE, FALSE, TRUE);\n\t\n\tUpdateList(_list);\n\n\t\n\t/*CellPoint.h = 0;\n\tCellPoint.v = 0;\n\tLAddRow(1, 0, _list);\n\tLSetCell(\"Testing 1\", 9, CellPoint, _list);\n\tLDraw(CellPoint, _list);*/\n\t\n\treturn _list;\n\n}\n\n\n//update the display of the list\nvoid UpdateList(ListHandle _list)\n{\n\tRect ViewRect;\n\tRgnHandle ListUpdateRgn;\n\t\n\tSetPort( (**_list).port);\n\t\n\t//Get the list manager to update the list\n\tViewRect = (**_list).rView;\n\tLDoDraw(TRUE, _list);\n\tListUpdateRgn = NewRgn( );\n\tRectRgn(ListUpdateRgn, &ViewRect);\n\tLUpdate(ListUpdateRgn, _list);\n\t\n\t//Draw the border\n\tInsetRect(&ViewRect, -1, -1);\n\tFrameRect(&ViewRect);\n\t\n\t//Clean up after ourselves\n\tDisposeRgn(ListUpdateRgn);\n}\n\nshort DoClick(ListHandle _list, Point _where)\n{\n\tshort result = 0;\n\tSetPort((**_list).port);\n\tLDoDraw(TRUE, _list);\n\t\n\tif(LClick(_where, 0, _list))\n\t{\n\t\tresult = 1;\n\t}\n\t\n\treturn result;\t\n}\n\nvoid TurnOffSelection(ListHandle _list)\n{\n\tPoint ResultPoint;\n\t\n\tSetPt(&ResultPoint, 0, 0);\n\tif(LGetSelect(TRUE, &ResultPoint, _list))\n\t{\n\t\tLSetSelect(FALSE, ResultPoint, _list);\t\n\t}\n}\n\nchar* ListSelection(ListHandle _list)\n{\n\tPoint ResultPoint;\n\tchar* ResultString;\n\tPtr StringPointer;\n\tshort StringLength;\n\t\n\t\n\tSetPt(&ResultPoint, 0, 0);\n\tif(LGetSelect(TRUE, &ResultPoint, _list))\n\t{\t\n\t\tStringPointer = (Ptr)(*ResultString);\n\t\tStringLength = 255;\n\t\tLGetCell(&StringPointer, &StringLength, ResultPoint, _list);\n\t\tStringPointer = (Ptr)(*ResultString);\n\t\t*StringPointer = StringLength;\n\t\treturn ResultString;\n\t}\n\telse \n\t{\n\t\treturn \"\";\n\t}\n}\n\nvoid AddRow(ListHandle _list, char* _newString)\n{\n\tCell CellPoint;\n\t\n\tCellPoint.h = 0;\n\tCellPoint.v = rowNum;\n\tLAddRow(1, rowNum, _list);\n\tLSetCell(_newString, strlen(_newString), CellPoint, _list);\n\tLDraw(CellPoint, _list);\n\trowNum++;\n\tUpdateList(_list);\n\n}\n\nvoid DeleteRow(ListHandle _list, short _row)\n{\t\n\tCell CellPoint;\n\tCellPoint.h = 0;\n\tCellPoint.v = _row;\n\tLDelRow(1, _row, _list);\n\trowNum--;\n}\n\nvoid Activate(ListHandle _list)\n{\n\tLActivate(TRUE, _list);\n}\n\nvoid DestroyList(ListHandle _list)\n{\n\tLDispose(_list);\n}\n\n//Controls and stuff\nControlHandle GetVHandle(ListHandle _list)\n{\n\tControlHandle _myVHandle;\n\t\n\t_myVHandle=(**_list).vScroll;\n\treturn _myVHandle;\n}\n"}
80,876
c
/* * VolumeTreeViewer.h * * Created on: Nov 15, 2012 * Author: <NAME> */ #ifndef VOLUMETREEVIEWER_H_ #define VOLUMETREEVIEWER_H_ // Include GLee before any other OpenGL includes #include "../../3drenderer/GLee_r.h" // #include "Camera3D.h" #include "TrackballInteractorCamera.h" #include "../render/ActorGL.h" #include <QGLWidget> #include <QMouseEvent> #include "boost/shared_ptr.hpp" #include <vector> class VolumeTreeViewer : public QGLWidget { public: VolumeTreeViewer(QWidget* parent = NULL); virtual ~VolumeTreeViewer(); virtual void initializeGL(); virtual void mouseDoubleClickEvent(QMouseEvent* event); virtual void mouseMoveEvent(QMouseEvent* event); virtual void mousePressEvent(QMouseEvent* event); virtual void mouseReleaseEvent(QMouseEvent* event); virtual void paintGL(); virtual void resizeGL(int width, int height); virtual void wheelEvent(QWheelEvent* event); protected: Camera3D camera; TrackballInteractorCamera trackball; typedef boost::shared_ptr<ActorGL> ActorPtr; typedef std::vector<ActorPtr> ActorList; ActorList opaqueActors; ActorList transparentActors; bool bIsInitialized; }; #endif /* VOLUMETREEVIEWER_H_ */
28.71
41
(translation_unit) "/*\n * VolumeTreeViewer.h\n *\n * Created on: Nov 15, 2012\n * Author: <NAME>\n */\n\n#ifndef VOLUMETREEVIEWER_H_\n#define VOLUMETREEVIEWER_H_\n\n// Include GLee before any other OpenGL includes\n#include "../../3drenderer/GLee_r.h"\n//\n#include "Camera3D.h"\n#include "TrackballInteractorCamera.h"\n#include "../render/ActorGL.h"\n#include <QGLWidget>\n#include <QMouseEvent>\n#include "boost/shared_ptr.hpp"\n#include <vector>\n\nclass VolumeTreeViewer : public QGLWidget\n{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n virtual ~VolumeTreeViewer();\n\n virtual void initializeGL();\n virtual void mouseDoubleClickEvent(QMouseEvent* event);\n virtual void mouseMoveEvent(QMouseEvent* event);\n virtual void mousePressEvent(QMouseEvent* event);\n virtual void mouseReleaseEvent(QMouseEvent* event);\n virtual void paintGL();\n virtual void resizeGL(int width, int height);\n virtual void wheelEvent(QWheelEvent* event);\n\nprotected:\n Camera3D camera;\n TrackballInteractorCamera trackball;\n\n typedef boost::shared_ptr<ActorGL> ActorPtr;\n typedef std::vector<ActorPtr> ActorList;\n ActorList opaqueActors;\n ActorList transparentActors;\n bool bIsInitialized;\n};\n\n#endif /* VOLUMETREEVIEWER_H_ */\n" (comment) "/*\n * VolumeTreeViewer.h\n *\n * Created on: Nov 15, 2012\n * Author: <NAME>\n */" (preproc_ifdef) "#ifndef VOLUMETREEVIEWER_H_\n#define VOLUMETREEVIEWER_H_\n\n// Include GLee before any other OpenGL includes\n#include "../../3drenderer/GLee_r.h"\n//\n#include "Camera3D.h"\n#include "TrackballInteractorCamera.h"\n#include "../render/ActorGL.h"\n#include <QGLWidget>\n#include <QMouseEvent>\n#include "boost/shared_ptr.hpp"\n#include <vector>\n\nclass VolumeTreeViewer : public QGLWidget\n{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n virtual ~VolumeTreeViewer();\n\n virtual void initializeGL();\n virtual void mouseDoubleClickEvent(QMouseEvent* event);\n virtual void mouseMoveEvent(QMouseEvent* event);\n virtual void mousePressEvent(QMouseEvent* event);\n virtual void mouseReleaseEvent(QMouseEvent* event);\n virtual void paintGL();\n virtual void resizeGL(int width, int height);\n virtual void wheelEvent(QWheelEvent* event);\n\nprotected:\n Camera3D camera;\n TrackballInteractorCamera trackball;\n\n typedef boost::shared_ptr<ActorGL> ActorPtr;\n typedef std::vector<ActorPtr> ActorList;\n ActorList opaqueActors;\n ActorList transparentActors;\n bool bIsInitialized;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "VOLUMETREEVIEWER_H_" (preproc_def) "#define VOLUMETREEVIEWER_H_\n" (#define) "#define" (identifier) "VOLUMETREEVIEWER_H_" (comment) "// Include GLee before any other OpenGL includes" (preproc_include) "#include "../../3drenderer/GLee_r.h"\n" (#include) "#include" (string_literal) ""../../3drenderer/GLee_r.h"" (") """ (string_content) "../../3drenderer/GLee_r.h" (") """ (comment) "//" (preproc_include) "#include "Camera3D.h"\n" (#include) "#include" (string_literal) ""Camera3D.h"" (") """ (string_content) "Camera3D.h" (") """ (preproc_include) "#include "TrackballInteractorCamera.h"\n" (#include) "#include" (string_literal) ""TrackballInteractorCamera.h"" (") """ (string_content) "TrackballInteractorCamera.h" (") """ (preproc_include) "#include "../render/ActorGL.h"\n" (#include) "#include" (string_literal) ""../render/ActorGL.h"" (") """ (string_content) "../render/ActorGL.h" (") """ (preproc_include) "#include <QGLWidget>\n" (#include) "#include" (system_lib_string) "<QGLWidget>" (preproc_include) "#include <QMouseEvent>\n" (#include) "#include" (system_lib_string) "<QMouseEvent>" (preproc_include) "#include "boost/shared_ptr.hpp"\n" (#include) "#include" (string_literal) ""boost/shared_ptr.hpp"" (") """ (string_content) "boost/shared_ptr.hpp" (") """ (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (function_definition) "class VolumeTreeViewer : public QGLWidget\n{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n virtual ~VolumeTreeViewer();\n\n virtual void initializeGL();\n virtual void mouseDoubleClickEvent(QMouseEvent* event);\n virtual void mouseMoveEvent(QMouseEvent* event);\n virtual void mousePressEvent(QMouseEvent* event);\n virtual void mouseReleaseEvent(QMouseEvent* event);\n virtual void paintGL();\n virtual void resizeGL(int width, int height);\n virtual void wheelEvent(QWheelEvent* event);\n\nprotected:\n Camera3D camera;\n TrackballInteractorCamera trackball;\n\n typedef boost::shared_ptr<ActorGL> ActorPtr;\n typedef std::vector<ActorPtr> ActorList;\n ActorList opaqueActors;\n ActorList transparentActors;\n bool bIsInitialized;\n}" (type_identifier) "class" (identifier) "VolumeTreeViewer" (ERROR) ": public QGLWidget" (:) ":" (identifier) "public" (identifier) "QGLWidget" (compound_statement) "{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n virtual ~VolumeTreeViewer();\n\n virtual void initializeGL();\n virtual void mouseDoubleClickEvent(QMouseEvent* event);\n virtual void mouseMoveEvent(QMouseEvent* event);\n virtual void mousePressEvent(QMouseEvent* event);\n virtual void mouseReleaseEvent(QMouseEvent* event);\n virtual void paintGL();\n virtual void resizeGL(int width, int height);\n virtual void wheelEvent(QWheelEvent* event);\n\nprotected:\n Camera3D camera;\n TrackballInteractorCamera trackball;\n\n typedef boost::shared_ptr<ActorGL> ActorPtr;\n typedef std::vector<ActorPtr> ActorList;\n ActorList opaqueActors;\n ActorList transparentActors;\n bool bIsInitialized;\n}" ({) "{" (labeled_statement) "public:\n VolumeTreeViewer(QWidget* parent = NULL);" (statement_identifier) "public" (:) ":" (expression_statement) "VolumeTreeViewer(QWidget* parent = NULL);" (call_expression) "VolumeTreeViewer(QWidget* parent = NULL)" (identifier) "VolumeTreeViewer" (argument_list) "(QWidget* parent = NULL)" (() "(" (binary_expression) "QWidget* parent = NULL" (identifier) "QWidget" (*) "*" (assignment_expression) "parent = NULL" (identifier) "parent" (=) "=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (declaration) "virtual ~VolumeTreeViewer();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "VolumeTreeViewer()" (identifier) "VolumeTreeViewer" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void initializeGL();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "initializeGL()" (identifier) "initializeGL" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void mouseDoubleClickEvent(QMouseEvent* event);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "mouseDoubleClickEvent(QMouseEvent* event)" (identifier) "mouseDoubleClickEvent" (parameter_list) "(QMouseEvent* event)" (() "(" (parameter_declaration) "QMouseEvent* event" (type_identifier) "QMouseEvent" (pointer_declarator) "* event" (*) "*" (identifier) "event" ()) ")" (;) ";" (declaration) "virtual void mouseMoveEvent(QMouseEvent* event);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "mouseMoveEvent(QMouseEvent* event)" (identifier) "mouseMoveEvent" (parameter_list) "(QMouseEvent* event)" (() "(" (parameter_declaration) "QMouseEvent* event" (type_identifier) "QMouseEvent" (pointer_declarator) "* event" (*) "*" (identifier) "event" ()) ")" (;) ";" (declaration) "virtual void mousePressEvent(QMouseEvent* event);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "mousePressEvent(QMouseEvent* event)" (identifier) "mousePressEvent" (parameter_list) "(QMouseEvent* event)" (() "(" (parameter_declaration) "QMouseEvent* event" (type_identifier) "QMouseEvent" (pointer_declarator) "* event" (*) "*" (identifier) "event" ()) ")" (;) ";" (declaration) "virtual void mouseReleaseEvent(QMouseEvent* event);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "mouseReleaseEvent(QMouseEvent* event)" (identifier) "mouseReleaseEvent" (parameter_list) "(QMouseEvent* event)" (() "(" (parameter_declaration) "QMouseEvent* event" (type_identifier) "QMouseEvent" (pointer_declarator) "* event" (*) "*" (identifier) "event" ()) ")" (;) ";" (declaration) "virtual void paintGL();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "paintGL()" (identifier) "paintGL" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void resizeGL(int width, int height);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "resizeGL(int width, int height)" (identifier) "resizeGL" (parameter_list) "(int width, int height)" (() "(" (parameter_declaration) "int width" (primitive_type) "int" (identifier) "width" (,) "," (parameter_declaration) "int height" (primitive_type) "int" (identifier) "height" ()) ")" (;) ";" (declaration) "virtual void wheelEvent(QWheelEvent* event);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "wheelEvent(QWheelEvent* event)" (identifier) "wheelEvent" (parameter_list) "(QWheelEvent* event)" (() "(" (parameter_declaration) "QWheelEvent* event" (type_identifier) "QWheelEvent" (pointer_declarator) "* event" (*) "*" (identifier) "event" ()) ")" (;) ";" (labeled_statement) "protected:\n Camera3D camera;" (statement_identifier) "protected" (:) ":" (declaration) "Camera3D camera;" (type_identifier) "Camera3D" (identifier) "camera" (;) ";" (declaration) "TrackballInteractorCamera trackball;" (type_identifier) "TrackballInteractorCamera" (identifier) "trackball" (;) ";" (type_definition) "typedef boost::shared_ptr<ActorGL> ActorPtr;" (typedef) "typedef" (type_identifier) "boost" (ERROR) "::shared_ptr<ActorGL>" (:) ":" (:) ":" (type_identifier) "shared_ptr" (<) "<" (type_identifier) "ActorGL" (>) ">" (type_identifier) "ActorPtr" (;) ";" (type_definition) "typedef std::vector<ActorPtr> ActorList;" (typedef) "typedef" (type_identifier) "std" (ERROR) "::vector<ActorPtr>" (:) ":" (:) ":" (type_identifier) "vector" (<) "<" (type_identifier) "ActorPtr" (>) ">" (type_identifier) "ActorList" (;) ";" (declaration) "ActorList opaqueActors;" (type_identifier) "ActorList" (identifier) "opaqueActors" (;) ";" (declaration) "ActorList transparentActors;" (type_identifier) "ActorList" (identifier) "transparentActors" (;) ";" (declaration) "bool bIsInitialized;" (primitive_type) "bool" (identifier) "bIsInitialized" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/* VOLUMETREEVIEWER_H_ */"
250
12
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 28.71, "nodes": 175, "errors": 0, "source_hash": "5651951a47a34c4d2737bc39a6c5e17b61be3c1f90c085a77ba3f2975d118efa", "categorized_nodes": 125}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef VOLUMETREEVIEWER_H_\n#define VOLUMETREEVIEWER_H_\n\n// Include GLee before any other OpenGL includes\n#include \"../../3drenderer/GLee_r.h\"\n//\n#include \"Camera3D.h\"\n#include \"TrackballInteractorCamera.h\"\n#include \"../render/ActorGL.h\"\n#include <QGLWidget>\n#include <QMouseEvent>\n#include \"boost/shared_ptr.hpp\"\n#include <vector>\n\nclass VolumeTreeViewer : public QGLWidget\n{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n virtual ~VolumeTreeViewer();\n\n virtual void initializeGL();\n virtual void mouseDoubleClickEvent(QMouseEvent* event);\n virtual void mouseMoveEvent(QMouseEvent* event);\n virtual void mousePressEvent(QMouseEvent* event);\n virtual void mouseReleaseEvent(QMouseEvent* event);\n virtual void paintGL();\n virtual void resizeGL(int width, int height);\n virtual void wheelEvent(QWheelEvent* event);\n\nprotected:\n Camera3D camera;\n TrackballInteractorCamera trackball;\n\n typedef boost::shared_ptr<ActorGL> ActorPtr;\n typedef std::vector<ActorPtr> ActorList;\n ActorList opaqueActors;\n ActorList transparentActors;\n bool bIsInitialized;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 174], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "identifier", "text": "VOLUMETREEVIEWER_H_", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define VOLUMETREEVIEWER_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "VOLUMETREEVIEWER_H_", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"../../3drenderer/GLee_r.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": "\"../../3drenderer/GLee_r.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 36}}, {"id": 9, "type": "preproc_include", "text": "#include \"Camera3D.h\"\n", "parent": 0, "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": "string_literal", "text": "\"Camera3D.h\"", "parent": 9, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include \"TrackballInteractorCamera.h\"\n", "parent": 0, "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": "string_literal", "text": "\"TrackballInteractorCamera.h\"", "parent": 12, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 38}}, {"id": 15, "type": "preproc_include", "text": "#include \"../render/ActorGL.h\"\n", "parent": 0, "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": "string_literal", "text": "\"../render/ActorGL.h\"", "parent": 15, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 30}}, {"id": 18, "type": "preproc_include", "text": "#include <QGLWidget>\n", "parent": 0, "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": "<QGLWidget>", "parent": 18, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 20}}, {"id": 21, "type": "preproc_include", "text": "#include <QMouseEvent>\n", "parent": 0, "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": "<QMouseEvent>", "parent": 21, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include \"boost/shared_ptr.hpp\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"boost/shared_ptr.hpp\"", "parent": 24, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 31}}, {"id": 27, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "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": "<vector>", "parent": 27, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 30, "type": "function_definition", "text": "class VolumeTreeViewer : public QGLWidget\n{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n virtual ~VolumeTreeViewer();\n\n virtual void initializeGL();\n virtual void mouseDoubleClickEvent(QMouseEvent* event);\n virtual void mouseMoveEvent(QMouseEvent* event);\n virtual void mousePressEvent(QMouseEvent* event);\n virtual void mouseReleaseEvent(QMouseEvent* event);\n virtual void paintGL();\n virtual void resizeGL(int width, int height);\n virtual void wheelEvent(QWheelEvent* event);\n\nprotected:\n Camera3D camera;\n TrackballInteractorCamera trackball;\n\n typedef boost::shared_ptr<ActorGL> ActorPtr;\n typedef std::vector<ActorPtr> ActorList;\n ActorList opaqueActors;\n ActorList transparentActors;\n bool bIsInitialized;\n}", "parent": 0, "children": [31, 32], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 31, "type": "identifier", "text": "VolumeTreeViewer", "parent": 30, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 22}}, {"id": 32, "type": "ERROR", "text": ": public QGLWidget", "parent": 30, "children": [33], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 41}}, {"id": 33, "type": "identifier", "text": "QGLWidget", "parent": 32, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 41}}, {"id": 34, "type": "labeled_statement", "text": "public:\n VolumeTreeViewer(QWidget* parent = NULL);", "parent": 30, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 45}}, {"id": 35, "type": "call_expression", "text": "VolumeTreeViewer(QWidget* parent = NULL)", "parent": 34, "children": [36, 37], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 44}}, {"id": 36, "type": "identifier", "text": "VolumeTreeViewer", "parent": 35, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 20}}, {"id": 37, "type": "argument_list", "text": "(QWidget* parent = NULL)", "parent": 35, "children": [38], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 44}}, {"id": 38, "type": "binary_expression", "text": "QWidget* parent = NULL", "parent": 37, "children": [39, 40, 41], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 43}}, {"id": 39, "type": "identifier", "text": "QWidget", "parent": 38, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 28}}, {"id": 40, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 29}}, {"id": 41, "type": "assignment_expression", "text": "parent = NULL", "parent": 38, "children": [42, 43, 44], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 43}}, {"id": 42, "type": "identifier", "text": "parent", "parent": 41, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 36}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 38}}, {"id": 44, "type": "null", "text": "NULL", "parent": 41, "children": [45], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 43}}, {"id": 45, "type": "NULL", "text": "NULL", "parent": 44, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 43}}, {"id": 46, "type": "declaration", "text": "virtual ~VolumeTreeViewer();", "parent": 30, "children": [47, 48, 50], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 32}}, {"id": 47, "type": "type_identifier", "text": "virtual", "parent": 46, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 11}}, {"id": 48, "type": "ERROR", "text": "~", "parent": 46, "children": [49], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 49, "type": "~", "text": "~", "parent": 48, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 50, "type": "function_declarator", "text": "VolumeTreeViewer()", "parent": 46, "children": [51, 52], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 31}}, {"id": 51, "type": "identifier", "text": "VolumeTreeViewer", "parent": 50, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 29}}, {"id": 52, "type": "parameter_list", "text": "()", "parent": 50, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 31}}, {"id": 53, "type": "declaration", "text": "virtual void initializeGL();", "parent": 30, "children": [54, 55, 57], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 32}}, {"id": 54, "type": "type_identifier", "text": "virtual", "parent": 53, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 11}}, {"id": 55, "type": "ERROR", "text": "void", "parent": 53, "children": [56], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 16}}, {"id": 56, "type": "identifier", "text": "void", "parent": 55, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 16}}, {"id": 57, "type": "function_declarator", "text": "initializeGL()", "parent": 53, "children": [58, 59], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 31}}, {"id": 58, "type": "identifier", "text": "initializeGL", "parent": 57, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 29}}, {"id": 59, "type": "parameter_list", "text": "()", "parent": 57, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 31}}, {"id": 60, "type": "declaration", "text": "virtual void mouseDoubleClickEvent(QMouseEvent* event);", "parent": 30, "children": [61, 62, 64], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 59}}, {"id": 61, "type": "type_identifier", "text": "virtual", "parent": 60, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 11}}, {"id": 62, "type": "ERROR", "text": "void", "parent": 60, "children": [63], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 16}}, {"id": 63, "type": "identifier", "text": "void", "parent": 62, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 16}}, {"id": 64, "type": "function_declarator", "text": "mouseDoubleClickEvent(QMouseEvent* event)", "parent": 60, "children": [65, 66], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 58}}, {"id": 65, "type": "identifier", "text": "mouseDoubleClickEvent", "parent": 64, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 38}}, {"id": 66, "type": "parameter_list", "text": "(QMouseEvent* event)", "parent": 64, "children": [67], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 58}}, {"id": 67, "type": "parameter_declaration", "text": "QMouseEvent* event", "parent": 66, "children": [68, 69], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 57}}, {"id": 68, "type": "type_identifier", "text": "QMouseEvent", "parent": 67, "children": [], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 50}}, {"id": 69, "type": "pointer_declarator", "text": "* event", "parent": 67, "children": [70, 71], "start_point": {"row": 28, "column": 50}, "end_point": {"row": 28, "column": 57}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 28, "column": 50}, "end_point": {"row": 28, "column": 51}}, {"id": 71, "type": "identifier", "text": "event", "parent": 69, "children": [], "start_point": {"row": 28, "column": 52}, "end_point": {"row": 28, "column": 57}}, {"id": 72, "type": "declaration", "text": "virtual void mouseMoveEvent(QMouseEvent* event);", "parent": 30, "children": [73, 74, 76], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 52}}, {"id": 73, "type": "type_identifier", "text": "virtual", "parent": 72, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 74, "type": "ERROR", "text": "void", "parent": 72, "children": [75], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 16}}, {"id": 75, "type": "identifier", "text": "void", "parent": 74, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 16}}, {"id": 76, "type": "function_declarator", "text": "mouseMoveEvent(QMouseEvent* event)", "parent": 72, "children": [77, 78], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 51}}, {"id": 77, "type": "identifier", "text": "mouseMoveEvent", "parent": 76, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 31}}, {"id": 78, "type": "parameter_list", "text": "(QMouseEvent* event)", "parent": 76, "children": [79], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 51}}, {"id": 79, "type": "parameter_declaration", "text": "QMouseEvent* event", "parent": 78, "children": [80, 81], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 50}}, {"id": 80, "type": "type_identifier", "text": "QMouseEvent", "parent": 79, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 43}}, {"id": 81, "type": "pointer_declarator", "text": "* event", "parent": 79, "children": [82, 83], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 50}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 44}}, {"id": 83, "type": "identifier", "text": "event", "parent": 81, "children": [], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 50}}, {"id": 84, "type": "declaration", "text": "virtual void mousePressEvent(QMouseEvent* event);", "parent": 30, "children": [85, 86, 88], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 53}}, {"id": 85, "type": "type_identifier", "text": "virtual", "parent": 84, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 11}}, {"id": 86, "type": "ERROR", "text": "void", "parent": 84, "children": [87], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 16}}, {"id": 87, "type": "identifier", "text": "void", "parent": 86, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 16}}, {"id": 88, "type": "function_declarator", "text": "mousePressEvent(QMouseEvent* event)", "parent": 84, "children": [89, 90], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 52}}, {"id": 89, "type": "identifier", "text": "mousePressEvent", "parent": 88, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 32}}, {"id": 90, "type": "parameter_list", "text": "(QMouseEvent* event)", "parent": 88, "children": [91], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 52}}, {"id": 91, "type": "parameter_declaration", "text": "QMouseEvent* event", "parent": 90, "children": [92, 93], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 51}}, {"id": 92, "type": "type_identifier", "text": "QMouseEvent", "parent": 91, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 44}}, {"id": 93, "type": "pointer_declarator", "text": "* event", "parent": 91, "children": [94, 95], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 51}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 45}}, {"id": 95, "type": "identifier", "text": "event", "parent": 93, "children": [], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 51}}, {"id": 96, "type": "declaration", "text": "virtual void mouseReleaseEvent(QMouseEvent* event);", "parent": 30, "children": [97, 98, 100], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 55}}, {"id": 97, "type": "type_identifier", "text": "virtual", "parent": 96, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 11}}, {"id": 98, "type": "ERROR", "text": "void", "parent": 96, "children": [99], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 16}}, {"id": 99, "type": "identifier", "text": "void", "parent": 98, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 16}}, {"id": 100, "type": "function_declarator", "text": "mouseReleaseEvent(QMouseEvent* event)", "parent": 96, "children": [101, 102], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 54}}, {"id": 101, "type": "identifier", "text": "mouseReleaseEvent", "parent": 100, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 34}}, {"id": 102, "type": "parameter_list", "text": "(QMouseEvent* event)", "parent": 100, "children": [103], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 54}}, {"id": 103, "type": "parameter_declaration", "text": "QMouseEvent* event", "parent": 102, "children": [104, 105], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 53}}, {"id": 104, "type": "type_identifier", "text": "QMouseEvent", "parent": 103, "children": [], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 46}}, {"id": 105, "type": "pointer_declarator", "text": "* event", "parent": 103, "children": [106, 107], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 53}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 47}}, {"id": 107, "type": "identifier", "text": "event", "parent": 105, "children": [], "start_point": {"row": 31, "column": 48}, "end_point": {"row": 31, "column": 53}}, {"id": 108, "type": "declaration", "text": "virtual void paintGL();", "parent": 30, "children": [109, 110, 112], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 27}}, {"id": 109, "type": "type_identifier", "text": "virtual", "parent": 108, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 11}}, {"id": 110, "type": "ERROR", "text": "void", "parent": 108, "children": [111], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 16}}, {"id": 111, "type": "identifier", "text": "void", "parent": 110, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 16}}, {"id": 112, "type": "function_declarator", "text": "paintGL()", "parent": 108, "children": [113, 114], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 26}}, {"id": 113, "type": "identifier", "text": "paintGL", "parent": 112, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 24}}, {"id": 114, "type": "parameter_list", "text": "()", "parent": 112, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 26}}, {"id": 115, "type": "declaration", "text": "virtual void resizeGL(int width, int height);", "parent": 30, "children": [116, 117, 119], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 49}}, {"id": 116, "type": "type_identifier", "text": "virtual", "parent": 115, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 11}}, {"id": 117, "type": "ERROR", "text": "void", "parent": 115, "children": [118], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 16}}, {"id": 118, "type": "identifier", "text": "void", "parent": 117, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 16}}, {"id": 119, "type": "function_declarator", "text": "resizeGL(int width, int height)", "parent": 115, "children": [120, 121], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 48}}, {"id": 120, "type": "identifier", "text": "resizeGL", "parent": 119, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 25}}, {"id": 121, "type": "parameter_list", "text": "(int width, int height)", "parent": 119, "children": [122, 125], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 48}}, {"id": 122, "type": "parameter_declaration", "text": "int width", "parent": 121, "children": [123, 124], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 35}}, {"id": 123, "type": "primitive_type", "text": "int", "parent": 122, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 29}}, {"id": 124, "type": "identifier", "text": "width", "parent": 122, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 35}}, {"id": 125, "type": "parameter_declaration", "text": "int height", "parent": 121, "children": [126, 127], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 47}}, {"id": 126, "type": "primitive_type", "text": "int", "parent": 125, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 40}}, {"id": 127, "type": "identifier", "text": "height", "parent": 125, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 47}}, {"id": 128, "type": "declaration", "text": "virtual void wheelEvent(QWheelEvent* event);", "parent": 30, "children": [129, 130, 132], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 48}}, {"id": 129, "type": "type_identifier", "text": "virtual", "parent": 128, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 11}}, {"id": 130, "type": "ERROR", "text": "void", "parent": 128, "children": [131], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 16}}, {"id": 131, "type": "identifier", "text": "void", "parent": 130, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 16}}, {"id": 132, "type": "function_declarator", "text": "wheelEvent(QWheelEvent* event)", "parent": 128, "children": [133, 134], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 47}}, {"id": 133, "type": "identifier", "text": "wheelEvent", "parent": 132, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 27}}, {"id": 134, "type": "parameter_list", "text": "(QWheelEvent* event)", "parent": 132, "children": [135], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 47}}, {"id": 135, "type": "parameter_declaration", "text": "QWheelEvent* event", "parent": 134, "children": [136, 137], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 46}}, {"id": 136, "type": "type_identifier", "text": "QWheelEvent", "parent": 135, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 39}}, {"id": 137, "type": "pointer_declarator", "text": "* event", "parent": 135, "children": [138, 139], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 46}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 40}}, {"id": 139, "type": "identifier", "text": "event", "parent": 137, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 46}}, {"id": 140, "type": "labeled_statement", "text": "protected:\n Camera3D camera;", "parent": 30, "children": [141], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 20}}, {"id": 141, "type": "declaration", "text": "Camera3D camera;", "parent": 140, "children": [142, 143], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 20}}, {"id": 142, "type": "type_identifier", "text": "Camera3D", "parent": 141, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 12}}, {"id": 143, "type": "identifier", "text": "camera", "parent": 141, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 19}}, {"id": 144, "type": "declaration", "text": "TrackballInteractorCamera trackball;", "parent": 30, "children": [145, 146], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 40}}, {"id": 145, "type": "type_identifier", "text": "TrackballInteractorCamera", "parent": 144, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 29}}, {"id": 146, "type": "identifier", "text": "trackball", "parent": 144, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 39}}, {"id": 147, "type": "type_definition", "text": "typedef boost::shared_ptr<ActorGL> ActorPtr;", "parent": 30, "children": [148, 149, 150, 155], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 48}}, {"id": 148, "type": "typedef", "text": "typedef", "parent": 147, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 11}}, {"id": 149, "type": "type_identifier", "text": "boost", "parent": 147, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 17}}, {"id": 150, "type": "ERROR", "text": "::shared_ptr<ActorGL>", "parent": 147, "children": [151, 152, 153, 154], "start_point": {"row": 40, "column": 17}, "end_point": {"row": 40, "column": 38}}, {"id": 151, "type": "type_identifier", "text": "shared_ptr", "parent": 150, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 29}}, {"id": 152, "type": "<", "text": "<", "parent": 150, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 30}}, {"id": 153, "type": "type_identifier", "text": "ActorGL", "parent": 150, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 37}}, {"id": 154, "type": ">", "text": ">", "parent": 150, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 38}}, {"id": 155, "type": "type_identifier", "text": "ActorPtr", "parent": 147, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 47}}, {"id": 156, "type": "type_definition", "text": "typedef std::vector<ActorPtr> ActorList;", "parent": 30, "children": [157, 158, 159, 164], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 44}}, {"id": 157, "type": "typedef", "text": "typedef", "parent": 156, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 11}}, {"id": 158, "type": "type_identifier", "text": "std", "parent": 156, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 15}}, {"id": 159, "type": "ERROR", "text": "::vector<ActorPtr>", "parent": 156, "children": [160, 161, 162, 163], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 33}}, {"id": 160, "type": "type_identifier", "text": "vector", "parent": 159, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 23}}, {"id": 161, "type": "<", "text": "<", "parent": 159, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 24}}, {"id": 162, "type": "type_identifier", "text": "ActorPtr", "parent": 159, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 32}}, {"id": 163, "type": ">", "text": ">", "parent": 159, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 33}}, {"id": 164, "type": "type_identifier", "text": "ActorList", "parent": 156, "children": [], "start_point": {"row": 41, "column": 34}, "end_point": {"row": 41, "column": 43}}, {"id": 165, "type": "declaration", "text": "ActorList opaqueActors;", "parent": 30, "children": [166, 167], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 27}}, {"id": 166, "type": "type_identifier", "text": "ActorList", "parent": 165, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 13}}, {"id": 167, "type": "identifier", "text": "opaqueActors", "parent": 165, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 26}}, {"id": 168, "type": "declaration", "text": "ActorList transparentActors;", "parent": 30, "children": [169, 170], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 32}}, {"id": 169, "type": "type_identifier", "text": "ActorList", "parent": 168, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 13}}, {"id": 170, "type": "identifier", "text": "transparentActors", "parent": 168, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 31}}, {"id": 171, "type": "declaration", "text": "bool bIsInitialized;", "parent": 30, "children": [172, 173], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 24}}, {"id": 172, "type": "primitive_type", "text": "bool", "parent": 171, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 173, "type": "identifier", "text": "bIsInitialized", "parent": 171, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 23}}, {"id": 174, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}]}, "node_categories": {"declarations": {"functions": [30, 50, 57, 64, 76, 88, 100, 112, 119, 132], "variables": [46, 53, 60, 67, 72, 79, 84, 91, 96, 103, 108, 115, 122, 125, 128, 135, 141, 144, 147, 156, 165, 168, 171], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [35, 38], "assignments": [41], "loops": [], "conditionals": [0, 1, 2, 5, 31, 33, 36, 39, 42, 47, 51, 54, 56, 58, 61, 63, 65, 68, 71, 73, 75, 77, 80, 83, 85, 87, 89, 92, 95, 97, 99, 101, 104, 107, 109, 111, 113, 116, 118, 120, 124, 127, 129, 131, 133, 136, 139, 142, 143, 145, 146, 149, 151, 153, 155, 158, 160, 162, 164, 166, 167, 169, 170, 173, 174], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "VolumeTreeViewer", "text_snippet": "class VolumeTreeViewer : public QGLWidget\n{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n "}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "VolumeTreeViewer()"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "initializeGL()"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "mouseDoubleClickEvent(QMouseEvent* event)"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "mouseMoveEvent(QMouseEvent* event)"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "mousePressEvent(QMouseEvent* event)"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "mouseReleaseEvent(QMouseEvent* event)"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "paintGL()"}, {"node_id": 119, "universal_type": "function", "name": "height)", "text_snippet": "resizeGL(int width, int height)"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "wheelEvent(QWheelEvent* event)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"../../3drenderer/GLee_r.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Camera3D.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"TrackballInteractorCamera.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"../render/ActorGL.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <QGLWidget>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <QMouseEvent>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"boost/shared_ptr.hpp\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <vector>\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/*\n * VolumeTreeViewer.h\n *\n * Created on: Nov 15, 2012\n * Author: <NAME>\n */\n\n#ifndef VOLUMETREEVIEWER_H_\n#define VOLUMETREEVIEWER_H_\n\n// Include GLee before any other OpenGL includes\n#include \"../../3drenderer/GLee_r.h\"\n//\n#include \"Camera3D.h\"\n#include \"TrackballInteractorCamera.h\"\n#include \"../render/ActorGL.h\"\n#include <QGLWidget>\n#include <QMouseEvent>\n#include \"boost/shared_ptr.hpp\"\n#include <vector>\n\nclass VolumeTreeViewer : public QGLWidget\n{\npublic:\n VolumeTreeViewer(QWidget* parent = NULL);\n virtual ~VolumeTreeViewer();\n\n virtual void initializeGL();\n virtual void mouseDoubleClickEvent(QMouseEvent* event);\n virtual void mouseMoveEvent(QMouseEvent* event);\n virtual void mousePressEvent(QMouseEvent* event);\n virtual void mouseReleaseEvent(QMouseEvent* event);\n virtual void paintGL();\n virtual void resizeGL(int width, int height);\n virtual void wheelEvent(QWheelEvent* event);\n\nprotected:\n Camera3D camera;\n TrackballInteractorCamera trackball;\n\n typedef boost::shared_ptr<ActorGL> ActorPtr;\n typedef std::vector<ActorPtr> ActorList;\n ActorList opaqueActors;\n ActorList transparentActors;\n bool bIsInitialized;\n};\n\n#endif /* VOLUMETREEVIEWER_H_ */\n"}
80,877
c
/* * $Id: postconfig.h,v 1.1 2006-04-07 03:06:19 kensaku Exp $ */ #ifndef _CEAP_FIXCONFIG_H #define _CEAP_FIXCONFIG_H #define CEAP_PACKAGE PACKAGE #undef PACKAGE #define CEAP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT #undef PACKAGE_BUGREPORT #define CEAP_PACKAGE_NAME PACKAGE_NAME #undef PACKAGE_NAME #define CEAP_PACKAGE_STRING PACKAGE_STRING #undef PACKAGE_STRING #define CEAP_PACKAGE_TARNAME PACKAGE_TARNAME #undef PACKAGE_TARNAME #define CEAP_PACKAGE_VERSION PACKAGE_VERSION #undef PACKAGE_VERSION #define CEAP_VERSION VERSION #undef VERSION /* restore original confdefs macroes */ #ifdef CEAP_ORIG_PACKAGE #define PACKAGE CEAP_ORIG_PACKAGE #undef CEAP_ORIG_PACKAGE #endif #ifdef CEAP_ORIG_PACKAGE_BUGREPORT #define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT #undef CEAP_ORIG_PACKAGE_BUGREPORT #endif #ifdef CEAP_ORIG_PACKAGE_NAME #define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME #undef CEAP_ORIG_PACKAGE_NAME #endif #ifdef CEAP_ORIG_PACKAGE_STRING #define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING #undef CEAP_ORIG_PACKAGE_STRING #endif #ifdef CEAP_ORIG_PACKAGE_TARNAME #define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME #undef CEAP_ORIG_PACKAGE_TARNAME #endif #ifdef CEAP_ORIG_PACKAGE_VERSION #define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION #undef CEAP_ORIG_PACKAGE_VERSION #endif #ifdef CEAP_ORIG_VERSION #define VERSION CEAP_ORIG_VERSION #undef CEAP_ORIG_VERSION #endif #endif /* !_CEAP_FIXCONFIG_H */
27.63
49
(translation_unit) "/*\n * $Id: postconfig.h,v 1.1 2006-04-07 03:06:19 kensaku Exp $\n */\n\n#ifndef _CEAP_FIXCONFIG_H\n#define _CEAP_FIXCONFIG_H\n\n#define CEAP_PACKAGE PACKAGE\n#undef PACKAGE\n#define CEAP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT\n#undef PACKAGE_BUGREPORT\n#define CEAP_PACKAGE_NAME PACKAGE_NAME\n#undef PACKAGE_NAME\n#define CEAP_PACKAGE_STRING PACKAGE_STRING\n#undef PACKAGE_STRING\n#define CEAP_PACKAGE_TARNAME PACKAGE_TARNAME\n#undef PACKAGE_TARNAME\n#define CEAP_PACKAGE_VERSION PACKAGE_VERSION\n#undef PACKAGE_VERSION\n#define CEAP_VERSION VERSION\n#undef VERSION\n\n/* restore original confdefs macroes */\n#ifdef CEAP_ORIG_PACKAGE\n#define PACKAGE CEAP_ORIG_PACKAGE\n#undef CEAP_ORIG_PACKAGE\n#endif\n#ifdef CEAP_ORIG_PACKAGE_BUGREPORT\n#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n#undef CEAP_ORIG_PACKAGE_BUGREPORT\n#endif\n#ifdef CEAP_ORIG_PACKAGE_NAME\n#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n#undef CEAP_ORIG_PACKAGE_NAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_STRING\n#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n#undef CEAP_ORIG_PACKAGE_STRING\n#endif\n#ifdef CEAP_ORIG_PACKAGE_TARNAME\n#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n#undef CEAP_ORIG_PACKAGE_TARNAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_VERSION\n#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n#undef CEAP_ORIG_PACKAGE_VERSION\n#endif\n#ifdef CEAP_ORIG_VERSION\n#define VERSION CEAP_ORIG_VERSION\n#undef CEAP_ORIG_VERSION\n#endif\n\n#endif /* !_CEAP_FIXCONFIG_H */\n" (comment) "/*\n * $Id: postconfig.h,v 1.1 2006-04-07 03:06:19 kensaku Exp $\n */" (preproc_ifdef) "#ifndef _CEAP_FIXCONFIG_H\n#define _CEAP_FIXCONFIG_H\n\n#define CEAP_PACKAGE PACKAGE\n#undef PACKAGE\n#define CEAP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT\n#undef PACKAGE_BUGREPORT\n#define CEAP_PACKAGE_NAME PACKAGE_NAME\n#undef PACKAGE_NAME\n#define CEAP_PACKAGE_STRING PACKAGE_STRING\n#undef PACKAGE_STRING\n#define CEAP_PACKAGE_TARNAME PACKAGE_TARNAME\n#undef PACKAGE_TARNAME\n#define CEAP_PACKAGE_VERSION PACKAGE_VERSION\n#undef PACKAGE_VERSION\n#define CEAP_VERSION VERSION\n#undef VERSION\n\n/* restore original confdefs macroes */\n#ifdef CEAP_ORIG_PACKAGE\n#define PACKAGE CEAP_ORIG_PACKAGE\n#undef CEAP_ORIG_PACKAGE\n#endif\n#ifdef CEAP_ORIG_PACKAGE_BUGREPORT\n#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n#undef CEAP_ORIG_PACKAGE_BUGREPORT\n#endif\n#ifdef CEAP_ORIG_PACKAGE_NAME\n#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n#undef CEAP_ORIG_PACKAGE_NAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_STRING\n#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n#undef CEAP_ORIG_PACKAGE_STRING\n#endif\n#ifdef CEAP_ORIG_PACKAGE_TARNAME\n#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n#undef CEAP_ORIG_PACKAGE_TARNAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_VERSION\n#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n#undef CEAP_ORIG_PACKAGE_VERSION\n#endif\n#ifdef CEAP_ORIG_VERSION\n#define VERSION CEAP_ORIG_VERSION\n#undef CEAP_ORIG_VERSION\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "_CEAP_FIXCONFIG_H" (preproc_def) "#define _CEAP_FIXCONFIG_H\n" (#define) "#define" (identifier) "_CEAP_FIXCONFIG_H" (preproc_def) "#define CEAP_PACKAGE PACKAGE\n" (#define) "#define" (identifier) "CEAP_PACKAGE" (preproc_arg) "PACKAGE" (preproc_call) "#undef PACKAGE\n" (preproc_directive) "#undef" (preproc_arg) "PACKAGE" (preproc_def) "#define CEAP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT\n" (#define) "#define" (identifier) "CEAP_PACKAGE_BUGREPORT" (preproc_arg) "PACKAGE_BUGREPORT" (preproc_call) "#undef PACKAGE_BUGREPORT\n" (preproc_directive) "#undef" (preproc_arg) "PACKAGE_BUGREPORT" (preproc_def) "#define CEAP_PACKAGE_NAME PACKAGE_NAME\n" (#define) "#define" (identifier) "CEAP_PACKAGE_NAME" (preproc_arg) "PACKAGE_NAME" (preproc_call) "#undef PACKAGE_NAME\n" (preproc_directive) "#undef" (preproc_arg) "PACKAGE_NAME" (preproc_def) "#define CEAP_PACKAGE_STRING PACKAGE_STRING\n" (#define) "#define" (identifier) "CEAP_PACKAGE_STRING" (preproc_arg) "PACKAGE_STRING" (preproc_call) "#undef PACKAGE_STRING\n" (preproc_directive) "#undef" (preproc_arg) "PACKAGE_STRING" (preproc_def) "#define CEAP_PACKAGE_TARNAME PACKAGE_TARNAME\n" (#define) "#define" (identifier) "CEAP_PACKAGE_TARNAME" (preproc_arg) "PACKAGE_TARNAME" (preproc_call) "#undef PACKAGE_TARNAME\n" (preproc_directive) "#undef" (preproc_arg) "PACKAGE_TARNAME" (preproc_def) "#define CEAP_PACKAGE_VERSION PACKAGE_VERSION\n" (#define) "#define" (identifier) "CEAP_PACKAGE_VERSION" (preproc_arg) "PACKAGE_VERSION" (preproc_call) "#undef PACKAGE_VERSION\n" (preproc_directive) "#undef" (preproc_arg) "PACKAGE_VERSION" (preproc_def) "#define CEAP_VERSION VERSION\n" (#define) "#define" (identifier) "CEAP_VERSION" (preproc_arg) "VERSION" (preproc_call) "#undef VERSION\n" (preproc_directive) "#undef" (preproc_arg) "VERSION" (comment) "/* restore original confdefs macroes */" (preproc_ifdef) "#ifdef CEAP_ORIG_PACKAGE\n#define PACKAGE CEAP_ORIG_PACKAGE\n#undef CEAP_ORIG_PACKAGE\n#endif" (#ifdef) "#ifdef" (identifier) "CEAP_ORIG_PACKAGE" (preproc_def) "#define PACKAGE CEAP_ORIG_PACKAGE\n" (#define) "#define" (identifier) "PACKAGE" (preproc_arg) "CEAP_ORIG_PACKAGE" (preproc_call) "#undef CEAP_ORIG_PACKAGE\n" (preproc_directive) "#undef" (preproc_arg) "CEAP_ORIG_PACKAGE" (#endif) "#endif" (preproc_ifdef) "#ifdef CEAP_ORIG_PACKAGE_BUGREPORT\n#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n#undef CEAP_ORIG_PACKAGE_BUGREPORT\n#endif" (#ifdef) "#ifdef" (identifier) "CEAP_ORIG_PACKAGE_BUGREPORT" (preproc_def) "#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n" (#define) "#define" (identifier) "PACKAGE_BUGREPORT" (preproc_arg) "CEAP_ORIG_PACKAGE_BUGREPORT" (preproc_call) "#undef CEAP_ORIG_PACKAGE_BUGREPORT\n" (preproc_directive) "#undef" (preproc_arg) "CEAP_ORIG_PACKAGE_BUGREPORT" (#endif) "#endif" (preproc_ifdef) "#ifdef CEAP_ORIG_PACKAGE_NAME\n#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n#undef CEAP_ORIG_PACKAGE_NAME\n#endif" (#ifdef) "#ifdef" (identifier) "CEAP_ORIG_PACKAGE_NAME" (preproc_def) "#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n" (#define) "#define" (identifier) "PACKAGE_NAME" (preproc_arg) "CEAP_ORIG_PACKAGE_NAME" (preproc_call) "#undef CEAP_ORIG_PACKAGE_NAME\n" (preproc_directive) "#undef" (preproc_arg) "CEAP_ORIG_PACKAGE_NAME" (#endif) "#endif" (preproc_ifdef) "#ifdef CEAP_ORIG_PACKAGE_STRING\n#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n#undef CEAP_ORIG_PACKAGE_STRING\n#endif" (#ifdef) "#ifdef" (identifier) "CEAP_ORIG_PACKAGE_STRING" (preproc_def) "#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n" (#define) "#define" (identifier) "PACKAGE_STRING" (preproc_arg) "CEAP_ORIG_PACKAGE_STRING" (preproc_call) "#undef CEAP_ORIG_PACKAGE_STRING\n" (preproc_directive) "#undef" (preproc_arg) "CEAP_ORIG_PACKAGE_STRING" (#endif) "#endif" (preproc_ifdef) "#ifdef CEAP_ORIG_PACKAGE_TARNAME\n#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n#undef CEAP_ORIG_PACKAGE_TARNAME\n#endif" (#ifdef) "#ifdef" (identifier) "CEAP_ORIG_PACKAGE_TARNAME" (preproc_def) "#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n" (#define) "#define" (identifier) "PACKAGE_TARNAME" (preproc_arg) "CEAP_ORIG_PACKAGE_TARNAME" (preproc_call) "#undef CEAP_ORIG_PACKAGE_TARNAME\n" (preproc_directive) "#undef" (preproc_arg) "CEAP_ORIG_PACKAGE_TARNAME" (#endif) "#endif" (preproc_ifdef) "#ifdef CEAP_ORIG_PACKAGE_VERSION\n#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n#undef CEAP_ORIG_PACKAGE_VERSION\n#endif" (#ifdef) "#ifdef" (identifier) "CEAP_ORIG_PACKAGE_VERSION" (preproc_def) "#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n" (#define) "#define" (identifier) "PACKAGE_VERSION" (preproc_arg) "CEAP_ORIG_PACKAGE_VERSION" (preproc_call) "#undef CEAP_ORIG_PACKAGE_VERSION\n" (preproc_directive) "#undef" (preproc_arg) "CEAP_ORIG_PACKAGE_VERSION" (#endif) "#endif" (preproc_ifdef) "#ifdef CEAP_ORIG_VERSION\n#define VERSION CEAP_ORIG_VERSION\n#undef CEAP_ORIG_VERSION\n#endif" (#ifdef) "#ifdef" (identifier) "CEAP_ORIG_VERSION" (preproc_def) "#define VERSION CEAP_ORIG_VERSION\n" (#define) "#define" (identifier) "VERSION" (preproc_arg) "CEAP_ORIG_VERSION" (preproc_call) "#undef CEAP_ORIG_VERSION\n" (preproc_directive) "#undef" (preproc_arg) "CEAP_ORIG_VERSION" (#endif) "#endif" (#endif) "#endif" (comment) "/* !_CEAP_FIXCONFIG_H */"
137
0
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 27.63, "nodes": 133, "errors": 0, "source_hash": "1874ba88c254a1dfc177a376957f196800109578f09924bded0116032fc89712", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _CEAP_FIXCONFIG_H\n#define _CEAP_FIXCONFIG_H\n\n#define CEAP_PACKAGE PACKAGE\n#undef PACKAGE\n#define CEAP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT\n#undef PACKAGE_BUGREPORT\n#define CEAP_PACKAGE_NAME PACKAGE_NAME\n#undef PACKAGE_NAME\n#define CEAP_PACKAGE_STRING PACKAGE_STRING\n#undef PACKAGE_STRING\n#define CEAP_PACKAGE_TARNAME PACKAGE_TARNAME\n#undef PACKAGE_TARNAME\n#define CEAP_PACKAGE_VERSION PACKAGE_VERSION\n#undef PACKAGE_VERSION\n#define CEAP_VERSION VERSION\n#undef VERSION\n\n/* restore original confdefs macroes */\n#ifdef CEAP_ORIG_PACKAGE\n#define PACKAGE CEAP_ORIG_PACKAGE\n#undef CEAP_ORIG_PACKAGE\n#endif\n#ifdef CEAP_ORIG_PACKAGE_BUGREPORT\n#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n#undef CEAP_ORIG_PACKAGE_BUGREPORT\n#endif\n#ifdef CEAP_ORIG_PACKAGE_NAME\n#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n#undef CEAP_ORIG_PACKAGE_NAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_STRING\n#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n#undef CEAP_ORIG_PACKAGE_STRING\n#endif\n#ifdef CEAP_ORIG_PACKAGE_TARNAME\n#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n#undef CEAP_ORIG_PACKAGE_TARNAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_VERSION\n#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n#undef CEAP_ORIG_PACKAGE_VERSION\n#endif\n#ifdef CEAP_ORIG_VERSION\n#define VERSION CEAP_ORIG_VERSION\n#undef CEAP_ORIG_VERSION\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 13, 17, 20, 24, 27, 31, 34, 38, 41, 45, 48, 52, 55, 66, 77, 88, 99, 110, 121, 132], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 52, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "_CEAP_FIXCONFIG_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define _CEAP_FIXCONFIG_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": "_CEAP_FIXCONFIG_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 25}}, {"id": 6, "type": "preproc_def", "text": "#define CEAP_PACKAGE PACKAGE\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 8, "type": "identifier", "text": "CEAP_PACKAGE", "parent": 6, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 20}}, {"id": 9, "type": "preproc_arg", "text": "PACKAGE", "parent": 6, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 28}}, {"id": 10, "type": "preproc_call", "text": "#undef PACKAGE\n", "parent": 0, "children": [11, 12], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 11, "type": "preproc_directive", "text": "#undef", "parent": 10, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 12, "type": "preproc_arg", "text": "PACKAGE", "parent": 10, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 14}}, {"id": 13, "type": "preproc_def", "text": "#define CEAP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT\n", "parent": 0, "children": [14, 15, 16], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 15, "type": "identifier", "text": "CEAP_PACKAGE_BUGREPORT", "parent": 13, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 30}}, {"id": 16, "type": "preproc_arg", "text": "PACKAGE_BUGREPORT", "parent": 13, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 48}}, {"id": 17, "type": "preproc_call", "text": "#undef PACKAGE_BUGREPORT\n", "parent": 0, "children": [18, 19], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 18, "type": "preproc_directive", "text": "#undef", "parent": 17, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 19, "type": "preproc_arg", "text": "PACKAGE_BUGREPORT", "parent": 17, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 24}}, {"id": 20, "type": "preproc_def", "text": "#define CEAP_PACKAGE_NAME PACKAGE_NAME\n", "parent": 0, "children": [21, 22, 23], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 21, "type": "#define", "text": "#define", "parent": 20, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 22, "type": "identifier", "text": "CEAP_PACKAGE_NAME", "parent": 20, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 25}}, {"id": 23, "type": "preproc_arg", "text": "PACKAGE_NAME", "parent": 20, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 38}}, {"id": 24, "type": "preproc_call", "text": "#undef PACKAGE_NAME\n", "parent": 0, "children": [25, 26], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 25, "type": "preproc_directive", "text": "#undef", "parent": 24, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 26, "type": "preproc_arg", "text": "PACKAGE_NAME", "parent": 24, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 19}}, {"id": 27, "type": "preproc_def", "text": "#define CEAP_PACKAGE_STRING PACKAGE_STRING\n", "parent": 0, "children": [28, 29, 30], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 29, "type": "identifier", "text": "CEAP_PACKAGE_STRING", "parent": 27, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 27}}, {"id": 30, "type": "preproc_arg", "text": "PACKAGE_STRING", "parent": 27, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 42}}, {"id": 31, "type": "preproc_call", "text": "#undef PACKAGE_STRING\n", "parent": 0, "children": [32, 33], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 32, "type": "preproc_directive", "text": "#undef", "parent": 31, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 33, "type": "preproc_arg", "text": "PACKAGE_STRING", "parent": 31, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 21}}, {"id": 34, "type": "preproc_def", "text": "#define CEAP_PACKAGE_TARNAME PACKAGE_TARNAME\n", "parent": 0, "children": [35, 36, 37], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 36, "type": "identifier", "text": "CEAP_PACKAGE_TARNAME", "parent": 34, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 28}}, {"id": 37, "type": "preproc_arg", "text": "PACKAGE_TARNAME", "parent": 34, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 44}}, {"id": 38, "type": "preproc_call", "text": "#undef PACKAGE_TARNAME\n", "parent": 0, "children": [39, 40], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 39, "type": "preproc_directive", "text": "#undef", "parent": 38, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 40, "type": "preproc_arg", "text": "PACKAGE_TARNAME", "parent": 38, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 22}}, {"id": 41, "type": "preproc_def", "text": "#define CEAP_PACKAGE_VERSION PACKAGE_VERSION\n", "parent": 0, "children": [42, 43, 44], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 43, "type": "identifier", "text": "CEAP_PACKAGE_VERSION", "parent": 41, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 28}}, {"id": 44, "type": "preproc_arg", "text": "PACKAGE_VERSION", "parent": 41, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 44}}, {"id": 45, "type": "preproc_call", "text": "#undef PACKAGE_VERSION\n", "parent": 0, "children": [46, 47], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 46, "type": "preproc_directive", "text": "#undef", "parent": 45, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 47, "type": "preproc_arg", "text": "PACKAGE_VERSION", "parent": 45, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 22}}, {"id": 48, "type": "preproc_def", "text": "#define CEAP_VERSION VERSION\n", "parent": 0, "children": [49, 50, 51], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 50, "type": "identifier", "text": "CEAP_VERSION", "parent": 48, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 20}}, {"id": 51, "type": "preproc_arg", "text": "VERSION", "parent": 48, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 28}}, {"id": 52, "type": "preproc_call", "text": "#undef VERSION\n", "parent": 0, "children": [53, 54], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 53, "type": "preproc_directive", "text": "#undef", "parent": 52, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 54, "type": "preproc_arg", "text": "VERSION", "parent": 52, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 14}}, {"id": 55, "type": "preproc_ifdef", "text": "#ifdef CEAP_ORIG_PACKAGE\n#define PACKAGE CEAP_ORIG_PACKAGE\n#undef CEAP_ORIG_PACKAGE\n#endif", "parent": 0, "children": [56, 57, 58, 62, 65], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 56, "type": "#ifdef", "text": "#ifdef", "parent": 55, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 57, "type": "identifier", "text": "CEAP_ORIG_PACKAGE", "parent": 55, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 24}}, {"id": 58, "type": "preproc_def", "text": "#define PACKAGE CEAP_ORIG_PACKAGE\n", "parent": 55, "children": [59, 60, 61], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 60, "type": "identifier", "text": "PACKAGE", "parent": 58, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 15}}, {"id": 61, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE", "parent": 58, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 33}}, {"id": 62, "type": "preproc_call", "text": "#undef CEAP_ORIG_PACKAGE\n", "parent": 55, "children": [63, 64], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 63, "type": "preproc_directive", "text": "#undef", "parent": 62, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 64, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE", "parent": 62, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 24}}, {"id": 65, "type": "#endif", "text": "#endif", "parent": 55, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 66, "type": "preproc_ifdef", "text": "#ifdef CEAP_ORIG_PACKAGE_BUGREPORT\n#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n#undef CEAP_ORIG_PACKAGE_BUGREPORT\n#endif", "parent": 0, "children": [67, 68, 69, 73, 76], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 67, "type": "#ifdef", "text": "#ifdef", "parent": 66, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 68, "type": "identifier", "text": "CEAP_ORIG_PACKAGE_BUGREPORT", "parent": 66, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 34}}, {"id": 69, "type": "preproc_def", "text": "#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n", "parent": 66, "children": [70, 71, 72], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 70, "type": "#define", "text": "#define", "parent": 69, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 71, "type": "identifier", "text": "PACKAGE_BUGREPORT", "parent": 69, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 25}}, {"id": 72, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_BUGREPORT", "parent": 69, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 53}}, {"id": 73, "type": "preproc_call", "text": "#undef CEAP_ORIG_PACKAGE_BUGREPORT\n", "parent": 66, "children": [74, 75], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 74, "type": "preproc_directive", "text": "#undef", "parent": 73, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 75, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_BUGREPORT", "parent": 73, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 34}}, {"id": 76, "type": "#endif", "text": "#endif", "parent": 66, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 77, "type": "preproc_ifdef", "text": "#ifdef CEAP_ORIG_PACKAGE_NAME\n#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n#undef CEAP_ORIG_PACKAGE_NAME\n#endif", "parent": 0, "children": [78, 79, 80, 84, 87], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 78, "type": "#ifdef", "text": "#ifdef", "parent": 77, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 79, "type": "identifier", "text": "CEAP_ORIG_PACKAGE_NAME", "parent": 77, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 29}}, {"id": 80, "type": "preproc_def", "text": "#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n", "parent": 77, "children": [81, 82, 83], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 81, "type": "#define", "text": "#define", "parent": 80, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 82, "type": "identifier", "text": "PACKAGE_NAME", "parent": 80, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 20}}, {"id": 83, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_NAME", "parent": 80, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 43}}, {"id": 84, "type": "preproc_call", "text": "#undef CEAP_ORIG_PACKAGE_NAME\n", "parent": 77, "children": [85, 86], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 85, "type": "preproc_directive", "text": "#undef", "parent": 84, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 86, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_NAME", "parent": 84, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 29}}, {"id": 87, "type": "#endif", "text": "#endif", "parent": 77, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}, {"id": 88, "type": "preproc_ifdef", "text": "#ifdef CEAP_ORIG_PACKAGE_STRING\n#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n#undef CEAP_ORIG_PACKAGE_STRING\n#endif", "parent": 0, "children": [89, 90, 91, 95, 98], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 89, "type": "#ifdef", "text": "#ifdef", "parent": 88, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 90, "type": "identifier", "text": "CEAP_ORIG_PACKAGE_STRING", "parent": 88, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 31}}, {"id": 91, "type": "preproc_def", "text": "#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n", "parent": 88, "children": [92, 93, 94], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 92, "type": "#define", "text": "#define", "parent": 91, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 93, "type": "identifier", "text": "PACKAGE_STRING", "parent": 91, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 22}}, {"id": 94, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_STRING", "parent": 91, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 47}}, {"id": 95, "type": "preproc_call", "text": "#undef CEAP_ORIG_PACKAGE_STRING\n", "parent": 88, "children": [96, 97], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 96, "type": "preproc_directive", "text": "#undef", "parent": 95, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 97, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_STRING", "parent": 95, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 31}}, {"id": 98, "type": "#endif", "text": "#endif", "parent": 88, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 99, "type": "preproc_ifdef", "text": "#ifdef CEAP_ORIG_PACKAGE_TARNAME\n#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n#undef CEAP_ORIG_PACKAGE_TARNAME\n#endif", "parent": 0, "children": [100, 101, 102, 106, 109], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 100, "type": "#ifdef", "text": "#ifdef", "parent": 99, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 101, "type": "identifier", "text": "CEAP_ORIG_PACKAGE_TARNAME", "parent": 99, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 32}}, {"id": 102, "type": "preproc_def", "text": "#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n", "parent": 99, "children": [103, 104, 105], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 103, "type": "#define", "text": "#define", "parent": 102, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 104, "type": "identifier", "text": "PACKAGE_TARNAME", "parent": 102, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 23}}, {"id": 105, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_TARNAME", "parent": 102, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 49}}, {"id": 106, "type": "preproc_call", "text": "#undef CEAP_ORIG_PACKAGE_TARNAME\n", "parent": 99, "children": [107, 108], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 107, "type": "preproc_directive", "text": "#undef", "parent": 106, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 6}}, {"id": 108, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_TARNAME", "parent": 106, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 32}}, {"id": 109, "type": "#endif", "text": "#endif", "parent": 99, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 110, "type": "preproc_ifdef", "text": "#ifdef CEAP_ORIG_PACKAGE_VERSION\n#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n#undef CEAP_ORIG_PACKAGE_VERSION\n#endif", "parent": 0, "children": [111, 112, 113, 117, 120], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 46, "column": 6}}, {"id": 111, "type": "#ifdef", "text": "#ifdef", "parent": 110, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}, {"id": 112, "type": "identifier", "text": "CEAP_ORIG_PACKAGE_VERSION", "parent": 110, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 32}}, {"id": 113, "type": "preproc_def", "text": "#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n", "parent": 110, "children": [114, 115, 116], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 114, "type": "#define", "text": "#define", "parent": 113, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 115, "type": "identifier", "text": "PACKAGE_VERSION", "parent": 113, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 23}}, {"id": 116, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_VERSION", "parent": 113, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 49}}, {"id": 117, "type": "preproc_call", "text": "#undef CEAP_ORIG_PACKAGE_VERSION\n", "parent": 110, "children": [118, 119], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 118, "type": "preproc_directive", "text": "#undef", "parent": 117, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 119, "type": "preproc_arg", "text": "CEAP_ORIG_PACKAGE_VERSION", "parent": 117, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 32}}, {"id": 120, "type": "#endif", "text": "#endif", "parent": 110, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 6}}, {"id": 121, "type": "preproc_ifdef", "text": "#ifdef CEAP_ORIG_VERSION\n#define VERSION CEAP_ORIG_VERSION\n#undef CEAP_ORIG_VERSION\n#endif", "parent": 0, "children": [122, 123, 124, 128, 131], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 122, "type": "#ifdef", "text": "#ifdef", "parent": 121, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 123, "type": "identifier", "text": "CEAP_ORIG_VERSION", "parent": 121, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 24}}, {"id": 124, "type": "preproc_def", "text": "#define VERSION CEAP_ORIG_VERSION\n", "parent": 121, "children": [125, 126, 127], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 125, "type": "#define", "text": "#define", "parent": 124, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 126, "type": "identifier", "text": "VERSION", "parent": 124, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 15}}, {"id": 127, "type": "preproc_arg", "text": "CEAP_ORIG_VERSION", "parent": 124, "children": [], "start_point": {"row": 48, "column": 16}, "end_point": {"row": 48, "column": 33}}, {"id": 128, "type": "preproc_call", "text": "#undef CEAP_ORIG_VERSION\n", "parent": 121, "children": [129, 130], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 129, "type": "preproc_directive", "text": "#undef", "parent": 128, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 130, "type": "preproc_arg", "text": "CEAP_ORIG_VERSION", "parent": 128, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 24}}, {"id": 131, "type": "#endif", "text": "#endif", "parent": 121, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 132, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 15, 22, 29, 36, 43, 50, 55, 56, 57, 60, 65, 66, 67, 68, 71, 76, 77, 78, 79, 82, 87, 88, 89, 90, 93, 98, 99, 100, 101, 104, 109, 110, 111, 112, 115, 120, 121, 122, 123, 126, 131, 132], "returns": [], "exceptions": []}, "expressions": {"calls": [10, 17, 24, 31, 38, 45, 52, 62, 73, 84, 95, 106, 117, 128], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n * $Id: postconfig.h,v 1.1 2006-04-07 03:06:19 kensaku Exp $\n */\n\n#ifndef _CEAP_FIXCONFIG_H\n#define _CEAP_FIXCONFIG_H\n\n#define CEAP_PACKAGE PACKAGE\n#undef PACKAGE\n#define CEAP_PACKAGE_BUGREPORT PACKAGE_BUGREPORT\n#undef PACKAGE_BUGREPORT\n#define CEAP_PACKAGE_NAME PACKAGE_NAME\n#undef PACKAGE_NAME\n#define CEAP_PACKAGE_STRING PACKAGE_STRING\n#undef PACKAGE_STRING\n#define CEAP_PACKAGE_TARNAME PACKAGE_TARNAME\n#undef PACKAGE_TARNAME\n#define CEAP_PACKAGE_VERSION PACKAGE_VERSION\n#undef PACKAGE_VERSION\n#define CEAP_VERSION VERSION\n#undef VERSION\n\n/* restore original confdefs macroes */\n#ifdef CEAP_ORIG_PACKAGE\n#define PACKAGE CEAP_ORIG_PACKAGE\n#undef CEAP_ORIG_PACKAGE\n#endif\n#ifdef CEAP_ORIG_PACKAGE_BUGREPORT\n#define PACKAGE_BUGREPORT CEAP_ORIG_PACKAGE_BUGREPORT\n#undef CEAP_ORIG_PACKAGE_BUGREPORT\n#endif\n#ifdef CEAP_ORIG_PACKAGE_NAME\n#define PACKAGE_NAME CEAP_ORIG_PACKAGE_NAME\n#undef CEAP_ORIG_PACKAGE_NAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_STRING\n#define PACKAGE_STRING CEAP_ORIG_PACKAGE_STRING\n#undef CEAP_ORIG_PACKAGE_STRING\n#endif\n#ifdef CEAP_ORIG_PACKAGE_TARNAME\n#define PACKAGE_TARNAME CEAP_ORIG_PACKAGE_TARNAME\n#undef CEAP_ORIG_PACKAGE_TARNAME\n#endif\n#ifdef CEAP_ORIG_PACKAGE_VERSION\n#define PACKAGE_VERSION CEAP_ORIG_PACKAGE_VERSION\n#undef CEAP_ORIG_PACKAGE_VERSION\n#endif\n#ifdef CEAP_ORIG_VERSION\n#define VERSION CEAP_ORIG_VERSION\n#undef CEAP_ORIG_VERSION\n#endif\n\n#endif /* !_CEAP_FIXCONFIG_H */\n"}
80,878
c
#include <fc_api.h> #include "history.h" #include "gemini.h" #include "page.h" #define SAMS_ADDR 0xF000 #define HISTORY ((struct List*) (SAMS_ADDR)) void map_history() { fc_sams_map_page(state.history_id, SAMS_ADDR); } void FC_SAMS(0,init_history()) { state.history_id = fc_sams_alloc_pages(1); map_history(); fc_strset((char*)SAMS_ADDR, 0, 0x1000); fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF)); } void FC_SAMS(0,history_push(char* link)) { // page lines and history are banked into same address space // copy it to stack temporarily char tmp[256]; fc_strcpy(tmp, link); // now bring in the history page map_history(); int len = fc_strlen(tmp); fc_list_push(HISTORY, tmp, len + 1); state.history_count++; } // dst must not be in top address bank void FC_SAMS(0,history_pop(char* dst)) { if (state.history_count > 0) { map_history(); fc_strset(dst, 0, 256); fc_list_pop(HISTORY, dst, 256); state.history_count--; } else { fc_strcpy(dst, "history:"); } } // dst must not be in top address bank int FC_SAMS(0,history_get(char* dst, int i)) { map_history(); struct ListEntry* entry = fc_list_get(HISTORY, i); if (entry == 0) { *dst = 0; return 0; } fc_strncpy(dst, entry->data, entry->length); return entry->length; } void FC_SAMS(0,show_history()) { char link[4] = "=> "; char nl[2] = "\n"; char line[256]; fc_strset(line, 0, 256); fc_strcpy(line, "# Virgil99 Browser History\n\n"); page_from_buf(line, fc_strlen(line)); int link_idx = 0; int len = 1; while(len > 0) { fc_strset(line, 0, 256); len = history_get(line, link_idx++); if (len > 0) { page_from_buf(link, 3); page_from_buf(line, len); page_from_buf(nl, 1); } } }
25.57
67
(translation_unit) "#include <fc_api.h>\n#include "history.h"\n#include "gemini.h"\n#include "page.h"\n\n#define SAMS_ADDR 0xF000\n#define HISTORY ((struct List*) (SAMS_ADDR))\n\nvoid map_history() {\n fc_sams_map_page(state.history_id, SAMS_ADDR);\n}\n\nvoid FC_SAMS(0,init_history()) {\n state.history_id = fc_sams_alloc_pages(1);\n map_history();\n fc_strset((char*)SAMS_ADDR, 0, 0x1000); \n fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF));\n}\n\nvoid FC_SAMS(0,history_push(char* link)) {\n // page lines and history are banked into same address space\n // copy it to stack temporarily\n char tmp[256];\n fc_strcpy(tmp, link);\n // now bring in the history page\n map_history();\n\n int len = fc_strlen(tmp);\n fc_list_push(HISTORY, tmp, len + 1);\n state.history_count++;\n}\n\n// dst must not be in top address bank\nvoid FC_SAMS(0,history_pop(char* dst)) {\n if (state.history_count > 0) {\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n } else {\n fc_strcpy(dst, "history:");\n }\n}\n\n// dst must not be in top address bank\nint FC_SAMS(0,history_get(char* dst, int i)) {\n map_history();\n struct ListEntry* entry = fc_list_get(HISTORY, i);\n if (entry == 0) {\n *dst = 0;\n return 0;\n }\n fc_strncpy(dst, entry->data, entry->length);\n return entry->length;\n}\n\nvoid FC_SAMS(0,show_history()) {\n char link[4] = "=> ";\n char nl[2] = "\n";\n char line[256];\n fc_strset(line, 0, 256);\n fc_strcpy(line, "# Virgil99 Browser History\n\n");\n page_from_buf(line, fc_strlen(line));\n int link_idx = 0;\n int len = 1;\n while(len > 0) {\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }\n}\n\n" (preproc_include) "#include <fc_api.h>\n" (#include) "#include" (system_lib_string) "<fc_api.h>" (preproc_include) "#include "history.h"\n" (#include) "#include" (string_literal) ""history.h"" (") """ (string_content) "history.h" (") """ (preproc_include) "#include "gemini.h"\n" (#include) "#include" (string_literal) ""gemini.h"" (") """ (string_content) "gemini.h" (") """ (preproc_include) "#include "page.h"\n" (#include) "#include" (string_literal) ""page.h"" (") """ (string_content) "page.h" (") """ (preproc_def) "#define SAMS_ADDR 0xF000\n" (#define) "#define" (identifier) "SAMS_ADDR" (preproc_arg) "0xF000" (preproc_def) "#define HISTORY ((struct List*) (SAMS_ADDR))\n" (#define) "#define" (identifier) "HISTORY" (preproc_arg) "((struct List*) (SAMS_ADDR))" (function_definition) "void map_history() {\n fc_sams_map_page(state.history_id, SAMS_ADDR);\n}" (primitive_type) "void" (function_declarator) "map_history()" (identifier) "map_history" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n fc_sams_map_page(state.history_id, SAMS_ADDR);\n}" ({) "{" (expression_statement) "fc_sams_map_page(state.history_id, SAMS_ADDR);" (call_expression) "fc_sams_map_page(state.history_id, SAMS_ADDR)" (identifier) "fc_sams_map_page" (argument_list) "(state.history_id, SAMS_ADDR)" (() "(" (field_expression) "state.history_id" (identifier) "state" (.) "." (field_identifier) "history_id" (,) "," (identifier) "SAMS_ADDR" ()) ")" (;) ";" (}) "}" (function_definition) "void FC_SAMS(0,init_history()) {\n state.history_id = fc_sams_alloc_pages(1);\n map_history();\n fc_strset((char*)SAMS_ADDR, 0, 0x1000); \n fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF));\n}" (primitive_type) "void" (function_declarator) "FC_SAMS(0,init_history())" (identifier) "FC_SAMS" (parameter_list) "(0,init_history())" (() "(" (ERROR) "0," (number_literal) "0" (,) "," (parameter_declaration) "init_history()" (type_identifier) "init_history" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n state.history_id = fc_sams_alloc_pages(1);\n map_history();\n fc_strset((char*)SAMS_ADDR, 0, 0x1000); \n fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF));\n}" ({) "{" (expression_statement) "state.history_id = fc_sams_alloc_pages(1);" (assignment_expression) "state.history_id = fc_sams_alloc_pages(1)" (field_expression) "state.history_id" (identifier) "state" (.) "." (field_identifier) "history_id" (=) "=" (call_expression) "fc_sams_alloc_pages(1)" (identifier) "fc_sams_alloc_pages" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "map_history();" (call_expression) "map_history()" (identifier) "map_history" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "fc_strset((char*)SAMS_ADDR, 0, 0x1000);" (call_expression) "fc_strset((char*)SAMS_ADDR, 0, 0x1000)" (identifier) "fc_strset" (argument_list) "((char*)SAMS_ADDR, 0, 0x1000)" (() "(" (cast_expression) "(char*)SAMS_ADDR" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "SAMS_ADDR" (,) "," (number_literal) "0" (,) "," (number_literal) "0x1000" ()) ")" (;) ";" (expression_statement) "fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF));" (call_expression) "fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF))" (identifier) "fc_list_init" (argument_list) "(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF))" (() "(" (identifier) "HISTORY" (,) "," (cast_expression) "(char*)(SAMS_ADDR + 6)" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(SAMS_ADDR + 6)" (() "(" (binary_expression) "SAMS_ADDR + 6" (identifier) "SAMS_ADDR" (+) "+" (number_literal) "6" ()) ")" (,) "," (cast_expression) "(char*)(SAMS_ADDR + 0x0FFF)" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(SAMS_ADDR + 0x0FFF)" (() "(" (binary_expression) "SAMS_ADDR + 0x0FFF" (identifier) "SAMS_ADDR" (+) "+" (number_literal) "0x0FFF" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "void FC_SAMS(0,history_push(char* link)) {\n // page lines and history are banked into same address space\n // copy it to stack temporarily\n char tmp[256];\n fc_strcpy(tmp, link);\n // now bring in the history page\n map_history();\n\n int len = fc_strlen(tmp);\n fc_list_push(HISTORY, tmp, len + 1);\n state.history_count++;\n}" (primitive_type) "void" (function_declarator) "FC_SAMS(0,history_push(char* link))" (identifier) "FC_SAMS" (parameter_list) "(0,history_push(char* link))" (() "(" (ERROR) "0," (number_literal) "0" (,) "," (parameter_declaration) "history_push(char* link)" (type_identifier) "history_push" (abstract_function_declarator) "(char* link)" (parameter_list) "(char* link)" (() "(" (parameter_declaration) "char* link" (primitive_type) "char" (pointer_declarator) "* link" (*) "*" (identifier) "link" ()) ")" ()) ")" (compound_statement) "{\n // page lines and history are banked into same address space\n // copy it to stack temporarily\n char tmp[256];\n fc_strcpy(tmp, link);\n // now bring in the history page\n map_history();\n\n int len = fc_strlen(tmp);\n fc_list_push(HISTORY, tmp, len + 1);\n state.history_count++;\n}" ({) "{" (comment) "// page lines and history are banked into same address space" (comment) "// copy it to stack temporarily" (declaration) "char tmp[256];" (primitive_type) "char" (array_declarator) "tmp[256]" (identifier) "tmp" ([) "[" (number_literal) "256" (]) "]" (;) ";" (expression_statement) "fc_strcpy(tmp, link);" (call_expression) "fc_strcpy(tmp, link)" (identifier) "fc_strcpy" (argument_list) "(tmp, link)" (() "(" (identifier) "tmp" (,) "," (identifier) "link" ()) ")" (;) ";" (comment) "// now bring in the history page" (expression_statement) "map_history();" (call_expression) "map_history()" (identifier) "map_history" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int len = fc_strlen(tmp);" (primitive_type) "int" (init_declarator) "len = fc_strlen(tmp)" (identifier) "len" (=) "=" (call_expression) "fc_strlen(tmp)" (identifier) "fc_strlen" (argument_list) "(tmp)" (() "(" (identifier) "tmp" ()) ")" (;) ";" (expression_statement) "fc_list_push(HISTORY, tmp, len + 1);" (call_expression) "fc_list_push(HISTORY, tmp, len + 1)" (identifier) "fc_list_push" (argument_list) "(HISTORY, tmp, len + 1)" (() "(" (identifier) "HISTORY" (,) "," (identifier) "tmp" (,) "," (binary_expression) "len + 1" (identifier) "len" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "state.history_count++;" (update_expression) "state.history_count++" (field_expression) "state.history_count" (identifier) "state" (.) "." (field_identifier) "history_count" (++) "++" (;) ";" (}) "}" (comment) "// dst must not be in top address bank" (function_definition) "void FC_SAMS(0,history_pop(char* dst)) {\n if (state.history_count > 0) {\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n } else {\n fc_strcpy(dst, "history:");\n }\n}" (primitive_type) "void" (function_declarator) "FC_SAMS(0,history_pop(char* dst))" (identifier) "FC_SAMS" (parameter_list) "(0,history_pop(char* dst))" (() "(" (ERROR) "0," (number_literal) "0" (,) "," (parameter_declaration) "history_pop(char* dst)" (type_identifier) "history_pop" (abstract_function_declarator) "(char* dst)" (parameter_list) "(char* dst)" (() "(" (parameter_declaration) "char* dst" (primitive_type) "char" (pointer_declarator) "* dst" (*) "*" (identifier) "dst" ()) ")" ()) ")" (compound_statement) "{\n if (state.history_count > 0) {\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n } else {\n fc_strcpy(dst, "history:");\n }\n}" ({) "{" (if_statement) "if (state.history_count > 0) {\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n } else {\n fc_strcpy(dst, "history:");\n }" (if) "if" (parenthesized_expression) "(state.history_count > 0)" (() "(" (binary_expression) "state.history_count > 0" (field_expression) "state.history_count" (identifier) "state" (.) "." (field_identifier) "history_count" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n }" ({) "{" (expression_statement) "map_history();" (call_expression) "map_history()" (identifier) "map_history" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "fc_strset(dst, 0, 256);" (call_expression) "fc_strset(dst, 0, 256)" (identifier) "fc_strset" (argument_list) "(dst, 0, 256)" (() "(" (identifier) "dst" (,) "," (number_literal) "0" (,) "," (number_literal) "256" ()) ")" (;) ";" (expression_statement) "fc_list_pop(HISTORY, dst, 256);" (call_expression) "fc_list_pop(HISTORY, dst, 256)" (identifier) "fc_list_pop" (argument_list) "(HISTORY, dst, 256)" (() "(" (identifier) "HISTORY" (,) "," (identifier) "dst" (,) "," (number_literal) "256" ()) ")" (;) ";" (expression_statement) "state.history_count--;" (update_expression) "state.history_count--" (field_expression) "state.history_count" (identifier) "state" (.) "." (field_identifier) "history_count" (--) "--" (;) ";" (}) "}" (else_clause) "else {\n fc_strcpy(dst, "history:");\n }" (else) "else" (compound_statement) "{\n fc_strcpy(dst, "history:");\n }" ({) "{" (expression_statement) "fc_strcpy(dst, "history:");" (call_expression) "fc_strcpy(dst, "history:")" (identifier) "fc_strcpy" (argument_list) "(dst, "history:")" (() "(" (identifier) "dst" (,) "," (string_literal) ""history:"" (") """ (string_content) "history:" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// dst must not be in top address bank" (function_definition) "int FC_SAMS(0,history_get(char* dst, int i)) {\n map_history();\n struct ListEntry* entry = fc_list_get(HISTORY, i);\n if (entry == 0) {\n *dst = 0;\n return 0;\n }\n fc_strncpy(dst, entry->data, entry->length);\n return entry->length;\n}" (primitive_type) "int" (function_declarator) "FC_SAMS(0,history_get(char* dst, int i))" (identifier) "FC_SAMS" (parameter_list) "(0,history_get(char* dst, int i))" (() "(" (ERROR) "0," (number_literal) "0" (,) "," (parameter_declaration) "history_get(char* dst, int i)" (type_identifier) "history_get" (abstract_function_declarator) "(char* dst, int i)" (parameter_list) "(char* dst, int i)" (() "(" (parameter_declaration) "char* dst" (primitive_type) "char" (pointer_declarator) "* dst" (*) "*" (identifier) "dst" (,) "," (parameter_declaration) "int i" (primitive_type) "int" (identifier) "i" ()) ")" ()) ")" (compound_statement) "{\n map_history();\n struct ListEntry* entry = fc_list_get(HISTORY, i);\n if (entry == 0) {\n *dst = 0;\n return 0;\n }\n fc_strncpy(dst, entry->data, entry->length);\n return entry->length;\n}" ({) "{" (expression_statement) "map_history();" (call_expression) "map_history()" (identifier) "map_history" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "struct ListEntry* entry = fc_list_get(HISTORY, i);" (struct_specifier) "struct ListEntry" (struct) "struct" (type_identifier) "ListEntry" (init_declarator) "* entry = fc_list_get(HISTORY, i)" (pointer_declarator) "* entry" (*) "*" (identifier) "entry" (=) "=" (call_expression) "fc_list_get(HISTORY, i)" (identifier) "fc_list_get" (argument_list) "(HISTORY, i)" (() "(" (identifier) "HISTORY" (,) "," (identifier) "i" ()) ")" (;) ";" (if_statement) "if (entry == 0) {\n *dst = 0;\n return 0;\n }" (if) "if" (parenthesized_expression) "(entry == 0)" (() "(" (binary_expression) "entry == 0" (identifier) "entry" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n *dst = 0;\n return 0;\n }" ({) "{" (expression_statement) "*dst = 0;" (assignment_expression) "*dst = 0" (pointer_expression) "*dst" (*) "*" (identifier) "dst" (=) "=" (number_literal) "0" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "fc_strncpy(dst, entry->data, entry->length);" (call_expression) "fc_strncpy(dst, entry->data, entry->length)" (identifier) "fc_strncpy" (argument_list) "(dst, entry->data, entry->length)" (() "(" (identifier) "dst" (,) "," (field_expression) "entry->data" (identifier) "entry" (->) "->" (field_identifier) "data" (,) "," (field_expression) "entry->length" (identifier) "entry" (->) "->" (field_identifier) "length" ()) ")" (;) ";" (return_statement) "return entry->length;" (return) "return" (field_expression) "entry->length" (identifier) "entry" (->) "->" (field_identifier) "length" (;) ";" (}) "}" (function_definition) "void FC_SAMS(0,show_history()) {\n char link[4] = "=> ";\n char nl[2] = "\n";\n char line[256];\n fc_strset(line, 0, 256);\n fc_strcpy(line, "# Virgil99 Browser History\n\n");\n page_from_buf(line, fc_strlen(line));\n int link_idx = 0;\n int len = 1;\n while(len > 0) {\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }\n}" (primitive_type) "void" (function_declarator) "FC_SAMS(0,show_history())" (identifier) "FC_SAMS" (parameter_list) "(0,show_history())" (() "(" (ERROR) "0," (number_literal) "0" (,) "," (parameter_declaration) "show_history()" (type_identifier) "show_history" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{\n char link[4] = "=> ";\n char nl[2] = "\n";\n char line[256];\n fc_strset(line, 0, 256);\n fc_strcpy(line, "# Virgil99 Browser History\n\n");\n page_from_buf(line, fc_strlen(line));\n int link_idx = 0;\n int len = 1;\n while(len > 0) {\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }\n}" ({) "{" (declaration) "char link[4] = "=> ";" (primitive_type) "char" (init_declarator) "link[4] = "=> "" (array_declarator) "link[4]" (identifier) "link" ([) "[" (number_literal) "4" (]) "]" (=) "=" (string_literal) ""=> "" (") """ (string_content) "=> " (") """ (;) ";" (declaration) "char nl[2] = "\n";" (primitive_type) "char" (init_declarator) "nl[2] = "\n"" (array_declarator) "nl[2]" (identifier) "nl" ([) "[" (number_literal) "2" (]) "]" (=) "=" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ (;) ";" (declaration) "char line[256];" (primitive_type) "char" (array_declarator) "line[256]" (identifier) "line" ([) "[" (number_literal) "256" (]) "]" (;) ";" (expression_statement) "fc_strset(line, 0, 256);" (call_expression) "fc_strset(line, 0, 256)" (identifier) "fc_strset" (argument_list) "(line, 0, 256)" (() "(" (identifier) "line" (,) "," (number_literal) "0" (,) "," (number_literal) "256" ()) ")" (;) ";" (expression_statement) "fc_strcpy(line, "# Virgil99 Browser History\n\n");" (call_expression) "fc_strcpy(line, "# Virgil99 Browser History\n\n")" (identifier) "fc_strcpy" (argument_list) "(line, "# Virgil99 Browser History\n\n")" (() "(" (identifier) "line" (,) "," (string_literal) ""# Virgil99 Browser History\n\n"" (") """ (string_content) "# Virgil99 Browser History" (escape_sequence) "\n" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "page_from_buf(line, fc_strlen(line));" (call_expression) "page_from_buf(line, fc_strlen(line))" (identifier) "page_from_buf" (argument_list) "(line, fc_strlen(line))" (() "(" (identifier) "line" (,) "," (call_expression) "fc_strlen(line)" (identifier) "fc_strlen" (argument_list) "(line)" (() "(" (identifier) "line" ()) ")" ()) ")" (;) ";" (declaration) "int link_idx = 0;" (primitive_type) "int" (init_declarator) "link_idx = 0" (identifier) "link_idx" (=) "=" (number_literal) "0" (;) ";" (declaration) "int len = 1;" (primitive_type) "int" (init_declarator) "len = 1" (identifier) "len" (=) "=" (number_literal) "1" (;) ";" (while_statement) "while(len > 0) {\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }" (while) "while" (parenthesized_expression) "(len > 0)" (() "(" (binary_expression) "len > 0" (identifier) "len" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }" ({) "{" (expression_statement) "fc_strset(line, 0, 256);" (call_expression) "fc_strset(line, 0, 256)" (identifier) "fc_strset" (argument_list) "(line, 0, 256)" (() "(" (identifier) "line" (,) "," (number_literal) "0" (,) "," (number_literal) "256" ()) ")" (;) ";" (expression_statement) "len = history_get(line, link_idx++);" (assignment_expression) "len = history_get(line, link_idx++)" (identifier) "len" (=) "=" (call_expression) "history_get(line, link_idx++)" (identifier) "history_get" (argument_list) "(line, link_idx++)" (() "(" (identifier) "line" (,) "," (update_expression) "link_idx++" (identifier) "link_idx" (++) "++" ()) ")" (;) ";" (if_statement) "if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }" (if) "if" (parenthesized_expression) "(len > 0)" (() "(" (binary_expression) "len > 0" (identifier) "len" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }" ({) "{" (expression_statement) "page_from_buf(link, 3);" (call_expression) "page_from_buf(link, 3)" (identifier) "page_from_buf" (argument_list) "(link, 3)" (() "(" (identifier) "link" (,) "," (number_literal) "3" ()) ")" (;) ";" (expression_statement) "page_from_buf(line, len);" (call_expression) "page_from_buf(line, len)" (identifier) "page_from_buf" (argument_list) "(line, len)" (() "(" (identifier) "line" (,) "," (identifier) "len" ()) ")" (;) ";" (expression_statement) "page_from_buf(nl, 1);" (call_expression) "page_from_buf(nl, 1)" (identifier) "page_from_buf" (argument_list) "(nl, 1)" (() "(" (identifier) "nl" (,) "," (number_literal) "1" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}"
629
5
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 25.57, "nodes": 365, "errors": 0, "source_hash": "862e444eabfb83d54ba244f69017f74e31ab79d1ae7ba241b5a57486b03627e6", "categorized_nodes": 247}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <fc_api.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": "<fc_api.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include \"history.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": "\"history.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"gemini.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": "\"gemini.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"page.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": "\"page.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "preproc_def", "text": "#define SAMS_ADDR 0xF000\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 14, "type": "identifier", "text": "SAMS_ADDR", "parent": 12, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "preproc_arg", "text": "0xF000", "parent": 12, "children": [], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 24}}, {"id": 16, "type": "preproc_def", "text": "#define HISTORY ((struct List*) (SAMS_ADDR))\n", "parent": null, "children": [17, 18, 19], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 17, "type": "#define", "text": "#define", "parent": 16, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 18, "type": "identifier", "text": "HISTORY", "parent": 16, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 15}}, {"id": 19, "type": "preproc_arg", "text": "((struct List*) (SAMS_ADDR))", "parent": 16, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 44}}, {"id": 20, "type": "function_definition", "text": "void map_history() {\n fc_sams_map_page(state.history_id, SAMS_ADDR);\n}", "parent": null, "children": [21, 22], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 22, "type": "function_declarator", "text": "map_history()", "parent": 20, "children": [23, 24], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 18}}, {"id": 23, "type": "identifier", "text": "map_history", "parent": 22, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 16}}, {"id": 24, "type": "parameter_list", "text": "()", "parent": 22, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 18}}, {"id": 25, "type": "call_expression", "text": "fc_sams_map_page(state.history_id, SAMS_ADDR)", "parent": 20, "children": [26, 27], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 47}}, {"id": 26, "type": "identifier", "text": "fc_sams_map_page", "parent": 25, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 18}}, {"id": 27, "type": "argument_list", "text": "(state.history_id, SAMS_ADDR)", "parent": 25, "children": [28, 31], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 47}}, {"id": 28, "type": "field_expression", "text": "state.history_id", "parent": 27, "children": [29, 30], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 35}}, {"id": 29, "type": "identifier", "text": "state", "parent": 28, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 24}}, {"id": 30, "type": "field_identifier", "text": "history_id", "parent": 28, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 35}}, {"id": 31, "type": "identifier", "text": "SAMS_ADDR", "parent": 27, "children": [], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 46}}, {"id": 32, "type": "function_definition", "text": "void FC_SAMS(0,init_history()) {\n state.history_id = fc_sams_alloc_pages(1);\n map_history();\n fc_strset((char*)SAMS_ADDR, 0, 0x1000); \n fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF));\n}", "parent": null, "children": [33, 34], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 32, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 34, "type": "function_declarator", "text": "FC_SAMS(0,init_history())", "parent": 32, "children": [35, 36], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 30}}, {"id": 35, "type": "identifier", "text": "FC_SAMS", "parent": 34, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 12}}, {"id": 36, "type": "parameter_list", "text": "(0,init_history())", "parent": 34, "children": [37, 39], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 30}}, {"id": 37, "type": "ERROR", "text": "0,", "parent": 36, "children": [38], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 15}}, {"id": 38, "type": "number_literal", "text": "0", "parent": 37, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 14}}, {"id": 39, "type": "parameter_declaration", "text": "init_history()", "parent": 36, "children": [40, 41], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 29}}, {"id": 40, "type": "type_identifier", "text": "init_history", "parent": 39, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 27}}, {"id": 41, "type": "abstract_function_declarator", "text": "()", "parent": 39, "children": [42], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 29}}, {"id": 42, "type": "parameter_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 29}}, {"id": 43, "type": "assignment_expression", "text": "state.history_id = fc_sams_alloc_pages(1)", "parent": 32, "children": [44, 47, 48], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 43}}, {"id": 44, "type": "field_expression", "text": "state.history_id", "parent": 43, "children": [45, 46], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 18}}, {"id": 45, "type": "identifier", "text": "state", "parent": 44, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 7}}, {"id": 46, "type": "field_identifier", "text": "history_id", "parent": 44, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 18}}, {"id": 47, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 20}}, {"id": 48, "type": "call_expression", "text": "fc_sams_alloc_pages(1)", "parent": 43, "children": [49, 50], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 43}}, {"id": 49, "type": "identifier", "text": "fc_sams_alloc_pages", "parent": 48, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 40}}, {"id": 50, "type": "argument_list", "text": "(1)", "parent": 48, "children": [51], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 43}}, {"id": 51, "type": "number_literal", "text": "1", "parent": 50, "children": [], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 42}}, {"id": 52, "type": "call_expression", "text": "map_history()", "parent": 32, "children": [53, 54], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 15}}, {"id": 53, "type": "identifier", "text": "map_history", "parent": 52, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 13}}, {"id": 54, "type": "argument_list", "text": "()", "parent": 52, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 15}}, {"id": 55, "type": "call_expression", "text": "fc_strset((char*)SAMS_ADDR, 0, 0x1000)", "parent": 32, "children": [56, 57], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 40}}, {"id": 56, "type": "identifier", "text": "fc_strset", "parent": 55, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 11}}, {"id": 57, "type": "argument_list", "text": "((char*)SAMS_ADDR, 0, 0x1000)", "parent": 55, "children": [58, 64, 65], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 40}}, {"id": 58, "type": "cast_expression", "text": "(char*)SAMS_ADDR", "parent": 57, "children": [59, 63], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 28}}, {"id": 59, "type": "type_descriptor", "text": "char*", "parent": 58, "children": [60, 61], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 18}}, {"id": 60, "type": "primitive_type", "text": "char", "parent": 59, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 17}}, {"id": 61, "type": "abstract_pointer_declarator", "text": "*", "parent": 59, "children": [62], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 18}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 18}}, {"id": 63, "type": "identifier", "text": "SAMS_ADDR", "parent": 58, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 28}}, {"id": 64, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 31}}, {"id": 65, "type": "number_literal", "text": "0x1000", "parent": 57, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 39}}, {"id": 66, "type": "call_expression", "text": "fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF))", "parent": 32, "children": [67, 68], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 76}}, {"id": 67, "type": "identifier", "text": "fc_list_init", "parent": 66, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 14}}, {"id": 68, "type": "argument_list", "text": "(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF))", "parent": 66, "children": [69, 70, 80], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 76}}, {"id": 69, "type": "identifier", "text": "HISTORY", "parent": 68, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 22}}, {"id": 70, "type": "cast_expression", "text": "(char*)(SAMS_ADDR + 6)", "parent": 68, "children": [71, 75], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 46}}, {"id": 71, "type": "type_descriptor", "text": "char*", "parent": 70, "children": [72, 73], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 30}}, {"id": 72, "type": "primitive_type", "text": "char", "parent": 71, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 29}}, {"id": 73, "type": "abstract_pointer_declarator", "text": "*", "parent": 71, "children": [74], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 30}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 30}}, {"id": 75, "type": "parenthesized_expression", "text": "(SAMS_ADDR + 6)", "parent": 70, "children": [76], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 46}}, {"id": 76, "type": "binary_expression", "text": "SAMS_ADDR + 6", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 45}}, {"id": 77, "type": "identifier", "text": "SAMS_ADDR", "parent": 76, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 41}}, {"id": 78, "type": "+", "text": "+", "parent": 76, "children": [], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 43}}, {"id": 79, "type": "number_literal", "text": "6", "parent": 76, "children": [], "start_point": {"row": 16, "column": 44}, "end_point": {"row": 16, "column": 45}}, {"id": 80, "type": "cast_expression", "text": "(char*)(SAMS_ADDR + 0x0FFF)", "parent": 68, "children": [81, 85], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 75}}, {"id": 81, "type": "type_descriptor", "text": "char*", "parent": 80, "children": [82, 83], "start_point": {"row": 16, "column": 49}, "end_point": {"row": 16, "column": 54}}, {"id": 82, "type": "primitive_type", "text": "char", "parent": 81, "children": [], "start_point": {"row": 16, "column": 49}, "end_point": {"row": 16, "column": 53}}, {"id": 83, "type": "abstract_pointer_declarator", "text": "*", "parent": 81, "children": [84], "start_point": {"row": 16, "column": 53}, "end_point": {"row": 16, "column": 54}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 16, "column": 53}, "end_point": {"row": 16, "column": 54}}, {"id": 85, "type": "parenthesized_expression", "text": "(SAMS_ADDR + 0x0FFF)", "parent": 80, "children": [86], "start_point": {"row": 16, "column": 55}, "end_point": {"row": 16, "column": 75}}, {"id": 86, "type": "binary_expression", "text": "SAMS_ADDR + 0x0FFF", "parent": 85, "children": [87, 88, 89], "start_point": {"row": 16, "column": 56}, "end_point": {"row": 16, "column": 74}}, {"id": 87, "type": "identifier", "text": "SAMS_ADDR", "parent": 86, "children": [], "start_point": {"row": 16, "column": 56}, "end_point": {"row": 16, "column": 65}}, {"id": 88, "type": "+", "text": "+", "parent": 86, "children": [], "start_point": {"row": 16, "column": 66}, "end_point": {"row": 16, "column": 67}}, {"id": 89, "type": "number_literal", "text": "0x0FFF", "parent": 86, "children": [], "start_point": {"row": 16, "column": 68}, "end_point": {"row": 16, "column": 74}}, {"id": 90, "type": "function_definition", "text": "void FC_SAMS(0,history_push(char* link)) {\n // page lines and history are banked into same address space\n // copy it to stack temporarily\n char tmp[256];\n fc_strcpy(tmp, link);\n // now bring in the history page\n map_history();\n\n int len = fc_strlen(tmp);\n fc_list_push(HISTORY, tmp, len + 1);\n state.history_count++;\n}", "parent": null, "children": [91, 92], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 92, "type": "function_declarator", "text": "FC_SAMS(0,history_push(char* link))", "parent": 90, "children": [93, 94], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 40}}, {"id": 93, "type": "identifier", "text": "FC_SAMS", "parent": 92, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 12}}, {"id": 94, "type": "parameter_list", "text": "(0,history_push(char* link))", "parent": 92, "children": [95, 97], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 40}}, {"id": 95, "type": "ERROR", "text": "0,", "parent": 94, "children": [96], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 15}}, {"id": 96, "type": "number_literal", "text": "0", "parent": 95, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 97, "type": "parameter_declaration", "text": "history_push(char* link)", "parent": 94, "children": [98, 99], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 39}}, {"id": 98, "type": "type_identifier", "text": "history_push", "parent": 97, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 27}}, {"id": 99, "type": "abstract_function_declarator", "text": "(char* link)", "parent": 97, "children": [100], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 39}}, {"id": 100, "type": "parameter_list", "text": "(char* link)", "parent": 99, "children": [101], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 39}}, {"id": 101, "type": "parameter_declaration", "text": "char* link", "parent": 100, "children": [102, 103], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 38}}, {"id": 102, "type": "primitive_type", "text": "char", "parent": 101, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 32}}, {"id": 103, "type": "pointer_declarator", "text": "* link", "parent": 101, "children": [104, 105], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 38}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 33}}, {"id": 105, "type": "identifier", "text": "link", "parent": 103, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 38}}, {"id": 106, "type": "declaration", "text": "char tmp[256];", "parent": 90, "children": [107, 108], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 16}}, {"id": 107, "type": "primitive_type", "text": "char", "parent": 106, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 108, "type": "array_declarator", "text": "tmp[256]", "parent": 106, "children": [109, 110], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 15}}, {"id": 109, "type": "identifier", "text": "tmp", "parent": 108, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 10}}, {"id": 110, "type": "number_literal", "text": "256", "parent": 108, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 14}}, {"id": 111, "type": "call_expression", "text": "fc_strcpy(tmp, link)", "parent": 90, "children": [112, 113], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 22}}, {"id": 112, "type": "identifier", "text": "fc_strcpy", "parent": 111, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 11}}, {"id": 113, "type": "argument_list", "text": "(tmp, link)", "parent": 111, "children": [114, 115], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 22}}, {"id": 114, "type": "identifier", "text": "tmp", "parent": 113, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 15}}, {"id": 115, "type": "identifier", "text": "link", "parent": 113, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 21}}, {"id": 116, "type": "call_expression", "text": "map_history()", "parent": 90, "children": [117, 118], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 15}}, {"id": 117, "type": "identifier", "text": "map_history", "parent": 116, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 13}}, {"id": 118, "type": "argument_list", "text": "()", "parent": 116, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 15}}, {"id": 119, "type": "declaration", "text": "int len = fc_strlen(tmp);", "parent": 90, "children": [120, 121], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 27}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 5}}, {"id": 121, "type": "init_declarator", "text": "len = fc_strlen(tmp)", "parent": 119, "children": [122, 123, 124], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 26}}, {"id": 122, "type": "identifier", "text": "len", "parent": 121, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 9}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 11}}, {"id": 124, "type": "call_expression", "text": "fc_strlen(tmp)", "parent": 121, "children": [125, 126], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 26}}, {"id": 125, "type": "identifier", "text": "fc_strlen", "parent": 124, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 21}}, {"id": 126, "type": "argument_list", "text": "(tmp)", "parent": 124, "children": [127], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 26}}, {"id": 127, "type": "identifier", "text": "tmp", "parent": 126, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 25}}, {"id": 128, "type": "call_expression", "text": "fc_list_push(HISTORY, tmp, len + 1)", "parent": 90, "children": [129, 130], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 37}}, {"id": 129, "type": "identifier", "text": "fc_list_push", "parent": 128, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 14}}, {"id": 130, "type": "argument_list", "text": "(HISTORY, tmp, len + 1)", "parent": 128, "children": [131, 132, 133], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 37}}, {"id": 131, "type": "identifier", "text": "HISTORY", "parent": 130, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 22}}, {"id": 132, "type": "identifier", "text": "tmp", "parent": 130, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 27}}, {"id": 133, "type": "binary_expression", "text": "len + 1", "parent": 130, "children": [134, 135, 136], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 36}}, {"id": 134, "type": "identifier", "text": "len", "parent": 133, "children": [], "start_point": {"row": 28, "column": 29}, "end_point": {"row": 28, "column": 32}}, {"id": 135, "type": "+", "text": "+", "parent": 133, "children": [], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 34}}, {"id": 136, "type": "number_literal", "text": "1", "parent": 133, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 36}}, {"id": 137, "type": "update_expression", "text": "state.history_count++", "parent": 90, "children": [138, 141], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 23}}, {"id": 138, "type": "field_expression", "text": "state.history_count", "parent": 137, "children": [139, 140], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 21}}, {"id": 139, "type": "identifier", "text": "state", "parent": 138, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 7}}, {"id": 140, "type": "field_identifier", "text": "history_count", "parent": 138, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 21}}, {"id": 141, "type": "++", "text": "++", "parent": 137, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 23}}, {"id": 142, "type": "function_definition", "text": "void FC_SAMS(0,history_pop(char* dst)) {\n if (state.history_count > 0) {\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n } else {\n fc_strcpy(dst, \"history:\");\n }\n}", "parent": null, "children": [143, 144], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 143, "type": "primitive_type", "text": "void", "parent": 142, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 4}}, {"id": 144, "type": "function_declarator", "text": "FC_SAMS(0,history_pop(char* dst))", "parent": 142, "children": [145, 146], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 38}}, {"id": 145, "type": "identifier", "text": "FC_SAMS", "parent": 144, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 12}}, {"id": 146, "type": "parameter_list", "text": "(0,history_pop(char* dst))", "parent": 144, "children": [147, 149], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 38}}, {"id": 147, "type": "ERROR", "text": "0,", "parent": 146, "children": [148], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 15}}, {"id": 148, "type": "number_literal", "text": "0", "parent": 147, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 14}}, {"id": 149, "type": "parameter_declaration", "text": "history_pop(char* dst)", "parent": 146, "children": [150, 151], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 37}}, {"id": 150, "type": "type_identifier", "text": "history_pop", "parent": 149, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 26}}, {"id": 151, "type": "abstract_function_declarator", "text": "(char* dst)", "parent": 149, "children": [152], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 37}}, {"id": 152, "type": "parameter_list", "text": "(char* dst)", "parent": 151, "children": [153], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 37}}, {"id": 153, "type": "parameter_declaration", "text": "char* dst", "parent": 152, "children": [154, 155], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 36}}, {"id": 154, "type": "primitive_type", "text": "char", "parent": 153, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 31}}, {"id": 155, "type": "pointer_declarator", "text": "* dst", "parent": 153, "children": [156, 157], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 36}}, {"id": 156, "type": "*", "text": "*", "parent": 155, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 157, "type": "identifier", "text": "dst", "parent": 155, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 36}}, {"id": 158, "type": "if_statement", "text": "if (state.history_count > 0) {\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n } else {\n fc_strcpy(dst, \"history:\");\n }", "parent": 142, "children": [159, 186], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 41, "column": 3}}, {"id": 159, "type": "parenthesized_expression", "text": "(state.history_count > 0)", "parent": 158, "children": [160], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 30}}, {"id": 160, "type": "binary_expression", "text": "state.history_count > 0", "parent": 159, "children": [161, 164, 165], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 29}}, {"id": 161, "type": "field_expression", "text": "state.history_count", "parent": 160, "children": [162, 163], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 25}}, {"id": 162, "type": "identifier", "text": "state", "parent": 161, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 11}}, {"id": 163, "type": "field_identifier", "text": "history_count", "parent": 161, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 25}}, {"id": 164, "type": ">", "text": ">", "parent": 160, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 27}}, {"id": 165, "type": "number_literal", "text": "0", "parent": 160, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 29}}, {"id": 166, "type": "call_expression", "text": "map_history()", "parent": 158, "children": [167, 168], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 17}}, {"id": 167, "type": "identifier", "text": "map_history", "parent": 166, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 15}}, {"id": 168, "type": "argument_list", "text": "()", "parent": 166, "children": [], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 17}}, {"id": 169, "type": "call_expression", "text": "fc_strset(dst, 0, 256)", "parent": 158, "children": [170, 171], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 26}}, {"id": 170, "type": "identifier", "text": "fc_strset", "parent": 169, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 13}}, {"id": 171, "type": "argument_list", "text": "(dst, 0, 256)", "parent": 169, "children": [172, 173, 174], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 26}}, {"id": 172, "type": "identifier", "text": "dst", "parent": 171, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 17}}, {"id": 173, "type": "number_literal", "text": "0", "parent": 171, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 20}}, {"id": 174, "type": "number_literal", "text": "256", "parent": 171, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 25}}, {"id": 175, "type": "call_expression", "text": "fc_list_pop(HISTORY, dst, 256)", "parent": 158, "children": [176, 177], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 34}}, {"id": 176, "type": "identifier", "text": "fc_list_pop", "parent": 175, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 177, "type": "argument_list", "text": "(HISTORY, dst, 256)", "parent": 175, "children": [178, 179, 180], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 34}}, {"id": 178, "type": "identifier", "text": "HISTORY", "parent": 177, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 23}}, {"id": 179, "type": "identifier", "text": "dst", "parent": 177, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 28}}, {"id": 180, "type": "number_literal", "text": "256", "parent": 177, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 33}}, {"id": 181, "type": "update_expression", "text": "state.history_count--", "parent": 158, "children": [182, 185], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 25}}, {"id": 182, "type": "field_expression", "text": "state.history_count", "parent": 181, "children": [183, 184], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 23}}, {"id": 183, "type": "identifier", "text": "state", "parent": 182, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 9}}, {"id": 184, "type": "field_identifier", "text": "history_count", "parent": 182, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 23}}, {"id": 185, "type": "--", "text": "--", "parent": 181, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 25}}, {"id": 186, "type": "else_clause", "text": "else {\n fc_strcpy(dst, \"history:\");\n }", "parent": 158, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 41, "column": 3}}, {"id": 187, "type": "call_expression", "text": "fc_strcpy(dst, \"history:\")", "parent": 186, "children": [188, 189], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 30}}, {"id": 188, "type": "identifier", "text": "fc_strcpy", "parent": 187, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 13}}, {"id": 189, "type": "argument_list", "text": "(dst, \"history:\")", "parent": 187, "children": [190, 191], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 30}}, {"id": 190, "type": "identifier", "text": "dst", "parent": 189, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 17}}, {"id": 191, "type": "string_literal", "text": "\"history:\"", "parent": 189, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 29}}, {"id": 192, "type": "function_definition", "text": "int FC_SAMS(0,history_get(char* dst, int i)) {\n map_history();\n struct ListEntry* entry = fc_list_get(HISTORY, i);\n if (entry == 0) {\n *dst = 0;\n return 0;\n }\n fc_strncpy(dst, entry->data, entry->length);\n return entry->length;\n}", "parent": null, "children": [193, 194], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 193, "type": "primitive_type", "text": "int", "parent": 192, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 3}}, {"id": 194, "type": "function_declarator", "text": "FC_SAMS(0,history_get(char* dst, int i))", "parent": 192, "children": [195, 196], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 44}}, {"id": 195, "type": "identifier", "text": "FC_SAMS", "parent": 194, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 11}}, {"id": 196, "type": "parameter_list", "text": "(0,history_get(char* dst, int i))", "parent": 194, "children": [197, 199], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 44}}, {"id": 197, "type": "ERROR", "text": "0,", "parent": 196, "children": [198], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 14}}, {"id": 198, "type": "number_literal", "text": "0", "parent": 197, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 13}}, {"id": 199, "type": "parameter_declaration", "text": "history_get(char* dst, int i)", "parent": 196, "children": [200, 201], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 43}}, {"id": 200, "type": "type_identifier", "text": "history_get", "parent": 199, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 25}}, {"id": 201, "type": "abstract_function_declarator", "text": "(char* dst, int i)", "parent": 199, "children": [202], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 43}}, {"id": 202, "type": "parameter_list", "text": "(char* dst, int i)", "parent": 201, "children": [203, 208], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 43}}, {"id": 203, "type": "parameter_declaration", "text": "char* dst", "parent": 202, "children": [204, 205], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 35}}, {"id": 204, "type": "primitive_type", "text": "char", "parent": 203, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 30}}, {"id": 205, "type": "pointer_declarator", "text": "* dst", "parent": 203, "children": [206, 207], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 35}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 31}}, {"id": 207, "type": "identifier", "text": "dst", "parent": 205, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 35}}, {"id": 208, "type": "parameter_declaration", "text": "int i", "parent": 202, "children": [209, 210], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 42}}, {"id": 209, "type": "primitive_type", "text": "int", "parent": 208, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 40}}, {"id": 210, "type": "identifier", "text": "i", "parent": 208, "children": [], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 42}}, {"id": 211, "type": "call_expression", "text": "map_history()", "parent": 192, "children": [212, 213], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 15}}, {"id": 212, "type": "identifier", "text": "map_history", "parent": 211, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 13}}, {"id": 213, "type": "argument_list", "text": "()", "parent": 211, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 15}}, {"id": 214, "type": "declaration", "text": "struct ListEntry* entry = fc_list_get(HISTORY, i);", "parent": 192, "children": [215, 218], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 52}}, {"id": 215, "type": "struct_specifier", "text": "struct ListEntry", "parent": 214, "children": [216, 217], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 18}}, {"id": 216, "type": "struct", "text": "struct", "parent": 215, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 217, "type": "type_identifier", "text": "ListEntry", "parent": 215, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 18}}, {"id": 218, "type": "init_declarator", "text": "* entry = fc_list_get(HISTORY, i)", "parent": 214, "children": [219, 222, 223], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 51}}, {"id": 219, "type": "pointer_declarator", "text": "* entry", "parent": 218, "children": [220, 221], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 25}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 221, "type": "identifier", "text": "entry", "parent": 219, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 25}}, {"id": 222, "type": "=", "text": "=", "parent": 218, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 27}}, {"id": 223, "type": "call_expression", "text": "fc_list_get(HISTORY, i)", "parent": 218, "children": [224, 225], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 51}}, {"id": 224, "type": "identifier", "text": "fc_list_get", "parent": 223, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 39}}, {"id": 225, "type": "argument_list", "text": "(HISTORY, i)", "parent": 223, "children": [226, 227], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 51}}, {"id": 226, "type": "identifier", "text": "HISTORY", "parent": 225, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 47}}, {"id": 227, "type": "identifier", "text": "i", "parent": 225, "children": [], "start_point": {"row": 47, "column": 49}, "end_point": {"row": 47, "column": 50}}, {"id": 228, "type": "if_statement", "text": "if (entry == 0) {\n *dst = 0;\n return 0;\n }", "parent": 192, "children": [229], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 51, "column": 3}}, {"id": 229, "type": "parenthesized_expression", "text": "(entry == 0)", "parent": 228, "children": [230], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 17}}, {"id": 230, "type": "binary_expression", "text": "entry == 0", "parent": 229, "children": [231, 232, 233], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 16}}, {"id": 231, "type": "identifier", "text": "entry", "parent": 230, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 11}}, {"id": 232, "type": "==", "text": "==", "parent": 230, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 14}}, {"id": 233, "type": "number_literal", "text": "0", "parent": 230, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 234, "type": "assignment_expression", "text": "*dst = 0", "parent": 228, "children": [235, 238, 239], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 12}}, {"id": 235, "type": "pointer_expression", "text": "*dst", "parent": 234, "children": [236, 237], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 8}}, {"id": 236, "type": "*", "text": "*", "parent": 235, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 5}}, {"id": 237, "type": "identifier", "text": "dst", "parent": 235, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 8}}, {"id": 238, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 10}}, {"id": 239, "type": "number_literal", "text": "0", "parent": 234, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 12}}, {"id": 240, "type": "return_statement", "text": "return 0;", "parent": 228, "children": [241], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 13}}, {"id": 241, "type": "number_literal", "text": "0", "parent": 240, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 12}}, {"id": 242, "type": "call_expression", "text": "fc_strncpy(dst, entry->data, entry->length)", "parent": 192, "children": [243, 244], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 45}}, {"id": 243, "type": "identifier", "text": "fc_strncpy", "parent": 242, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 12}}, {"id": 244, "type": "argument_list", "text": "(dst, entry->data, entry->length)", "parent": 242, "children": [245, 246, 249], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 45}}, {"id": 245, "type": "identifier", "text": "dst", "parent": 244, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 16}}, {"id": 246, "type": "field_expression", "text": "entry->data", "parent": 244, "children": [247, 248], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 29}}, {"id": 247, "type": "identifier", "text": "entry", "parent": 246, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 23}}, {"id": 248, "type": "field_identifier", "text": "data", "parent": 246, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 29}}, {"id": 249, "type": "field_expression", "text": "entry->length", "parent": 244, "children": [250, 251], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 44}}, {"id": 250, "type": "identifier", "text": "entry", "parent": 249, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 36}}, {"id": 251, "type": "field_identifier", "text": "length", "parent": 249, "children": [], "start_point": {"row": 52, "column": 38}, "end_point": {"row": 52, "column": 44}}, {"id": 252, "type": "return_statement", "text": "return entry->length;", "parent": 192, "children": [253], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 23}}, {"id": 253, "type": "field_expression", "text": "entry->length", "parent": 252, "children": [254, 255], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 22}}, {"id": 254, "type": "identifier", "text": "entry", "parent": 253, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 14}}, {"id": 255, "type": "field_identifier", "text": "length", "parent": 253, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 22}}, {"id": 256, "type": "function_definition", "text": "void FC_SAMS(0,show_history()) {\n char link[4] = \"=> \";\n char nl[2] = \"\\n\";\n char line[256];\n fc_strset(line, 0, 256);\n fc_strcpy(line, \"# Virgil99 Browser History\\n\\n\");\n page_from_buf(line, fc_strlen(line));\n int link_idx = 0;\n int len = 1;\n while(len > 0) {\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }\n}", "parent": null, "children": [257, 258], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 257, "type": "primitive_type", "text": "void", "parent": 256, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 258, "type": "function_declarator", "text": "FC_SAMS(0,show_history())", "parent": 256, "children": [259, 260], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 30}}, {"id": 259, "type": "identifier", "text": "FC_SAMS", "parent": 258, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 12}}, {"id": 260, "type": "parameter_list", "text": "(0,show_history())", "parent": 258, "children": [261, 263], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 30}}, {"id": 261, "type": "ERROR", "text": "0,", "parent": 260, "children": [262], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 15}}, {"id": 262, "type": "number_literal", "text": "0", "parent": 261, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 14}}, {"id": 263, "type": "parameter_declaration", "text": "show_history()", "parent": 260, "children": [264, 265], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 29}}, {"id": 264, "type": "type_identifier", "text": "show_history", "parent": 263, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 27}}, {"id": 265, "type": "abstract_function_declarator", "text": "()", "parent": 263, "children": [266], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 29}}, {"id": 266, "type": "parameter_list", "text": "()", "parent": 265, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 29}}, {"id": 267, "type": "declaration", "text": "char link[4] = \"=> \";", "parent": 256, "children": [268, 269], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 23}}, {"id": 268, "type": "primitive_type", "text": "char", "parent": 267, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 6}}, {"id": 269, "type": "init_declarator", "text": "link[4] = \"=> \"", "parent": 267, "children": [270, 273, 274], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 22}}, {"id": 270, "type": "array_declarator", "text": "link[4]", "parent": 269, "children": [271, 272], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 14}}, {"id": 271, "type": "identifier", "text": "link", "parent": 270, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 11}}, {"id": 272, "type": "number_literal", "text": "4", "parent": 270, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 13}}, {"id": 273, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 274, "type": "string_literal", "text": "\"=> \"", "parent": 269, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 22}}, {"id": 275, "type": "declaration", "text": "char nl[2] = \"\\n\";", "parent": 256, "children": [276, 277], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 20}}, {"id": 276, "type": "primitive_type", "text": "char", "parent": 275, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 6}}, {"id": 277, "type": "init_declarator", "text": "nl[2] = \"\\n\"", "parent": 275, "children": [278, 281, 282], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 19}}, {"id": 278, "type": "array_declarator", "text": "nl[2]", "parent": 277, "children": [279, 280], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 12}}, {"id": 279, "type": "identifier", "text": "nl", "parent": 278, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 9}}, {"id": 280, "type": "number_literal", "text": "2", "parent": 278, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 11}}, {"id": 281, "type": "=", "text": "=", "parent": 277, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 282, "type": "string_literal", "text": "\"\\n\"", "parent": 277, "children": [283], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 19}}, {"id": 283, "type": "escape_sequence", "text": "\\n", "parent": 282, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 18}}, {"id": 284, "type": "declaration", "text": "char line[256];", "parent": 256, "children": [285, 286], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 17}}, {"id": 285, "type": "primitive_type", "text": "char", "parent": 284, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 6}}, {"id": 286, "type": "array_declarator", "text": "line[256]", "parent": 284, "children": [287, 288], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 16}}, {"id": 287, "type": "identifier", "text": "line", "parent": 286, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 11}}, {"id": 288, "type": "number_literal", "text": "256", "parent": 286, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 15}}, {"id": 289, "type": "call_expression", "text": "fc_strset(line, 0, 256)", "parent": 256, "children": [290, 291], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 25}}, {"id": 290, "type": "identifier", "text": "fc_strset", "parent": 289, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 11}}, {"id": 291, "type": "argument_list", "text": "(line, 0, 256)", "parent": 289, "children": [292, 293, 294], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 25}}, {"id": 292, "type": "identifier", "text": "line", "parent": 291, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 16}}, {"id": 293, "type": "number_literal", "text": "0", "parent": 291, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 19}}, {"id": 294, "type": "number_literal", "text": "256", "parent": 291, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 24}}, {"id": 295, "type": "call_expression", "text": "fc_strcpy(line, \"# Virgil99 Browser History\\n\\n\")", "parent": 256, "children": [296, 297], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 51}}, {"id": 296, "type": "identifier", "text": "fc_strcpy", "parent": 295, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 11}}, {"id": 297, "type": "argument_list", "text": "(line, \"# Virgil99 Browser History\\n\\n\")", "parent": 295, "children": [298, 299], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 51}}, {"id": 298, "type": "identifier", "text": "line", "parent": 297, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 16}}, {"id": 299, "type": "string_literal", "text": "\"# Virgil99 Browser History\\n\\n\"", "parent": 297, "children": [300, 301], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 50}}, {"id": 300, "type": "escape_sequence", "text": "\\n", "parent": 299, "children": [], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 47}}, {"id": 301, "type": "escape_sequence", "text": "\\n", "parent": 299, "children": [], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 49}}, {"id": 302, "type": "call_expression", "text": "page_from_buf(line, fc_strlen(line))", "parent": 256, "children": [303, 304], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 38}}, {"id": 303, "type": "identifier", "text": "page_from_buf", "parent": 302, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 15}}, {"id": 304, "type": "argument_list", "text": "(line, fc_strlen(line))", "parent": 302, "children": [305, 306], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 38}}, {"id": 305, "type": "identifier", "text": "line", "parent": 304, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 20}}, {"id": 306, "type": "call_expression", "text": "fc_strlen(line)", "parent": 304, "children": [307, 308], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 37}}, {"id": 307, "type": "identifier", "text": "fc_strlen", "parent": 306, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 31}}, {"id": 308, "type": "argument_list", "text": "(line)", "parent": 306, "children": [309], "start_point": {"row": 62, "column": 31}, "end_point": {"row": 62, "column": 37}}, {"id": 309, "type": "identifier", "text": "line", "parent": 308, "children": [], "start_point": {"row": 62, "column": 32}, "end_point": {"row": 62, "column": 36}}, {"id": 310, "type": "declaration", "text": "int link_idx = 0;", "parent": 256, "children": [311, 312], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 19}}, {"id": 311, "type": "primitive_type", "text": "int", "parent": 310, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 5}}, {"id": 312, "type": "init_declarator", "text": "link_idx = 0", "parent": 310, "children": [313, 314, 315], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 18}}, {"id": 313, "type": "identifier", "text": "link_idx", "parent": 312, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 14}}, {"id": 314, "type": "=", "text": "=", "parent": 312, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 16}}, {"id": 315, "type": "number_literal", "text": "0", "parent": 312, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 18}}, {"id": 316, "type": "declaration", "text": "int len = 1;", "parent": 256, "children": [317, 318], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 14}}, {"id": 317, "type": "primitive_type", "text": "int", "parent": 316, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 5}}, {"id": 318, "type": "init_declarator", "text": "len = 1", "parent": 316, "children": [319, 320, 321], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 13}}, {"id": 319, "type": "identifier", "text": "len", "parent": 318, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 9}}, {"id": 320, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 321, "type": "number_literal", "text": "1", "parent": 318, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 322, "type": "while_statement", "text": "while(len > 0) {\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }", "parent": 256, "children": [323], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 73, "column": 3}}, {"id": 323, "type": "parenthesized_expression", "text": "(len > 0)", "parent": 322, "children": [324], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 16}}, {"id": 324, "type": "binary_expression", "text": "len > 0", "parent": 323, "children": [325, 326, 327], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 15}}, {"id": 325, "type": "identifier", "text": "len", "parent": 324, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 11}}, {"id": 326, "type": ">", "text": ">", "parent": 324, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 327, "type": "number_literal", "text": "0", "parent": 324, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 15}}, {"id": 328, "type": "call_expression", "text": "fc_strset(line, 0, 256)", "parent": 322, "children": [329, 330], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 27}}, {"id": 329, "type": "identifier", "text": "fc_strset", "parent": 328, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 13}}, {"id": 330, "type": "argument_list", "text": "(line, 0, 256)", "parent": 328, "children": [331, 332, 333], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 27}}, {"id": 331, "type": "identifier", "text": "line", "parent": 330, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 18}}, {"id": 332, "type": "number_literal", "text": "0", "parent": 330, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 21}}, {"id": 333, "type": "number_literal", "text": "256", "parent": 330, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 26}}, {"id": 334, "type": "assignment_expression", "text": "len = history_get(line, link_idx++)", "parent": 322, "children": [335, 336, 337], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 39}}, {"id": 335, "type": "identifier", "text": "len", "parent": 334, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 7}}, {"id": 336, "type": "=", "text": "=", "parent": 334, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 337, "type": "call_expression", "text": "history_get(line, link_idx++)", "parent": 334, "children": [338, 339], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 39}}, {"id": 338, "type": "identifier", "text": "history_get", "parent": 337, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 21}}, {"id": 339, "type": "argument_list", "text": "(line, link_idx++)", "parent": 337, "children": [340, 341], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 39}}, {"id": 340, "type": "identifier", "text": "line", "parent": 339, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 26}}, {"id": 341, "type": "update_expression", "text": "link_idx++", "parent": 339, "children": [342, 343], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 38}}, {"id": 342, "type": "identifier", "text": "link_idx", "parent": 341, "children": [], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 36}}, {"id": 343, "type": "++", "text": "++", "parent": 341, "children": [], "start_point": {"row": 67, "column": 36}, "end_point": {"row": 67, "column": 38}}, {"id": 344, "type": "if_statement", "text": "if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }", "parent": 322, "children": [345], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 72, "column": 5}}, {"id": 345, "type": "parenthesized_expression", "text": "(len > 0)", "parent": 344, "children": [346], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 16}}, {"id": 346, "type": "binary_expression", "text": "len > 0", "parent": 345, "children": [347, 348, 349], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 15}}, {"id": 347, "type": "identifier", "text": "len", "parent": 346, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 11}}, {"id": 348, "type": ">", "text": ">", "parent": 346, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 13}}, {"id": 349, "type": "number_literal", "text": "0", "parent": 346, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 15}}, {"id": 350, "type": "call_expression", "text": "page_from_buf(link, 3)", "parent": 344, "children": [351, 352], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 28}}, {"id": 351, "type": "identifier", "text": "page_from_buf", "parent": 350, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 19}}, {"id": 352, "type": "argument_list", "text": "(link, 3)", "parent": 350, "children": [353, 354], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 28}}, {"id": 353, "type": "identifier", "text": "link", "parent": 352, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 24}}, {"id": 354, "type": "number_literal", "text": "3", "parent": 352, "children": [], "start_point": {"row": 69, "column": 26}, "end_point": {"row": 69, "column": 27}}, {"id": 355, "type": "call_expression", "text": "page_from_buf(line, len)", "parent": 344, "children": [356, 357], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 30}}, {"id": 356, "type": "identifier", "text": "page_from_buf", "parent": 355, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 19}}, {"id": 357, "type": "argument_list", "text": "(line, len)", "parent": 355, "children": [358, 359], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 30}}, {"id": 358, "type": "identifier", "text": "line", "parent": 357, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 24}}, {"id": 359, "type": "identifier", "text": "len", "parent": 357, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 29}}, {"id": 360, "type": "call_expression", "text": "page_from_buf(nl, 1)", "parent": 344, "children": [361, 362], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 26}}, {"id": 361, "type": "identifier", "text": "page_from_buf", "parent": 360, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 19}}, {"id": 362, "type": "argument_list", "text": "(nl, 1)", "parent": 360, "children": [363, 364], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 26}}, {"id": 363, "type": "identifier", "text": "nl", "parent": 362, "children": [], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 22}}, {"id": 364, "type": "number_literal", "text": "1", "parent": 362, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 25}}]}, "node_categories": {"declarations": {"functions": [20, 22, 32, 34, 41, 90, 92, 99, 142, 144, 151, 192, 194, 201, 256, 258, 265], "variables": [39, 97, 101, 106, 119, 149, 153, 199, 203, 208, 214, 263, 267, 275, 284, 310, 316], "classes": [215, 216], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [25, 28, 44, 48, 52, 55, 58, 66, 70, 75, 76, 80, 85, 86, 111, 116, 124, 128, 133, 137, 138, 159, 160, 161, 166, 169, 175, 181, 182, 187, 211, 223, 229, 230, 235, 242, 246, 249, 253, 289, 295, 302, 306, 323, 324, 328, 337, 341, 345, 346, 350, 355, 360], "assignments": [43, 234, 334], "loops": [322], "conditionals": [14, 18, 23, 26, 29, 30, 31, 35, 40, 45, 46, 49, 53, 56, 63, 67, 69, 77, 87, 93, 98, 105, 109, 112, 114, 115, 117, 122, 125, 127, 129, 131, 132, 134, 139, 140, 145, 150, 157, 158, 162, 163, 167, 170, 172, 176, 178, 179, 183, 184, 188, 190, 195, 200, 207, 210, 212, 217, 221, 224, 226, 227, 228, 231, 237, 243, 245, 247, 248, 250, 251, 254, 255, 259, 264, 271, 279, 287, 290, 292, 296, 298, 303, 305, 307, 309, 313, 319, 325, 329, 331, 335, 338, 340, 342, 344, 347, 351, 353, 356, 358, 359, 361, 363], "returns": [240, 252], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 38, 51, 64, 65, 79, 89, 96, 110, 136, 148, 165, 173, 174, 180, 191, 198, 233, 239, 241, 262, 272, 274, 280, 282, 288, 293, 294, 299, 315, 321, 327, 332, 333, 349, 354, 364], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "map_history", "text_snippet": "void map_history() {\n fc_sams_map_page(state.history_id, SAMS_ADDR);\n}"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "map_history()"}, {"node_id": 32, "universal_type": "function", "name": "FC_SAMS", "text_snippet": "void FC_SAMS(0,init_history()) {\n state.history_id = fc_sams_alloc_pages(1);\n map_history();\n fc_"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "FC_SAMS(0,init_history())"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 90, "universal_type": "function", "name": "FC_SAMS", "text_snippet": "void FC_SAMS(0,history_push(char* link)) {\n // page lines and history are banked into same address "}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "FC_SAMS(0,history_push(char* link))"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "(char* link)"}, {"node_id": 142, "universal_type": "function", "name": "FC_SAMS", "text_snippet": "void FC_SAMS(0,history_pop(char* dst)) {\n if (state.history_count > 0) {\n map_history();\n fc_"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "FC_SAMS(0,history_pop(char* dst))"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "(char* dst)"}, {"node_id": 192, "universal_type": "function", "name": "FC_SAMS", "text_snippet": "int FC_SAMS(0,history_get(char* dst, int i)) {\n map_history();\n struct ListEntry* entry = fc_list_"}, {"node_id": 194, "universal_type": "function", "name": "i))", "text_snippet": "FC_SAMS(0,history_get(char* dst, int i))"}, {"node_id": 201, "universal_type": "function", "name": "i)", "text_snippet": "(char* dst, int i)"}, {"node_id": 256, "universal_type": "function", "name": "FC_SAMS", "text_snippet": "void FC_SAMS(0,show_history()) {\n char link[4] = \"=> \";\n char nl[2] = \"\\n\";\n char line[256];\n fc"}, {"node_id": 258, "universal_type": "function", "name": "unknown", "text_snippet": "FC_SAMS(0,show_history())"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "()"}], "class_declarations": [{"node_id": 215, "universal_type": "class", "name": "ListEntry", "text_snippet": "struct ListEntry"}, {"node_id": 216, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <fc_api.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"history.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"gemini.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"page.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <fc_api.h>\n#include \"history.h\"\n#include \"gemini.h\"\n#include \"page.h\"\n\n#define SAMS_ADDR 0xF000\n#define HISTORY ((struct List*) (SAMS_ADDR))\n\nvoid map_history() {\n fc_sams_map_page(state.history_id, SAMS_ADDR);\n}\n\nvoid FC_SAMS(0,init_history()) {\n state.history_id = fc_sams_alloc_pages(1);\n map_history();\n fc_strset((char*)SAMS_ADDR, 0, 0x1000); \n fc_list_init(HISTORY, (char*)(SAMS_ADDR + 6), (char*)(SAMS_ADDR + 0x0FFF));\n}\n\nvoid FC_SAMS(0,history_push(char* link)) {\n // page lines and history are banked into same address space\n // copy it to stack temporarily\n char tmp[256];\n fc_strcpy(tmp, link);\n // now bring in the history page\n map_history();\n\n int len = fc_strlen(tmp);\n fc_list_push(HISTORY, tmp, len + 1);\n state.history_count++;\n}\n\n// dst must not be in top address bank\nvoid FC_SAMS(0,history_pop(char* dst)) {\n if (state.history_count > 0) {\n map_history();\n fc_strset(dst, 0, 256);\n fc_list_pop(HISTORY, dst, 256);\n state.history_count--;\n } else {\n fc_strcpy(dst, \"history:\");\n }\n}\n\n// dst must not be in top address bank\nint FC_SAMS(0,history_get(char* dst, int i)) {\n map_history();\n struct ListEntry* entry = fc_list_get(HISTORY, i);\n if (entry == 0) {\n *dst = 0;\n return 0;\n }\n fc_strncpy(dst, entry->data, entry->length);\n return entry->length;\n}\n\nvoid FC_SAMS(0,show_history()) {\n char link[4] = \"=> \";\n char nl[2] = \"\\n\";\n char line[256];\n fc_strset(line, 0, 256);\n fc_strcpy(line, \"# Virgil99 Browser History\\n\\n\");\n page_from_buf(line, fc_strlen(line));\n int link_idx = 0;\n int len = 1;\n while(len > 0) {\n fc_strset(line, 0, 256);\n len = history_get(line, link_idx++);\n if (len > 0) {\n page_from_buf(link, 3);\n page_from_buf(line, len);\n page_from_buf(nl, 1);\n }\n }\n}\n\n"}
80,879
c
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Abilities/Tasks/AbilityTask.h" #include "AbilityTask_WaitDelayOneFrame.generated.h" DECLARE_DYNAMIC_MULTICAST_DELEGATE(FWaitDelayOneFrameDelegate); /** * Like WaitDelay but only delays one frame (tick). */ UCLASS() class GASBASE_API UAbilityTask_WaitDelayOneFrame : public UAbilityTask { GENERATED_UCLASS_BODY() UPROPERTY(BlueprintAssignable) FWaitDelayOneFrameDelegate OnFinish; virtual void Activate() override; // Wait one frame. UFUNCTION(BlueprintCallable, Category = "Ability|Tasks", meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE")) static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility); private: void OnDelayFinish(); };
37.86
22
(translation_unit) "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "Abilities/Tasks/AbilityTask.h"\n#include "AbilityTask_WaitDelayOneFrame.generated.h"\n\nDECLARE_DYNAMIC_MULTICAST_DELEGATE(FWaitDelayOneFrameDelegate);\n\n/**\n* Like WaitDelay but only delays one frame (tick).\n*/\nUCLASS()\nclass GASBASE_API UAbilityTask_WaitDelayOneFrame : public UAbilityTask\n{\n GENERATED_UCLASS_BODY()\n\n UPROPERTY(BlueprintAssignable)\n FWaitDelayOneFrameDelegate OnFinish;\n\n virtual void Activate() override;\n\n // Wait one frame.\n UFUNCTION(BlueprintCallable, Category = "Ability|Tasks", meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"))\n static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);\n\n private:\n void OnDelayFinish();\n};\n" (comment) "// Fill out your copyright notice in the Description page of Project Settings." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "CoreMinimal.h"\n" (#include) "#include" (string_literal) ""CoreMinimal.h"" (") """ (string_content) "CoreMinimal.h" (") """ (preproc_include) "#include "Abilities/Tasks/AbilityTask.h"\n" (#include) "#include" (string_literal) ""Abilities/Tasks/AbilityTask.h"" (") """ (string_content) "Abilities/Tasks/AbilityTask.h" (") """ (preproc_include) "#include "AbilityTask_WaitDelayOneFrame.generated.h"\n" (#include) "#include" (string_literal) ""AbilityTask_WaitDelayOneFrame.generated.h"" (") """ (string_content) "AbilityTask_WaitDelayOneFrame.generated.h" (") """ (expression_statement) "DECLARE_DYNAMIC_MULTICAST_DELEGATE(FWaitDelayOneFrameDelegate);" (call_expression) "DECLARE_DYNAMIC_MULTICAST_DELEGATE(FWaitDelayOneFrameDelegate)" (identifier) "DECLARE_DYNAMIC_MULTICAST_DELEGATE" (argument_list) "(FWaitDelayOneFrameDelegate)" (() "(" (identifier) "FWaitDelayOneFrameDelegate" ()) ")" (;) ";" (comment) "/**\n* Like WaitDelay but only delays one frame (tick).\n*/" (ERROR) "UCLASS()\nclass" (call_expression) "UCLASS()" (identifier) "UCLASS" (argument_list) "()" (() "(" ()) ")" (identifier) "class" (function_definition) "GASBASE_API UAbilityTask_WaitDelayOneFrame : public UAbilityTask\n{\n GENERATED_UCLASS_BODY()\n\n UPROPERTY(BlueprintAssignable)\n FWaitDelayOneFrameDelegate OnFinish;\n\n virtual void Activate() override;\n\n // Wait one frame.\n UFUNCTION(BlueprintCallable, Category = "Ability|Tasks", meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"))\n static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);\n\n private:\n void OnDelayFinish();\n}" (type_identifier) "GASBASE_API" (identifier) "UAbilityTask_WaitDelayOneFrame" (ERROR) ": public UAbilityTask" (:) ":" (identifier) "public" (identifier) "UAbilityTask" (compound_statement) "{\n GENERATED_UCLASS_BODY()\n\n UPROPERTY(BlueprintAssignable)\n FWaitDelayOneFrameDelegate OnFinish;\n\n virtual void Activate() override;\n\n // Wait one frame.\n UFUNCTION(BlueprintCallable, Category = "Ability|Tasks", meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"))\n static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);\n\n private:\n void OnDelayFinish();\n}" ({) "{" (expression_statement) "GENERATED_UCLASS_BODY()" (call_expression) "GENERATED_UCLASS_BODY()" (identifier) "GENERATED_UCLASS_BODY" (argument_list) "()" (() "(" ()) ")" (;) "" (declaration) "UPROPERTY(BlueprintAssignable)\n FWaitDelayOneFrameDelegate OnFinish;" (macro_type_specifier) "UPROPERTY(BlueprintAssignable)" (identifier) "UPROPERTY" (() "(" (type_descriptor) "BlueprintAssignable" (type_identifier) "BlueprintAssignable" ()) ")" (identifier) "FWaitDelayOneFrameDelegate" (ERROR) "OnFinish" (identifier) "OnFinish" (;) ";" (ERROR) "virtual void Activate() override;\n\n // Wait one frame.\n UFUNCTION(BlueprintCallable, Category = "Ability|Tasks", meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"))\n static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);\n\n private:\n void OnDelayFinish();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Activate()" (identifier) "Activate" (parameter_list) "()" (() "(" ()) ")" (declaration) "override;\n\n // Wait one frame.\n UFUNCTION(BlueprintCallable, Category = "Ability|Tasks", meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"))\n static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);" (type_identifier) "override" (ERROR) ";" (;) ";" (comment) "// Wait one frame." (init_declarator) "UFUNCTION(BlueprintCallable, Category = "Ability|Tasks"" (function_declarator) "UFUNCTION(BlueprintCallable, Category" (identifier) "UFUNCTION" (parameter_list) "(BlueprintCallable, Category" (() "(" (parameter_declaration) "BlueprintCallable" (type_identifier) "BlueprintCallable" (,) "," (parameter_declaration) "Category" (type_identifier) "Category" ()) "" (=) "=" (string_literal) ""Ability|Tasks"" (") """ (string_content) "Ability|Tasks" (") """ (,) "," (init_declarator) "meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"))\n static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility)" (identifier) "meta" (=) "=" (binary_expression) "(HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"))\n static UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility)" (parenthesized_expression) "(HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE")" (() "(" (comma_expression) "HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"" (assignment_expression) "HidePin = "OwningAbility"" (identifier) "HidePin" (=) "=" (string_literal) ""OwningAbility"" (") """ (string_content) "OwningAbility" (") """ (,) "," (comma_expression) "DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE"" (assignment_expression) "DefaultToSelf = "OwningAbility"" (identifier) "DefaultToSelf" (=) "=" (string_literal) ""OwningAbility"" (") """ (string_content) "OwningAbility" (") """ (,) "," (assignment_expression) "BlueprintInternalUseOnly = "TRUE"" (identifier) "BlueprintInternalUseOnly" (=) "=" (string_literal) ""TRUE"" (") """ (string_content) "TRUE" (") """ ()) ")" (ERROR) ")\n static UAbilityTask_WaitDelayOneFrame" ()) ")" (static) "static" (identifier) "UAbilityTask_WaitDelayOneFrame" (*) "*" (call_expression) "WaitDelayOneFrame(UGameplayAbility* OwningAbility)" (identifier) "WaitDelayOneFrame" (argument_list) "(UGameplayAbility* OwningAbility)" (() "(" (binary_expression) "UGameplayAbility* OwningAbility" (identifier) "UGameplayAbility" (*) "*" (identifier) "OwningAbility" ()) ")" (;) ";" (ERROR) "private:" (type_identifier) "private" (:) ":" (declaration) "void OnDelayFinish();" (primitive_type) "void" (function_declarator) "OnDelayFinish()" (identifier) "OnDelayFinish" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
158
8
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 37.86, "nodes": 90, "errors": 0, "source_hash": "55e1c3623d954323ddb2f2cfdb3d7f17df58cf1e7b90818678d0458bdbad94fa", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"CoreMinimal.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"CoreMinimal.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"Abilities/Tasks/AbilityTask.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Abilities/Tasks/AbilityTask.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 40}}, {"id": 9, "type": "preproc_include", "text": "#include \"AbilityTask_WaitDelayOneFrame.generated.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"AbilityTask_WaitDelayOneFrame.generated.h\"", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 52}}, {"id": 12, "type": "call_expression", "text": "DECLARE_DYNAMIC_MULTICAST_DELEGATE(FWaitDelayOneFrameDelegate)", "parent": null, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 62}}, {"id": 13, "type": "identifier", "text": "DECLARE_DYNAMIC_MULTICAST_DELEGATE", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 34}}, {"id": 14, "type": "argument_list", "text": "(FWaitDelayOneFrameDelegate)", "parent": 12, "children": [15], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 62}}, {"id": 15, "type": "identifier", "text": "FWaitDelayOneFrameDelegate", "parent": 14, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 61}}, {"id": 16, "type": "ERROR", "text": "UCLASS()\nclass", "parent": null, "children": [17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 5}}, {"id": 17, "type": "call_expression", "text": "UCLASS()", "parent": 16, "children": [18, 19], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 18, "type": "identifier", "text": "UCLASS", "parent": 17, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 19, "type": "argument_list", "text": "()", "parent": 17, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 8}}, {"id": 20, "type": "function_definition", "text": "GASBASE_API UAbilityTask_WaitDelayOneFrame : public UAbilityTask\n{\n\tGENERATED_UCLASS_BODY()\n\n\tUPROPERTY(BlueprintAssignable)\n\tFWaitDelayOneFrameDelegate OnFinish;\n\n\tvirtual void Activate() override;\n\n\t// Wait one frame.\n\tUFUNCTION(BlueprintCallable, Category = \"Ability|Tasks\", meta = (HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"))\n\tstatic UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);\n\n\tprivate:\n\tvoid OnDelayFinish();\n}", "parent": null, "children": [21, 22, 23], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 29, "column": 1}}, {"id": 21, "type": "type_identifier", "text": "GASBASE_API", "parent": 20, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 17}}, {"id": 22, "type": "identifier", "text": "UAbilityTask_WaitDelayOneFrame", "parent": 20, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 48}}, {"id": 23, "type": "ERROR", "text": ": public UAbilityTask", "parent": 20, "children": [24], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 70}}, {"id": 24, "type": "identifier", "text": "UAbilityTask", "parent": 23, "children": [], "start_point": {"row": 14, "column": 58}, "end_point": {"row": 14, "column": 70}}, {"id": 25, "type": "call_expression", "text": "GENERATED_UCLASS_BODY()", "parent": 20, "children": [26, 27], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 24}}, {"id": 26, "type": "identifier", "text": "GENERATED_UCLASS_BODY", "parent": 25, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 22}}, {"id": 27, "type": "argument_list", "text": "()", "parent": 25, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 24}}, {"id": 28, "type": "declaration", "text": "UPROPERTY(BlueprintAssignable)\n\tFWaitDelayOneFrameDelegate OnFinish;", "parent": 20, "children": [29, 33, 34], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 19, "column": 37}}, {"id": 29, "type": "macro_type_specifier", "text": "UPROPERTY(BlueprintAssignable)", "parent": 28, "children": [30, 31], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 31}}, {"id": 30, "type": "identifier", "text": "UPROPERTY", "parent": 29, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 31, "type": "type_descriptor", "text": "BlueprintAssignable", "parent": 29, "children": [32], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 30}}, {"id": 32, "type": "type_identifier", "text": "BlueprintAssignable", "parent": 31, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 30}}, {"id": 33, "type": "identifier", "text": "FWaitDelayOneFrameDelegate", "parent": 28, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 27}}, {"id": 34, "type": "ERROR", "text": "OnFinish", "parent": 28, "children": [35], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 36}}, {"id": 35, "type": "identifier", "text": "OnFinish", "parent": 34, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 36}}, {"id": 36, "type": "ERROR", "text": "virtual void Activate() override;\n\n\t// Wait one frame.\n\tUFUNCTION(BlueprintCallable, Category = \"Ability|Tasks\", meta = (HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"))\n\tstatic UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);\n\n\tprivate:\n\tvoid OnDelayFinish();", "parent": 20, "children": [37, 38, 40, 43, 84, 85], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 28, "column": 22}}, {"id": 37, "type": "type_identifier", "text": "virtual", "parent": 36, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 8}}, {"id": 38, "type": "ERROR", "text": "void", "parent": 36, "children": [39], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 39, "type": "identifier", "text": "void", "parent": 38, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 40, "type": "function_declarator", "text": "Activate()", "parent": 36, "children": [41, 42], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 24}}, {"id": 41, "type": "identifier", "text": "Activate", "parent": 40, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 22}}, {"id": 42, "type": "parameter_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 24}}, {"id": 43, "type": "declaration", "text": "override;\n\n\t// Wait one frame.\n\tUFUNCTION(BlueprintCallable, Category = \"Ability|Tasks\", meta = (HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"))\n\tstatic UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);", "parent": 36, "children": [44, 45, 55], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 25, "column": 91}}, {"id": 44, "type": "type_identifier", "text": "override", "parent": 43, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 33}}, {"id": 45, "type": "init_declarator", "text": "UFUNCTION(BlueprintCallable, Category = \"Ability|Tasks\"", "parent": 43, "children": [46, 53, 54], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 56}}, {"id": 46, "type": "function_declarator", "text": "UFUNCTION(BlueprintCallable, Category", "parent": 45, "children": [47, 48], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 38}}, {"id": 47, "type": "identifier", "text": "UFUNCTION", "parent": 46, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 10}}, {"id": 48, "type": "parameter_list", "text": "(BlueprintCallable, Category", "parent": 46, "children": [49, 51], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 38}}, {"id": 49, "type": "parameter_declaration", "text": "BlueprintCallable", "parent": 48, "children": [50], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 28}}, {"id": 50, "type": "type_identifier", "text": "BlueprintCallable", "parent": 49, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 28}}, {"id": 51, "type": "parameter_declaration", "text": "Category", "parent": 48, "children": [52], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 38}}, {"id": 52, "type": "type_identifier", "text": "Category", "parent": 51, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 38}}, {"id": 53, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 40}}, {"id": 54, "type": "string_literal", "text": "\"Ability|Tasks\"", "parent": 45, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 56}}, {"id": 55, "type": "init_declarator", "text": "meta = (HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"))\n\tstatic UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility)", "parent": 43, "children": [56, 57, 58], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 25, "column": 90}}, {"id": 56, "type": "identifier", "text": "meta", "parent": 55, "children": [], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 62}}, {"id": 57, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 64}}, {"id": 58, "type": "binary_expression", "text": "(HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"))\n\tstatic UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility)", "parent": 55, "children": [59, 74, 76, 77], "start_point": {"row": 24, "column": 65}, "end_point": {"row": 25, "column": 90}}, {"id": 59, "type": "parenthesized_expression", "text": "(HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\")", "parent": 58, "children": [60], "start_point": {"row": 24, "column": 65}, "end_point": {"row": 24, "column": 160}}, {"id": 60, "type": "comma_expression", "text": "HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"", "parent": 59, "children": [61, 65], "start_point": {"row": 24, "column": 66}, "end_point": {"row": 24, "column": 159}}, {"id": 61, "type": "assignment_expression", "text": "HidePin = \"OwningAbility\"", "parent": 60, "children": [62, 63, 64], "start_point": {"row": 24, "column": 66}, "end_point": {"row": 24, "column": 91}}, {"id": 62, "type": "identifier", "text": "HidePin", "parent": 61, "children": [], "start_point": {"row": 24, "column": 66}, "end_point": {"row": 24, "column": 73}}, {"id": 63, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 24, "column": 74}, "end_point": {"row": 24, "column": 75}}, {"id": 64, "type": "string_literal", "text": "\"OwningAbility\"", "parent": 61, "children": [], "start_point": {"row": 24, "column": 76}, "end_point": {"row": 24, "column": 91}}, {"id": 65, "type": "comma_expression", "text": "DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"", "parent": 60, "children": [66, 70], "start_point": {"row": 24, "column": 93}, "end_point": {"row": 24, "column": 159}}, {"id": 66, "type": "assignment_expression", "text": "DefaultToSelf = \"OwningAbility\"", "parent": 65, "children": [67, 68, 69], "start_point": {"row": 24, "column": 93}, "end_point": {"row": 24, "column": 124}}, {"id": 67, "type": "identifier", "text": "DefaultToSelf", "parent": 66, "children": [], "start_point": {"row": 24, "column": 93}, "end_point": {"row": 24, "column": 106}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 24, "column": 107}, "end_point": {"row": 24, "column": 108}}, {"id": 69, "type": "string_literal", "text": "\"OwningAbility\"", "parent": 66, "children": [], "start_point": {"row": 24, "column": 109}, "end_point": {"row": 24, "column": 124}}, {"id": 70, "type": "assignment_expression", "text": "BlueprintInternalUseOnly = \"TRUE\"", "parent": 65, "children": [71, 72, 73], "start_point": {"row": 24, "column": 126}, "end_point": {"row": 24, "column": 159}}, {"id": 71, "type": "identifier", "text": "BlueprintInternalUseOnly", "parent": 70, "children": [], "start_point": {"row": 24, "column": 126}, "end_point": {"row": 24, "column": 150}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 24, "column": 151}, "end_point": {"row": 24, "column": 152}}, {"id": 73, "type": "string_literal", "text": "\"TRUE\"", "parent": 70, "children": [], "start_point": {"row": 24, "column": 153}, "end_point": {"row": 24, "column": 159}}, {"id": 74, "type": "ERROR", "text": ")\n\tstatic UAbilityTask_WaitDelayOneFrame", "parent": 58, "children": [75], "start_point": {"row": 24, "column": 160}, "end_point": {"row": 25, "column": 38}}, {"id": 75, "type": "identifier", "text": "UAbilityTask_WaitDelayOneFrame", "parent": 74, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 38}}, {"id": 76, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 39}}, {"id": 77, "type": "call_expression", "text": "WaitDelayOneFrame(UGameplayAbility* OwningAbility)", "parent": 58, "children": [78, 79], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 90}}, {"id": 78, "type": "identifier", "text": "WaitDelayOneFrame", "parent": 77, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 57}}, {"id": 79, "type": "argument_list", "text": "(UGameplayAbility* OwningAbility)", "parent": 77, "children": [80], "start_point": {"row": 25, "column": 57}, "end_point": {"row": 25, "column": 90}}, {"id": 80, "type": "binary_expression", "text": "UGameplayAbility* OwningAbility", "parent": 79, "children": [81, 82, 83], "start_point": {"row": 25, "column": 58}, "end_point": {"row": 25, "column": 89}}, {"id": 81, "type": "identifier", "text": "UGameplayAbility", "parent": 80, "children": [], "start_point": {"row": 25, "column": 58}, "end_point": {"row": 25, "column": 74}}, {"id": 82, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 25, "column": 74}, "end_point": {"row": 25, "column": 75}}, {"id": 83, "type": "identifier", "text": "OwningAbility", "parent": 80, "children": [], "start_point": {"row": 25, "column": 76}, "end_point": {"row": 25, "column": 89}}, {"id": 84, "type": "ERROR", "text": "private:", "parent": 36, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 85, "type": "declaration", "text": "void OnDelayFinish();", "parent": 36, "children": [86, 87], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 22}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 5}}, {"id": 87, "type": "function_declarator", "text": "OnDelayFinish()", "parent": 85, "children": [88, 89], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 21}}, {"id": 88, "type": "identifier", "text": "OnDelayFinish", "parent": 87, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 19}}, {"id": 89, "type": "parameter_list", "text": "()", "parent": 87, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 21}}]}, "node_categories": {"declarations": {"functions": [20, 40, 46, 87], "variables": [28, 43, 49, 51, 85], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [12, 17, 25, 58, 59, 60, 65, 77, 80], "assignments": [61, 66, 70], "loops": [], "conditionals": [13, 15, 18, 21, 22, 24, 26, 29, 30, 32, 33, 35, 37, 39, 41, 44, 47, 50, 52, 56, 62, 67, 71, 75, 78, 81, 83, 88], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 54, 64, 69, 73], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "Activate", "text_snippet": "GASBASE_API UAbilityTask_WaitDelayOneFrame : public UAbilityTask\n{\n\tGENERATED_UCLASS_BODY()\n\n\tUPROPE"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "Activate()"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "UFUNCTION(BlueprintCallable, Category"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "OnDelayFinish()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreMinimal.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Abilities/Tasks/AbilityTask.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"AbilityTask_WaitDelayOneFrame.generated.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include \"CoreMinimal.h\"\n#include \"Abilities/Tasks/AbilityTask.h\"\n#include \"AbilityTask_WaitDelayOneFrame.generated.h\"\n\nDECLARE_DYNAMIC_MULTICAST_DELEGATE(FWaitDelayOneFrameDelegate);\n\n/**\n* Like WaitDelay but only delays one frame (tick).\n*/\nUCLASS()\nclass GASBASE_API UAbilityTask_WaitDelayOneFrame : public UAbilityTask\n{\n\tGENERATED_UCLASS_BODY()\n\n\tUPROPERTY(BlueprintAssignable)\n\tFWaitDelayOneFrameDelegate OnFinish;\n\n\tvirtual void Activate() override;\n\n\t// Wait one frame.\n\tUFUNCTION(BlueprintCallable, Category = \"Ability|Tasks\", meta = (HidePin = \"OwningAbility\", DefaultToSelf = \"OwningAbility\", BlueprintInternalUseOnly = \"TRUE\"))\n\tstatic UAbilityTask_WaitDelayOneFrame* WaitDelayOneFrame(UGameplayAbility* OwningAbility);\n\n\tprivate:\n\tvoid OnDelayFinish();\n};\n"}
80,880
c
#ifndef __CANDMC_H__ #define __CANDMC_H__ /* SUMMA and Cannon */ #include "../alg/MM/topo_pdgemm/topo_pdgemm_algs.h" /* Split-dimensional Cannon's algorithm for multidimensional torus networks */ #include "../alg/MM/splitdim_cannon/spcannon.h" /* tournament (CA) pivoting for panels of matrices */ #include "../alg/LU/tnmt_pvt.h" /* partial pivoting for panels of matrices */ #include "../alg/LU/partial_pvt.h" /* 2.5D LU algorithms for full matrices */ #include "../alg/LU/lu_25d_pvt.h" /* binary tree TSQR on panels of matrices */ #include "../alg/QR/tsqr/bitree_tsqr.h" /* butterfly tree TSQR on panels of matrices */ #include "../alg/QR/tsqr/butterfly_tsqr.h" /* TSQR with Householder vector reconstruction */ #include "../alg/QR/hh_recon/hh_recon.h" /* 2D QR algorithms for full matrices */ #include "../alg/QR/qr_2d/qr_2d.h" /* 2D QR with Yamamoto's basis-kernel representation for full matrices */ #include "../alg/QR/qr_2d/qr_y2d.h" /* 2D QR algorithms for full matrices */ #include "../alg/SE/CANSE.h" #endif
39.76
25
(translation_unit) "#ifndef __CANDMC_H__\n#define __CANDMC_H__\n\n/* SUMMA and Cannon */\n#include "../alg/MM/topo_pdgemm/topo_pdgemm_algs.h"\n\n/* Split-dimensional Cannon's algorithm for multidimensional torus networks */\n#include "../alg/MM/splitdim_cannon/spcannon.h"\n\n/* tournament (CA) pivoting for panels of matrices */\n#include "../alg/LU/tnmt_pvt.h"\n\n/* partial pivoting for panels of matrices */\n#include "../alg/LU/partial_pvt.h"\n\n/* 2.5D LU algorithms for full matrices */\n#include "../alg/LU/lu_25d_pvt.h"\n\n/* binary tree TSQR on panels of matrices */\n#include "../alg/QR/tsqr/bitree_tsqr.h"\n\n/* butterfly tree TSQR on panels of matrices */\n#include "../alg/QR/tsqr/butterfly_tsqr.h"\n\n/* TSQR with Householder vector reconstruction */\n#include "../alg/QR/hh_recon/hh_recon.h"\n\n/* 2D QR algorithms for full matrices */\n#include "../alg/QR/qr_2d/qr_2d.h"\n\n/* 2D QR with Yamamoto's basis-kernel representation for full matrices */\n#include "../alg/QR/qr_2d/qr_y2d.h"\n\n/* 2D QR algorithms for full matrices */\n#include "../alg/SE/CANSE.h"\n\n#endif\n" (preproc_ifdef) "#ifndef __CANDMC_H__\n#define __CANDMC_H__\n\n/* SUMMA and Cannon */\n#include "../alg/MM/topo_pdgemm/topo_pdgemm_algs.h"\n\n/* Split-dimensional Cannon's algorithm for multidimensional torus networks */\n#include "../alg/MM/splitdim_cannon/spcannon.h"\n\n/* tournament (CA) pivoting for panels of matrices */\n#include "../alg/LU/tnmt_pvt.h"\n\n/* partial pivoting for panels of matrices */\n#include "../alg/LU/partial_pvt.h"\n\n/* 2.5D LU algorithms for full matrices */\n#include "../alg/LU/lu_25d_pvt.h"\n\n/* binary tree TSQR on panels of matrices */\n#include "../alg/QR/tsqr/bitree_tsqr.h"\n\n/* butterfly tree TSQR on panels of matrices */\n#include "../alg/QR/tsqr/butterfly_tsqr.h"\n\n/* TSQR with Householder vector reconstruction */\n#include "../alg/QR/hh_recon/hh_recon.h"\n\n/* 2D QR algorithms for full matrices */\n#include "../alg/QR/qr_2d/qr_2d.h"\n\n/* 2D QR with Yamamoto's basis-kernel representation for full matrices */\n#include "../alg/QR/qr_2d/qr_y2d.h"\n\n/* 2D QR algorithms for full matrices */\n#include "../alg/SE/CANSE.h"\n\n#endif" (#ifndef) "#ifndef" (identifier) "__CANDMC_H__" (preproc_def) "#define __CANDMC_H__\n" (#define) "#define" (identifier) "__CANDMC_H__" (comment) "/* SUMMA and Cannon */" (preproc_include) "#include "../alg/MM/topo_pdgemm/topo_pdgemm_algs.h"\n" (#include) "#include" (string_literal) ""../alg/MM/topo_pdgemm/topo_pdgemm_algs.h"" (") """ (string_content) "../alg/MM/topo_pdgemm/topo_pdgemm_algs.h" (") """ (comment) "/* Split-dimensional Cannon's algorithm for multidimensional torus networks */" (preproc_include) "#include "../alg/MM/splitdim_cannon/spcannon.h"\n" (#include) "#include" (string_literal) ""../alg/MM/splitdim_cannon/spcannon.h"" (") """ (string_content) "../alg/MM/splitdim_cannon/spcannon.h" (") """ (comment) "/* tournament (CA) pivoting for panels of matrices */" (preproc_include) "#include "../alg/LU/tnmt_pvt.h"\n" (#include) "#include" (string_literal) ""../alg/LU/tnmt_pvt.h"" (") """ (string_content) "../alg/LU/tnmt_pvt.h" (") """ (comment) "/* partial pivoting for panels of matrices */" (preproc_include) "#include "../alg/LU/partial_pvt.h"\n" (#include) "#include" (string_literal) ""../alg/LU/partial_pvt.h"" (") """ (string_content) "../alg/LU/partial_pvt.h" (") """ (comment) "/* 2.5D LU algorithms for full matrices */" (preproc_include) "#include "../alg/LU/lu_25d_pvt.h"\n" (#include) "#include" (string_literal) ""../alg/LU/lu_25d_pvt.h"" (") """ (string_content) "../alg/LU/lu_25d_pvt.h" (") """ (comment) "/* binary tree TSQR on panels of matrices */" (preproc_include) "#include "../alg/QR/tsqr/bitree_tsqr.h"\n" (#include) "#include" (string_literal) ""../alg/QR/tsqr/bitree_tsqr.h"" (") """ (string_content) "../alg/QR/tsqr/bitree_tsqr.h" (") """ (comment) "/* butterfly tree TSQR on panels of matrices */" (preproc_include) "#include "../alg/QR/tsqr/butterfly_tsqr.h"\n" (#include) "#include" (string_literal) ""../alg/QR/tsqr/butterfly_tsqr.h"" (") """ (string_content) "../alg/QR/tsqr/butterfly_tsqr.h" (") """ (comment) "/* TSQR with Householder vector reconstruction */" (preproc_include) "#include "../alg/QR/hh_recon/hh_recon.h"\n" (#include) "#include" (string_literal) ""../alg/QR/hh_recon/hh_recon.h"" (") """ (string_content) "../alg/QR/hh_recon/hh_recon.h" (") """ (comment) "/* 2D QR algorithms for full matrices */" (preproc_include) "#include "../alg/QR/qr_2d/qr_2d.h"\n" (#include) "#include" (string_literal) ""../alg/QR/qr_2d/qr_2d.h"" (") """ (string_content) "../alg/QR/qr_2d/qr_2d.h" (") """ (comment) "/* 2D QR with Yamamoto's basis-kernel representation for full matrices */" (preproc_include) "#include "../alg/QR/qr_2d/qr_y2d.h"\n" (#include) "#include" (string_literal) ""../alg/QR/qr_2d/qr_y2d.h"" (") """ (string_content) "../alg/QR/qr_2d/qr_y2d.h" (") """ (comment) "/* 2D QR algorithms for full matrices */" (preproc_include) "#include "../alg/SE/CANSE.h"\n" (#include) "#include" (string_literal) ""../alg/SE/CANSE.h"" (") """ (string_content) "../alg/SE/CANSE.h" (") """ (#endif) "#endif"
85
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 39.76, "nodes": 40, "errors": 0, "source_hash": "4973b057d0cbaa4b467579ec80856fd7a3fa40533bd035cb0c91bf39eb4440c0", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __CANDMC_H__\n#define __CANDMC_H__\n\n/* SUMMA and Cannon */\n#include \"../alg/MM/topo_pdgemm/topo_pdgemm_algs.h\"\n\n/* Split-dimensional Cannon's algorithm for multidimensional torus networks */\n#include \"../alg/MM/splitdim_cannon/spcannon.h\"\n\n/* tournament (CA) pivoting for panels of matrices */\n#include \"../alg/LU/tnmt_pvt.h\"\n\n/* partial pivoting for panels of matrices */\n#include \"../alg/LU/partial_pvt.h\"\n\n/* 2.5D LU algorithms for full matrices */\n#include \"../alg/LU/lu_25d_pvt.h\"\n\n/* binary tree TSQR on panels of matrices */\n#include \"../alg/QR/tsqr/bitree_tsqr.h\"\n\n/* butterfly tree TSQR on panels of matrices */\n#include \"../alg/QR/tsqr/butterfly_tsqr.h\"\n\n/* TSQR with Householder vector reconstruction */\n#include \"../alg/QR/hh_recon/hh_recon.h\"\n\n/* 2D QR algorithms for full matrices */\n#include \"../alg/QR/qr_2d/qr_2d.h\"\n\n/* 2D QR with Yamamoto's basis-kernel representation for full matrices */\n#include \"../alg/QR/qr_2d/qr_y2d.h\"\n\n/* 2D QR algorithms for full matrices */\n#include \"../alg/SE/CANSE.h\"\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 36, "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": "__CANDMC_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define __CANDMC_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": "__CANDMC_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"../alg/MM/topo_pdgemm/topo_pdgemm_algs.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"../alg/MM/topo_pdgemm/topo_pdgemm_algs.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 51}}, {"id": 9, "type": "preproc_include", "text": "#include \"../alg/MM/splitdim_cannon/spcannon.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": "\"../alg/MM/splitdim_cannon/spcannon.h\"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 47}}, {"id": 12, "type": "preproc_include", "text": "#include \"../alg/LU/tnmt_pvt.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"../alg/LU/tnmt_pvt.h\"", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 31}}, {"id": 15, "type": "preproc_include", "text": "#include \"../alg/LU/partial_pvt.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"../alg/LU/partial_pvt.h\"", "parent": 15, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 34}}, {"id": 18, "type": "preproc_include", "text": "#include \"../alg/LU/lu_25d_pvt.h\"\n", "parent": 0, "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": "string_literal", "text": "\"../alg/LU/lu_25d_pvt.h\"", "parent": 18, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 33}}, {"id": 21, "type": "preproc_include", "text": "#include \"../alg/QR/tsqr/bitree_tsqr.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"../alg/QR/tsqr/bitree_tsqr.h\"", "parent": 21, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 39}}, {"id": 24, "type": "preproc_include", "text": "#include \"../alg/QR/tsqr/butterfly_tsqr.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"../alg/QR/tsqr/butterfly_tsqr.h\"", "parent": 24, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 42}}, {"id": 27, "type": "preproc_include", "text": "#include \"../alg/QR/hh_recon/hh_recon.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"../alg/QR/hh_recon/hh_recon.h\"", "parent": 27, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 40}}, {"id": 30, "type": "preproc_include", "text": "#include \"../alg/QR/qr_2d/qr_2d.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"../alg/QR/qr_2d/qr_2d.h\"", "parent": 30, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 34}}, {"id": 33, "type": "preproc_include", "text": "#include \"../alg/QR/qr_2d/qr_y2d.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"../alg/QR/qr_2d/qr_y2d.h\"", "parent": 33, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 35}}, {"id": 36, "type": "preproc_include", "text": "#include \"../alg/SE/CANSE.h\"\n", "parent": 0, "children": [37, 38], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"../alg/SE/CANSE.h\"", "parent": 36, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 28}}, {"id": 39, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 39], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"../alg/MM/topo_pdgemm/topo_pdgemm_algs.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"../alg/MM/splitdim_cannon/spcannon.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"../alg/LU/tnmt_pvt.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"../alg/LU/partial_pvt.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"../alg/LU/lu_25d_pvt.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"../alg/QR/tsqr/bitree_tsqr.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"../alg/QR/tsqr/butterfly_tsqr.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"../alg/QR/hh_recon/hh_recon.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"../alg/QR/qr_2d/qr_2d.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"../alg/QR/qr_2d/qr_y2d.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"../alg/SE/CANSE.h\"\n"}, {"node_id": 37, "text": "#include"}]}, "original_source_code": "#ifndef __CANDMC_H__\n#define __CANDMC_H__\n\n/* SUMMA and Cannon */\n#include \"../alg/MM/topo_pdgemm/topo_pdgemm_algs.h\"\n\n/* Split-dimensional Cannon's algorithm for multidimensional torus networks */\n#include \"../alg/MM/splitdim_cannon/spcannon.h\"\n\n/* tournament (CA) pivoting for panels of matrices */\n#include \"../alg/LU/tnmt_pvt.h\"\n\n/* partial pivoting for panels of matrices */\n#include \"../alg/LU/partial_pvt.h\"\n\n/* 2.5D LU algorithms for full matrices */\n#include \"../alg/LU/lu_25d_pvt.h\"\n\n/* binary tree TSQR on panels of matrices */\n#include \"../alg/QR/tsqr/bitree_tsqr.h\"\n\n/* butterfly tree TSQR on panels of matrices */\n#include \"../alg/QR/tsqr/butterfly_tsqr.h\"\n\n/* TSQR with Householder vector reconstruction */\n#include \"../alg/QR/hh_recon/hh_recon.h\"\n\n/* 2D QR algorithms for full matrices */\n#include \"../alg/QR/qr_2d/qr_2d.h\"\n\n/* 2D QR with Yamamoto's basis-kernel representation for full matrices */\n#include \"../alg/QR/qr_2d/qr_y2d.h\"\n\n/* 2D QR algorithms for full matrices */\n#include \"../alg/SE/CANSE.h\"\n\n#endif\n"}
80,881
c
// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and University of // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. // Copyright (C) 2008 - 2009 by <NAME>, Virginia Tech Intellectual // Properties, Inc., EML Research, gGmbH, University of Heidelberg, // and The University of Manchester. // All rights reserved. // Copyright (C) 2006 - 2007 by <NAME>, Virginia Tech Intellectual // Properties, Inc. and EML Research, gGmbH. // All rights reserved. #ifndef CQLYAPWIDGET_H #define CQLYAPWIDGET_H #include <QtCore/QVariant> #include "copasi/UI/ui_CQLyapWidget.h" class CQLyapWidget : public TaskWidget, public Ui::CQLyapWidget { Q_OBJECT public: CQLyapWidget(QWidget* parent = 0, const char* name = 0); ~CQLyapWidget(); virtual bool runTask(); protected: virtual bool loadTaskProtected(); virtual bool saveTaskProtected(); virtual bool taskFinishedEvent(); protected slots: void slotDelayChecked(); private: void init(); }; #endif // CQLYAPWIDGET_H
32.81
36
(translation_unit) "// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc., University of Heidelberg, and University of\n// of Connecticut School of Medicine.\n// All rights reserved.\n\n// Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc., University of Heidelberg, and The University\n// of Manchester.\n// All rights reserved.\n\n// Copyright (C) 2008 - 2009 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc., EML Research, gGmbH, University of Heidelberg,\n// and The University of Manchester.\n// All rights reserved.\n\n// Copyright (C) 2006 - 2007 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc. and EML Research, gGmbH.\n// All rights reserved.\n\n#ifndef CQLYAPWIDGET_H\n#define CQLYAPWIDGET_H\n\n#include <QtCore/QVariant>\n\n#include "copasi/UI/ui_CQLyapWidget.h"\n\nclass CQLyapWidget : public TaskWidget, public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:\n CQLyapWidget(QWidget* parent = 0, const char* name = 0);\n ~CQLyapWidget();\n\n virtual bool runTask();\n\nprotected:\n virtual bool loadTaskProtected();\n virtual bool saveTaskProtected();\n virtual bool taskFinishedEvent();\n\nprotected slots:\n\n void slotDelayChecked();\n\nprivate:\n void init();\n};\n\n#endif // CQLYAPWIDGET_H\n" (comment) "// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual" (comment) "// Properties, Inc., University of Heidelberg, and University of" (comment) "// of Connecticut School of Medicine." (comment) "// All rights reserved." (comment) "// Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual" (comment) "// Properties, Inc., University of Heidelberg, and The University" (comment) "// of Manchester." (comment) "// All rights reserved." (comment) "// Copyright (C) 2008 - 2009 by <NAME>, Virginia Tech Intellectual" (comment) "// Properties, Inc., EML Research, gGmbH, University of Heidelberg," (comment) "// and The University of Manchester." (comment) "// All rights reserved." (comment) "// Copyright (C) 2006 - 2007 by <NAME>, Virginia Tech Intellectual" (comment) "// Properties, Inc. and EML Research, gGmbH." (comment) "// All rights reserved." (preproc_ifdef) "#ifndef CQLYAPWIDGET_H\n#define CQLYAPWIDGET_H\n\n#include <QtCore/QVariant>\n\n#include "copasi/UI/ui_CQLyapWidget.h"\n\nclass CQLyapWidget : public TaskWidget, public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:\n CQLyapWidget(QWidget* parent = 0, const char* name = 0);\n ~CQLyapWidget();\n\n virtual bool runTask();\n\nprotected:\n virtual bool loadTaskProtected();\n virtual bool saveTaskProtected();\n virtual bool taskFinishedEvent();\n\nprotected slots:\n\n void slotDelayChecked();\n\nprivate:\n void init();\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "CQLYAPWIDGET_H" (preproc_def) "#define CQLYAPWIDGET_H\n" (#define) "#define" (identifier) "CQLYAPWIDGET_H" (preproc_include) "#include <QtCore/QVariant>\n" (#include) "#include" (system_lib_string) "<QtCore/QVariant>" (preproc_include) "#include "copasi/UI/ui_CQLyapWidget.h"\n" (#include) "#include" (string_literal) ""copasi/UI/ui_CQLyapWidget.h"" (") """ (string_content) "copasi/UI/ui_CQLyapWidget.h" (") """ (declaration) "class CQLyapWidget : public TaskWidget, public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:\n CQLyapWidget(QWidget* parent = 0, const char* name = 0);" (type_identifier) "class" (identifier) "CQLyapWidget" (ERROR) ": public TaskWidget" (:) ":" (identifier) "public" (identifier) "TaskWidget" (,) "," (ERROR) "public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:" (identifier) "public" (identifier) "Ui" (:) ":" (:) ":" (identifier) "CQLyapWidget" ({) "{" (identifier) "Q_OBJECT" (identifier) "public" (:) ":" (init_declarator) "CQLyapWidget(QWidget* parent = 0" (function_declarator) "CQLyapWidget(QWidget* parent" (identifier) "CQLyapWidget" (parameter_list) "(QWidget* parent" (() "(" (parameter_declaration) "QWidget* parent" (type_identifier) "QWidget" (pointer_declarator) "* parent" (*) "*" (identifier) "parent" ()) "" (=) "=" (number_literal) "0" (,) "," (ERROR) "const char" (identifier) "const" (identifier) "char" (init_declarator) "* name = 0" (pointer_declarator) "* name" (*) "*" (identifier) "name" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "~CQLyapWidget();" (unary_expression) "~CQLyapWidget()" (~) "~" (call_expression) "CQLyapWidget()" (identifier) "CQLyapWidget" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool runTask();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "runTask()" (identifier) "runTask" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "protected:\n virtual bool loadTaskProtected();" (statement_identifier) "protected" (:) ":" (declaration) "virtual bool loadTaskProtected();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "loadTaskProtected()" (identifier) "loadTaskProtected" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool saveTaskProtected();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "saveTaskProtected()" (identifier) "saveTaskProtected" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual bool taskFinishedEvent();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "taskFinishedEvent()" (identifier) "taskFinishedEvent" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "protected slots:" (type_identifier) "protected" (identifier) "slots" (:) ":" (declaration) "void slotDelayChecked();" (primitive_type) "void" (function_declarator) "slotDelayChecked()" (identifier) "slotDelayChecked" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n void init();" (statement_identifier) "private" (:) ":" (declaration) "void init();" (primitive_type) "void" (function_declarator) "init()" (identifier) "init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// CQLYAPWIDGET_H"
156
10
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 32.81, "nodes": 87, "errors": 0, "source_hash": "2a8d876f9a3a59b8d4f1bbf6c164089fbe977c7c4a565e1406e05ca4c72c1377", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CQLYAPWIDGET_H\n#define CQLYAPWIDGET_H\n\n#include <QtCore/QVariant>\n\n#include \"copasi/UI/ui_CQLyapWidget.h\"\n\nclass CQLyapWidget : public TaskWidget, public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:\n CQLyapWidget(QWidget* parent = 0, const char* name = 0);\n ~CQLyapWidget();\n\n virtual bool runTask();\n\nprotected:\n virtual bool loadTaskProtected();\n virtual bool saveTaskProtected();\n virtual bool taskFinishedEvent();\n\nprotected slots:\n\n void slotDelayChecked();\n\nprivate:\n void init();\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 44, 51, 59, 66, 73, 75, 80, 86], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 2, "type": "identifier", "text": "CQLYAPWIDGET_H", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define CQLYAPWIDGET_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 5, "type": "identifier", "text": "CQLYAPWIDGET_H", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include <QtCore/QVariant>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<QtCore/QVariant>", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "#include \"copasi/UI/ui_CQLyapWidget.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"copasi/UI/ui_CQLyapWidget.h\"", "parent": 9, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 38}}, {"id": 12, "type": "declaration", "text": "class CQLyapWidget : public TaskWidget, public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:\n CQLyapWidget(QWidget* parent = 0, const char* name = 0);", "parent": 0, "children": [13, 14, 16, 20, 31, 33], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 31, "column": 58}}, {"id": 13, "type": "identifier", "text": "CQLyapWidget", "parent": 12, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 18}}, {"id": 14, "type": "ERROR", "text": ": public TaskWidget", "parent": 12, "children": [15], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 38}}, {"id": 15, "type": "identifier", "text": "TaskWidget", "parent": 14, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 38}}, {"id": 16, "type": "ERROR", "text": "public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:", "parent": 12, "children": [17, 18, 19], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 30, "column": 7}}, {"id": 17, "type": "identifier", "text": "Ui", "parent": 16, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 49}}, {"id": 18, "type": "identifier", "text": "CQLyapWidget", "parent": 16, "children": [], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 63}}, {"id": 19, "type": "identifier", "text": "Q_OBJECT", "parent": 16, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 10}}, {"id": 20, "type": "init_declarator", "text": "CQLyapWidget(QWidget* parent = 0", "parent": 12, "children": [21, 29, 30], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 34}}, {"id": 21, "type": "function_declarator", "text": "CQLyapWidget(QWidget* parent", "parent": 20, "children": [22, 23], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 30}}, {"id": 22, "type": "identifier", "text": "CQLyapWidget", "parent": 21, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 14}}, {"id": 23, "type": "parameter_list", "text": "(QWidget* parent", "parent": 21, "children": [24], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 30}}, {"id": 24, "type": "parameter_declaration", "text": "QWidget* parent", "parent": 23, "children": [25, 26], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 30}}, {"id": 25, "type": "type_identifier", "text": "QWidget", "parent": 24, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 22}}, {"id": 26, "type": "pointer_declarator", "text": "* parent", "parent": 24, "children": [27, 28], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 30}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 28, "type": "identifier", "text": "parent", "parent": 26, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 30}}, {"id": 29, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 32}}, {"id": 30, "type": "number_literal", "text": "0", "parent": 20, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 34}}, {"id": 31, "type": "ERROR", "text": "const char", "parent": 12, "children": [32], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 46}}, {"id": 32, "type": "identifier", "text": "char", "parent": 31, "children": [], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 46}}, {"id": 33, "type": "init_declarator", "text": "* name = 0", "parent": 12, "children": [34, 37, 38], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 56}}, {"id": 34, "type": "pointer_declarator", "text": "* name", "parent": 33, "children": [35, 36], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 52}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 47}}, {"id": 36, "type": "identifier", "text": "name", "parent": 34, "children": [], "start_point": {"row": 31, "column": 48}, "end_point": {"row": 31, "column": 52}}, {"id": 37, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 54}}, {"id": 38, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 31, "column": 55}, "end_point": {"row": 31, "column": 56}}, {"id": 39, "type": "unary_expression", "text": "~CQLyapWidget()", "parent": 0, "children": [40, 41], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 17}}, {"id": 40, "type": "~", "text": "~", "parent": 39, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 3}}, {"id": 41, "type": "call_expression", "text": "CQLyapWidget()", "parent": 39, "children": [42, 43], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 17}}, {"id": 42, "type": "identifier", "text": "CQLyapWidget", "parent": 41, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 15}}, {"id": 43, "type": "argument_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 17}}, {"id": 44, "type": "declaration", "text": "virtual bool runTask();", "parent": 0, "children": [45, 46, 48], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 25}}, {"id": 45, "type": "type_identifier", "text": "virtual", "parent": 44, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 9}}, {"id": 46, "type": "ERROR", "text": "bool", "parent": 44, "children": [47], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 14}}, {"id": 47, "type": "identifier", "text": "bool", "parent": 46, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 14}}, {"id": 48, "type": "function_declarator", "text": "runTask()", "parent": 44, "children": [49, 50], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 24}}, {"id": 49, "type": "identifier", "text": "runTask", "parent": 48, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 22}}, {"id": 50, "type": "parameter_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 24}}, {"id": 51, "type": "labeled_statement", "text": "protected:\n virtual bool loadTaskProtected();", "parent": 0, "children": [52], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 35}}, {"id": 52, "type": "declaration", "text": "virtual bool loadTaskProtected();", "parent": 51, "children": [53, 54, 56], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 35}}, {"id": 53, "type": "type_identifier", "text": "virtual", "parent": 52, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 9}}, {"id": 54, "type": "ERROR", "text": "bool", "parent": 52, "children": [55], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 14}}, {"id": 55, "type": "identifier", "text": "bool", "parent": 54, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 14}}, {"id": 56, "type": "function_declarator", "text": "loadTaskProtected()", "parent": 52, "children": [57, 58], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 34}}, {"id": 57, "type": "identifier", "text": "loadTaskProtected", "parent": 56, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 32}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 34}}, {"id": 59, "type": "declaration", "text": "virtual bool saveTaskProtected();", "parent": 0, "children": [60, 61, 63], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 35}}, {"id": 60, "type": "type_identifier", "text": "virtual", "parent": 59, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 9}}, {"id": 61, "type": "ERROR", "text": "bool", "parent": 59, "children": [62], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 14}}, {"id": 62, "type": "identifier", "text": "bool", "parent": 61, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 14}}, {"id": 63, "type": "function_declarator", "text": "saveTaskProtected()", "parent": 59, "children": [64, 65], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 34}}, {"id": 64, "type": "identifier", "text": "saveTaskProtected", "parent": 63, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 32}}, {"id": 65, "type": "parameter_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 34}}, {"id": 66, "type": "declaration", "text": "virtual bool taskFinishedEvent();", "parent": 0, "children": [67, 68, 70], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 35}}, {"id": 67, "type": "type_identifier", "text": "virtual", "parent": 66, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 9}}, {"id": 68, "type": "ERROR", "text": "bool", "parent": 66, "children": [69], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 14}}, {"id": 69, "type": "identifier", "text": "bool", "parent": 68, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 14}}, {"id": 70, "type": "function_declarator", "text": "taskFinishedEvent()", "parent": 66, "children": [71, 72], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 34}}, {"id": 71, "type": "identifier", "text": "taskFinishedEvent", "parent": 70, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 32}}, {"id": 72, "type": "parameter_list", "text": "()", "parent": 70, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 34}}, {"id": 73, "type": "ERROR", "text": "protected slots:", "parent": 0, "children": [74], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 16}}, {"id": 74, "type": "identifier", "text": "slots", "parent": 73, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 15}}, {"id": 75, "type": "declaration", "text": "void slotDelayChecked();", "parent": 0, "children": [76, 77], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 26}}, {"id": 76, "type": "primitive_type", "text": "void", "parent": 75, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 77, "type": "function_declarator", "text": "slotDelayChecked()", "parent": 75, "children": [78, 79], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 25}}, {"id": 78, "type": "identifier", "text": "slotDelayChecked", "parent": 77, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 23}}, {"id": 79, "type": "parameter_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 25}}, {"id": 80, "type": "labeled_statement", "text": "private:\n void init();", "parent": 0, "children": [81], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 14}}, {"id": 81, "type": "declaration", "text": "void init();", "parent": 80, "children": [82, 83], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 14}}, {"id": 82, "type": "primitive_type", "text": "void", "parent": 81, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 83, "type": "function_declarator", "text": "init()", "parent": 81, "children": [84, 85], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 13}}, {"id": 84, "type": "identifier", "text": "init", "parent": 83, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 11}}, {"id": 85, "type": "parameter_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 13}}, {"id": 86, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 48, 56, 63, 70, 77, 83], "variables": [12, 24, 44, 52, 59, 66, 75, 81], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [39, 41], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 17, 18, 19, 22, 25, 28, 32, 36, 42, 45, 47, 49, 53, 55, 57, 60, 62, 64, 67, 69, 71, 74, 78, 84, 86], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 30, 38], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "CQLyapWidget(QWidget* parent"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "runTask()"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "loadTaskProtected()"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "saveTaskProtected()"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "taskFinishedEvent()"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "slotDelayChecked()"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "init()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <QtCore/QVariant>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"copasi/UI/ui_CQLyapWidget.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc., University of Heidelberg, and University of\n// of Connecticut School of Medicine.\n// All rights reserved.\n\n// Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc., University of Heidelberg, and The University\n// of Manchester.\n// All rights reserved.\n\n// Copyright (C) 2008 - 2009 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc., EML Research, gGmbH, University of Heidelberg,\n// and The University of Manchester.\n// All rights reserved.\n\n// Copyright (C) 2006 - 2007 by <NAME>, Virginia Tech Intellectual\n// Properties, Inc. and EML Research, gGmbH.\n// All rights reserved.\n\n#ifndef CQLYAPWIDGET_H\n#define CQLYAPWIDGET_H\n\n#include <QtCore/QVariant>\n\n#include \"copasi/UI/ui_CQLyapWidget.h\"\n\nclass CQLyapWidget : public TaskWidget, public Ui::CQLyapWidget\n{\n Q_OBJECT\n\npublic:\n CQLyapWidget(QWidget* parent = 0, const char* name = 0);\n ~CQLyapWidget();\n\n virtual bool runTask();\n\nprotected:\n virtual bool loadTaskProtected();\n virtual bool saveTaskProtected();\n virtual bool taskFinishedEvent();\n\nprotected slots:\n\n void slotDelayChecked();\n\nprivate:\n void init();\n};\n\n#endif // CQLYAPWIDGET_H\n"}
80,882
c
#ifndef STUDENT_H #define STUDENT_H #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <unordered_map> #include <mutex> #include "city/DTSim.h" #include "DefaultPeople.h" class Student : public DefaultPeople { private: int grade; public: Student(double x_, double y_, int age_, int grade_); virtual ~Student(); int getGrade() { return grade; }; }; #endif /* STUDENT_H */
20.53
19
(translation_unit) "#ifndef STUDENT_H\n#define STUDENT_H\n\n#include <iostream>\n#include <fstream>\n#include <sstream>\n#include <vector>\n#include <unordered_map>\n#include <mutex>\n\n#include "city/DTSim.h"\n#include "DefaultPeople.h"\n\nclass Student : public DefaultPeople {\nprivate:\n int grade;\n\npublic:\n Student(double x_, double y_, int age_, int grade_);\n virtual ~Student();\n\n int getGrade() { return grade; };\n};\n\n#endif /* STUDENT_H */\n" (preproc_ifdef) "#ifndef STUDENT_H\n#define STUDENT_H\n\n#include <iostream>\n#include <fstream>\n#include <sstream>\n#include <vector>\n#include <unordered_map>\n#include <mutex>\n\n#include "city/DTSim.h"\n#include "DefaultPeople.h"\n\nclass Student : public DefaultPeople {\nprivate:\n int grade;\n\npublic:\n Student(double x_, double y_, int age_, int grade_);\n virtual ~Student();\n\n int getGrade() { return grade; };\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "STUDENT_H" (preproc_def) "#define STUDENT_H\n" (#define) "#define" (identifier) "STUDENT_H" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include <fstream>\n" (#include) "#include" (system_lib_string) "<fstream>" (preproc_include) "#include <sstream>\n" (#include) "#include" (system_lib_string) "<sstream>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <unordered_map>\n" (#include) "#include" (system_lib_string) "<unordered_map>" (preproc_include) "#include <mutex>\n" (#include) "#include" (system_lib_string) "<mutex>" (preproc_include) "#include "city/DTSim.h"\n" (#include) "#include" (string_literal) ""city/DTSim.h"" (") """ (string_content) "city/DTSim.h" (") """ (preproc_include) "#include "DefaultPeople.h"\n" (#include) "#include" (string_literal) ""DefaultPeople.h"" (") """ (string_content) "DefaultPeople.h" (") """ (function_definition) "class Student : public DefaultPeople {\nprivate:\n int grade;\n\npublic:\n Student(double x_, double y_, int age_, int grade_);\n virtual ~Student();\n\n int getGrade() { return grade; };\n}" (type_identifier) "class" (ERROR) "Student : public" (identifier) "Student" (:) ":" (identifier) "public" (identifier) "DefaultPeople" (compound_statement) "{\nprivate:\n int grade;\n\npublic:\n Student(double x_, double y_, int age_, int grade_);\n virtual ~Student();\n\n int getGrade() { return grade; };\n}" ({) "{" (labeled_statement) "private:\n int grade;" (statement_identifier) "private" (:) ":" (declaration) "int grade;" (primitive_type) "int" (identifier) "grade" (;) ";" (labeled_statement) "public:\n Student(double x_, double y_, int age_, int grade_);" (statement_identifier) "public" (:) ":" (declaration) "Student(double x_, double y_, int age_, int grade_);" (macro_type_specifier) "Student(double" (identifier) "Student" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) "" (identifier) "x_" (,) "," (identifier) "double" (ERROR) "y_" (identifier) "y_" (,) "," (ERROR) "int" (identifier) "int" (identifier) "age_" (,) "," (identifier) "int" (ERROR) "grade_)" (identifier) "grade_" ()) ")" (;) ";" (declaration) "virtual ~Student();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "Student()" (identifier) "Student" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "int getGrade() { return grade; }" (primitive_type) "int" (function_declarator) "getGrade()" (identifier) "getGrade" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return grade; }" ({) "{" (return_statement) "return grade;" (return) "return" (identifier) "grade" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/* STUDENT_H */"
109
5
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 20.53, "nodes": 69, "errors": 0, "source_hash": "d7bcf6335b2606b0f96b0de861acba7cc895790cf2a28b724372188f75d63a5e", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef STUDENT_H\n#define STUDENT_H\n\n#include <iostream>\n#include <fstream>\n#include <sstream>\n#include <vector>\n#include <unordered_map>\n#include <mutex>\n\n#include \"city/DTSim.h\"\n#include \"DefaultPeople.h\"\n\nclass Student : public DefaultPeople {\nprivate:\n\tint grade;\n\npublic:\n\tStudent(double x_, double y_, int age_, int grade_);\n\tvirtual ~Student();\n\n\tint getGrade() { return grade; };\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 68], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 24, "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": "STUDENT_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define STUDENT_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": "STUDENT_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <iostream>\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": "<iostream>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <fstream>\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": "<fstream>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <sstream>\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": "<sstream>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"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": "preproc_include", "text": "#include <unordered_map>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<unordered_map>", "parent": 18, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 24}}, {"id": 21, "type": "preproc_include", "text": "#include <mutex>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<mutex>", "parent": 21, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 16}}, {"id": 24, "type": "preproc_include", "text": "#include \"city/DTSim.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"city/DTSim.h\"", "parent": 24, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 23}}, {"id": 27, "type": "preproc_include", "text": "#include \"DefaultPeople.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"DefaultPeople.h\"", "parent": 27, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 26}}, {"id": 30, "type": "function_definition", "text": "class Student : public DefaultPeople {\nprivate:\n\tint grade;\n\npublic:\n\tStudent(double x_, double y_, int age_, int grade_);\n\tvirtual ~Student();\n\n\tint getGrade() { return grade; };\n}", "parent": 0, "children": [31, 33], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 31, "type": "ERROR", "text": "Student : public", "parent": 30, "children": [32], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 22}}, {"id": 32, "type": "identifier", "text": "Student", "parent": 31, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 13}}, {"id": 33, "type": "identifier", "text": "DefaultPeople", "parent": 30, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 36}}, {"id": 34, "type": "labeled_statement", "text": "private:\n\tint grade;", "parent": 30, "children": [35], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 11}}, {"id": 35, "type": "declaration", "text": "int grade;", "parent": 34, "children": [36, 37], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 11}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}, {"id": 37, "type": "identifier", "text": "grade", "parent": 35, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 10}}, {"id": 38, "type": "labeled_statement", "text": "public:\n\tStudent(double x_, double y_, int age_, int grade_);", "parent": 30, "children": [39], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 53}}, {"id": 39, "type": "declaration", "text": "Student(double x_, double y_, int age_, int grade_);", "parent": 38, "children": [40, 44, 45, 46, 48, 50, 51, 52], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 53}}, {"id": 40, "type": "macro_type_specifier", "text": "Student(double", "parent": 39, "children": [41, 42], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 15}}, {"id": 41, "type": "identifier", "text": "Student", "parent": 40, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 8}}, {"id": 42, "type": "type_descriptor", "text": "double", "parent": 40, "children": [43], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 15}}, {"id": 43, "type": "primitive_type", "text": "double", "parent": 42, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 15}}, {"id": 44, "type": "identifier", "text": "x_", "parent": 39, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 18}}, {"id": 45, "type": "identifier", "text": "double", "parent": 39, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 26}}, {"id": 46, "type": "ERROR", "text": "y_", "parent": 39, "children": [47], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 29}}, {"id": 47, "type": "identifier", "text": "y_", "parent": 46, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 29}}, {"id": 48, "type": "ERROR", "text": "int", "parent": 39, "children": [49], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 34}}, {"id": 49, "type": "identifier", "text": "int", "parent": 48, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 34}}, {"id": 50, "type": "identifier", "text": "age_", "parent": 39, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 39}}, {"id": 51, "type": "identifier", "text": "int", "parent": 39, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 44}}, {"id": 52, "type": "ERROR", "text": "grade_)", "parent": 39, "children": [53], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 52}}, {"id": 53, "type": "identifier", "text": "grade_", "parent": 52, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 51}}, {"id": 54, "type": "declaration", "text": "virtual ~Student();", "parent": 30, "children": [55, 56, 58], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 20}}, {"id": 55, "type": "type_identifier", "text": "virtual", "parent": 54, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 56, "type": "ERROR", "text": "~", "parent": 54, "children": [57], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 57, "type": "~", "text": "~", "parent": 56, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 58, "type": "function_declarator", "text": "Student()", "parent": 54, "children": [59, 60], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 19}}, {"id": 59, "type": "identifier", "text": "Student", "parent": 58, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 17}}, {"id": 60, "type": "parameter_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 19}}, {"id": 61, "type": "function_definition", "text": "int getGrade() { return grade; }", "parent": 30, "children": [62, 63], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 33}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 63, "type": "function_declarator", "text": "getGrade()", "parent": 61, "children": [64, 65], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 15}}, {"id": 64, "type": "identifier", "text": "getGrade", "parent": 63, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 13}}, {"id": 65, "type": "parameter_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 15}}, {"id": 66, "type": "return_statement", "text": "return grade;", "parent": 61, "children": [67], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 31}}, {"id": 67, "type": "identifier", "text": "grade", "parent": 66, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 30}}, {"id": 68, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}]}, "node_categories": {"declarations": {"functions": [30, 58, 61, 63], "variables": [35, 39, 54], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 32, 33, 37, 40, 41, 44, 45, 47, 49, 50, 51, 53, 55, 59, 64, 67, 68], "returns": [66], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "Student", "text_snippet": "class Student : public DefaultPeople {\nprivate:\n\tint grade;\n\npublic:\n\tStudent(double x_, double y_, "}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "Student()"}, {"node_id": 61, "universal_type": "function", "name": "getGrade", "text_snippet": "int getGrade() { return grade; }"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "getGrade()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <iostream>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <fstream>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <sstream>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vector>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <unordered_map>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <mutex>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"city/DTSim.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"DefaultPeople.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "#ifndef STUDENT_H\n#define STUDENT_H\n\n#include <iostream>\n#include <fstream>\n#include <sstream>\n#include <vector>\n#include <unordered_map>\n#include <mutex>\n\n#include \"city/DTSim.h\"\n#include \"DefaultPeople.h\"\n\nclass Student : public DefaultPeople {\nprivate:\n\tint grade;\n\npublic:\n\tStudent(double x_, double y_, int age_, int grade_);\n\tvirtual ~Student();\n\n\tint getGrade() { return grade; };\n};\n\n#endif /* STUDENT_H */\n"}
80,883
c
// // UIView+HDCore.h // HDCore // // Created by zhangdadi on 15/3/31. // Copyright (c) 2015年 HD. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (HDCore) @property CGPoint HDOrigin; @property CGSize HDSize; @property CGFloat HDWidth; @property CGFloat HDHeight; @property CGFloat HDCenterX; @property CGFloat HDCenterY; //位置 @property CGFloat HDLeft; @property CGFloat HDRight; @property CGFloat HDTop; @property CGFloat HDBottom; /** * 圆角 */ @property IBInspectable CGFloat HDRadius; /** * 边框颜色 */ @property IBInspectable UIColor *HDBordColor; /** * 边框宽度 */ @property IBInspectable CGFloat HDBorderWidth; - (void)HDMoveBy:(CGPoint)delta; - (void)HDScaleBy:(CGFloat)scaleFactor; /** * 获取view的viewController * * @return 返回view的viewController */ - (UIViewController*)HDViewController; /** * 删除view里的所有子view */ - (void)HDRemoveAllChildren; /** * 初始化xib * */ + (instancetype)HDViewFromXib; @end
17.06
52
(translation_unit) "//\n// UIView+HDCore.h\n// HDCore\n//\n// Created by zhangdadi on 15/3/31.\n// Copyright (c) 2015年 HD. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (HDCore)\n\n@property CGPoint HDOrigin;\n@property CGSize HDSize;\n@property CGFloat HDWidth;\n@property CGFloat HDHeight;\n@property CGFloat HDCenterX;\n@property CGFloat HDCenterY;\n\n//位置\n@property CGFloat HDLeft;\n@property CGFloat HDRight;\n@property CGFloat HDTop;\n@property CGFloat HDBottom;\n\n/**\n * 圆角\n */\n@property IBInspectable CGFloat HDRadius;\n\n/**\n * 边框颜色\n */\n@property IBInspectable UIColor *HDBordColor;\n\n/**\n * 边框宽度\n */\n@property IBInspectable CGFloat HDBorderWidth;\n\n\n- (void)HDMoveBy:(CGPoint)delta;\n- (void)HDScaleBy:(CGFloat)scaleFactor;\n\n/**\n * 获取view的viewController\n *\n * @return 返回view的viewController\n */\n- (UIViewController*)HDViewController;\n\n/**\n * 删除view里的所有子view\n */\n- (void)HDRemoveAllChildren;\n\n/**\n * 初始化xib\n *\n */\n+ (instancetype)HDViewFromXib;\n\n\n@end\n" (comment) "//" (comment) "// UIView+HDCore.h" (comment) "// HDCore" (comment) "//" (comment) "// Created by zhangdadi on 15/3/31." (comment) "// Copyright (c) 2015年 HD. 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 UIView (HDCore)\n\n@property CGPoint HDOrigin;\n@property CGSize HDSize;\n@property CGFloat HDWidth;\n@property CGFloat HDHeight;\n@property CGFloat HDCenterX;\n@property CGFloat HDCenterY;\n\n//位置\n@property CGFloat HDLeft;\n@property CGFloat HDRight;\n@property CGFloat HDTop;\n@property CGFloat HDBottom;\n\n/**\n * 圆角\n */\n@property IBInspectable CGFloat HDRadius;\n\n/**\n * 边框颜色\n */\n@property IBInspectable UIColor *HDBordColor;\n\n/**\n * 边框宽度\n */\n@property IBInspectable CGFloat HDBorderWidth;\n\n\n- (void)HDMoveBy:(CGPoint)delta;\n- (void)HDScaleBy:(CGFloat)scaleFactor;\n\n/**\n * 获取view的viewController\n *\n * @return 返回view的viewController\n */\n- (UIViewController*)HDViewController;\n\n/**\n * 删除view里的所有子view\n */\n- (void)HDRemoveAllChildren;\n\n/**\n * 初始化xib\n *\n */\n+ (instancetype)HDViewFromXib;\n\n\n@end\n" (ERROR) "n" (type_identifier) "terface U" (function_declarator) "View (HDCore)\n\n" (identifier) "View (" (parameter_list) "DCore)\n\n" (() "D" (identifier) "Core)\n" ()) "\n" (ERROR) "r" (ERROR) "r" (declaration) "operty CGPoint HDOrigin;\n@" (type_identifier) "operty C" (ERROR) "Point H" (identifier) "Point H" (identifier) "Origin;\n" (;) "@" (ERROR) "r" (ERROR) "r" (declaration) "operty CGSize HDSize;\n@" (type_identifier) "operty C" (ERROR) "Size " (identifier) "Size " (identifier) "Size;\n" (;) "@" (ERROR) "r" (ERROR) "r" (declaration) "operty CGFloat HDWidth;\n@" (type_identifier) "operty C" (ERROR) "Float H" (identifier) "Float H" (identifier) "Width;\n" (;) "@" (ERROR) "r" (ERROR) "r" (declaration) "operty CGFloat HDHeight;\n@" (type_identifier) "operty C" (ERROR) "Float H" (identifier) "Float H" (identifier) "Height;\n" (;) "@" (ERROR) "r" (ERROR) "r" (declaration) "operty CGFloat HDCenterX;\n@" (type_identifier) "operty C" (ERROR) "Float H" (identifier) "Float H" (identifier) "CenterX;\n" (;) "@" (ERROR) "r" (ERROR) "r" (declaration) "operty CGFloat HDCenterY;\n\n" (type_identifier) "operty C" (ERROR) "Float H" (identifier) "Float H" (identifier) "CenterY;\n" (;) "\n" (comment) "位置\n@prop" (ERROR) "r" (ERROR) "r" (declaration) "ty CGFloat HDLeft;\n@prop" (type_identifier) "ty CGFlo" (identifier) "t HDLef" (ERROR) ";\n@pro" (identifier) ";\n@pro" (;) "p" (ERROR) "r" (ERROR) "r" (declaration) "ty CGFloat HDRight;\n@prop" (type_identifier) "ty CGFlo" (ERROR) "t HDRig" (identifier) "t HDRig" (identifier) "t;\n@pro" (;) "p" (ERROR) "r" (ERROR) "r" (declaration) "ty CGFloat HDTop;\n@prop" (type_identifier) "ty CGFlo" (identifier) "t HDTop" (ERROR) "\n@pro" (identifier) "\n@pro" (;) "p" (ERROR) "r" (ERROR) "r" (declaration) "ty CGFloat HDBottom;\n\n/**\n" (type_identifier) "ty CGFlo" (ERROR) "t HDBot" (identifier) "t HDBot" (identifier) "om;\n\n/**" (;) "\n" (comment) " 圆角\n */\n@property" (ERROR) "I" (ERROR) "I" (declaration) "BInspectable CGFloat H" (type_identifier) "BInspect" (identifier) "ble CGFloat H" (;) "" (declaration) "Radius;\n\n/**\n * " (type_identifier) "Radius;" (identifier) "\n/**\n * " (;) " " (comment) "颜色\n */\n@property IBInspe" (ERROR) "t" (ERROR) "t" (declaration) "able UIColor *HDBordCo" (type_identifier) "able UIC" (identifier) "lor *HDBordCo" (;) "" (declaration) "or;\n\n/**\n * 边框宽度\n */" (type_identifier) "or;\n\n/*" (pointer_declarator) "\n * 边框宽度\n *" (*) "\n" (identifier) " * 边框宽度\n *" (;) "/" (comment) "property IBInspectable C" (ERROR) "F" (ERROR) "F" (declaration) "loat HDBorderWidth;\n\n\n" (type_identifier) "loat HDB" (identifier) "rderWidth;\n\n\n" (;) "" (declaration) " (void)HDMoveBy:(CGPoi" (type_identifier) " (void)" (identifier) "DMoveBy:(CGPo" (;) "i" (ERROR) "del" (-) "d" (() "l" (declaration) "ta;\n- (void)HDScaleBy:(CGFloa" (primitive_type) "ta;\n" (ERROR) "- (void)HDScaleBy:(" ()) "-" (identifier) " (void)H" (:) "D" (() "S" (identifier) "caleBy:" ()) "(" (identifier) "CGFlo" (;) "a" (ERROR) ")sc" (-) ")" (() "c" (declaration) "aleFactor;\n\n/**\n * 获取view的viewContr" (primitive_type) "aleF" (ERROR) "actor;\n\n/**\n * 获取vi" ()) "a" (identifier) "ctor;\n\n/*" (:) "*" (() "\n" (identifier) " * 获取v" ()) "i" (identifier) "ew的viewCont" (;) "r" (comment) "ler\n *\n * @return 返回view的viewController\n */\n- (UIViewController*)HDViewController" (ERROR) "\n\n/" (-) "\n" (() "/" (declaration) "**\n * 删除view里的所有子view\n */\n- (void)" (type_identifier) "**\n * 删除view里的所" (pointer_declarator) "有子view\n */\n- (void" (*) "有" (ERROR) "子" ()) "子" (identifier) "view\n */\n- (void" (;) ")" (comment) "RemoveAllChildren;\n\n/**\n * 初始化xib\n *\n */" (ERROR) "+ (" (-) "+" (() "(" (declaration) "instancetype)HDViewFromXi" (primitive_type) "inst" (ERROR) "a" ()) "a" (identifier) "ncetype)HDViewFromX" (;) "i" (comment) "\n\n\n@end\n" (ERROR) "" (+) "" (() "" (declaration) "" (type_identifier) "" (ERROR) "" ()) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (identifier) ""
199
50
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 17.06, "nodes": 144, "errors": 0, "source_hash": "c4ba42a70f093913882590e1930451584d56497709dae203090bf13fe6c6bfa1", "categorized_nodes": 80}, "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 UIView (HDCore)\n\n@property CGPoint HDOrigin;\n@property CGSize HDSize;\n@property CGFloat HDWidth;\n@property CGFloat HDHeight;\n@property CGFloat HDCenterX;\n@property CGFloat HDCenterY;\n\n//\u4f4d\u7f6e\n@property CGFloat HDLeft;\n@property CGFloat HDRight;\n@property CGFloat HDTop;\n@property CGFloat HDBottom;\n\n/**\n * \u5706\u89d2\n */\n@property IBInspectable CGFloat HDRadius;\n\n/**\n * \u8fb9\u6846\u989c\u8272\n */\n@property IBInspectable UIColor *HDBordColor;\n\n/**\n * \u8fb9\u6846\u5bbd\u5ea6\n */\n@property IBInspectable CGFloat HDBorderWidth;\n\n\n- (void)HDMoveBy:(CGPoint)delta;\n- (void)HDScaleBy:(CGFloat)scaleFactor;\n\n/**\n * \u83b7\u53d6view\u7684viewController\n *\n * @return \u8fd4\u56deview\u7684viewController\n */\n- (UIViewController*)HDViewController;\n\n/**\n * \u5220\u9664view\u91cc\u7684\u6240\u6709\u5b50view\n */\n- (void)HDRemoveAllChildren;\n\n/**\n * \u521d\u59cb\u5316xib\n *\n */\n+ (instancetype)HDViewFromXib;\n\n\n@end\n", "parent": null, "children": [4, 5, 6, 10, 12, 17, 19, 24, 26, 31, 33, 38, 40, 45, 47, 52, 54, 59, 61, 66, 68, 73, 75, 80, 82, 85, 88, 90, 93, 98, 100, 103, 106, 108, 114, 115, 121, 123, 129, 131, 135, 137, 141, 143], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 63, "column": 4}}, {"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 U", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "View (HDCore)\n\n", "parent": 3, "children": [7, 8], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 26}}, {"id": 7, "type": "identifier", "text": "View (", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 17}}, {"id": 8, "type": "parameter_list", "text": "DCore)\n\n", "parent": 6, "children": [9], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 26}}, {"id": 9, "type": "identifier", "text": "Core)\n", "parent": 8, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 25}}, {"id": 10, "type": "ERROR", "text": "r", "parent": 3, "children": [11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 11, "type": "ERROR", "text": "r", "parent": 10, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "declaration", "text": "operty CGPoint HDOrigin;\n@", "parent": 3, "children": [13, 14, 16], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 27}}, {"id": 13, "type": "type_identifier", "text": "operty C", "parent": 12, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 14, "type": "ERROR", "text": "Point H", "parent": 12, "children": [15], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 17}}, {"id": 15, "type": "identifier", "text": "Point H", "parent": 14, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 17}}, {"id": 16, "type": "identifier", "text": "Origin;\n", "parent": 12, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 26}}, {"id": 17, "type": "ERROR", "text": "r", "parent": 3, "children": [18], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 18, "type": "ERROR", "text": "r", "parent": 17, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 19, "type": "declaration", "text": "operty CGSize HDSize;\n@", "parent": 3, "children": [20, 21, 23], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 25}}, {"id": 20, "type": "type_identifier", "text": "operty C", "parent": 19, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 21, "type": "ERROR", "text": "Size ", "parent": 19, "children": [22], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 16}}, {"id": 22, "type": "identifier", "text": "Size ", "parent": 21, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 16}}, {"id": 23, "type": "identifier", "text": "Size;\n", "parent": 19, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 24}}, {"id": 24, "type": "ERROR", "text": "r", "parent": 3, "children": [25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 25, "type": "ERROR", "text": "r", "parent": 24, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 26, "type": "declaration", "text": "operty CGFloat HDWidth;\n@", "parent": 3, "children": [27, 28, 30], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 26}}, {"id": 27, "type": "type_identifier", "text": "operty C", "parent": 26, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 28, "type": "ERROR", "text": "Float H", "parent": 26, "children": [29], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 17}}, {"id": 29, "type": "identifier", "text": "Float H", "parent": 28, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 17}}, {"id": 30, "type": "identifier", "text": "Width;\n", "parent": 26, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 25}}, {"id": 31, "type": "ERROR", "text": "r", "parent": 3, "children": [32], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 32, "type": "ERROR", "text": "r", "parent": 31, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 33, "type": "declaration", "text": "operty CGFloat HDHeight;\n@", "parent": 3, "children": [34, 35, 37], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 34, "type": "type_identifier", "text": "operty C", "parent": 33, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 35, "type": "ERROR", "text": "Float H", "parent": 33, "children": [36], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 17}}, {"id": 36, "type": "identifier", "text": "Float H", "parent": 35, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 17}}, {"id": 37, "type": "identifier", "text": "Height;\n", "parent": 33, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 26}}, {"id": 38, "type": "ERROR", "text": "r", "parent": 3, "children": [39], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 39, "type": "ERROR", "text": "r", "parent": 38, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 40, "type": "declaration", "text": "operty CGFloat HDCenterX;\n@", "parent": 3, "children": [41, 42, 44], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 28}}, {"id": 41, "type": "type_identifier", "text": "operty C", "parent": 40, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 42, "type": "ERROR", "text": "Float H", "parent": 40, "children": [43], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 17}}, {"id": 43, "type": "identifier", "text": "Float H", "parent": 42, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 17}}, {"id": 44, "type": "identifier", "text": "CenterX;\n", "parent": 40, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 27}}, {"id": 45, "type": "ERROR", "text": "r", "parent": 3, "children": [46], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 46, "type": "ERROR", "text": "r", "parent": 45, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 47, "type": "declaration", "text": "operty CGFloat HDCenterY;\n\n", "parent": 3, "children": [48, 49, 51], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 28}}, {"id": 48, "type": "type_identifier", "text": "operty C", "parent": 47, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 49, "type": "ERROR", "text": "Float H", "parent": 47, "children": [50], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 17}}, {"id": 50, "type": "identifier", "text": "Float H", "parent": 49, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 17}}, {"id": 51, "type": "identifier", "text": "CenterY;\n", "parent": 47, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 27}}, {"id": 52, "type": "ERROR", "text": "r", "parent": 3, "children": [53], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 53, "type": "ERROR", "text": "r", "parent": 52, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 54, "type": "declaration", "text": "ty CGFloat HDLeft;\n@prop", "parent": 3, "children": [55, 56, 57], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 25}}, {"id": 55, "type": "type_identifier", "text": "ty CGFlo", "parent": 54, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 56, "type": "identifier", "text": "t HDLef", "parent": 54, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 17}}, {"id": 57, "type": "ERROR", "text": ";\n@pro", "parent": 54, "children": [58], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 24}}, {"id": 58, "type": "identifier", "text": ";\n@pro", "parent": 57, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 24}}, {"id": 59, "type": "ERROR", "text": "r", "parent": 3, "children": [60], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 60, "type": "ERROR", "text": "r", "parent": 59, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 61, "type": "declaration", "text": "ty CGFloat HDRight;\n@prop", "parent": 3, "children": [62, 63, 65], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 26}}, {"id": 62, "type": "type_identifier", "text": "ty CGFlo", "parent": 61, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 63, "type": "ERROR", "text": "t HDRig", "parent": 61, "children": [64], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 17}}, {"id": 64, "type": "identifier", "text": "t HDRig", "parent": 63, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 17}}, {"id": 65, "type": "identifier", "text": "t;\n@pro", "parent": 61, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 25}}, {"id": 66, "type": "ERROR", "text": "r", "parent": 3, "children": [67], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 67, "type": "ERROR", "text": "r", "parent": 66, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 68, "type": "declaration", "text": "ty CGFloat HDTop;\n@prop", "parent": 3, "children": [69, 70, 71], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 24}}, {"id": 69, "type": "type_identifier", "text": "ty CGFlo", "parent": 68, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 70, "type": "identifier", "text": "t HDTop", "parent": 68, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 17}}, {"id": 71, "type": "ERROR", "text": "\n@pro", "parent": 68, "children": [72], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 23}}, {"id": 72, "type": "identifier", "text": "\n@pro", "parent": 71, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 23}}, {"id": 73, "type": "ERROR", "text": "r", "parent": 3, "children": [74], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 74, "type": "ERROR", "text": "r", "parent": 73, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 75, "type": "declaration", "text": "ty CGFloat HDBottom;\n\n/**\n", "parent": 3, "children": [76, 77, 79], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 27}}, {"id": 76, "type": "type_identifier", "text": "ty CGFlo", "parent": 75, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 77, "type": "ERROR", "text": "t HDBot", "parent": 75, "children": [78], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 17}}, {"id": 78, "type": "identifier", "text": "t HDBot", "parent": 77, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 17}}, {"id": 79, "type": "identifier", "text": "om;\n\n/**", "parent": 75, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 26}}, {"id": 80, "type": "ERROR", "text": "I", "parent": 3, "children": [81], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 81, "type": "ERROR", "text": "I", "parent": 80, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 82, "type": "declaration", "text": "BInspectable CGFloat H", "parent": 3, "children": [83, 84], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 23}}, {"id": 83, "type": "type_identifier", "text": "BInspect", "parent": 82, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 9}}, {"id": 84, "type": "identifier", "text": "ble CGFloat H", "parent": 82, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 23}}, {"id": 85, "type": "declaration", "text": "Radius;\n\n/**\n * ", "parent": 3, "children": [86, 87], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 41}}, {"id": 86, "type": "type_identifier", "text": "Radius;", "parent": 85, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 31}}, {"id": 87, "type": "identifier", "text": "\n/**\n * ", "parent": 85, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 40}}, {"id": 88, "type": "ERROR", "text": "t", "parent": 3, "children": [89], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 89, "type": "ERROR", "text": "t", "parent": 88, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 90, "type": "declaration", "text": "able UIColor *HDBordCo", "parent": 3, "children": [91, 92], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 23}}, {"id": 91, "type": "type_identifier", "text": "able UIC", "parent": 90, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 92, "type": "identifier", "text": "lor *HDBordCo", "parent": 90, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 23}}, {"id": 93, "type": "declaration", "text": "or;\n\n/**\n * \u8fb9\u6846\u5bbd\u5ea6\n */", "parent": 3, "children": [94, 95], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 45}}, {"id": 94, "type": "type_identifier", "text": "or;\n\n/*", "parent": 93, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 31}}, {"id": 95, "type": "pointer_declarator", "text": "\n * \u8fb9\u6846\u5bbd\u5ea6\n *", "parent": 93, "children": [96, 97], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 44}}, {"id": 96, "type": "*", "text": "\n", "parent": 95, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 33}}, {"id": 97, "type": "identifier", "text": " * \u8fb9\u6846\u5bbd\u5ea6\n *", "parent": 95, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 44}}, {"id": 98, "type": "ERROR", "text": "F", "parent": 3, "children": [99], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 99, "type": "ERROR", "text": "F", "parent": 98, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 100, "type": "declaration", "text": "loat HDBorderWidth;\n\n\n", "parent": 3, "children": [101, 102], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 23}}, {"id": 101, "type": "type_identifier", "text": "loat HDB", "parent": 100, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 9}}, {"id": 102, "type": "identifier", "text": "rderWidth;\n\n\n", "parent": 100, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 23}}, {"id": 103, "type": "declaration", "text": " (void)HDMoveBy:(CGPoi", "parent": 3, "children": [104, 105], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 46}}, {"id": 104, "type": "type_identifier", "text": " (void)", "parent": 103, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 31}}, {"id": 105, "type": "identifier", "text": "DMoveBy:(CGPo", "parent": 103, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 45}}, {"id": 106, "type": "ERROR", "text": "del", "parent": 3, "children": [107], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 3}}, {"id": 107, "type": "-", "text": "d", "parent": 106, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 108, "type": "declaration", "text": "ta;\n- (void)HDScaleBy:(CGFloa", "parent": 3, "children": [109, 110, 113], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 32}}, {"id": 109, "type": "primitive_type", "text": "ta;\n", "parent": 108, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 7}}, {"id": 110, "type": "ERROR", "text": "- (void)HDScaleBy:(", "parent": 108, "children": [111, 112], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 26}}, {"id": 111, "type": "identifier", "text": " (void)H", "parent": 110, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 16}}, {"id": 112, "type": "identifier", "text": "caleBy:", "parent": 110, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 25}}, {"id": 113, "type": "identifier", "text": "CGFlo", "parent": 108, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 31}}, {"id": 114, "type": "ERROR", "text": ")sc", "parent": 3, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 3}}, {"id": 115, "type": "declaration", "text": "aleFactor;\n\n/**\n * \u83b7\u53d6view\u7684viewContr", "parent": 3, "children": [116, 117, 120], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 39}}, {"id": 116, "type": "primitive_type", "text": "aleF", "parent": 115, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 7}}, {"id": 117, "type": "ERROR", "text": "actor;\n\n/**\n * \u83b7\u53d6vi", "parent": 115, "children": [118, 119], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 27}}, {"id": 118, "type": "identifier", "text": "ctor;\n\n/*", "parent": 117, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 17}}, {"id": 119, "type": "identifier", "text": " * \u83b7\u53d6v", "parent": 117, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 26}}, {"id": 120, "type": "identifier", "text": "ew\u7684viewCont", "parent": 115, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 38}}, {"id": 121, "type": "ERROR", "text": "\n\n/", "parent": 3, "children": [122], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 122, "type": "-", "text": "\n", "parent": 121, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 123, "type": "declaration", "text": "**\n * \u5220\u9664view\u91cc\u7684\u6240\u6709\u5b50view\n */\n- (void)", "parent": 3, "children": [124, 125], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 38}}, {"id": 124, "type": "type_identifier", "text": "**\n * \u5220\u9664view\u91cc\u7684\u6240", "parent": 123, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 19}}, {"id": 125, "type": "pointer_declarator", "text": "\u6709\u5b50view\n */\n- (void", "parent": 123, "children": [126, 127, 128], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 37}}, {"id": 126, "type": "*", "text": "\u6709", "parent": 125, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 127, "type": "ERROR", "text": "\u5b50", "parent": 125, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 128, "type": "identifier", "text": "view\n */\n- (void", "parent": 125, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 37}}, {"id": 129, "type": "ERROR", "text": "+ (", "parent": 3, "children": [130], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 3}}, {"id": 130, "type": "-", "text": "+", "parent": 129, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 131, "type": "declaration", "text": "instancetype)HDViewFromXi", "parent": 3, "children": [132, 133, 134], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 28}}, {"id": 132, "type": "primitive_type", "text": "inst", "parent": 131, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 133, "type": "ERROR", "text": "a", "parent": 131, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 8}}, {"id": 134, "type": "identifier", "text": "ncetype)HDViewFromX", "parent": 131, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 27}}, {"id": 135, "type": "ERROR", "text": "", "parent": 3, "children": [136], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 3}}, {"id": 136, "type": "+", "text": "", "parent": 135, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 137, "type": "declaration", "text": "", "parent": 3, "children": [138, 139, 140], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 30}}, {"id": 138, "type": "type_identifier", "text": "", "parent": 137, "children": [], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 15}}, {"id": 139, "type": "ERROR", "text": "", "parent": 137, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 16}}, {"id": 140, "type": "identifier", "text": "", "parent": 137, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 29}}, {"id": 141, "type": "ERROR", "text": "", "parent": 3, "children": [142], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 142, "type": "ERROR", "text": "", "parent": 141, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 143, "type": "identifier", "text": "", "parent": 3, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 4}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [12, 19, 26, 33, 40, 47, 54, 61, 68, 75, 82, 85, 90, 93, 100, 103, 108, 115, 123, 131, 137], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 13, 15, 16, 20, 22, 23, 27, 29, 30, 34, 36, 37, 41, 43, 44, 48, 50, 51, 55, 56, 58, 62, 64, 65, 69, 70, 72, 76, 78, 79, 83, 84, 86, 87, 91, 92, 94, 97, 101, 102, 104, 105, 111, 112, 113, 118, 119, 120, 124, 128, 134, 138, 140, 143], "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": "View (HDCore)\n\n"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// UIView+HDCore.h\n// HDCore\n//\n// Created by zhangdadi on 15/3/31.\n// Copyright (c) 2015\u5e74 HD. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface UIView (HDCore)\n\n@property CGPoint HDOrigin;\n@property CGSize HDSize;\n@property CGFloat HDWidth;\n@property CGFloat HDHeight;\n@property CGFloat HDCenterX;\n@property CGFloat HDCenterY;\n\n//\u4f4d\u7f6e\n@property CGFloat HDLeft;\n@property CGFloat HDRight;\n@property CGFloat HDTop;\n@property CGFloat HDBottom;\n\n/**\n * \u5706\u89d2\n */\n@property IBInspectable CGFloat HDRadius;\n\n/**\n * \u8fb9\u6846\u989c\u8272\n */\n@property IBInspectable UIColor *HDBordColor;\n\n/**\n * \u8fb9\u6846\u5bbd\u5ea6\n */\n@property IBInspectable CGFloat HDBorderWidth;\n\n\n- (void)HDMoveBy:(CGPoint)delta;\n- (void)HDScaleBy:(CGFloat)scaleFactor;\n\n/**\n * \u83b7\u53d6view\u7684viewController\n *\n * @return \u8fd4\u56deview\u7684viewController\n */\n- (UIViewController*)HDViewController;\n\n/**\n * \u5220\u9664view\u91cc\u7684\u6240\u6709\u5b50view\n */\n- (void)HDRemoveAllChildren;\n\n/**\n * \u521d\u59cb\u5316xib\n *\n */\n+ (instancetype)HDViewFromXib;\n\n\n@end\n"}
80,884
c
#include <stdio.h> void print_uebersicht(); int choose_option(); int main() { double rate_children = 5.00; double rate_adults = 9.50; double rate_students = 7.50; int status = 1; int option; while (status) { print_uebersicht(); option = choose_option(); switch (option) { case 'a': printf("Preiskategorie Kind: %.2f\n", rate_children); break; case 'b': printf("Preiskategorie Erwachsener: %.2f\n", rate_adults); break; case 'c': printf("Preiskategorie Student: %.2f\n", rate_students); break; case 'q': status = 0; printf("Auswahl beendet\n"); break; case -1: printf("Zuviele Zeichen eingegeben\n"); while (getchar() != '\n') { } break; case -2: default: printf("Unbekannte Kategorie\n"); } } return 0; } void print_uebersicht() { printf("<<<MENU>>>\n"); printf("Bitte waehlen Sie eine Preiskategorie:\n"); printf("a Kinder\n"); printf("b Erwachsene\n"); printf("c Studenten\n\n"); printf("q Auswahl beenden\n"); } /* * choose_option() liest ein zeichen ein. * Rückaben: * 'a': Option a * 'b': Option b * 'c': Option c * 'q': Option q * -1: Mehr als ein zeichen eingegeben * -2: Zeichen ist nicht a, b, c oder q */ int choose_option() { int option = getchar(); if (getchar() != '\n') { return -1; } if (option != 'a' && option != 'b' && option != 'c' && option != 'q') { return -2; } return option; }
18.77
71
(translation_unit) "#include <stdio.h>\n\nvoid print_uebersicht();\nint choose_option();\n\nint main()\n{\n double rate_children = 5.00;\n double rate_adults = 9.50;\n double rate_students = 7.50;\n int status = 1;\n int option;\n\n while (status) {\n print_uebersicht();\n option = choose_option();\n switch (option) {\n case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;\n case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;\n case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;\n case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;\n case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;\n case -2:\n default:\n printf("Unbekannte Kategorie\n");\n }\n }\n return 0;\n}\n\nvoid print_uebersicht()\n{\n printf("<<<MENU>>>\n");\n printf("Bitte waehlen Sie eine Preiskategorie:\n");\n printf("a Kinder\n");\n printf("b Erwachsene\n");\n printf("c Studenten\n\n");\n printf("q Auswahl beenden\n");\n}\n\n/*\n * choose_option() liest ein zeichen ein.\n * Rückaben:\n * 'a': Option a\n * 'b': Option b\n * 'c': Option c\n * 'q': Option q\n * -1: Mehr als ein zeichen eingegeben\n * -2: Zeichen ist nicht a, b, c oder q\n */\nint choose_option()\n{\n int option = getchar();\n if (getchar() != '\n') {\n return -1;\n }\n if (option != 'a'\n && option != 'b'\n && option != 'c'\n && option != 'q') {\n return -2;\n }\n\n return option;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "void print_uebersicht();" (primitive_type) "void" (function_declarator) "print_uebersicht()" (identifier) "print_uebersicht" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int choose_option();" (primitive_type) "int" (function_declarator) "choose_option()" (identifier) "choose_option" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "int main()\n{\n double rate_children = 5.00;\n double rate_adults = 9.50;\n double rate_students = 7.50;\n int status = 1;\n int option;\n\n while (status) {\n print_uebersicht();\n option = choose_option();\n switch (option) {\n case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;\n case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;\n case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;\n case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;\n case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;\n case -2:\n default:\n printf("Unbekannte Kategorie\n");\n }\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n double rate_children = 5.00;\n double rate_adults = 9.50;\n double rate_students = 7.50;\n int status = 1;\n int option;\n\n while (status) {\n print_uebersicht();\n option = choose_option();\n switch (option) {\n case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;\n case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;\n case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;\n case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;\n case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;\n case -2:\n default:\n printf("Unbekannte Kategorie\n");\n }\n }\n return 0;\n}" ({) "{" (declaration) "double rate_children = 5.00;" (primitive_type) "double" (init_declarator) "rate_children = 5.00" (identifier) "rate_children" (=) "=" (number_literal) "5.00" (;) ";" (declaration) "double rate_adults = 9.50;" (primitive_type) "double" (init_declarator) "rate_adults = 9.50" (identifier) "rate_adults" (=) "=" (number_literal) "9.50" (;) ";" (declaration) "double rate_students = 7.50;" (primitive_type) "double" (init_declarator) "rate_students = 7.50" (identifier) "rate_students" (=) "=" (number_literal) "7.50" (;) ";" (declaration) "int status = 1;" (primitive_type) "int" (init_declarator) "status = 1" (identifier) "status" (=) "=" (number_literal) "1" (;) ";" (declaration) "int option;" (primitive_type) "int" (identifier) "option" (;) ";" (while_statement) "while (status) {\n print_uebersicht();\n option = choose_option();\n switch (option) {\n case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;\n case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;\n case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;\n case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;\n case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;\n case -2:\n default:\n printf("Unbekannte Kategorie\n");\n }\n }" (while) "while" (parenthesized_expression) "(status)" (() "(" (identifier) "status" ()) ")" (compound_statement) "{\n print_uebersicht();\n option = choose_option();\n switch (option) {\n case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;\n case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;\n case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;\n case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;\n case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;\n case -2:\n default:\n printf("Unbekannte Kategorie\n");\n }\n }" ({) "{" (expression_statement) "print_uebersicht();" (call_expression) "print_uebersicht()" (identifier) "print_uebersicht" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "option = choose_option();" (assignment_expression) "option = choose_option()" (identifier) "option" (=) "=" (call_expression) "choose_option()" (identifier) "choose_option" (argument_list) "()" (() "(" ()) ")" (;) ";" (switch_statement) "switch (option) {\n case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;\n case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;\n case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;\n case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;\n case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;\n case -2:\n default:\n printf("Unbekannte Kategorie\n");\n }" (switch) "switch" (parenthesized_expression) "(option)" (() "(" (identifier) "option" ()) ")" (compound_statement) "{\n case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;\n case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;\n case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;\n case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;\n case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;\n case -2:\n default:\n printf("Unbekannte Kategorie\n");\n }" ({) "{" (case_statement) "case 'a':\n printf("Preiskategorie Kind: %.2f\n", rate_children);\n break;" (case) "case" (char_literal) "'a'" (') "'" (character) "a" (') "'" (:) ":" (expression_statement) "printf("Preiskategorie Kind: %.2f\n", rate_children);" (call_expression) "printf("Preiskategorie Kind: %.2f\n", rate_children)" (identifier) "printf" (argument_list) "("Preiskategorie Kind: %.2f\n", rate_children)" (() "(" (string_literal) ""Preiskategorie Kind: %.2f\n"" (") """ (string_content) "Preiskategorie Kind: %.2f" (escape_sequence) "\n" (") """ (,) "," (identifier) "rate_children" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'b':\n printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);\n break;" (case) "case" (char_literal) "'b'" (') "'" (character) "b" (') "'" (:) ":" (expression_statement) "printf("Preiskategorie Erwachsener: %.2f\n", rate_adults);" (call_expression) "printf("Preiskategorie Erwachsener: %.2f\n", rate_adults)" (identifier) "printf" (argument_list) "("Preiskategorie Erwachsener: %.2f\n", rate_adults)" (() "(" (string_literal) ""Preiskategorie Erwachsener: %.2f\n"" (") """ (string_content) "Preiskategorie Erwachsener: %.2f" (escape_sequence) "\n" (") """ (,) "," (identifier) "rate_adults" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'c':\n printf("Preiskategorie Student: %.2f\n", rate_students);\n break;" (case) "case" (char_literal) "'c'" (') "'" (character) "c" (') "'" (:) ":" (expression_statement) "printf("Preiskategorie Student: %.2f\n", rate_students);" (call_expression) "printf("Preiskategorie Student: %.2f\n", rate_students)" (identifier) "printf" (argument_list) "("Preiskategorie Student: %.2f\n", rate_students)" (() "(" (string_literal) ""Preiskategorie Student: %.2f\n"" (") """ (string_content) "Preiskategorie Student: %.2f" (escape_sequence) "\n" (") """ (,) "," (identifier) "rate_students" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'q':\n status = 0;\n printf("Auswahl beendet\n");\n break;" (case) "case" (char_literal) "'q'" (') "'" (character) "q" (') "'" (:) ":" (expression_statement) "status = 0;" (assignment_expression) "status = 0" (identifier) "status" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "printf("Auswahl beendet\n");" (call_expression) "printf("Auswahl beendet\n")" (identifier) "printf" (argument_list) "("Auswahl beendet\n")" (() "(" (string_literal) ""Auswahl beendet\n"" (") """ (string_content) "Auswahl beendet" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case -1:\n printf("Zuviele Zeichen eingegeben\n");\n while (getchar() != '\n') { }\n break;" (case) "case" (number_literal) "-1" (:) ":" (expression_statement) "printf("Zuviele Zeichen eingegeben\n");" (call_expression) "printf("Zuviele Zeichen eingegeben\n")" (identifier) "printf" (argument_list) "("Zuviele Zeichen eingegeben\n")" (() "(" (string_literal) ""Zuviele Zeichen eingegeben\n"" (") """ (string_content) "Zuviele Zeichen eingegeben" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while (getchar() != '\n') { }" (while) "while" (parenthesized_expression) "(getchar() != '\n')" (() "(" (binary_expression) "getchar() != '\n'" (call_expression) "getchar()" (identifier) "getchar" (argument_list) "()" (() "(" ()) ")" (!=) "!=" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (compound_statement) "{ }" ({) "{" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case -2:" (case) "case" (number_literal) "-2" (:) ":" (case_statement) "default:\n printf("Unbekannte Kategorie\n");" (default) "default" (:) ":" (expression_statement) "printf("Unbekannte Kategorie\n");" (call_expression) "printf("Unbekannte Kategorie\n")" (identifier) "printf" (argument_list) "("Unbekannte Kategorie\n")" (() "(" (string_literal) ""Unbekannte Kategorie\n"" (") """ (string_content) "Unbekannte Kategorie" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void print_uebersicht()\n{\n printf("<<<MENU>>>\n");\n printf("Bitte waehlen Sie eine Preiskategorie:\n");\n printf("a Kinder\n");\n printf("b Erwachsene\n");\n printf("c Studenten\n\n");\n printf("q Auswahl beenden\n");\n}" (primitive_type) "void" (function_declarator) "print_uebersicht()" (identifier) "print_uebersicht" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n printf("<<<MENU>>>\n");\n printf("Bitte waehlen Sie eine Preiskategorie:\n");\n printf("a Kinder\n");\n printf("b Erwachsene\n");\n printf("c Studenten\n\n");\n printf("q Auswahl beenden\n");\n}" ({) "{" (expression_statement) "printf("<<<MENU>>>\n");" (call_expression) "printf("<<<MENU>>>\n")" (identifier) "printf" (argument_list) "("<<<MENU>>>\n")" (() "(" (string_literal) ""<<<MENU>>>\n"" (") """ (string_content) "<<<MENU>>>" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("Bitte waehlen Sie eine Preiskategorie:\n");" (call_expression) "printf("Bitte waehlen Sie eine Preiskategorie:\n")" (identifier) "printf" (argument_list) "("Bitte waehlen Sie eine Preiskategorie:\n")" (() "(" (string_literal) ""Bitte waehlen Sie eine Preiskategorie:\n"" (") """ (string_content) "Bitte waehlen Sie eine Preiskategorie:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("a Kinder\n");" (call_expression) "printf("a Kinder\n")" (identifier) "printf" (argument_list) "("a Kinder\n")" (() "(" (string_literal) ""a Kinder\n"" (") """ (string_content) "a Kinder" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("b Erwachsene\n");" (call_expression) "printf("b Erwachsene\n")" (identifier) "printf" (argument_list) "("b Erwachsene\n")" (() "(" (string_literal) ""b Erwachsene\n"" (") """ (string_content) "b Erwachsene" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("c Studenten\n\n");" (call_expression) "printf("c Studenten\n\n")" (identifier) "printf" (argument_list) "("c Studenten\n\n")" (() "(" (string_literal) ""c Studenten\n\n"" (") """ (string_content) "c Studenten" (escape_sequence) "\n" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("q Auswahl beenden\n");" (call_expression) "printf("q Auswahl beenden\n")" (identifier) "printf" (argument_list) "("q Auswahl beenden\n")" (() "(" (string_literal) ""q Auswahl beenden\n"" (") """ (string_content) "q Auswahl beenden" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (comment) "/*\n * choose_option() liest ein zeichen ein.\n * Rückaben:\n * 'a': Option a\n * 'b': Option b\n * 'c': Option c\n * 'q': Option q\n * -1: Mehr als ein zeichen eingegeben\n * -2: Zeichen ist nicht a, b, c oder q\n */\n" (function_definition) "nt choose_option()\n{\n int option = getchar();\n if (getchar() != '\n') {\n return -1;\n }\n if (option != 'a'\n && option != 'b'\n && option != 'c'\n && option != 'q') {\n return -2;\n }\n\n return option;\n}\n" (primitive_type) "nt " (function_declarator) "hoose_option()\n" (identifier) "hoose_option(" (parameter_list) ")\n" (() ")" ()) "\n" (compound_statement) "\n int option = getchar();\n if (getchar() != '\n') {\n return -1;\n }\n if (option != 'a'\n && option != 'b'\n && option != 'c'\n && option != 'q') {\n return -2;\n }\n\n return option;\n}\n" ({) "\n" (declaration) "nt option = getchar();\n" (primitive_type) "nt " (init_declarator) "ption = getchar();" (identifier) "ption " (=) " " (call_expression) "etchar();" (identifier) "etchar(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (if_statement) "f (getchar() != '\n') {\n return -1;\n }\n" (if) "f " (parenthesized_expression) "getchar() != '\n') " (() "g" (binary_expression) "etchar() != '\n')" (call_expression) "etchar() " (identifier) "etchar(" (argument_list) ") " (() ")" ()) " " (!=) "= " (char_literal) "\n')" (') "\" (escape_sequence) "n'" (') ")" ()) " " (compound_statement) "\n return -1;\n }\n" ({) "\n" (return_statement) "eturn -1;\n" (return) "eturn " (number_literal) "1;" (;) "\n" (}) "\n" (if_statement) "f (option != 'a'\n && option != 'b'\n && option != 'c'\n && option != 'q') {\n return -2;\n }\n" (if) "f " (parenthesized_expression) "option != 'a'\n && option != 'b'\n && option != 'c'\n && option != 'q') " (() "o" (binary_expression) "ption != 'a'\n && option != 'b'\n && option != 'c'\n && option != 'q')" (binary_expression) "ption != 'a'\n && option != 'b'\n && option != 'c'\n" (binary_expression) "ption != 'a'\n && option != 'b'\n" (binary_expression) "ption != 'a'\n" (identifier) "ption " (!=) "= " (char_literal) "a'\n" (') "a" (character) "'" (') "\n" (&&) "& " (binary_expression) "ption != 'b'\n" (identifier) "ption " (!=) "= " (char_literal) "b'\n" (') "b" (character) "'" (') "\n" (&&) "& " (binary_expression) "ption != 'c'\n" (identifier) "ption " (!=) "= " (char_literal) "c'\n" (') "c" (character) "'" (') "\n" (&&) "& " (binary_expression) "ption != 'q')" (identifier) "ption " (!=) "= " (char_literal) "q')" (') "q" (character) "'" (') ")" ()) " " (compound_statement) "\n return -2;\n }\n" ({) "\n" (return_statement) "eturn -2;\n" (return) "eturn " (number_literal) "2;" (;) "\n" (}) "\n" (return_statement) "eturn option;\n" (return) "eturn " (identifier) "ption;" (;) "\n" (}) "\n"
436
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 18.77, "nodes": 248, "errors": 0, "source_hash": "b2044e6fb8f6f30c13bd5d78dea6be02ab811799ed85fa6343c9609f6e32163d", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "declaration", "text": "void print_uebersicht();", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 24}}, {"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": "print_uebersicht()", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 23}}, {"id": 6, "type": "identifier", "text": "print_uebersicht", "parent": 5, "children": [], "start_point": {"row": 2, "column": 5}, "end_point": {"row": 2, "column": 21}}, {"id": 7, "type": "parameter_list", "text": "()", "parent": 5, "children": [], "start_point": {"row": 2, "column": 21}, "end_point": {"row": 2, "column": 23}}, {"id": 8, "type": "declaration", "text": "int choose_option();", "parent": null, "children": [9, 10], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 10, "type": "function_declarator", "text": "choose_option()", "parent": 8, "children": [11, 12], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 19}}, {"id": 11, "type": "identifier", "text": "choose_option", "parent": 10, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "parameter_list", "text": "()", "parent": 10, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 19}}, {"id": 13, "type": "function_definition", "text": "int main()\n{\n\tdouble rate_children = 5.00;\n\tdouble rate_adults = 9.50;\n\tdouble rate_students = 7.50;\n\tint status = 1;\n\tint option;\n\n\twhile (status) {\n\t\tprint_uebersicht();\n\t\toption = choose_option();\n\t\tswitch (option) {\n\t\tcase 'a':\n\t\t\tprintf(\"Preiskategorie Kind: %.2f\\n\", rate_children);\n\t\t\tbreak;\n\t\tcase 'b':\n\t\t\tprintf(\"Preiskategorie Erwachsener: %.2f\\n\", rate_adults);\n\t\t\tbreak;\n\t\tcase 'c':\n\t\t\tprintf(\"Preiskategorie Student: %.2f\\n\", rate_students);\n\t\t\tbreak;\n\t\tcase 'q':\n\t\t\tstatus = 0;\n\t\t\tprintf(\"Auswahl beendet\\n\");\n\t\t\tbreak;\n\t\tcase -1:\n\t\t\tprintf(\"Zuviele Zeichen eingegeben\\n\");\n\t\t\twhile (getchar() != '\\n') { }\n\t\t\tbreak;\n\t\tcase -2:\n\t\tdefault:\n\t\t\tprintf(\"Unbekannte Kategorie\\n\");\n\t\t}\n\t}\n\treturn 0;\n}", "parent": null, "children": [14, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 3}}, {"id": 15, "type": "function_declarator", "text": "main()", "parent": 13, "children": [16, 17], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 16, "type": "identifier", "text": "main", "parent": 15, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 17, "type": "parameter_list", "text": "()", "parent": 15, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 10}}, {"id": 18, "type": "declaration", "text": "double rate_children = 5.00;", "parent": 13, "children": [19, 20], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 29}}, {"id": 19, "type": "primitive_type", "text": "double", "parent": 18, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 7}}, {"id": 20, "type": "init_declarator", "text": "rate_children = 5.00", "parent": 18, "children": [21, 22, 23], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 28}}, {"id": 21, "type": "identifier", "text": "rate_children", "parent": 20, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 21}}, {"id": 22, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 23}}, {"id": 23, "type": "number_literal", "text": "5.00", "parent": 20, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 28}}, {"id": 24, "type": "declaration", "text": "double rate_adults = 9.50;", "parent": 13, "children": [25, 26], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 27}}, {"id": 25, "type": "primitive_type", "text": "double", "parent": 24, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 7}}, {"id": 26, "type": "init_declarator", "text": "rate_adults = 9.50", "parent": 24, "children": [27, 28, 29], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 26}}, {"id": 27, "type": "identifier", "text": "rate_adults", "parent": 26, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 19}}, {"id": 28, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 21}}, {"id": 29, "type": "number_literal", "text": "9.50", "parent": 26, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 26}}, {"id": 30, "type": "declaration", "text": "double rate_students = 7.50;", "parent": 13, "children": [31, 32], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 29}}, {"id": 31, "type": "primitive_type", "text": "double", "parent": 30, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 7}}, {"id": 32, "type": "init_declarator", "text": "rate_students = 7.50", "parent": 30, "children": [33, 34, 35], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 28}}, {"id": 33, "type": "identifier", "text": "rate_students", "parent": 32, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 21}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 23}}, {"id": 35, "type": "number_literal", "text": "7.50", "parent": 32, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 28}}, {"id": 36, "type": "declaration", "text": "int status = 1;", "parent": 13, "children": [37, 38], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 16}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 4}}, {"id": 38, "type": "init_declarator", "text": "status = 1", "parent": 36, "children": [39, 40, 41], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 15}}, {"id": 39, "type": "identifier", "text": "status", "parent": 38, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 11}}, {"id": 40, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 41, "type": "number_literal", "text": "1", "parent": 38, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 42, "type": "declaration", "text": "int option;", "parent": 13, "children": [43, 44], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 12}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 4}}, {"id": 44, "type": "identifier", "text": "option", "parent": 42, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 11}}, {"id": 45, "type": "while_statement", "text": "while (status) {\n\t\tprint_uebersicht();\n\t\toption = choose_option();\n\t\tswitch (option) {\n\t\tcase 'a':\n\t\t\tprintf(\"Preiskategorie Kind: %.2f\\n\", rate_children);\n\t\t\tbreak;\n\t\tcase 'b':\n\t\t\tprintf(\"Preiskategorie Erwachsener: %.2f\\n\", rate_adults);\n\t\t\tbreak;\n\t\tcase 'c':\n\t\t\tprintf(\"Preiskategorie Student: %.2f\\n\", rate_students);\n\t\t\tbreak;\n\t\tcase 'q':\n\t\t\tstatus = 0;\n\t\t\tprintf(\"Auswahl beendet\\n\");\n\t\t\tbreak;\n\t\tcase -1:\n\t\t\tprintf(\"Zuviele Zeichen eingegeben\\n\");\n\t\t\twhile (getchar() != '\\n') { }\n\t\t\tbreak;\n\t\tcase -2:\n\t\tdefault:\n\t\t\tprintf(\"Unbekannte Kategorie\\n\");\n\t\t}\n\t}", "parent": 13, "children": [46], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 38, "column": 2}}, {"id": 46, "type": "parenthesized_expression", "text": "(status)", "parent": 45, "children": [47], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 15}}, {"id": 47, "type": "identifier", "text": "status", "parent": 46, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 14}}, {"id": 48, "type": "call_expression", "text": "print_uebersicht()", "parent": 45, "children": [49, 50], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 20}}, {"id": 49, "type": "identifier", "text": "print_uebersicht", "parent": 48, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 18}}, {"id": 50, "type": "argument_list", "text": "()", "parent": 48, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 20}}, {"id": 51, "type": "assignment_expression", "text": "option = choose_option()", "parent": 45, "children": [52, 53, 54], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 26}}, {"id": 52, "type": "identifier", "text": "option", "parent": 51, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 10}}, {"id": 54, "type": "call_expression", "text": "choose_option()", "parent": 51, "children": [55, 56], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 26}}, {"id": 55, "type": "identifier", "text": "choose_option", "parent": 54, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 24}}, {"id": 56, "type": "argument_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 26}}, {"id": 57, "type": "switch_statement", "text": "switch (option) {\n\t\tcase 'a':\n\t\t\tprintf(\"Preiskategorie Kind: %.2f\\n\", rate_children);\n\t\t\tbreak;\n\t\tcase 'b':\n\t\t\tprintf(\"Preiskategorie Erwachsener: %.2f\\n\", rate_adults);\n\t\t\tbreak;\n\t\tcase 'c':\n\t\t\tprintf(\"Preiskategorie Student: %.2f\\n\", rate_students);\n\t\t\tbreak;\n\t\tcase 'q':\n\t\t\tstatus = 0;\n\t\t\tprintf(\"Auswahl beendet\\n\");\n\t\t\tbreak;\n\t\tcase -1:\n\t\t\tprintf(\"Zuviele Zeichen eingegeben\\n\");\n\t\t\twhile (getchar() != '\\n') { }\n\t\t\tbreak;\n\t\tcase -2:\n\t\tdefault:\n\t\t\tprintf(\"Unbekannte Kategorie\\n\");\n\t\t}", "parent": 45, "children": [58, 59], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 37, "column": 3}}, {"id": 58, "type": "switch", "text": "switch", "parent": 57, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 8}}, {"id": 59, "type": "parenthesized_expression", "text": "(option)", "parent": 57, "children": [60], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 17}}, {"id": 60, "type": "identifier", "text": "option", "parent": 59, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 16}}, {"id": 61, "type": "case_statement", "text": "case 'a':\n\t\t\tprintf(\"Preiskategorie Kind: %.2f\\n\", rate_children);\n\t\t\tbreak;", "parent": 57, "children": [62, 63, 73], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 19, "column": 9}}, {"id": 62, "type": "case", "text": "case", "parent": 61, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 63, "type": "char_literal", "text": "'a'", "parent": 61, "children": [64, 65, 66], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 10}}, {"id": 64, "type": "'", "text": "'", "parent": 63, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 8}}, {"id": 65, "type": "character", "text": "a", "parent": 63, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 66, "type": "'", "text": "'", "parent": 63, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 67, "type": "call_expression", "text": "printf(\"Preiskategorie Kind: %.2f\\n\", rate_children)", "parent": 61, "children": [68, 69], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 55}}, {"id": 68, "type": "identifier", "text": "printf", "parent": 67, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 9}}, {"id": 69, "type": "argument_list", "text": "(\"Preiskategorie Kind: %.2f\\n\", rate_children)", "parent": 67, "children": [70, 72], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 55}}, {"id": 70, "type": "string_literal", "text": "\"Preiskategorie Kind: %.2f\\n\"", "parent": 69, "children": [71], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 39}}, {"id": 71, "type": "escape_sequence", "text": "\\n", "parent": 70, "children": [], "start_point": {"row": 18, "column": 36}, "end_point": {"row": 18, "column": 38}}, {"id": 72, "type": "identifier", "text": "rate_children", "parent": 69, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 54}}, {"id": 73, "type": "break_statement", "text": "break;", "parent": 61, "children": [74], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 9}}, {"id": 74, "type": "break", "text": "break", "parent": 73, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 8}}, {"id": 75, "type": "case_statement", "text": "case 'b':\n\t\t\tprintf(\"Preiskategorie Erwachsener: %.2f\\n\", rate_adults);\n\t\t\tbreak;", "parent": 57, "children": [76, 77, 87], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 22, "column": 9}}, {"id": 76, "type": "case", "text": "case", "parent": 75, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 6}}, {"id": 77, "type": "char_literal", "text": "'b'", "parent": 75, "children": [78, 79, 80], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 10}}, {"id": 78, "type": "'", "text": "'", "parent": 77, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 8}}, {"id": 79, "type": "character", "text": "b", "parent": 77, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 80, "type": "'", "text": "'", "parent": 77, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 10}}, {"id": 81, "type": "call_expression", "text": "printf(\"Preiskategorie Erwachsener: %.2f\\n\", rate_adults)", "parent": 75, "children": [82, 83], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 60}}, {"id": 82, "type": "identifier", "text": "printf", "parent": 81, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 9}}, {"id": 83, "type": "argument_list", "text": "(\"Preiskategorie Erwachsener: %.2f\\n\", rate_adults)", "parent": 81, "children": [84, 86], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 60}}, {"id": 84, "type": "string_literal", "text": "\"Preiskategorie Erwachsener: %.2f\\n\"", "parent": 83, "children": [85], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 46}}, {"id": 85, "type": "escape_sequence", "text": "\\n", "parent": 84, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 45}}, {"id": 86, "type": "identifier", "text": "rate_adults", "parent": 83, "children": [], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 59}}, {"id": 87, "type": "break_statement", "text": "break;", "parent": 75, "children": [88], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 9}}, {"id": 88, "type": "break", "text": "break", "parent": 87, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 8}}, {"id": 89, "type": "case_statement", "text": "case 'c':\n\t\t\tprintf(\"Preiskategorie Student: %.2f\\n\", rate_students);\n\t\t\tbreak;", "parent": 57, "children": [90, 91, 101], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 25, "column": 9}}, {"id": 90, "type": "case", "text": "case", "parent": 89, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 6}}, {"id": 91, "type": "char_literal", "text": "'c'", "parent": 89, "children": [92, 93, 94], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 10}}, {"id": 92, "type": "'", "text": "'", "parent": 91, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 8}}, {"id": 93, "type": "character", "text": "c", "parent": 91, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 94, "type": "'", "text": "'", "parent": 91, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 10}}, {"id": 95, "type": "call_expression", "text": "printf(\"Preiskategorie Student: %.2f\\n\", rate_students)", "parent": 89, "children": [96, 97], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 58}}, {"id": 96, "type": "identifier", "text": "printf", "parent": 95, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 9}}, {"id": 97, "type": "argument_list", "text": "(\"Preiskategorie Student: %.2f\\n\", rate_students)", "parent": 95, "children": [98, 100], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 58}}, {"id": 98, "type": "string_literal", "text": "\"Preiskategorie Student: %.2f\\n\"", "parent": 97, "children": [99], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 42}}, {"id": 99, "type": "escape_sequence", "text": "\\n", "parent": 98, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 41}}, {"id": 100, "type": "identifier", "text": "rate_students", "parent": 97, "children": [], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 57}}, {"id": 101, "type": "break_statement", "text": "break;", "parent": 89, "children": [102], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 9}}, {"id": 102, "type": "break", "text": "break", "parent": 101, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 8}}, {"id": 103, "type": "case_statement", "text": "case 'q':\n\t\t\tstatus = 0;\n\t\t\tprintf(\"Auswahl beendet\\n\");\n\t\t\tbreak;", "parent": 57, "children": [104, 105, 118], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 29, "column": 9}}, {"id": 104, "type": "case", "text": "case", "parent": 103, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 105, "type": "char_literal", "text": "'q'", "parent": 103, "children": [106, 107, 108], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 10}}, {"id": 106, "type": "'", "text": "'", "parent": 105, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 8}}, {"id": 107, "type": "character", "text": "q", "parent": 105, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 108, "type": "'", "text": "'", "parent": 105, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 10}}, {"id": 109, "type": "assignment_expression", "text": "status = 0", "parent": 103, "children": [110, 111, 112], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 13}}, {"id": 110, "type": "identifier", "text": "status", "parent": 109, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 9}}, {"id": 111, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 11}}, {"id": 112, "type": "number_literal", "text": "0", "parent": 109, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 113, "type": "call_expression", "text": "printf(\"Auswahl beendet\\n\")", "parent": 103, "children": [114, 115], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 30}}, {"id": 114, "type": "identifier", "text": "printf", "parent": 113, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 9}}, {"id": 115, "type": "argument_list", "text": "(\"Auswahl beendet\\n\")", "parent": 113, "children": [116], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 30}}, {"id": 116, "type": "string_literal", "text": "\"Auswahl beendet\\n\"", "parent": 115, "children": [117], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 29}}, {"id": 117, "type": "escape_sequence", "text": "\\n", "parent": 116, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 28}}, {"id": 118, "type": "break_statement", "text": "break;", "parent": 103, "children": [119], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 9}}, {"id": 119, "type": "break", "text": "break", "parent": 118, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 8}}, {"id": 120, "type": "case_statement", "text": "case -1:\n\t\t\tprintf(\"Zuviele Zeichen eingegeben\\n\");\n\t\t\twhile (getchar() != '\\n') { }\n\t\t\tbreak;", "parent": 57, "children": [121, 122, 128, 139], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 33, "column": 9}}, {"id": 121, "type": "case", "text": "case", "parent": 120, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 6}}, {"id": 122, "type": "number_literal", "text": "-1", "parent": 120, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 9}}, {"id": 123, "type": "call_expression", "text": "printf(\"Zuviele Zeichen eingegeben\\n\")", "parent": 120, "children": [124, 125], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 41}}, {"id": 124, "type": "identifier", "text": "printf", "parent": 123, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 9}}, {"id": 125, "type": "argument_list", "text": "(\"Zuviele Zeichen eingegeben\\n\")", "parent": 123, "children": [126], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 41}}, {"id": 126, "type": "string_literal", "text": "\"Zuviele Zeichen eingegeben\\n\"", "parent": 125, "children": [127], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 40}}, {"id": 127, "type": "escape_sequence", "text": "\\n", "parent": 126, "children": [], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 39}}, {"id": 128, "type": "while_statement", "text": "while (getchar() != '\\n') { }", "parent": 120, "children": [129], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 32}}, {"id": 129, "type": "parenthesized_expression", "text": "(getchar() != '\\n')", "parent": 128, "children": [130], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 28}}, {"id": 130, "type": "binary_expression", "text": "getchar() != '\\n'", "parent": 129, "children": [131, 134, 135], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 27}}, {"id": 131, "type": "call_expression", "text": "getchar()", "parent": 130, "children": [132, 133], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 19}}, {"id": 132, "type": "identifier", "text": "getchar", "parent": 131, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 17}}, {"id": 133, "type": "argument_list", "text": "()", "parent": 131, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 19}}, {"id": 134, "type": "!=", "text": "!=", "parent": 130, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 22}}, {"id": 135, "type": "char_literal", "text": "'\\n'", "parent": 130, "children": [136, 137, 138], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 27}}, {"id": 136, "type": "'", "text": "'", "parent": 135, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 24}}, {"id": 137, "type": "escape_sequence", "text": "\\n", "parent": 135, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 26}}, {"id": 138, "type": "'", "text": "'", "parent": 135, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 27}}, {"id": 139, "type": "break_statement", "text": "break;", "parent": 120, "children": [140], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 9}}, {"id": 140, "type": "break", "text": "break", "parent": 139, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 8}}, {"id": 141, "type": "case_statement", "text": "case -2:", "parent": 57, "children": [142, 143], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 10}}, {"id": 142, "type": "case", "text": "case", "parent": 141, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 143, "type": "number_literal", "text": "-2", "parent": 141, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 9}}, {"id": 144, "type": "case_statement", "text": "default:\n\t\t\tprintf(\"Unbekannte Kategorie\\n\");", "parent": 57, "children": [145], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 36, "column": 36}}, {"id": 145, "type": "default", "text": "default", "parent": 144, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 9}}, {"id": 146, "type": "call_expression", "text": "printf(\"Unbekannte Kategorie\\n\")", "parent": 144, "children": [147, 148], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 35}}, {"id": 147, "type": "identifier", "text": "printf", "parent": 146, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 9}}, {"id": 148, "type": "argument_list", "text": "(\"Unbekannte Kategorie\\n\")", "parent": 146, "children": [149], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 35}}, {"id": 149, "type": "string_literal", "text": "\"Unbekannte Kategorie\\n\"", "parent": 148, "children": [150], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 34}}, {"id": 150, "type": "escape_sequence", "text": "\\n", "parent": 149, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 33}}, {"id": 151, "type": "return_statement", "text": "return 0;", "parent": 13, "children": [152], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 152, "type": "number_literal", "text": "0", "parent": 151, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 9}}, {"id": 153, "type": "function_definition", "text": "void print_uebersicht()\n{\n\tprintf(\"<<<MENU>>>\\n\");\n\tprintf(\"Bitte waehlen Sie eine Preiskategorie:\\n\");\n\tprintf(\"a Kinder\\n\");\n\tprintf(\"b Erwachsene\\n\");\n\tprintf(\"c Studenten\\n\\n\");\n\tprintf(\"q Auswahl beenden\\n\");\n}", "parent": null, "children": [154, 155], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 154, "type": "primitive_type", "text": "void", "parent": 153, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 155, "type": "function_declarator", "text": "print_uebersicht()", "parent": 153, "children": [156, 157], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 23}}, {"id": 156, "type": "identifier", "text": "print_uebersicht", "parent": 155, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 21}}, {"id": 157, "type": "parameter_list", "text": "()", "parent": 155, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 23}}, {"id": 158, "type": "call_expression", "text": "printf(\"<<<MENU>>>\\n\")", "parent": 153, "children": [159, 160], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 23}}, {"id": 159, "type": "identifier", "text": "printf", "parent": 158, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 7}}, {"id": 160, "type": "argument_list", "text": "(\"<<<MENU>>>\\n\")", "parent": 158, "children": [161], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 23}}, {"id": 161, "type": "string_literal", "text": "\"<<<MENU>>>\\n\"", "parent": 160, "children": [162], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 22}}, {"id": 162, "type": "escape_sequence", "text": "\\n", "parent": 161, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 21}}, {"id": 163, "type": "call_expression", "text": "printf(\"Bitte waehlen Sie eine Preiskategorie:\\n\")", "parent": 153, "children": [164, 165], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 51}}, {"id": 164, "type": "identifier", "text": "printf", "parent": 163, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 7}}, {"id": 165, "type": "argument_list", "text": "(\"Bitte waehlen Sie eine Preiskategorie:\\n\")", "parent": 163, "children": [166], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 51}}, {"id": 166, "type": "string_literal", "text": "\"Bitte waehlen Sie eine Preiskategorie:\\n\"", "parent": 165, "children": [167], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 50}}, {"id": 167, "type": "escape_sequence", "text": "\\n", "parent": 166, "children": [], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 49}}, {"id": 168, "type": "call_expression", "text": "printf(\"a Kinder\\n\")", "parent": 153, "children": [169, 170], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 21}}, {"id": 169, "type": "identifier", "text": "printf", "parent": 168, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 7}}, {"id": 170, "type": "argument_list", "text": "(\"a Kinder\\n\")", "parent": 168, "children": [171], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 21}}, {"id": 171, "type": "string_literal", "text": "\"a Kinder\\n\"", "parent": 170, "children": [172], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 20}}, {"id": 172, "type": "escape_sequence", "text": "\\n", "parent": 171, "children": [], "start_point": {"row": 46, "column": 17}, "end_point": {"row": 46, "column": 19}}, {"id": 173, "type": "call_expression", "text": "printf(\"b Erwachsene\\n\")", "parent": 153, "children": [174, 175], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 25}}, {"id": 174, "type": "identifier", "text": "printf", "parent": 173, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 7}}, {"id": 175, "type": "argument_list", "text": "(\"b Erwachsene\\n\")", "parent": 173, "children": [176], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 25}}, {"id": 176, "type": "string_literal", "text": "\"b Erwachsene\\n\"", "parent": 175, "children": [177], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 24}}, {"id": 177, "type": "escape_sequence", "text": "\\n", "parent": 176, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 23}}, {"id": 178, "type": "call_expression", "text": "printf(\"c Studenten\\n\\n\")", "parent": 153, "children": [179, 180], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 26}}, {"id": 179, "type": "identifier", "text": "printf", "parent": 178, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 7}}, {"id": 180, "type": "argument_list", "text": "(\"c Studenten\\n\\n\")", "parent": 178, "children": [181], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 26}}, {"id": 181, "type": "string_literal", "text": "\"c Studenten\\n\\n\"", "parent": 180, "children": [182, 183], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 25}}, {"id": 182, "type": "escape_sequence", "text": "\\n", "parent": 181, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 22}}, {"id": 183, "type": "escape_sequence", "text": "\\n", "parent": 181, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 24}}, {"id": 184, "type": "call_expression", "text": "printf(\"q Auswahl beenden\\n\")", "parent": 153, "children": [185, 186], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 30}}, {"id": 185, "type": "identifier", "text": "printf", "parent": 184, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 7}}, {"id": 186, "type": "argument_list", "text": "(\"q Auswahl beenden\\n\")", "parent": 184, "children": [187], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 30}}, {"id": 187, "type": "string_literal", "text": "\"q Auswahl beenden\\n\"", "parent": 186, "children": [188], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 29}}, {"id": 188, "type": "escape_sequence", "text": "\\n", "parent": 187, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 28}}, {"id": 189, "type": "function_definition", "text": "nt choose_option()\n{\n\tint option = getchar();\n\tif (getchar() != '\\n') {\n\t\treturn -1;\n\t}\n\tif (option != 'a'\n\t && option != 'b'\n\t && option != 'c'\n\t && option != 'q') {\n\t\treturn -2;\n\t}\n\n\treturn option;\n}\n", "parent": null, "children": [190, 191], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 190, "type": "primitive_type", "text": "nt ", "parent": 189, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 3}}, {"id": 191, "type": "function_declarator", "text": "hoose_option()\n", "parent": 189, "children": [192], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 19}}, {"id": 192, "type": "identifier", "text": "hoose_option(", "parent": 191, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 17}}, {"id": 193, "type": "declaration", "text": "nt option = getchar();\n", "parent": 189, "children": [194, 195], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 24}}, {"id": 194, "type": "primitive_type", "text": "nt ", "parent": 193, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 4}}, {"id": 195, "type": "init_declarator", "text": "ption = getchar();", "parent": 193, "children": [196, 197, 198], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 23}}, {"id": 196, "type": "identifier", "text": "ption ", "parent": 195, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 11}}, {"id": 197, "type": "=", "text": " ", "parent": 195, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 198, "type": "call_expression", "text": "etchar();", "parent": 195, "children": [199, 200], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 23}}, {"id": 199, "type": "identifier", "text": "etchar(", "parent": 198, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 21}}, {"id": 200, "type": "argument_list", "text": ");", "parent": 198, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 23}}, {"id": 201, "type": "if_statement", "text": "f (getchar() != '\\n') {\n\t\treturn -1;\n\t}\n", "parent": 189, "children": [202], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 67, "column": 2}}, {"id": 202, "type": "parenthesized_expression", "text": "getchar() != '\\n') ", "parent": 201, "children": [203], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 23}}, {"id": 203, "type": "binary_expression", "text": "etchar() != '\\n')", "parent": 202, "children": [204, 206, 207], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 22}}, {"id": 204, "type": "call_expression", "text": "etchar() ", "parent": 203, "children": [205], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 14}}, {"id": 205, "type": "identifier", "text": "etchar(", "parent": 204, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 12}}, {"id": 206, "type": "!=", "text": "= ", "parent": 203, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 17}}, {"id": 207, "type": "char_literal", "text": "\\n')", "parent": 203, "children": [208, 209], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 22}}, {"id": 208, "type": "'", "text": "\\", "parent": 207, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 19}}, {"id": 209, "type": "escape_sequence", "text": "n'", "parent": 207, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 21}}, {"id": 210, "type": "return_statement", "text": "eturn -1;\n", "parent": 201, "children": [211], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 12}}, {"id": 211, "type": "number_literal", "text": "1;", "parent": 210, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 11}}, {"id": 212, "type": "if_statement", "text": "f (option != 'a'\n\t && option != 'b'\n\t && option != 'c'\n\t && option != 'q') {\n\t\treturn -2;\n\t}\n", "parent": 189, "children": [213], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 73, "column": 2}}, {"id": 213, "type": "parenthesized_expression", "text": "option != 'a'\n\t && option != 'b'\n\t && option != 'c'\n\t && option != 'q') ", "parent": 212, "children": [214], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 71, "column": 19}}, {"id": 214, "type": "binary_expression", "text": "ption != 'a'\n\t && option != 'b'\n\t && option != 'c'\n\t && option != 'q')", "parent": 213, "children": [215, 238], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 71, "column": 18}}, {"id": 215, "type": "binary_expression", "text": "ption != 'a'\n\t && option != 'b'\n\t && option != 'c'\n", "parent": 214, "children": [216, 231], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 70, "column": 18}}, {"id": 216, "type": "binary_expression", "text": "ption != 'a'\n\t && option != 'b'\n", "parent": 215, "children": [217, 224], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 69, "column": 18}}, {"id": 217, "type": "binary_expression", "text": "ption != 'a'\n", "parent": 216, "children": [218, 219, 220], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 18}}, {"id": 218, "type": "identifier", "text": "ption ", "parent": 217, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 11}}, {"id": 219, "type": "!=", "text": "= ", "parent": 217, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 14}}, {"id": 220, "type": "char_literal", "text": "a'\n", "parent": 217, "children": [221, 222, 223], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 18}}, {"id": 221, "type": "'", "text": "a", "parent": 220, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 16}}, {"id": 222, "type": "character", "text": "'", "parent": 220, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 17}}, {"id": 223, "type": "'", "text": "\n", "parent": 220, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 18}}, {"id": 224, "type": "binary_expression", "text": "ption != 'b'\n", "parent": 216, "children": [225, 226, 227], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 18}}, {"id": 225, "type": "identifier", "text": "ption ", "parent": 224, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 11}}, {"id": 226, "type": "!=", "text": "= ", "parent": 224, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 14}}, {"id": 227, "type": "char_literal", "text": "b'\n", "parent": 224, "children": [228, 229, 230], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 18}}, {"id": 228, "type": "'", "text": "b", "parent": 227, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 16}}, {"id": 229, "type": "character", "text": "'", "parent": 227, "children": [], "start_point": {"row": 69, "column": 16}, "end_point": {"row": 69, "column": 17}}, {"id": 230, "type": "'", "text": "\n", "parent": 227, "children": [], "start_point": {"row": 69, "column": 17}, "end_point": {"row": 69, "column": 18}}, {"id": 231, "type": "binary_expression", "text": "ption != 'c'\n", "parent": 215, "children": [232, 233, 234], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 18}}, {"id": 232, "type": "identifier", "text": "ption ", "parent": 231, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 11}}, {"id": 233, "type": "!=", "text": "= ", "parent": 231, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 14}}, {"id": 234, "type": "char_literal", "text": "c'\n", "parent": 231, "children": [235, 236, 237], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 18}}, {"id": 235, "type": "'", "text": "c", "parent": 234, "children": [], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 16}}, {"id": 236, "type": "character", "text": "'", "parent": 234, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 17}}, {"id": 237, "type": "'", "text": "\n", "parent": 234, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 18}}, {"id": 238, "type": "binary_expression", "text": "ption != 'q')", "parent": 214, "children": [239, 240, 241], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 18}}, {"id": 239, "type": "identifier", "text": "ption ", "parent": 238, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 11}}, {"id": 240, "type": "!=", "text": "= ", "parent": 238, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 14}}, {"id": 241, "type": "char_literal", "text": "q')", "parent": 238, "children": [242, 243], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 18}}, {"id": 242, "type": "'", "text": "q", "parent": 241, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 16}}, {"id": 243, "type": "character", "text": "'", "parent": 241, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 17}}, {"id": 244, "type": "return_statement", "text": "eturn -2;\n", "parent": 212, "children": [245], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 12}}, {"id": 245, "type": "number_literal", "text": "2;", "parent": 244, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 11}}, {"id": 246, "type": "return_statement", "text": "eturn option;\n", "parent": 189, "children": [247], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 15}}, {"id": 247, "type": "identifier", "text": "ption;", "parent": 246, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 14}}]}, "node_categories": {"declarations": {"functions": [5, 10, 13, 15, 153, 155, 189, 191], "variables": [3, 8, 18, 24, 30, 36, 42, 193], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [46, 48, 54, 59, 67, 81, 95, 113, 123, 129, 130, 131, 146, 158, 163, 168, 173, 178, 184, 198, 202, 203, 204, 213, 214, 215, 216, 217, 224, 231, 238], "assignments": [51, 109], "loops": [45, 128], "conditionals": [6, 11, 16, 21, 27, 33, 39, 44, 47, 49, 52, 55, 57, 58, 60, 61, 62, 68, 72, 75, 76, 82, 86, 89, 90, 96, 100, 103, 104, 110, 114, 120, 121, 124, 132, 141, 142, 144, 147, 156, 159, 164, 169, 174, 179, 185, 192, 196, 199, 201, 205, 212, 218, 225, 232, 239, 247], "returns": [151, 210, 244, 246], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 23, 29, 35, 41, 63, 70, 77, 84, 91, 98, 105, 112, 116, 122, 126, 135, 143, 149, 152, 161, 166, 171, 176, 181, 187, 207, 211, 220, 227, 234, 241, 245], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "print_uebersicht()"}, {"node_id": 10, "universal_type": "function", "name": "unknown", "text_snippet": "choose_option()"}, {"node_id": 13, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n\tdouble rate_children = 5.00;\n\tdouble rate_adults = 9.50;\n\tdouble rate_students = 7.50;"}, {"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}, {"node_id": 153, "universal_type": "function", "name": "print_uebersicht", "text_snippet": "void print_uebersicht()\n{\n\tprintf(\"<<<MENU>>>\\n\");\n\tprintf(\"Bitte waehlen Sie eine Preiskategorie:\\n"}, {"node_id": 155, "universal_type": "function", "name": "unknown", "text_snippet": "print_uebersicht()"}, {"node_id": 189, "universal_type": "function", "name": "option", "text_snippet": "nt choose_option()\n{\n\tint option = getchar();\n\tif (getchar() != '\\n') {\n\t\treturn -1;\n\t}\n\tif (option "}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "hoose_option()\n"}], "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 print_uebersicht();\nint choose_option();\n\nint main()\n{\n\tdouble rate_children = 5.00;\n\tdouble rate_adults = 9.50;\n\tdouble rate_students = 7.50;\n\tint status = 1;\n\tint option;\n\n\twhile (status) {\n\t\tprint_uebersicht();\n\t\toption = choose_option();\n\t\tswitch (option) {\n\t\tcase 'a':\n\t\t\tprintf(\"Preiskategorie Kind: %.2f\\n\", rate_children);\n\t\t\tbreak;\n\t\tcase 'b':\n\t\t\tprintf(\"Preiskategorie Erwachsener: %.2f\\n\", rate_adults);\n\t\t\tbreak;\n\t\tcase 'c':\n\t\t\tprintf(\"Preiskategorie Student: %.2f\\n\", rate_students);\n\t\t\tbreak;\n\t\tcase 'q':\n\t\t\tstatus = 0;\n\t\t\tprintf(\"Auswahl beendet\\n\");\n\t\t\tbreak;\n\t\tcase -1:\n\t\t\tprintf(\"Zuviele Zeichen eingegeben\\n\");\n\t\t\twhile (getchar() != '\\n') { }\n\t\t\tbreak;\n\t\tcase -2:\n\t\tdefault:\n\t\t\tprintf(\"Unbekannte Kategorie\\n\");\n\t\t}\n\t}\n\treturn 0;\n}\n\nvoid print_uebersicht()\n{\n\tprintf(\"<<<MENU>>>\\n\");\n\tprintf(\"Bitte waehlen Sie eine Preiskategorie:\\n\");\n\tprintf(\"a Kinder\\n\");\n\tprintf(\"b Erwachsene\\n\");\n\tprintf(\"c Studenten\\n\\n\");\n\tprintf(\"q Auswahl beenden\\n\");\n}\n\n/*\n * choose_option() liest ein zeichen ein.\n * R\u00fcckaben:\n *\t'a': Option a\n *\t'b': Option b\n *\t'c': Option c\n *\t'q': Option q\n *\t -1: Mehr als ein zeichen eingegeben\n * \t -2: Zeichen ist nicht a, b, c oder q\n */\nint choose_option()\n{\n\tint option = getchar();\n\tif (getchar() != '\\n') {\n\t\treturn -1;\n\t}\n\tif (option != 'a'\n\t && option != 'b'\n\t && option != 'c'\n\t && option != 'q') {\n\t\treturn -2;\n\t}\n\n\treturn option;\n}\n"}
80,885
c
/****************************************************************************/ /// @file DistributionCont.h /// @author <NAME> /// @date Sept 2002 /// @version $Id$ /// // A container for distributions /****************************************************************************/ // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/ // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors /****************************************************************************/ // // This file is part of SUMO. // SUMO 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. // /****************************************************************************/ #ifndef DistributionCont_h #define DistributionCont_h // =========================================================================== // included modules // =========================================================================== #ifdef _MSC_VER #include <windows_config.h> #else #include <config.h> #endif #include <string> #include <map> #include <utils/distribution/Distribution.h> // =========================================================================== // class definitions // =========================================================================== /** * @class DistributionCont * A container for distributions of different type. */ class DistributionCont { public: /// Adds a distribution of the given type and name to the container static bool dictionary(const std::string& type, const std::string& id, Distribution* d); /// retrieves the distribution described by a type and a name from the container static Distribution* dictionary(const std::string& type, const std::string& id); /// delete all stored distributions static void clear(); private: /// Definition of a map from distribution ids to distributions typedef std::map<std::string, Distribution*> DistDict; /// Definition of a map from distribution types to distribution ids to distributions typedef std::map<std::string, DistDict> TypedDistDict; /// Map from distribution types to distribution ids to distributions static TypedDistDict myDict; }; #endif /****************************************************************************/
39.29
62
(translation_unit) "/****************************************************************************/\n/// @file DistributionCont.h\n/// @author <NAME>\n/// @date Sept 2002\n/// @version $Id$\n///\n// A container for distributions\n/****************************************************************************/\n// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/\n// Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors\n/****************************************************************************/\n//\n// This file is part of SUMO.\n// SUMO 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/****************************************************************************/\n#ifndef DistributionCont_h\n#define DistributionCont_h\n\n\n// ===========================================================================\n// included modules\n// ===========================================================================\n#ifdef _MSC_VER\n#include <windows_config.h>\n#else\n#include <config.h>\n#endif\n\n#include <string>\n#include <map>\n#include <utils/distribution/Distribution.h>\n\n\n// ===========================================================================\n// class definitions\n// ===========================================================================\n/**\n * @class DistributionCont\n * A container for distributions of different type.\n */\nclass DistributionCont {\npublic:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);\n\n /// retrieves the distribution described by a type and a name from the container\n static Distribution* dictionary(const std::string& type,\n const std::string& id);\n\n /// delete all stored distributions\n static void clear();\n\nprivate:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;\n\n /// Definition of a map from distribution types to distribution ids to distributions\n typedef std::map<std::string, DistDict> TypedDistDict;\n\n /// Map from distribution types to distribution ids to distributions\n static TypedDistDict myDict;\n\n};\n\n\n#endif\n\n/****************************************************************************/\n\n" (comment) "/****************************************************************************/" (comment) "/// @file DistributionCont.h" (comment) "/// @author <NAME>" (comment) "/// @date Sept 2002" (comment) "/// @version $Id$" (comment) "///" (comment) "// A container for distributions" (comment) "/****************************************************************************/" (comment) "// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/" (comment) "// Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors" (comment) "/****************************************************************************/" (comment) "//" (comment) "// This file is part of SUMO." (comment) "// SUMO is free software: you can redistribute it and/or modify" (comment) "// it under the terms of the GNU General Public License as published by" (comment) "// the Free Software Foundation, either version 3 of the License, or" (comment) "// (at your option) any later version." (comment) "//" (comment) "/****************************************************************************/" (preproc_ifdef) "#ifndef DistributionCont_h\n#define DistributionCont_h\n\n\n// ===========================================================================\n// included modules\n// ===========================================================================\n#ifdef _MSC_VER\n#include <windows_config.h>\n#else\n#include <config.h>\n#endif\n\n#include <string>\n#include <map>\n#include <utils/distribution/Distribution.h>\n\n\n// ===========================================================================\n// class definitions\n// ===========================================================================\n/**\n * @class DistributionCont\n * A container for distributions of different type.\n */\nclass DistributionCont {\npublic:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);\n\n /// retrieves the distribution described by a type and a name from the container\n static Distribution* dictionary(const std::string& type,\n const std::string& id);\n\n /// delete all stored distributions\n static void clear();\n\nprivate:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;\n\n /// Definition of a map from distribution types to distribution ids to distributions\n typedef std::map<std::string, DistDict> TypedDistDict;\n\n /// Map from distribution types to distribution ids to distributions\n static TypedDistDict myDict;\n\n};\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "DistributionCont_h" (preproc_def) "#define DistributionCont_h\n" (#define) "#define" (identifier) "DistributionCont_h" (comment) "// ===========================================================================" (comment) "// included modules" (comment) "// ===========================================================================" (preproc_ifdef) "#ifdef _MSC_VER\n#include <windows_config.h>\n#else\n#include <config.h>\n#endif" (#ifdef) "#ifdef" (identifier) "_MSC_VER" (preproc_include) "#include <windows_config.h>\n" (#include) "#include" (system_lib_string) "<windows_config.h>" (preproc_else) "#else\n#include <config.h>\n" (#else) "#else" (preproc_include) "#include <config.h>\n" (#include) "#include" (system_lib_string) "<config.h>" (#endif) "#endif" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (preproc_include) "#include <utils/distribution/Distribution.h>\n" (#include) "#include" (system_lib_string) "<utils/distribution/Distribution.h>" (comment) "// ===========================================================================" (comment) "// class definitions" (comment) "// ===========================================================================" (comment) "/**\n * @class DistributionCont\n * A container for distributions of different type.\n */" (function_definition) "class DistributionCont {\npublic:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);\n\n /// retrieves the distribution described by a type and a name from the container\n static Distribution* dictionary(const std::string& type,\n const std::string& id);\n\n /// delete all stored distributions\n static void clear();\n\nprivate:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;\n\n /// Definition of a map from distribution types to distribution ids to distributions\n typedef std::map<std::string, DistDict> TypedDistDict;\n\n /// Map from distribution types to distribution ids to distributions\n static TypedDistDict myDict;\n\n}" (type_identifier) "class" (identifier) "DistributionCont" (compound_statement) "{\npublic:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);\n\n /// retrieves the distribution described by a type and a name from the container\n static Distribution* dictionary(const std::string& type,\n const std::string& id);\n\n /// delete all stored distributions\n static void clear();\n\nprivate:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;\n\n /// Definition of a map from distribution types to distribution ids to distributions\n typedef std::map<std::string, DistDict> TypedDistDict;\n\n /// Map from distribution types to distribution ids to distributions\n static TypedDistDict myDict;\n\n}" ({) "{" (labeled_statement) "public:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);" (statement_identifier) "public" (:) ":" (comment) "/// Adds a distribution of the given type and name to the container" (declaration) "static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "dictionary(const std::string& type, const std::string& id,\n Distribution* d)" (identifier) "dictionary" (parameter_list) "(const std::string& type, const std::string& id,\n Distribution* d)" (() "(" (parameter_declaration) "const std::string& type" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "type" (,) "," (parameter_declaration) "const std::string& id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "id" (,) "," (parameter_declaration) "Distribution* d" (type_identifier) "Distribution" (pointer_declarator) "* d" (*) "*" (identifier) "d" ()) ")" (;) ";" (comment) "/// retrieves the distribution described by a type and a name from the container" (declaration) "static Distribution* dictionary(const std::string& type,\n const std::string& id);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Distribution" (pointer_declarator) "* dictionary(const std::string& type,\n const std::string& id)" (*) "*" (function_declarator) "dictionary(const std::string& type,\n const std::string& id)" (identifier) "dictionary" (parameter_list) "(const std::string& type,\n const std::string& id)" (() "(" (parameter_declaration) "const std::string& type" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "type" (,) "," (parameter_declaration) "const std::string& id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "id" ()) ")" (;) ";" (comment) "/// delete all stored distributions" (declaration) "static void clear();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "clear()" (identifier) "clear" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;" (statement_identifier) "private" (:) ":" (comment) "/// Definition of a map from distribution ids to distributions" (declaration) "typedef std::map<std::string, Distribution*> DistDict;" (type_identifier) "typedef" (ERROR) "std::map<std::" (identifier) "std" (:) ":" (:) ":" (identifier) "map" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (identifier) "Distribution" (ERROR) "*> DistDict" (*) "*" (>) ">" (identifier) "DistDict" (;) ";" (comment) "/// Definition of a map from distribution types to distribution ids to distributions" (type_definition) "typedef std::map<std::string, DistDict> TypedDistDict;" (typedef) "typedef" (type_identifier) "std" (ERROR) "::map<std::" (:) ":" (:) ":" (type_identifier) "map" (<) "<" (type_identifier) "std" (:) ":" (:) ":" (type_identifier) "string" (,) "," (ERROR) "DistDict>" (type_identifier) "DistDict" (>) ">" (type_identifier) "TypedDistDict" (;) ";" (comment) "/// Map from distribution types to distribution ids to distributions" (declaration) "static TypedDistDict myDict;" (storage_class_specifier) "static" (static) "static" (type_identifier) "TypedDistDict" (identifier) "myDict" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "/****************************************************************************/"
199
8
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 39.29, "nodes": 102, "errors": 0, "source_hash": "17b1dd72de2bc306d0bb7cd0397a8608c39c8d31748d24cc89cbafe55d53b278", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DistributionCont_h\n#define DistributionCont_h\n\n\n// ===========================================================================\n// included modules\n// ===========================================================================\n#ifdef _MSC_VER\n#include <windows_config.h>\n#else\n#include <config.h>\n#endif\n\n#include <string>\n#include <map>\n#include <utils/distribution/Distribution.h>\n\n\n// ===========================================================================\n// class definitions\n// ===========================================================================\n/**\n * @class DistributionCont\n * A container for distributions of different type.\n */\nclass DistributionCont {\npublic:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);\n\n /// retrieves the distribution described by a type and a name from the container\n static Distribution* dictionary(const std::string& type,\n const std::string& id);\n\n /// delete all stored distributions\n static void clear();\n\nprivate:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;\n\n /// Definition of a map from distribution types to distribution ids to distributions\n typedef std::map<std::string, DistDict> TypedDistDict;\n\n /// Map from distribution types to distribution ids to distributions\n static TypedDistDict myDict;\n\n};\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 18, 21, 24, 27, 101], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 70, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 2, "type": "identifier", "text": "DistributionCont_h", "parent": 0, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define DistributionCont_h\n", "parent": 0, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 5, "type": "identifier", "text": "DistributionCont_h", "parent": 3, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 26}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef _MSC_VER\n#include <windows_config.h>\n#else\n#include <config.h>\n#endif", "parent": 0, "children": [7, 8, 9, 12, 17], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 8, "type": "identifier", "text": "_MSC_VER", "parent": 6, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 15}}, {"id": 9, "type": "preproc_include", "text": "#include <windows_config.h>\n", "parent": 6, "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": "<windows_config.h>", "parent": 9, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 27}}, {"id": 12, "type": "preproc_else", "text": "#else\n#include <config.h>\n", "parent": 6, "children": [13, 14], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 13, "type": "#else", "text": "#else", "parent": 12, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 5}}, {"id": 14, "type": "preproc_include", "text": "#include <config.h>\n", "parent": 12, "children": [15, 16], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 16, "type": "system_lib_string", "text": "<config.h>", "parent": 14, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 19}}, {"id": 17, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 18, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "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": "system_lib_string", "text": "<string>", "parent": 18, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 17}}, {"id": 21, "type": "preproc_include", "text": "#include <map>\n", "parent": 0, "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": "system_lib_string", "text": "<map>", "parent": 21, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 14}}, {"id": 24, "type": "preproc_include", "text": "#include <utils/distribution/Distribution.h>\n", "parent": 0, "children": [25, 26], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<utils/distribution/Distribution.h>", "parent": 24, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 44}}, {"id": 27, "type": "function_definition", "text": "class DistributionCont {\npublic:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);\n\n /// retrieves the distribution described by a type and a name from the container\n static Distribution* dictionary(const std::string& type,\n const std::string& id);\n\n /// delete all stored distributions\n static void clear();\n\nprivate:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;\n\n /// Definition of a map from distribution types to distribution ids to distributions\n typedef std::map<std::string, DistDict> TypedDistDict;\n\n /// Map from distribution types to distribution ids to distributions\n static TypedDistDict myDict;\n\n}", "parent": 0, "children": [28], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 28, "type": "identifier", "text": "DistributionCont", "parent": 27, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 22}}, {"id": 29, "type": "labeled_statement", "text": "public:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);", "parent": 27, "children": [30], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 48, "column": 44}}, {"id": 30, "type": "declaration", "text": "static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);", "parent": 29, "children": [31, 32], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 48, "column": 44}}, {"id": 31, "type": "primitive_type", "text": "bool", "parent": 30, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 15}}, {"id": 32, "type": "function_declarator", "text": "dictionary(const std::string& type, const std::string& id,\n Distribution* d)", "parent": 30, "children": [33, 34], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 48, "column": 43}}, {"id": 33, "type": "identifier", "text": "dictionary", "parent": 32, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 26}}, {"id": 34, "type": "parameter_list", "text": "(const std::string& type, const std::string& id,\n Distribution* d)", "parent": 32, "children": [35, 40, 45], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 48, "column": 43}}, {"id": 35, "type": "parameter_declaration", "text": "const std::string& type", "parent": 34, "children": [36, 37, 39], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 50}}, {"id": 36, "type": "type_identifier", "text": "std", "parent": 35, "children": [], "start_point": {"row": 47, "column": 33}, "end_point": {"row": 47, "column": 36}}, {"id": 37, "type": "ERROR", "text": "::string&", "parent": 35, "children": [38], "start_point": {"row": 47, "column": 36}, "end_point": {"row": 47, "column": 45}}, {"id": 38, "type": "identifier", "text": "string", "parent": 37, "children": [], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 44}}, {"id": 39, "type": "identifier", "text": "type", "parent": 35, "children": [], "start_point": {"row": 47, "column": 46}, "end_point": {"row": 47, "column": 50}}, {"id": 40, "type": "parameter_declaration", "text": "const std::string& id", "parent": 34, "children": [41, 42, 44], "start_point": {"row": 47, "column": 52}, "end_point": {"row": 47, "column": 73}}, {"id": 41, "type": "type_identifier", "text": "std", "parent": 40, "children": [], "start_point": {"row": 47, "column": 58}, "end_point": {"row": 47, "column": 61}}, {"id": 42, "type": "ERROR", "text": "::string&", "parent": 40, "children": [43], "start_point": {"row": 47, "column": 61}, "end_point": {"row": 47, "column": 70}}, {"id": 43, "type": "identifier", "text": "string", "parent": 42, "children": [], "start_point": {"row": 47, "column": 63}, "end_point": {"row": 47, "column": 69}}, {"id": 44, "type": "identifier", "text": "id", "parent": 40, "children": [], "start_point": {"row": 47, "column": 71}, "end_point": {"row": 47, "column": 73}}, {"id": 45, "type": "parameter_declaration", "text": "Distribution* d", "parent": 34, "children": [46, 47], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 42}}, {"id": 46, "type": "type_identifier", "text": "Distribution", "parent": 45, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 39}}, {"id": 47, "type": "pointer_declarator", "text": "* d", "parent": 45, "children": [48, 49], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 42}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 40}}, {"id": 49, "type": "identifier", "text": "d", "parent": 47, "children": [], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 42}}, {"id": 50, "type": "declaration", "text": "static Distribution* dictionary(const std::string& type,\n const std::string& id);", "parent": 27, "children": [51, 52], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 52, "column": 59}}, {"id": 51, "type": "type_identifier", "text": "Distribution", "parent": 50, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 23}}, {"id": 52, "type": "pointer_declarator", "text": "* dictionary(const std::string& type,\n const std::string& id)", "parent": 50, "children": [53, 54], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 52, "column": 58}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 24}}, {"id": 54, "type": "function_declarator", "text": "dictionary(const std::string& type,\n const std::string& id)", "parent": 52, "children": [55, 56], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 52, "column": 58}}, {"id": 55, "type": "identifier", "text": "dictionary", "parent": 54, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 35}}, {"id": 56, "type": "parameter_list", "text": "(const std::string& type,\n const std::string& id)", "parent": 54, "children": [57, 62], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 52, "column": 58}}, {"id": 57, "type": "parameter_declaration", "text": "const std::string& type", "parent": 56, "children": [58, 59, 61], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 59}}, {"id": 58, "type": "type_identifier", "text": "std", "parent": 57, "children": [], "start_point": {"row": 51, "column": 42}, "end_point": {"row": 51, "column": 45}}, {"id": 59, "type": "ERROR", "text": "::string&", "parent": 57, "children": [60], "start_point": {"row": 51, "column": 45}, "end_point": {"row": 51, "column": 54}}, {"id": 60, "type": "identifier", "text": "string", "parent": 59, "children": [], "start_point": {"row": 51, "column": 47}, "end_point": {"row": 51, "column": 53}}, {"id": 61, "type": "identifier", "text": "type", "parent": 57, "children": [], "start_point": {"row": 51, "column": 55}, "end_point": {"row": 51, "column": 59}}, {"id": 62, "type": "parameter_declaration", "text": "const std::string& id", "parent": 56, "children": [63, 64, 66], "start_point": {"row": 52, "column": 36}, "end_point": {"row": 52, "column": 57}}, {"id": 63, "type": "type_identifier", "text": "std", "parent": 62, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 45}}, {"id": 64, "type": "ERROR", "text": "::string&", "parent": 62, "children": [65], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 54}}, {"id": 65, "type": "identifier", "text": "string", "parent": 64, "children": [], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 53}}, {"id": 66, "type": "identifier", "text": "id", "parent": 62, "children": [], "start_point": {"row": 52, "column": 55}, "end_point": {"row": 52, "column": 57}}, {"id": 67, "type": "declaration", "text": "static void clear();", "parent": 27, "children": [68, 69], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 24}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 15}}, {"id": 69, "type": "function_declarator", "text": "clear()", "parent": 67, "children": [70, 71], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 23}}, {"id": 70, "type": "identifier", "text": "clear", "parent": 69, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 21}}, {"id": 71, "type": "parameter_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 23}}, {"id": 72, "type": "labeled_statement", "text": "private:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;", "parent": 27, "children": [73], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 59, "column": 58}}, {"id": 73, "type": "declaration", "text": "typedef std::map<std::string, Distribution*> DistDict;", "parent": 72, "children": [74, 75, 80, 81, 82], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 58}}, {"id": 74, "type": "type_identifier", "text": "typedef", "parent": 73, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 11}}, {"id": 75, "type": "ERROR", "text": "std::map<std::", "parent": 73, "children": [76, 77, 78, 79], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 26}}, {"id": 76, "type": "identifier", "text": "std", "parent": 75, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 15}}, {"id": 77, "type": "identifier", "text": "map", "parent": 75, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 20}}, {"id": 78, "type": "<", "text": "<", "parent": 75, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 21}}, {"id": 79, "type": "identifier", "text": "std", "parent": 75, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 24}}, {"id": 80, "type": "identifier", "text": "string", "parent": 73, "children": [], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 32}}, {"id": 81, "type": "identifier", "text": "Distribution", "parent": 73, "children": [], "start_point": {"row": 59, "column": 34}, "end_point": {"row": 59, "column": 46}}, {"id": 82, "type": "ERROR", "text": "*> DistDict", "parent": 73, "children": [83, 84, 85], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 57}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 47}}, {"id": 84, "type": ">", "text": ">", "parent": 82, "children": [], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 48}}, {"id": 85, "type": "identifier", "text": "DistDict", "parent": 82, "children": [], "start_point": {"row": 59, "column": 49}, "end_point": {"row": 59, "column": 57}}, {"id": 86, "type": "type_definition", "text": "typedef std::map<std::string, DistDict> TypedDistDict;", "parent": 27, "children": [87, 88, 89, 93, 94, 97], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 58}}, {"id": 87, "type": "typedef", "text": "typedef", "parent": 86, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 11}}, {"id": 88, "type": "type_identifier", "text": "std", "parent": 86, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 15}}, {"id": 89, "type": "ERROR", "text": "::map<std::", "parent": 86, "children": [90, 91, 92], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 26}}, {"id": 90, "type": "type_identifier", "text": "map", "parent": 89, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 20}}, {"id": 91, "type": "<", "text": "<", "parent": 89, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 92, "type": "type_identifier", "text": "std", "parent": 89, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 24}}, {"id": 93, "type": "type_identifier", "text": "string", "parent": 86, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 32}}, {"id": 94, "type": "ERROR", "text": "DistDict>", "parent": 86, "children": [95, 96], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 43}}, {"id": 95, "type": "type_identifier", "text": "DistDict", "parent": 94, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 42}}, {"id": 96, "type": ">", "text": ">", "parent": 94, "children": [], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 43}}, {"id": 97, "type": "type_identifier", "text": "TypedDistDict", "parent": 86, "children": [], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 57}}, {"id": 98, "type": "declaration", "text": "static TypedDistDict myDict;", "parent": 27, "children": [99, 100], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 32}}, {"id": 99, "type": "type_identifier", "text": "TypedDistDict", "parent": 98, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 24}}, {"id": 100, "type": "identifier", "text": "myDict", "parent": 98, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 31}}, {"id": 101, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 6}}]}, "node_categories": {"declarations": {"functions": [27, 32, 54, 69], "variables": [30, 35, 40, 45, 50, 57, 62, 67, 73, 86, 98], "classes": [], "imports": [9, 10, 14, 15, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 17, 28, 33, 36, 38, 39, 41, 43, 44, 46, 49, 51, 55, 58, 60, 61, 63, 65, 66, 70, 74, 76, 77, 79, 80, 81, 85, 88, 90, 92, 93, 95, 97, 99, 100, 101], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [11, 16, 20, 23, 26], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "DistributionCont", "text_snippet": "class DistributionCont {\npublic:\n /// Adds a distribution of the given type and name to the conta"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "dictionary(const std::string& type, const std::string& id,\n Distribution* "}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "dictionary(const std::string& type,\n const std::string& id)"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "clear()"}], "class_declarations": [], "import_statements": [{"node_id": 9, "text": "#include <windows_config.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 14, "text": "#include <config.h>\n"}, {"node_id": 15, "text": "#include"}, {"node_id": 18, "text": "#include <string>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <map>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <utils/distribution/Distribution.h>\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "/****************************************************************************/\n/// @file DistributionCont.h\n/// @author <NAME>\n/// @date Sept 2002\n/// @version $Id$\n///\n// A container for distributions\n/****************************************************************************/\n// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/\n// Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors\n/****************************************************************************/\n//\n// This file is part of SUMO.\n// SUMO 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/****************************************************************************/\n#ifndef DistributionCont_h\n#define DistributionCont_h\n\n\n// ===========================================================================\n// included modules\n// ===========================================================================\n#ifdef _MSC_VER\n#include <windows_config.h>\n#else\n#include <config.h>\n#endif\n\n#include <string>\n#include <map>\n#include <utils/distribution/Distribution.h>\n\n\n// ===========================================================================\n// class definitions\n// ===========================================================================\n/**\n * @class DistributionCont\n * A container for distributions of different type.\n */\nclass DistributionCont {\npublic:\n /// Adds a distribution of the given type and name to the container\n static bool dictionary(const std::string& type, const std::string& id,\n Distribution* d);\n\n /// retrieves the distribution described by a type and a name from the container\n static Distribution* dictionary(const std::string& type,\n const std::string& id);\n\n /// delete all stored distributions\n static void clear();\n\nprivate:\n /// Definition of a map from distribution ids to distributions\n typedef std::map<std::string, Distribution*> DistDict;\n\n /// Definition of a map from distribution types to distribution ids to distributions\n typedef std::map<std::string, DistDict> TypedDistDict;\n\n /// Map from distribution types to distribution ids to distributions\n static TypedDistDict myDict;\n\n};\n\n\n#endif\n\n/****************************************************************************/\n\n"}
80,886
c
#ifndef MODULE_H_INCLUDED #define MODULE_H_INCLUDED #define GET_SALUTATION_SYM "get_salutation" typedef const char * get_salutation_t(void); const char * get_salutation(void); #endif /* MODULE_H_INCLUDED */
33.5
6
(translation_unit) "#ifndef MODULE_H_INCLUDED\n#define MODULE_H_INCLUDED\n\n#define GET_SALUTATION_SYM "get_salutation"\n\ntypedef const char * get_salutation_t(void);\nconst char * get_salutation(void);\n\n#endif /* MODULE_H_INCLUDED */\n" (preproc_ifdef) "#ifndef MODULE_H_INCLUDED\n#define MODULE_H_INCLUDED\n\n#define GET_SALUTATION_SYM "get_salutation"\n\ntypedef const char * get_salutation_t(void);\nconst char * get_salutation(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "MODULE_H_INCLUDED" (preproc_def) "#define MODULE_H_INCLUDED\n" (#define) "#define" (identifier) "MODULE_H_INCLUDED" (preproc_def) "#define GET_SALUTATION_SYM "get_salutation"\n" (#define) "#define" (identifier) "GET_SALUTATION_SYM" (preproc_arg) ""get_salutation"" (type_definition) "typedef const char * get_salutation_t(void);" (typedef) "typedef" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* get_salutation_t(void)" (*) "*" (function_declarator) "get_salutation_t(void)" (type_identifier) "get_salutation_t" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "const char * get_salutation(void);" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* get_salutation(void)" (*) "*" (function_declarator) "get_salutation(void)" (identifier) "get_salutation" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* MODULE_H_INCLUDED */"
42
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 33.5, "nodes": 30, "errors": 0, "source_hash": "20acba68dbb583e31113b2af23ce8dbbea0eb195421e3546b4e85d554d88238b", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MODULE_H_INCLUDED\n#define MODULE_H_INCLUDED\n\n#define GET_SALUTATION_SYM \"get_salutation\"\n\ntypedef const char * get_salutation_t(void);\nconst char * get_salutation(void);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 20, 29], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 8, "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": "MODULE_H_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define MODULE_H_INCLUDED\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "MODULE_H_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "preproc_def", "text": "#define GET_SALUTATION_SYM \"get_salutation\"\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "identifier", "text": "GET_SALUTATION_SYM", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 26}}, {"id": 9, "type": "preproc_arg", "text": "\"get_salutation\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 27}, "end_point": {"row": 3, "column": 43}}, {"id": 10, "type": "type_definition", "text": "typedef const char * get_salutation_t(void);", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 44}}, {"id": 11, "type": "typedef", "text": "typedef", "parent": 10, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 10, "children": [], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 18}}, {"id": 13, "type": "pointer_declarator", "text": "* get_salutation_t(void)", "parent": 10, "children": [14, 15], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 43}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 5, "column": 19}, "end_point": {"row": 5, "column": 20}}, {"id": 15, "type": "function_declarator", "text": "get_salutation_t(void)", "parent": 13, "children": [16, 17], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 43}}, {"id": 16, "type": "type_identifier", "text": "get_salutation_t", "parent": 15, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 37}}, {"id": 17, "type": "parameter_list", "text": "(void)", "parent": 15, "children": [18], "start_point": {"row": 5, "column": 37}, "end_point": {"row": 5, "column": 43}}, {"id": 18, "type": "parameter_declaration", "text": "void", "parent": 17, "children": [19], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 42}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 42}}, {"id": 20, "type": "declaration", "text": "const char * get_salutation(void);", "parent": 0, "children": [21, 22], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 34}}, {"id": 21, "type": "primitive_type", "text": "char", "parent": 20, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 10}}, {"id": 22, "type": "pointer_declarator", "text": "* get_salutation(void)", "parent": 20, "children": [23, 24], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 33}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 12}}, {"id": 24, "type": "function_declarator", "text": "get_salutation(void)", "parent": 22, "children": [25, 26], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 33}}, {"id": 25, "type": "identifier", "text": "get_salutation", "parent": 24, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 27}}, {"id": 26, "type": "parameter_list", "text": "(void)", "parent": 24, "children": [27], "start_point": {"row": 6, "column": 27}, "end_point": {"row": 6, "column": 33}}, {"id": 27, "type": "parameter_declaration", "text": "void", "parent": 26, "children": [28], "start_point": {"row": 6, "column": 28}, "end_point": {"row": 6, "column": 32}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 6, "column": 28}, "end_point": {"row": 6, "column": 32}}, {"id": 29, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 24], "variables": [10, 18, 20, 27], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 16, 25, 29], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "get_salutation_t(void)"}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "get_salutation(void)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef MODULE_H_INCLUDED\n#define MODULE_H_INCLUDED\n\n#define GET_SALUTATION_SYM \"get_salutation\"\n\ntypedef const char * get_salutation_t(void);\nconst char * get_salutation(void);\n\n#endif\t/* MODULE_H_INCLUDED */\n"}
80,887
c
// Copyright 2016 <NAME> and The CondorLang 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 FS_H_ #define FS_H_ #include <fstream> #include <streambuf> #include <iostream> #include <vector> #include <dirent.h> #include "condor/error/error.h" namespace Condor { namespace internal{ class FS { public: static bool FileExists(std::string path); static std::string ReadFile(std::string path); static void WriteFile(std::string path, std::string contents); static bool DeleteFile(std::string path); static std::vector<std::string> ReadDir(std::string path, bool recursive); static bool IsDir(std::string path); }; } // namespace internal } #endif // FS_H_
23.94
32
(translation_unit) "// Copyright 2016 <NAME> and The CondorLang Authors. All rights reserved. \n// Use of this source code is governed by a BSD-style \n// license that can be found in the LICENSE file. \n \n#ifndef FS_H_ \n#define FS_H_ \n \n#include <fstream> \n#include <streambuf> \n#include <iostream> \n#include <vector> \n#include <dirent.h> \n#include "condor/error/error.h" \n \nnamespace Condor { \nnamespace internal{ \n \n class FS \n { \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }; \n \n} // namespace internal \n} \n \n#endif // FS_H_ \n" (comment) "// Copyright 2016 <NAME> and The CondorLang Authors. All rights reserved. " (comment) "// Use of this source code is governed by a BSD-style " (comment) "// license that can be found in the LICENSE file. " (preproc_ifdef) "#ifndef FS_H_ \n#define FS_H_ \n \n#include <fstream> \n#include <streambuf> \n#include <iostream> \n#include <vector> \n#include <dirent.h> \n#include "condor/error/error.h" \n \nnamespace Condor { \nnamespace internal{ \n \n class FS \n { \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }; \n \n} // namespace internal \n} \n \n#endif" (#ifndef) "#ifndef" (identifier) "FS_H_" (preproc_def) "#define FS_H_ \n" (#define) "#define" (identifier) "FS_H_" (preproc_include) "#include <fstream> \n" (#include) "#include" (system_lib_string) "<fstream>" (preproc_include) "#include <streambuf> \n" (#include) "#include" (system_lib_string) "<streambuf>" (preproc_include) "#include <iostream> \n" (#include) "#include" (system_lib_string) "<iostream>" (preproc_include) "#include <vector> \n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <dirent.h> \n" (#include) "#include" (system_lib_string) "<dirent.h>" (preproc_include) "#include "condor/error/error.h" \n" (#include) "#include" (string_literal) ""condor/error/error.h"" (") """ (string_content) "condor/error/error.h" (") """ (function_definition) "namespace Condor { \nnamespace internal{ \n \n class FS \n { \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }; \n \n} // namespace internal \n}" (type_identifier) "namespace" (identifier) "Condor" (compound_statement) "{ \nnamespace internal{ \n \n class FS \n { \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }; \n \n} // namespace internal \n}" ({) "{" (function_definition) "namespace internal{ \n \n class FS \n { \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }; \n \n}" (type_identifier) "namespace" (identifier) "internal" (compound_statement) "{ \n \n class FS \n { \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }; \n \n}" ({) "{" (function_definition) "class FS \n { \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }" (type_identifier) "class" (identifier) "FS" (compound_statement) "{ \n public: \n static bool FileExists(std::string path); \n static std::string ReadFile(std::string path); \n static void WriteFile(std::string path, std::string contents); \n static bool DeleteFile(std::string path); \n static std::vector<std::string> ReadDir(std::string path, bool recursive); \n static bool IsDir(std::string path); \n }" ({) "{" (labeled_statement) "public: \n static bool FileExists(std::string path);" (statement_identifier) "public" (:) ":" (declaration) "static bool FileExists(std::string path);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "FileExists(std::string path)" (identifier) "FileExists" (parameter_list) "(std::string path)" (() "(" (parameter_declaration) "std::string path" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "path" ()) ")" (;) ";" (declaration) "static std::string ReadFile(std::string path);" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (function_declarator) "ReadFile(std::string path)" (identifier) "ReadFile" (parameter_list) "(std::string path)" (() "(" (parameter_declaration) "std::string path" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "path" ()) ")" (;) ";" (declaration) "static void WriteFile(std::string path, std::string contents);" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "WriteFile(std::string path, std::string contents)" (identifier) "WriteFile" (parameter_list) "(std::string path, std::string contents)" (() "(" (parameter_declaration) "std::string path" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "path" (,) "," (parameter_declaration) "std::string contents" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "contents" ()) ")" (;) ";" (declaration) "static bool DeleteFile(std::string path);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "DeleteFile(std::string path)" (identifier) "DeleteFile" (parameter_list) "(std::string path)" (() "(" (parameter_declaration) "std::string path" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "path" ()) ")" (;) ";" (declaration) "static std::vector<std::string> ReadDir(std::string path, bool recursive);" (storage_class_specifier) "static" (static) "static" (type_identifier) "std" (ERROR) "::vector<std::string>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (function_declarator) "ReadDir(std::string path, bool recursive)" (identifier) "ReadDir" (parameter_list) "(std::string path, bool recursive)" (() "(" (parameter_declaration) "std::string path" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "path" (,) "," (parameter_declaration) "bool recursive" (primitive_type) "bool" (identifier) "recursive" ()) ")" (;) ";" (declaration) "static bool IsDir(std::string path);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "IsDir(std::string path)" (identifier) "IsDir" (parameter_list) "(std::string path)" (() "(" (parameter_declaration) "std::string path" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "path" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace internal " (}) "}" (#endif) "#endif" (comment) "// FS_H_ "
185
9
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 23.94, "nodes": 110, "errors": 0, "source_hash": "a59fbbf26f649d080c2e81c96559d1da11e3f5549e12268fa702c96f58b43c83", "categorized_nodes": 85}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FS_H_\r\n#define FS_H_\r\n\r\n#include <fstream>\r\n#include <streambuf>\r\n#include <iostream>\r\n#include <vector>\r\n#include <dirent.h>\r\n#include \"condor/error/error.h\"\r\n\r\nnamespace Condor {\r\nnamespace internal{\r\n\r\n\tclass FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::string path);\r\n\t\tstatic std::string ReadFile(std::string path);\r\n\t\tstatic void WriteFile(std::string path, std::string contents);\r\n\t\tstatic bool DeleteFile(std::string path);\r\n\t\tstatic std::vector<std::string> ReadDir(std::string path, bool recursive);\r\n\t\tstatic bool IsDir(std::string path);\r\n\t};\r\n\r\n} // namespace internal\r\n}\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 109], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 2, "type": "identifier", "text": "FS_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 13}}, {"id": 3, "type": "preproc_def", "text": "#define FS_H_\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 5, "type": "identifier", "text": "FS_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 13}}, {"id": 6, "type": "preproc_include", "text": "#include <fstream>\r\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": "<fstream>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <streambuf>\r\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<streambuf>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include <iostream>\r\n", "parent": 0, "children": [13, 14], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<iostream>", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <vector>\r\n", "parent": 0, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<vector>", "parent": 15, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <dirent.h>\r\n", "parent": 0, "children": [19, 20], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<dirent.h>", "parent": 18, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include \"condor/error/error.h\"\r\n", "parent": 0, "children": [22, 23], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"condor/error/error.h\"", "parent": 21, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 31}}, {"id": 24, "type": "function_definition", "text": "namespace Condor {\r\nnamespace internal{\r\n\r\n\tclass FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::string path);\r\n\t\tstatic std::string ReadFile(std::string path);\r\n\t\tstatic void WriteFile(std::string path, std::string contents);\r\n\t\tstatic bool DeleteFile(std::string path);\r\n\t\tstatic std::vector<std::string> ReadDir(std::string path, bool recursive);\r\n\t\tstatic bool IsDir(std::string path);\r\n\t};\r\n\r\n} // namespace internal\r\n}", "parent": 0, "children": [25, 26], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 26, "type": "identifier", "text": "Condor", "parent": 24, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 16}}, {"id": 27, "type": "function_definition", "text": "namespace internal{\r\n\r\n\tclass FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::string path);\r\n\t\tstatic std::string ReadFile(std::string path);\r\n\t\tstatic void WriteFile(std::string path, std::string contents);\r\n\t\tstatic bool DeleteFile(std::string path);\r\n\t\tstatic std::vector<std::string> ReadDir(std::string path, bool recursive);\r\n\t\tstatic bool IsDir(std::string path);\r\n\t};\r\n\r\n}", "parent": 24, "children": [28, 29], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 29, "type": "identifier", "text": "internal", "parent": 27, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 18}}, {"id": 30, "type": "function_definition", "text": "class FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::string path);\r\n\t\tstatic std::string ReadFile(std::string path);\r\n\t\tstatic void WriteFile(std::string path, std::string contents);\r\n\t\tstatic bool DeleteFile(std::string path);\r\n\t\tstatic std::vector<std::string> ReadDir(std::string path, bool recursive);\r\n\t\tstatic bool IsDir(std::string path);\r\n\t}", "parent": 27, "children": [31], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 26, "column": 2}}, {"id": 31, "type": "identifier", "text": "FS", "parent": 30, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 9}}, {"id": 32, "type": "labeled_statement", "text": "public:\r\n\t\tstatic bool FileExists(std::string path);", "parent": 30, "children": [33], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 20, "column": 43}}, {"id": 33, "type": "declaration", "text": "static bool FileExists(std::string path);", "parent": 32, "children": [34, 35], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 43}}, {"id": 34, "type": "primitive_type", "text": "bool", "parent": 33, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 13}}, {"id": 35, "type": "function_declarator", "text": "FileExists(std::string path)", "parent": 33, "children": [36, 37], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 42}}, {"id": 36, "type": "identifier", "text": "FileExists", "parent": 35, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 24}}, {"id": 37, "type": "parameter_list", "text": "(std::string path)", "parent": 35, "children": [38], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 42}}, {"id": 38, "type": "parameter_declaration", "text": "std::string path", "parent": 37, "children": [39, 40, 42], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 41}}, {"id": 39, "type": "type_identifier", "text": "std", "parent": 38, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 28}}, {"id": 40, "type": "ERROR", "text": "::string", "parent": 38, "children": [41], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 36}}, {"id": 41, "type": "identifier", "text": "string", "parent": 40, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 36}}, {"id": 42, "type": "identifier", "text": "path", "parent": 38, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 41}}, {"id": 43, "type": "declaration", "text": "static std::string ReadFile(std::string path);", "parent": 30, "children": [44, 45, 47], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 48}}, {"id": 44, "type": "type_identifier", "text": "std", "parent": 43, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 12}}, {"id": 45, "type": "ERROR", "text": "::string", "parent": 43, "children": [46], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 20}}, {"id": 46, "type": "identifier", "text": "string", "parent": 45, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 20}}, {"id": 47, "type": "function_declarator", "text": "ReadFile(std::string path)", "parent": 43, "children": [48, 49], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 47}}, {"id": 48, "type": "identifier", "text": "ReadFile", "parent": 47, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 29}}, {"id": 49, "type": "parameter_list", "text": "(std::string path)", "parent": 47, "children": [50], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 47}}, {"id": 50, "type": "parameter_declaration", "text": "std::string path", "parent": 49, "children": [51, 52, 54], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 46}}, {"id": 51, "type": "type_identifier", "text": "std", "parent": 50, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 33}}, {"id": 52, "type": "ERROR", "text": "::string", "parent": 50, "children": [53], "start_point": {"row": 21, "column": 33}, "end_point": {"row": 21, "column": 41}}, {"id": 53, "type": "identifier", "text": "string", "parent": 52, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 41}}, {"id": 54, "type": "identifier", "text": "path", "parent": 50, "children": [], "start_point": {"row": 21, "column": 42}, "end_point": {"row": 21, "column": 46}}, {"id": 55, "type": "declaration", "text": "static void WriteFile(std::string path, std::string contents);", "parent": 30, "children": [56, 57], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 64}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 13}}, {"id": 57, "type": "function_declarator", "text": "WriteFile(std::string path, std::string contents)", "parent": 55, "children": [58, 59], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 63}}, {"id": 58, "type": "identifier", "text": "WriteFile", "parent": 57, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 23}}, {"id": 59, "type": "parameter_list", "text": "(std::string path, std::string contents)", "parent": 57, "children": [60, 65], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 63}}, {"id": 60, "type": "parameter_declaration", "text": "std::string path", "parent": 59, "children": [61, 62, 64], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 40}}, {"id": 61, "type": "type_identifier", "text": "std", "parent": 60, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 27}}, {"id": 62, "type": "ERROR", "text": "::string", "parent": 60, "children": [63], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 35}}, {"id": 63, "type": "identifier", "text": "string", "parent": 62, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 35}}, {"id": 64, "type": "identifier", "text": "path", "parent": 60, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 40}}, {"id": 65, "type": "parameter_declaration", "text": "std::string contents", "parent": 59, "children": [66, 67, 69], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 62}}, {"id": 66, "type": "type_identifier", "text": "std", "parent": 65, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 45}}, {"id": 67, "type": "ERROR", "text": "::string", "parent": 65, "children": [68], "start_point": {"row": 22, "column": 45}, "end_point": {"row": 22, "column": 53}}, {"id": 68, "type": "identifier", "text": "string", "parent": 67, "children": [], "start_point": {"row": 22, "column": 47}, "end_point": {"row": 22, "column": 53}}, {"id": 69, "type": "identifier", "text": "contents", "parent": 65, "children": [], "start_point": {"row": 22, "column": 54}, "end_point": {"row": 22, "column": 62}}, {"id": 70, "type": "declaration", "text": "static bool DeleteFile(std::string path);", "parent": 30, "children": [71, 72], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 43}}, {"id": 71, "type": "primitive_type", "text": "bool", "parent": 70, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 13}}, {"id": 72, "type": "function_declarator", "text": "DeleteFile(std::string path)", "parent": 70, "children": [73, 74], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 42}}, {"id": 73, "type": "identifier", "text": "DeleteFile", "parent": 72, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 24}}, {"id": 74, "type": "parameter_list", "text": "(std::string path)", "parent": 72, "children": [75], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 42}}, {"id": 75, "type": "parameter_declaration", "text": "std::string path", "parent": 74, "children": [76, 77, 79], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 41}}, {"id": 76, "type": "type_identifier", "text": "std", "parent": 75, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 28}}, {"id": 77, "type": "ERROR", "text": "::string", "parent": 75, "children": [78], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 36}}, {"id": 78, "type": "identifier", "text": "string", "parent": 77, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 36}}, {"id": 79, "type": "identifier", "text": "path", "parent": 75, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 41}}, {"id": 80, "type": "declaration", "text": "static std::vector<std::string> ReadDir(std::string path, bool recursive);", "parent": 30, "children": [81, 82, 88], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 76}}, {"id": 81, "type": "type_identifier", "text": "std", "parent": 80, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 12}}, {"id": 82, "type": "ERROR", "text": "::vector<std::string>", "parent": 80, "children": [83, 84, 85, 86, 87], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 33}}, {"id": 83, "type": "identifier", "text": "vector", "parent": 82, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 20}}, {"id": 84, "type": "<", "text": "<", "parent": 82, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 85, "type": "identifier", "text": "std", "parent": 82, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 24}}, {"id": 86, "type": "identifier", "text": "string", "parent": 82, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 32}}, {"id": 87, "type": ">", "text": ">", "parent": 82, "children": [], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 33}}, {"id": 88, "type": "function_declarator", "text": "ReadDir(std::string path, bool recursive)", "parent": 80, "children": [89, 90], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 75}}, {"id": 89, "type": "identifier", "text": "ReadDir", "parent": 88, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 41}}, {"id": 90, "type": "parameter_list", "text": "(std::string path, bool recursive)", "parent": 88, "children": [91, 96], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 75}}, {"id": 91, "type": "parameter_declaration", "text": "std::string path", "parent": 90, "children": [92, 93, 95], "start_point": {"row": 24, "column": 42}, "end_point": {"row": 24, "column": 58}}, {"id": 92, "type": "type_identifier", "text": "std", "parent": 91, "children": [], "start_point": {"row": 24, "column": 42}, "end_point": {"row": 24, "column": 45}}, {"id": 93, "type": "ERROR", "text": "::string", "parent": 91, "children": [94], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 53}}, {"id": 94, "type": "identifier", "text": "string", "parent": 93, "children": [], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 53}}, {"id": 95, "type": "identifier", "text": "path", "parent": 91, "children": [], "start_point": {"row": 24, "column": 54}, "end_point": {"row": 24, "column": 58}}, {"id": 96, "type": "parameter_declaration", "text": "bool recursive", "parent": 90, "children": [97, 98], "start_point": {"row": 24, "column": 60}, "end_point": {"row": 24, "column": 74}}, {"id": 97, "type": "primitive_type", "text": "bool", "parent": 96, "children": [], "start_point": {"row": 24, "column": 60}, "end_point": {"row": 24, "column": 64}}, {"id": 98, "type": "identifier", "text": "recursive", "parent": 96, "children": [], "start_point": {"row": 24, "column": 65}, "end_point": {"row": 24, "column": 74}}, {"id": 99, "type": "declaration", "text": "static bool IsDir(std::string path);", "parent": 30, "children": [100, 101], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 38}}, {"id": 100, "type": "primitive_type", "text": "bool", "parent": 99, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 13}}, {"id": 101, "type": "function_declarator", "text": "IsDir(std::string path)", "parent": 99, "children": [102, 103], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 37}}, {"id": 102, "type": "identifier", "text": "IsDir", "parent": 101, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 19}}, {"id": 103, "type": "parameter_list", "text": "(std::string path)", "parent": 101, "children": [104], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 37}}, {"id": 104, "type": "parameter_declaration", "text": "std::string path", "parent": 103, "children": [105, 106, 108], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 36}}, {"id": 105, "type": "type_identifier", "text": "std", "parent": 104, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 23}}, {"id": 106, "type": "ERROR", "text": "::string", "parent": 104, "children": [107], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 31}}, {"id": 107, "type": "identifier", "text": "string", "parent": 106, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 31}}, {"id": 108, "type": "identifier", "text": "path", "parent": 104, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 36}}, {"id": 109, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}]}, "node_categories": {"declarations": {"functions": [24, 27, 30, 35, 47, 57, 72, 88, 101], "variables": [33, 38, 43, 50, 55, 60, 65, 70, 75, 80, 91, 96, 99, 104], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 25, 26, 28, 29, 31, 36, 39, 41, 42, 44, 46, 48, 51, 53, 54, 58, 61, 63, 64, 66, 68, 69, 73, 76, 78, 79, 81, 83, 85, 86, 89, 92, 94, 95, 98, 102, 105, 107, 108, 109], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "FS", "text_snippet": "namespace Condor {\r\nnamespace internal{\r\n\r\n\tclass FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::st"}, {"node_id": 27, "universal_type": "function", "name": "FS", "text_snippet": "namespace internal{\r\n\r\n\tclass FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::string path);\r\n\t\tstati"}, {"node_id": 30, "universal_type": "function", "name": "FS", "text_snippet": "class FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::string path);\r\n\t\tstatic std::string ReadFile(s"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "FileExists(std::string path)"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "ReadFile(std::string path)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "WriteFile(std::string path, std::string contents)"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "DeleteFile(std::string path)"}, {"node_id": 88, "universal_type": "function", "name": "recursive)", "text_snippet": "ReadDir(std::string path, bool recursive)"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "IsDir(std::string path)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <fstream>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <streambuf>\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <iostream>\r\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vector>\r\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <dirent.h>\r\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"condor/error/error.h\"\r\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "// Copyright 2016 <NAME> and The CondorLang Authors. All rights reserved.\r\n// Use of this source code is governed by a BSD-style\r\n// license that can be found in the LICENSE file.\r\n\r\n#ifndef FS_H_\r\n#define FS_H_\r\n\r\n#include <fstream>\r\n#include <streambuf>\r\n#include <iostream>\r\n#include <vector>\r\n#include <dirent.h>\r\n#include \"condor/error/error.h\"\r\n\r\nnamespace Condor {\r\nnamespace internal{\r\n\r\n\tclass FS\r\n\t{\r\n\tpublic:\r\n\t\tstatic bool FileExists(std::string path);\r\n\t\tstatic std::string ReadFile(std::string path);\r\n\t\tstatic void WriteFile(std::string path, std::string contents);\r\n\t\tstatic bool DeleteFile(std::string path);\r\n\t\tstatic std::vector<std::string> ReadDir(std::string path, bool recursive);\r\n\t\tstatic bool IsDir(std::string path);\r\n\t};\r\n\r\n} // namespace internal\r\n}\r\n\r\n#endif // FS_H_\r\n"}
80,888
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSEvent.h" @interface NSEvent (DVTMorphingDragImageControllerExtras) - (BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent; - (BOOL)_DVTMorphingDragImageController_isKeyEvent:(unsigned short)arg1; @end
33.6
10
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSEvent.h"\n\n@interface NSEvent (DVTMorphingDragImageControllerExtras)\n- (BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent;\n- (BOOL)_DVTMorphingDragImageController_isKeyEvent:(unsigned short)arg1;\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>." (comment) "//" (preproc_call) "#import "NSEvent.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSEvent.h"" (ERROR) "@interface NSEvent (DVTMorphingDragImageControllerExtras)" (ERROR) "@" (type_identifier) "interface" (function_declarator) "NSEvent (DVTMorphingDragImageControllerExtras)" (identifier) "NSEvent" (parameter_list) "(DVTMorphingDragImageControllerExtras)" (() "(" (identifier) "DVTMorphingDragImageControllerExtras" ()) ")" (expression_statement) "- (BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent;" (unary_expression) "- (BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent" (-) "-" (cast_expression) "(BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "_DVTMorphingDragImageController_isEscapeKeyEvent" (;) ";" (ERROR) "- (BOOL)_DVTMorphingDragImageController_isKeyEvent:(" (unary_expression) "- (BOOL)_DVTMorphingDragImageController_isKeyEvent" (-) "-" (cast_expression) "(BOOL)_DVTMorphingDragImageController_isKeyEvent" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "_DVTMorphingDragImageController_isKeyEvent" (:) ":" (() "(" (declaration) "unsigned short)arg1;" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
52
6
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 33.6, "nodes": 30, "errors": 0, "source_hash": "310e4b5c7ecb26fbdf8c980a0fda31d8aa70b918ce237ee5d04cd3006dbef4c3", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NSEvent.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\"NSEvent.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 19}}, {"id": 3, "type": "ERROR", "text": "@interface NSEvent (DVTMorphingDragImageControllerExtras)", "parent": null, "children": [4, 5, 6], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 57}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "interface", "parent": 3, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "NSEvent (DVTMorphingDragImageControllerExtras)", "parent": 3, "children": [7, 8], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 57}}, {"id": 7, "type": "identifier", "text": "NSEvent", "parent": 6, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 18}}, {"id": 8, "type": "parameter_list", "text": "(DVTMorphingDragImageControllerExtras)", "parent": 6, "children": [9], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 57}}, {"id": 9, "type": "identifier", "text": "DVTMorphingDragImageControllerExtras", "parent": 8, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 56}}, {"id": 10, "type": "unary_expression", "text": "- (BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent", "parent": null, "children": [11, 12], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 56}}, {"id": 11, "type": "-", "text": "-", "parent": 10, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 12, "type": "cast_expression", "text": "(BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent", "parent": 10, "children": [13, 15], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 56}}, {"id": 13, "type": "type_descriptor", "text": "BOOL", "parent": 12, "children": [14], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 7}}, {"id": 14, "type": "type_identifier", "text": "BOOL", "parent": 13, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 7}}, {"id": 15, "type": "identifier", "text": "_DVTMorphingDragImageController_isEscapeKeyEvent", "parent": 12, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 56}}, {"id": 16, "type": "ERROR", "text": "- (BOOL)_DVTMorphingDragImageController_isKeyEvent:(", "parent": null, "children": [17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 52}}, {"id": 17, "type": "unary_expression", "text": "- (BOOL)_DVTMorphingDragImageController_isKeyEvent", "parent": 16, "children": [18, 19], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 50}}, {"id": 18, "type": "-", "text": "-", "parent": 17, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 19, "type": "cast_expression", "text": "(BOOL)_DVTMorphingDragImageController_isKeyEvent", "parent": 17, "children": [20, 22], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 50}}, {"id": 20, "type": "type_descriptor", "text": "BOOL", "parent": 19, "children": [21], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 7}}, {"id": 21, "type": "type_identifier", "text": "BOOL", "parent": 20, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 7}}, {"id": 22, "type": "identifier", "text": "_DVTMorphingDragImageController_isKeyEvent", "parent": 19, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 50}}, {"id": 23, "type": "declaration", "text": "unsigned short)arg1;", "parent": null, "children": [24, 27], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 72}}, {"id": 24, "type": "sized_type_specifier", "text": "unsigned short", "parent": 23, "children": [25, 26], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 66}}, {"id": 25, "type": "unsigned", "text": "unsigned", "parent": 24, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 60}}, {"id": 26, "type": "short", "text": "short", "parent": 24, "children": [], "start_point": {"row": 10, "column": 61}, "end_point": {"row": 10, "column": 66}}, {"id": 27, "type": "identifier", "text": "arg1", "parent": 23, "children": [], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 71}}, {"id": 28, "type": "ERROR", "text": "@", "parent": null, "children": [29], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 29, "type": "ERROR", "text": "@", "parent": 28, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [23], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 12, 17, 19], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 14, 15, 21, 22, 24, 27], "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": "NSEvent (DVTMorphingDragImageControllerExtras)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import \"NSEvent.h\"\n\n@interface NSEvent (DVTMorphingDragImageControllerExtras)\n- (BOOL)_DVTMorphingDragImageController_isEscapeKeyEvent;\n- (BOOL)_DVTMorphingDragImageController_isKeyEvent:(unsigned short)arg1;\n@end\n\n"}
80,889
c
#define NDEBUG /* I'm building a production copy -- ctm */ #include <stdio.h> #include "iconcontrol.h" enum { new_folder_menuid = 1, open_menuid, print_menuid, close_menuid, save_menuid, unused, delete_menuid, duplicate_menuid, get_info_menuid, rename_menuid, send_to_hotband_menuid, unused_2, check_for_disk_menuid, format_menuid, eject_menuid, unused_3, quit_menuid }; #define MAXDRIVENUM 15 #define DIRBIT (1 << 4) #define ICONTABLESIZE 91 #define SIGARRAYSIZE 41 #define TEXTEDITORPOS (SIGARRAYSIZE) #define HOTBANDRESID 200 #define ABOUTDIALOG 201 #define BANDARRAYSIZE 50 #define CREATOR 'GOGO' #define GOMBARID 128 #define FIRSTMENU 300 #define FILEMENU 301 #define EDITMENU 302 #define VIEWMENU 303 #define SCROLLBARWIDTH 16 #define SCROLLSPEED 9 #define DEFAULTEDITORSTRINGID 201 #define COPYCURSORID 128 #define MOVECURSORID 129 #define GONAME "\pgo.appl" #define GOSAVEFILE "godata.sav" #define GOBACKUPFILE "godata.bak" #define NELEM(x) (sizeof(x) / sizeof((x)[0])) enum actions { LAUNCH, OPENDIR, LAUNCHCREATOR, OPENDA, NOACTION }; typedef struct { short localid; short resid; } identry; typedef struct { short sortorder; /* FIXME - why not use enum here? */ short view; short numitems; Handle path; long iodirid; short vrefnum; ControlHandle sbar; ControlHandle (**items)[]; } opendirinfo; typedef struct { OSType filetype; short band; short action; short iconid; icontableentry **iconh; } typeinfo; typedef struct _applist { short vrefnum; long parid; Str255 name; OSType sig; struct _applist **next; } applist; extern applist **sigowners[TEXTEDITORPOS + 1]; extern typeinfo typearray[]; /* used to determine if a control is an icon control */ extern Handle g_iconcdefproc; /* someday more than one item may be selected so make g_selection look like a handle */ extern ControlHandle (**g_selection)[]; /* time until screensaver kicks in in sixtieths of seconds */ extern long g_screensavetime; extern long g_lastclick; /* Pointer to the "hotband", the special window at the top of the screen */ extern DialogPtr g_hotband; extern icontableentry **icontable[ICONTABLESIZE]; extern short g_currentband; extern short g_done; extern TEHandle g_currenttitle; extern CCrsrHandle g_movecursor, g_copycursor; /* * Fun Executor trickery (kids, we are trained professionals; don't try this at home) * * unixcd is needed because under Executor, we could be traversing a mount point. * When that happens, Executor needs to internally "mount" the new filesystem and we need * to update our vrefnum. * * NOTE: this code will cause any version of Executor prior to 1.99m to crash. */ pascal OSErr unixmount (CInfoPBRec * cpbp) = { 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90 };
22.89
122
(translation_unit) "#define NDEBUG /* I'm building a production copy -- ctm */\n\n#include <stdio.h>\n#include "iconcontrol.h"\n\nenum\n {\n new_folder_menuid = 1,\n open_menuid,\n print_menuid,\n close_menuid,\n save_menuid,\n unused,\n delete_menuid,\n duplicate_menuid,\n get_info_menuid,\n rename_menuid,\n send_to_hotband_menuid,\n unused_2,\n check_for_disk_menuid,\n format_menuid,\n eject_menuid,\n unused_3,\n quit_menuid\n };\n\n#define MAXDRIVENUM 15\n#define DIRBIT (1 << 4)\n#define ICONTABLESIZE 91\n#define SIGARRAYSIZE 41\n#define TEXTEDITORPOS (SIGARRAYSIZE)\n#define HOTBANDRESID 200\n#define ABOUTDIALOG 201\n#define BANDARRAYSIZE 50\n#define CREATOR 'GOGO'\n#define GOMBARID 128\n#define FIRSTMENU 300\n#define FILEMENU 301\n#define EDITMENU 302\n#define VIEWMENU 303\n#define SCROLLBARWIDTH 16\n#define SCROLLSPEED 9\n#define DEFAULTEDITORSTRINGID 201\n\n#define COPYCURSORID 128\n#define MOVECURSORID 129\n\n#define GONAME "\pgo.appl"\n#define GOSAVEFILE "godata.sav"\n#define GOBACKUPFILE "godata.bak"\n\n#define NELEM(x) (sizeof(x) / sizeof((x)[0]))\n\nenum actions\n {\n LAUNCH,\n OPENDIR,\n LAUNCHCREATOR,\n OPENDA,\n NOACTION\n };\n\n\ntypedef struct\n {\n short localid;\n short resid;\n }\nidentry;\n\ntypedef struct\n {\n short sortorder; /* FIXME - why not use enum here? */\n short view;\n short numitems;\n Handle path;\n long iodirid;\n short vrefnum;\n ControlHandle sbar;\n ControlHandle (**items)[];\n }\nopendirinfo;\n\ntypedef struct\n {\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableentry **iconh;\n }\ntypeinfo;\n\ntypedef struct _applist\n {\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _applist **next;\n }\napplist;\n\nextern applist **sigowners[TEXTEDITORPOS + 1];\nextern typeinfo typearray[];\n\n/* used to determine if a control is an icon control */\nextern Handle g_iconcdefproc;\n\n/* someday more than one item may be selected so make g_selection look like a handle */\nextern ControlHandle (**g_selection)[];\n \n/* time until screensaver kicks in in sixtieths of seconds */\nextern long g_screensavetime;\n \nextern long g_lastclick;\n\n/* Pointer to the "hotband", the special window at the top of the screen */\nextern DialogPtr g_hotband;\n\nextern icontableentry **icontable[ICONTABLESIZE];\nextern short g_currentband;\nextern short g_done;\nextern TEHandle g_currenttitle;\n\nextern CCrsrHandle g_movecursor, g_copycursor;\n/*\n * Fun Executor trickery (kids, we are trained professionals; don't try this at home)\n *\n * unixcd is needed because under Executor, we could be traversing a mount point.\n * When that happens, Executor needs to internally "mount" the new filesystem and we need\n * to update our vrefnum.\n *\n * NOTE: this code will cause any version of Executor prior to 1.99m to crash.\n */\n\n pascal OSErr unixmount (CInfoPBRec * cpbp) =\n{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n};\n" (preproc_def) "#define NDEBUG /* I'm building a production copy -- ctm */\n" (#define) "#define" (identifier) "NDEBUG" (comment) "/* I'm building a production copy -- ctm */" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "iconcontrol.h"\n" (#include) "#include" (string_literal) ""iconcontrol.h"" (") """ (string_content) "iconcontrol.h" (") """ (enum_specifier) "enum\n {\n new_folder_menuid = 1,\n open_menuid,\n print_menuid,\n close_menuid,\n save_menuid,\n unused,\n delete_menuid,\n duplicate_menuid,\n get_info_menuid,\n rename_menuid,\n send_to_hotband_menuid,\n unused_2,\n check_for_disk_menuid,\n format_menuid,\n eject_menuid,\n unused_3,\n quit_menuid\n }" (enum) "enum" (enumerator_list) "{\n new_folder_menuid = 1,\n open_menuid,\n print_menuid,\n close_menuid,\n save_menuid,\n unused,\n delete_menuid,\n duplicate_menuid,\n get_info_menuid,\n rename_menuid,\n send_to_hotband_menuid,\n unused_2,\n check_for_disk_menuid,\n format_menuid,\n eject_menuid,\n unused_3,\n quit_menuid\n }" ({) "{" (enumerator) "new_folder_menuid = 1" (identifier) "new_folder_menuid" (=) "=" (number_literal) "1" (,) "," (enumerator) "open_menuid" (identifier) "open_menuid" (,) "," (enumerator) "print_menuid" (identifier) "print_menuid" (,) "," (enumerator) "close_menuid" (identifier) "close_menuid" (,) "," (enumerator) "save_menuid" (identifier) "save_menuid" (,) "," (enumerator) "unused" (identifier) "unused" (,) "," (enumerator) "delete_menuid" (identifier) "delete_menuid" (,) "," (enumerator) "duplicate_menuid" (identifier) "duplicate_menuid" (,) "," (enumerator) "get_info_menuid" (identifier) "get_info_menuid" (,) "," (enumerator) "rename_menuid" (identifier) "rename_menuid" (,) "," (enumerator) "send_to_hotband_menuid" (identifier) "send_to_hotband_menuid" (,) "," (enumerator) "unused_2" (identifier) "unused_2" (,) "," (enumerator) "check_for_disk_menuid" (identifier) "check_for_disk_menuid" (,) "," (enumerator) "format_menuid" (identifier) "format_menuid" (,) "," (enumerator) "eject_menuid" (identifier) "eject_menuid" (,) "," (enumerator) "unused_3" (identifier) "unused_3" (,) "," (enumerator) "quit_menuid" (identifier) "quit_menuid" (}) "}" (;) ";" (preproc_def) "#define MAXDRIVENUM 15\n" (#define) "#define" (identifier) "MAXDRIVENUM" (preproc_arg) "15" (preproc_def) "#define DIRBIT (1 << 4)\n" (#define) "#define" (identifier) "DIRBIT" (preproc_arg) "(1 << 4)" (preproc_def) "#define ICONTABLESIZE 91\n" (#define) "#define" (identifier) "ICONTABLESIZE" (preproc_arg) "91" (preproc_def) "#define SIGARRAYSIZE 41\n" (#define) "#define" (identifier) "SIGARRAYSIZE" (preproc_arg) "41" (preproc_def) "#define TEXTEDITORPOS (SIGARRAYSIZE)\n" (#define) "#define" (identifier) "TEXTEDITORPOS" (preproc_arg) "(SIGARRAYSIZE)" (preproc_def) "#define HOTBANDRESID 200\n" (#define) "#define" (identifier) "HOTBANDRESID" (preproc_arg) "200" (preproc_def) "#define ABOUTDIALOG 201\n" (#define) "#define" (identifier) "ABOUTDIALOG" (preproc_arg) "201" (preproc_def) "#define BANDARRAYSIZE 50\n" (#define) "#define" (identifier) "BANDARRAYSIZE" (preproc_arg) "50" (preproc_def) "#define CREATOR 'GOGO'\n" (#define) "#define" (identifier) "CREATOR" (preproc_arg) "'GOGO'" (preproc_def) "#define GOMBARID 128\n" (#define) "#define" (identifier) "GOMBARID" (preproc_arg) "128" (preproc_def) "#define FIRSTMENU 300\n" (#define) "#define" (identifier) "FIRSTMENU" (preproc_arg) "300" (preproc_def) "#define FILEMENU 301\n" (#define) "#define" (identifier) "FILEMENU" (preproc_arg) "301" (preproc_def) "#define EDITMENU 302\n" (#define) "#define" (identifier) "EDITMENU" (preproc_arg) "302" (preproc_def) "#define VIEWMENU 303\n" (#define) "#define" (identifier) "VIEWMENU" (preproc_arg) "303" (preproc_def) "#define SCROLLBARWIDTH 16\n" (#define) "#define" (identifier) "SCROLLBARWIDTH" (preproc_arg) "16" (preproc_def) "#define SCROLLSPEED 9\n" (#define) "#define" (identifier) "SCROLLSPEED" (preproc_arg) "9" (preproc_def) "#define DEFAULTEDITORSTRINGID 201\n" (#define) "#define" (identifier) "DEFAULTEDITORSTRINGID" (preproc_arg) "201" (preproc_def) "#define COPYCURSORID 128\n" (#define) "#define" (identifier) "COPYCURSORID" (preproc_arg) "128" (preproc_def) "#define MOVECURSORID 129\n" (#define) "#define" (identifier) "MOVECURSORID" (preproc_arg) "129" (preproc_def) "#define GONAME "\pgo.appl"\n" (#define) "#define" (identifier) "GONAME" (preproc_arg) ""\pgo.appl"" (preproc_def) "#define GOSAVEFILE "godata.sav"\n" (#define) "#define" (identifier) "GOSAVEFILE" (preproc_arg) ""godata.sav"" (preproc_def) "#define GOBACKUPFILE "godata.bak"\n" (#define) "#define" (identifier) "GOBACKUPFILE" (preproc_arg) ""godata.bak"" (preproc_function_def) "#define NELEM(x) (sizeof(x) / sizeof((x)[0]))\n" (#define) "#define" (identifier) "NELEM" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "(sizeof(x) / sizeof((x)[0]))" (enum_specifier) "enum actions\n {\n LAUNCH,\n OPENDIR,\n LAUNCHCREATOR,\n OPENDA,\n NOACTION\n }" (enum) "enum" (type_identifier) "actions" (enumerator_list) "{\n LAUNCH,\n OPENDIR,\n LAUNCHCREATOR,\n OPENDA,\n NOACTION\n }" ({) "{" (enumerator) "LAUNCH" (identifier) "LAUNCH" (,) "," (enumerator) "OPENDIR" (identifier) "OPENDIR" (,) "," (enumerator) "LAUNCHCREATOR" (identifier) "LAUNCHCREATOR" (,) "," (enumerator) "OPENDA" (identifier) "OPENDA" (,) "," (enumerator) "NOACTION" (identifier) "NOACTION" (}) "}" (;) ";" (type_definition) "typedef struct\n {\n short localid;\n short resid;\n }\nidentry;" (typedef) "typedef" (struct_specifier) "struct\n {\n short localid;\n short resid;\n }" (struct) "struct" (field_declaration_list) "{\n short localid;\n short resid;\n }" ({) "{" (field_declaration) "short localid;" (sized_type_specifier) "short" (short) "short" (field_identifier) "localid" (;) ";" (field_declaration) "short resid;" (sized_type_specifier) "short" (short) "short" (field_identifier) "resid" (;) ";" (}) "}" (type_identifier) "identry" (;) ";" (type_definition) "typedef struct\n {\n short sortorder; /* FIXME - why not use enum here? */\n short view;\n short numitems;\n Handle path;\n long iodirid;\n short vrefnum;\n ControlHandle sbar;\n ControlHandle (**items)[];\n }\nopendirinfo;" (typedef) "typedef" (struct_specifier) "struct\n {\n short sortorder; /* FIXME - why not use enum here? */\n short view;\n short numitems;\n Handle path;\n long iodirid;\n short vrefnum;\n ControlHandle sbar;\n ControlHandle (**items)[];\n }" (struct) "struct" (field_declaration_list) "{\n short sortorder; /* FIXME - why not use enum here? */\n short view;\n short numitems;\n Handle path;\n long iodirid;\n short vrefnum;\n ControlHandle sbar;\n ControlHandle (**items)[];\n }" ({) "{" (field_declaration) "short sortorder;" (sized_type_specifier) "short" (short) "short" (field_identifier) "sortorder" (;) ";" (comment) "/* FIXME - why not use enum here? */" (field_declaration) "short view;" (sized_type_specifier) "short" (short) "short" (field_identifier) "view" (;) ";" (field_declaration) "short numitems;" (sized_type_specifier) "short" (short) "short" (field_identifier) "numitems" (;) ";" (field_declaration) "Handle path;" (type_identifier) "Handle" (field_identifier) "path" (;) ";" (field_declaration) "long iodirid;" (sized_type_specifier) "long" (long) "long" (field_identifier) "iodirid" (;) ";" (field_declaration) "short vrefnum;" (sized_type_specifier) "short" (short) "short" (field_identifier) "vrefnum" (;) ";" (field_declaration) "ControlHandle sbar;" (type_identifier) "ControlHandle" (field_identifier) "sbar" (;) ";" (field_declaration) "ControlHandle (**items)[];" (type_identifier) "ControlHandle" (array_declarator) "(**items)[]" (parenthesized_declarator) "(**items)" (() "(" (pointer_declarator) "**items" (*) "*" (pointer_declarator) "*items" (*) "*" (field_identifier) "items" ()) ")" ([) "[" (]) "]" (;) ";" (}) "}" (type_identifier) "opendirinfo" (;) ";" (type_definition) "typedef struct\n {\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableentry **iconh;\n }\ntypeinfo;" (typedef) "typedef" (struct_specifier) "struct\n {\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableentry **iconh;\n }" (struct) "struct" (field_declaration_list) "{\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableentry **iconh;\n }" ({) "{" (field_declaration) "OSType filetype;" (type_identifier) "OSType" (field_identifier) "filetype" (;) ";" (field_declaration) "short band;" (sized_type_specifier) "short" (short) "short" (field_identifier) "band" (;) ";" (field_declaration) "short action;" (sized_type_specifier) "short" (short) "short" (field_identifier) "action" (;) ";" (field_declaration) "short iconid;" (sized_type_specifier) "short" (short) "short" (field_identifier) "iconid" (;) ";" (field_declaration) "icontableentry **iconh;" (type_identifier) "icontableentry" (pointer_declarator) "**iconh" (*) "*" (pointer_declarator) "*iconh" (*) "*" (field_identifier) "iconh" (;) ";" (}) "}" (type_identifier) "typeinfo" (;) ";" (type_definition) "typedef struct _applist\n {\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _applist **next;\n }\napplist;" (typedef) "typedef" (struct_specifier) "struct _applist\n {\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _applist **next;\n }" (struct) "struct" (type_identifier) "_applist" (field_declaration_list) "{\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _applist **next;\n }" ({) "{" (field_declaration) "short vrefnum;" (sized_type_specifier) "short" (short) "short" (field_identifier) "vrefnum" (;) ";" (field_declaration) "long parid;" (sized_type_specifier) "long" (long) "long" (field_identifier) "parid" (;) ";" (field_declaration) "Str255 name;" (type_identifier) "Str255" (field_identifier) "name" (;) ";" (field_declaration) "OSType sig;" (type_identifier) "OSType" (field_identifier) "sig" (;) ";" (field_declaration) "struct _applist **next;" (struct_specifier) "struct _applist" (struct) "struct" (type_identifier) "_applist" (pointer_declarator) "**next" (*) "*" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (type_identifier) "applist" (;) ";" (declaration) "extern applist **sigowners[TEXTEDITORPOS + 1];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "applist" (pointer_declarator) "**sigowners[TEXTEDITORPOS + 1]" (*) "*" (pointer_declarator) "*sigowners[TEXTEDITORPOS + 1]" (*) "*" (array_declarator) "sigowners[TEXTEDITORPOS + 1]" (identifier) "sigowners" ([) "[" (binary_expression) "TEXTEDITORPOS + 1" (identifier) "TEXTEDITORPOS" (+) "+" (number_literal) "1" (]) "]" (;) ";" (declaration) "extern typeinfo typearray[];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "typeinfo" (array_declarator) "typearray[]" (identifier) "typearray" ([) "[" (]) "]" (;) ";" (comment) "/* used to determine if a control is an icon control */" (declaration) "extern Handle g_iconcdefproc;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "Handle" (identifier) "g_iconcdefproc" (;) ";" (comment) "/* someday more than one item may be selected so make g_selection look like a handle */" (declaration) "extern ControlHandle (**g_selection)[];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "ControlHandle" (array_declarator) "(**g_selection)[]" (parenthesized_declarator) "(**g_selection)" (() "(" (pointer_declarator) "**g_selection" (*) "*" (pointer_declarator) "*g_selection" (*) "*" (identifier) "g_selection" ()) ")" ([) "[" (]) "]" (;) ";" (comment) "/* time until screensaver kicks in in sixtieths of seconds */" (declaration) "extern long g_screensavetime;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "long" (long) "long" (identifier) "g_screensavetime" (;) ";" (declaration) "extern long g_lastclick;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "long" (long) "long" (identifier) "g_lastclick" (;) ";" (comment) "/* Pointer to the "hotband", the special window at the top of the screen */" (declaration) "extern DialogPtr g_hotband;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "DialogPtr" (identifier) "g_hotband" (;) ";" (declaration) "extern icontableentry **icontable[ICONTABLESIZE];" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "icontableentry" (pointer_declarator) "**icontable[ICONTABLESIZE]" (*) "*" (pointer_declarator) "*icontable[ICONTABLESIZE]" (*) "*" (array_declarator) "icontable[ICONTABLESIZE]" (identifier) "icontable" ([) "[" (identifier) "ICONTABLESIZE" (]) "]" (;) ";" (declaration) "extern short g_currentband;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "short" (short) "short" (identifier) "g_currentband" (;) ";" (declaration) "extern short g_done;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "short" (short) "short" (identifier) "g_done" (;) ";" (declaration) "extern TEHandle g_currenttitle;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "TEHandle" (identifier) "g_currenttitle" (;) ";" (declaration) "extern CCrsrHandle g_movecursor, g_copycursor;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "CCrsrHandle" (identifier) "g_movecursor" (,) "," (identifier) "g_copycursor" (;) ";" (comment) "/*\n * Fun Executor trickery (kids, we are trained professionals; don't try this at home)\n *\n * unixcd is needed because under Executor, we could be traversing a mount point.\n * When that happens, Executor needs to internally "mount" the new filesystem and we need\n * to update our vrefnum.\n *\n * NOTE: this code will cause any version of Executor prior to 1.99m to crash.\n */" (declaration) "pascal OSErr unixmount (CInfoPBRec * cpbp) =\n{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n};" (type_identifier) "pascal" (ERROR) "OSErr" (identifier) "OSErr" (init_declarator) "unixmount (CInfoPBRec * cpbp) =\n{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n}" (function_declarator) "unixmount (CInfoPBRec * cpbp)" (identifier) "unixmount" (parameter_list) "(CInfoPBRec * cpbp)" (() "(" (parameter_declaration) "CInfoPBRec * cpbp" (type_identifier) "CInfoPBRec" (pointer_declarator) "* cpbp" (*) "*" (identifier) "cpbp" ()) ")" (=) "=" (initializer_list) "{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n}" ({) "{" (number_literal) "0x2078" (,) "," (number_literal) "0x0058" (,) "," (number_literal) "0x2068" (,) "," (number_literal) "0x0020" (,) "," (number_literal) "0x4e90" (}) "}" (;) ";"
483
1
{"language": "c", "success": true, "metadata": {"lines": 122, "avg_line_length": 22.89, "nodes": 372, "errors": 0, "source_hash": "55c5d58e3901af2c56a0bd72844f0443984ca030a797c0951aacca526c7ac5c4", "categorized_nodes": 229}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define NDEBUG\t\t\t/* I'm building a production copy -- ctm */\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "NDEBUG", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.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": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include \"iconcontrol.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": "\"iconcontrol.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 24}}, {"id": 9, "type": "enum_specifier", "text": "enum\n {\n new_folder_menuid = 1,\n open_menuid,\n print_menuid,\n close_menuid,\n save_menuid,\n unused,\n delete_menuid,\n duplicate_menuid,\n get_info_menuid,\n rename_menuid,\n send_to_hotband_menuid,\n unused_2,\n check_for_disk_menuid,\n format_menuid,\n eject_menuid,\n unused_3,\n quit_menuid\n }", "parent": null, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 24, "column": 3}}, {"id": 10, "type": "enum", "text": "enum", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 11, "type": "enumerator_list", "text": "{\n new_folder_menuid = 1,\n open_menuid,\n print_menuid,\n close_menuid,\n save_menuid,\n unused,\n delete_menuid,\n duplicate_menuid,\n get_info_menuid,\n rename_menuid,\n send_to_hotband_menuid,\n unused_2,\n check_for_disk_menuid,\n format_menuid,\n eject_menuid,\n unused_3,\n quit_menuid\n }", "parent": 9, "children": [12, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 24, "column": 3}}, {"id": 12, "type": "enumerator", "text": "new_folder_menuid = 1", "parent": 11, "children": [13, 14, 15], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 25}}, {"id": 13, "type": "identifier", "text": "new_folder_menuid", "parent": 12, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 21}}, {"id": 14, "type": "=", "text": "=", "parent": 12, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 23}}, {"id": 15, "type": "number_literal", "text": "1", "parent": 12, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 25}}, {"id": 16, "type": "enumerator", "text": "open_menuid", "parent": 11, "children": [17], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 15}}, {"id": 17, "type": "identifier", "text": "open_menuid", "parent": 16, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 15}}, {"id": 18, "type": "enumerator", "text": "print_menuid", "parent": 11, "children": [19], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 16}}, {"id": 19, "type": "identifier", "text": "print_menuid", "parent": 18, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 16}}, {"id": 20, "type": "enumerator", "text": "close_menuid", "parent": 11, "children": [21], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 16}}, {"id": 21, "type": "identifier", "text": "close_menuid", "parent": 20, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 16}}, {"id": 22, "type": "enumerator", "text": "save_menuid", "parent": 11, "children": [23], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 15}}, {"id": 23, "type": "identifier", "text": "save_menuid", "parent": 22, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 15}}, {"id": 24, "type": "enumerator", "text": "unused", "parent": 11, "children": [25], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 25, "type": "identifier", "text": "unused", "parent": 24, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 26, "type": "enumerator", "text": "delete_menuid", "parent": 11, "children": [27], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 17}}, {"id": 27, "type": "identifier", "text": "delete_menuid", "parent": 26, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 17}}, {"id": 28, "type": "enumerator", "text": "duplicate_menuid", "parent": 11, "children": [29], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 20}}, {"id": 29, "type": "identifier", "text": "duplicate_menuid", "parent": 28, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 20}}, {"id": 30, "type": "enumerator", "text": "get_info_menuid", "parent": 11, "children": [31], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 19}}, {"id": 31, "type": "identifier", "text": "get_info_menuid", "parent": 30, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 19}}, {"id": 32, "type": "enumerator", "text": "rename_menuid", "parent": 11, "children": [33], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 17}}, {"id": 33, "type": "identifier", "text": "rename_menuid", "parent": 32, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 17}}, {"id": 34, "type": "enumerator", "text": "send_to_hotband_menuid", "parent": 11, "children": [35], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 26}}, {"id": 35, "type": "identifier", "text": "send_to_hotband_menuid", "parent": 34, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 26}}, {"id": 36, "type": "enumerator", "text": "unused_2", "parent": 11, "children": [37], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 37, "type": "identifier", "text": "unused_2", "parent": 36, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 38, "type": "enumerator", "text": "check_for_disk_menuid", "parent": 11, "children": [39], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 25}}, {"id": 39, "type": "identifier", "text": "check_for_disk_menuid", "parent": 38, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 25}}, {"id": 40, "type": "enumerator", "text": "format_menuid", "parent": 11, "children": [41], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 17}}, {"id": 41, "type": "identifier", "text": "format_menuid", "parent": 40, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 17}}, {"id": 42, "type": "enumerator", "text": "eject_menuid", "parent": 11, "children": [43], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 16}}, {"id": 43, "type": "identifier", "text": "eject_menuid", "parent": 42, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 16}}, {"id": 44, "type": "enumerator", "text": "unused_3", "parent": 11, "children": [45], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 12}}, {"id": 45, "type": "identifier", "text": "unused_3", "parent": 44, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 12}}, {"id": 46, "type": "enumerator", "text": "quit_menuid", "parent": 11, "children": [47], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 47, "type": "identifier", "text": "quit_menuid", "parent": 46, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 48, "type": "preproc_def", "text": "#define\tMAXDRIVENUM\t\t15\n", "parent": null, "children": [49, 50, 51], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 50, "type": "identifier", "text": "MAXDRIVENUM", "parent": 48, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 51, "type": "preproc_arg", "text": "15", "parent": 48, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 23}}, {"id": 52, "type": "preproc_def", "text": "#define DIRBIT\t\t\t(1 << 4)\n", "parent": null, "children": [53, 54, 55], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 54, "type": "identifier", "text": "DIRBIT", "parent": 52, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 14}}, {"id": 55, "type": "preproc_arg", "text": "(1 << 4)", "parent": 52, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 25}}, {"id": 56, "type": "preproc_def", "text": "#define\tICONTABLESIZE\t91\n", "parent": null, "children": [57, 58, 59], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 58, "type": "identifier", "text": "ICONTABLESIZE", "parent": 56, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 59, "type": "preproc_arg", "text": "91", "parent": 56, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 24}}, {"id": 60, "type": "preproc_def", "text": "#define SIGARRAYSIZE\t41\n", "parent": null, "children": [61, 62, 63], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 62, "type": "identifier", "text": "SIGARRAYSIZE", "parent": 60, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 20}}, {"id": 63, "type": "preproc_arg", "text": "41", "parent": 60, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 23}}, {"id": 64, "type": "preproc_def", "text": "#define TEXTEDITORPOS\t(SIGARRAYSIZE)\n", "parent": null, "children": [65, 66, 67], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 65, "type": "#define", "text": "#define", "parent": 64, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 66, "type": "identifier", "text": "TEXTEDITORPOS", "parent": 64, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 21}}, {"id": 67, "type": "preproc_arg", "text": "(SIGARRAYSIZE)", "parent": 64, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 36}}, {"id": 68, "type": "preproc_def", "text": "#define HOTBANDRESID\t200\n", "parent": null, "children": [69, 70, 71], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 69, "type": "#define", "text": "#define", "parent": 68, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 70, "type": "identifier", "text": "HOTBANDRESID", "parent": 68, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 20}}, {"id": 71, "type": "preproc_arg", "text": "200", "parent": 68, "children": [], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 24}}, {"id": 72, "type": "preproc_def", "text": "#define ABOUTDIALOG\t\t201\n", "parent": null, "children": [73, 74, 75], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 73, "type": "#define", "text": "#define", "parent": 72, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 74, "type": "identifier", "text": "ABOUTDIALOG", "parent": 72, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 19}}, {"id": 75, "type": "preproc_arg", "text": "201", "parent": 72, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 24}}, {"id": 76, "type": "preproc_def", "text": "#define BANDARRAYSIZE\t50\n", "parent": null, "children": [77, 78, 79], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 77, "type": "#define", "text": "#define", "parent": 76, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 78, "type": "identifier", "text": "BANDARRAYSIZE", "parent": 76, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 21}}, {"id": 79, "type": "preproc_arg", "text": "50", "parent": 76, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 24}}, {"id": 80, "type": "preproc_def", "text": "#define CREATOR\t\t\t'GOGO'\n", "parent": null, "children": [81, 82, 83], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 81, "type": "#define", "text": "#define", "parent": 80, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 82, "type": "identifier", "text": "CREATOR", "parent": 80, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 15}}, {"id": 83, "type": "preproc_arg", "text": "'GOGO'", "parent": 80, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 24}}, {"id": 84, "type": "preproc_def", "text": "#define GOMBARID\t\t128\n", "parent": null, "children": [85, 86, 87], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 85, "type": "#define", "text": "#define", "parent": 84, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 86, "type": "identifier", "text": "GOMBARID", "parent": 84, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 16}}, {"id": 87, "type": "preproc_arg", "text": "128", "parent": 84, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 21}}, {"id": 88, "type": "preproc_def", "text": "#define FIRSTMENU\t\t300\n", "parent": null, "children": [89, 90, 91], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 89, "type": "#define", "text": "#define", "parent": 88, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 90, "type": "identifier", "text": "FIRSTMENU", "parent": 88, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 17}}, {"id": 91, "type": "preproc_arg", "text": "300", "parent": 88, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 22}}, {"id": 92, "type": "preproc_def", "text": "#define FILEMENU\t\t301\n", "parent": null, "children": [93, 94, 95], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 93, "type": "#define", "text": "#define", "parent": 92, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 94, "type": "identifier", "text": "FILEMENU", "parent": 92, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 16}}, {"id": 95, "type": "preproc_arg", "text": "301", "parent": 92, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 21}}, {"id": 96, "type": "preproc_def", "text": "#define EDITMENU\t\t302\n", "parent": null, "children": [97, 98, 99], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 97, "type": "#define", "text": "#define", "parent": 96, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 98, "type": "identifier", "text": "EDITMENU", "parent": 96, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 16}}, {"id": 99, "type": "preproc_arg", "text": "302", "parent": 96, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 21}}, {"id": 100, "type": "preproc_def", "text": "#define VIEWMENU\t\t303\n", "parent": null, "children": [101, 102, 103], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 101, "type": "#define", "text": "#define", "parent": 100, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 102, "type": "identifier", "text": "VIEWMENU", "parent": 100, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 16}}, {"id": 103, "type": "preproc_arg", "text": "303", "parent": 100, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 21}}, {"id": 104, "type": "preproc_def", "text": "#define SCROLLBARWIDTH\t16\n", "parent": null, "children": [105, 106, 107], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 105, "type": "#define", "text": "#define", "parent": 104, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 106, "type": "identifier", "text": "SCROLLBARWIDTH", "parent": 104, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 22}}, {"id": 107, "type": "preproc_arg", "text": "16", "parent": 104, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 25}}, {"id": 108, "type": "preproc_def", "text": "#define SCROLLSPEED\t\t9\n", "parent": null, "children": [109, 110, 111], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 109, "type": "#define", "text": "#define", "parent": 108, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 110, "type": "identifier", "text": "SCROLLSPEED", "parent": 108, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 19}}, {"id": 111, "type": "preproc_arg", "text": "9", "parent": 108, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 22}}, {"id": 112, "type": "preproc_def", "text": "#define\tDEFAULTEDITORSTRINGID\t201\n", "parent": null, "children": [113, 114, 115], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 113, "type": "#define", "text": "#define", "parent": 112, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 114, "type": "identifier", "text": "DEFAULTEDITORSTRINGID", "parent": 112, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 29}}, {"id": 115, "type": "preproc_arg", "text": "201", "parent": 112, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 33}}, {"id": 116, "type": "preproc_def", "text": "#define COPYCURSORID\t\t128\n", "parent": null, "children": [117, 118, 119], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 117, "type": "#define", "text": "#define", "parent": 116, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 118, "type": "identifier", "text": "COPYCURSORID", "parent": 116, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 20}}, {"id": 119, "type": "preproc_arg", "text": "128", "parent": 116, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 25}}, {"id": 120, "type": "preproc_def", "text": "#define\tMOVECURSORID\t\t129\n", "parent": null, "children": [121, 122, 123], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 121, "type": "#define", "text": "#define", "parent": 120, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 122, "type": "identifier", "text": "MOVECURSORID", "parent": 120, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 20}}, {"id": 123, "type": "preproc_arg", "text": "129", "parent": 120, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 25}}, {"id": 124, "type": "preproc_def", "text": "#define\tGONAME\t\t\t\t\"\\pgo.appl\"\n", "parent": null, "children": [125, 126, 127], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 125, "type": "#define", "text": "#define", "parent": 124, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 126, "type": "identifier", "text": "GONAME", "parent": 124, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 127, "type": "preproc_arg", "text": "\"\\pgo.appl\"", "parent": 124, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 29}}, {"id": 128, "type": "preproc_def", "text": "#define GOSAVEFILE\t\t\t\"godata.sav\"\n", "parent": null, "children": [129, 130, 131], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 129, "type": "#define", "text": "#define", "parent": 128, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 130, "type": "identifier", "text": "GOSAVEFILE", "parent": 128, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 18}}, {"id": 131, "type": "preproc_arg", "text": "\"godata.sav\"", "parent": 128, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 33}}, {"id": 132, "type": "preproc_def", "text": "#define GOBACKUPFILE\t\t\"godata.bak\"\n", "parent": null, "children": [133, 134, 135], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 133, "type": "#define", "text": "#define", "parent": 132, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 134, "type": "identifier", "text": "GOBACKUPFILE", "parent": 132, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 20}}, {"id": 135, "type": "preproc_arg", "text": "\"godata.bak\"", "parent": 132, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 34}}, {"id": 136, "type": "preproc_function_def", "text": "#define NELEM(x) (sizeof(x) / sizeof((x)[0]))\n", "parent": null, "children": [137, 138, 139, 141], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 137, "type": "#define", "text": "#define", "parent": 136, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 138, "type": "identifier", "text": "NELEM", "parent": 136, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 13}}, {"id": 139, "type": "preproc_params", "text": "(x)", "parent": 136, "children": [140], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 16}}, {"id": 140, "type": "identifier", "text": "x", "parent": 139, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 15}}, {"id": 141, "type": "preproc_arg", "text": "(sizeof(x) / sizeof((x)[0]))", "parent": 136, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 45}}, {"id": 142, "type": "enum_specifier", "text": "enum actions\n {\n LAUNCH,\n OPENDIR,\n LAUNCHCREATOR,\n OPENDA,\n NOACTION\n }", "parent": null, "children": [143, 144, 145], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 60, "column": 3}}, {"id": 143, "type": "enum", "text": "enum", "parent": 142, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 4}}, {"id": 144, "type": "type_identifier", "text": "actions", "parent": 142, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 12}}, {"id": 145, "type": "enumerator_list", "text": "{\n LAUNCH,\n OPENDIR,\n LAUNCHCREATOR,\n OPENDA,\n NOACTION\n }", "parent": 142, "children": [146, 148, 150, 152, 154], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 60, "column": 3}}, {"id": 146, "type": "enumerator", "text": "LAUNCH", "parent": 145, "children": [147], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 10}}, {"id": 147, "type": "identifier", "text": "LAUNCH", "parent": 146, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 10}}, {"id": 148, "type": "enumerator", "text": "OPENDIR", "parent": 145, "children": [149], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 11}}, {"id": 149, "type": "identifier", "text": "OPENDIR", "parent": 148, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 11}}, {"id": 150, "type": "enumerator", "text": "LAUNCHCREATOR", "parent": 145, "children": [151], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 17}}, {"id": 151, "type": "identifier", "text": "LAUNCHCREATOR", "parent": 150, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 17}}, {"id": 152, "type": "enumerator", "text": "OPENDA", "parent": 145, "children": [153], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 153, "type": "identifier", "text": "OPENDA", "parent": 152, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 154, "type": "enumerator", "text": "NOACTION", "parent": 145, "children": [155], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 12}}, {"id": 155, "type": "identifier", "text": "NOACTION", "parent": 154, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 12}}, {"id": 156, "type": "type_definition", "text": "typedef struct\n {\n short localid;\n short resid;\n }\nidentry;", "parent": null, "children": [157, 158, 168], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 68, "column": 8}}, {"id": 157, "type": "typedef", "text": "typedef", "parent": 156, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 158, "type": "struct_specifier", "text": "struct\n {\n short localid;\n short resid;\n }", "parent": 156, "children": [159], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 67, "column": 3}}, {"id": 159, "type": "struct", "text": "struct", "parent": 158, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 160, "type": "field_declaration", "text": "short localid;", "parent": 158, "children": [161, 163], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 18}}, {"id": 161, "type": "sized_type_specifier", "text": "short", "parent": 160, "children": [162], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 9}}, {"id": 162, "type": "short", "text": "short", "parent": 161, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 9}}, {"id": 163, "type": "field_identifier", "text": "localid", "parent": 160, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 17}}, {"id": 164, "type": "field_declaration", "text": "short resid;", "parent": 158, "children": [165, 167], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 16}}, {"id": 165, "type": "sized_type_specifier", "text": "short", "parent": 164, "children": [166], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 9}}, {"id": 166, "type": "short", "text": "short", "parent": 165, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 9}}, {"id": 167, "type": "field_identifier", "text": "resid", "parent": 164, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 15}}, {"id": 168, "type": "type_identifier", "text": "identry", "parent": 156, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 169, "type": "type_definition", "text": "typedef struct\n {\n short sortorder;\t/* FIXME - why not use enum here? */\n short view;\n short numitems;\n Handle path;\n long iodirid;\n short vrefnum;\n ControlHandle sbar;\n ControlHandle (**items)[];\n }\nopendirinfo;", "parent": null, "children": [170, 171, 208], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 81, "column": 12}}, {"id": 170, "type": "typedef", "text": "typedef", "parent": 169, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 7}}, {"id": 171, "type": "struct_specifier", "text": "struct\n {\n short sortorder;\t/* FIXME - why not use enum here? */\n short view;\n short numitems;\n Handle path;\n long iodirid;\n short vrefnum;\n ControlHandle sbar;\n ControlHandle (**items)[];\n }", "parent": 169, "children": [172], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 80, "column": 3}}, {"id": 172, "type": "struct", "text": "struct", "parent": 171, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 14}}, {"id": 173, "type": "field_declaration", "text": "short sortorder;", "parent": 171, "children": [174, 176], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 20}}, {"id": 174, "type": "sized_type_specifier", "text": "short", "parent": 173, "children": [175], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 9}}, {"id": 175, "type": "short", "text": "short", "parent": 174, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 9}}, {"id": 176, "type": "field_identifier", "text": "sortorder", "parent": 173, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 19}}, {"id": 177, "type": "field_declaration", "text": "short view;", "parent": 171, "children": [178, 180], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 15}}, {"id": 178, "type": "sized_type_specifier", "text": "short", "parent": 177, "children": [179], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 9}}, {"id": 179, "type": "short", "text": "short", "parent": 178, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 9}}, {"id": 180, "type": "field_identifier", "text": "view", "parent": 177, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 14}}, {"id": 181, "type": "field_declaration", "text": "short numitems;", "parent": 171, "children": [182, 184], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 19}}, {"id": 182, "type": "sized_type_specifier", "text": "short", "parent": 181, "children": [183], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 9}}, {"id": 183, "type": "short", "text": "short", "parent": 182, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 9}}, {"id": 184, "type": "field_identifier", "text": "numitems", "parent": 181, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 18}}, {"id": 185, "type": "field_declaration", "text": "Handle path;", "parent": 171, "children": [186, 187], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 16}}, {"id": 186, "type": "type_identifier", "text": "Handle", "parent": 185, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 10}}, {"id": 187, "type": "field_identifier", "text": "path", "parent": 185, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 15}}, {"id": 188, "type": "field_declaration", "text": "long iodirid;", "parent": 171, "children": [189, 191], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 17}}, {"id": 189, "type": "sized_type_specifier", "text": "long", "parent": 188, "children": [190], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 8}}, {"id": 190, "type": "long", "text": "long", "parent": 189, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 8}}, {"id": 191, "type": "field_identifier", "text": "iodirid", "parent": 188, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 16}}, {"id": 192, "type": "field_declaration", "text": "short vrefnum;", "parent": 171, "children": [193, 195], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 18}}, {"id": 193, "type": "sized_type_specifier", "text": "short", "parent": 192, "children": [194], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 9}}, {"id": 194, "type": "short", "text": "short", "parent": 193, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 9}}, {"id": 195, "type": "field_identifier", "text": "vrefnum", "parent": 192, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 17}}, {"id": 196, "type": "field_declaration", "text": "ControlHandle sbar;", "parent": 171, "children": [197, 198], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 23}}, {"id": 197, "type": "type_identifier", "text": "ControlHandle", "parent": 196, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 17}}, {"id": 198, "type": "field_identifier", "text": "sbar", "parent": 196, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 22}}, {"id": 199, "type": "field_declaration", "text": "ControlHandle (**items)[];", "parent": 171, "children": [200, 201], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 30}}, {"id": 200, "type": "type_identifier", "text": "ControlHandle", "parent": 199, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 17}}, {"id": 201, "type": "array_declarator", "text": "(**items)[]", "parent": 199, "children": [202], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 29}}, {"id": 202, "type": "parenthesized_declarator", "text": "(**items)", "parent": 201, "children": [203], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 27}}, {"id": 203, "type": "pointer_declarator", "text": "**items", "parent": 202, "children": [204, 205], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 26}}, {"id": 204, "type": "*", "text": "*", "parent": 203, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 20}}, {"id": 205, "type": "pointer_declarator", "text": "*items", "parent": 203, "children": [206, 207], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 26}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 21}}, {"id": 207, "type": "field_identifier", "text": "items", "parent": 205, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 26}}, {"id": 208, "type": "type_identifier", "text": "opendirinfo", "parent": 169, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 11}}, {"id": 209, "type": "type_definition", "text": "typedef struct\n {\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableentry **iconh;\n }\ntypeinfo;", "parent": null, "children": [210, 211, 235], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 91, "column": 9}}, {"id": 210, "type": "typedef", "text": "typedef", "parent": 209, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 7}}, {"id": 211, "type": "struct_specifier", "text": "struct\n {\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableentry **iconh;\n }", "parent": 209, "children": [212], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 90, "column": 3}}, {"id": 212, "type": "struct", "text": "struct", "parent": 211, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 14}}, {"id": 213, "type": "field_declaration", "text": "OSType filetype;", "parent": 211, "children": [214, 215], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 20}}, {"id": 214, "type": "type_identifier", "text": "OSType", "parent": 213, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 10}}, {"id": 215, "type": "field_identifier", "text": "filetype", "parent": 213, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 19}}, {"id": 216, "type": "field_declaration", "text": "short band;", "parent": 211, "children": [217, 219], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 15}}, {"id": 217, "type": "sized_type_specifier", "text": "short", "parent": 216, "children": [218], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 9}}, {"id": 218, "type": "short", "text": "short", "parent": 217, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 9}}, {"id": 219, "type": "field_identifier", "text": "band", "parent": 216, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 14}}, {"id": 220, "type": "field_declaration", "text": "short action;", "parent": 211, "children": [221, 223], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 17}}, {"id": 221, "type": "sized_type_specifier", "text": "short", "parent": 220, "children": [222], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 9}}, {"id": 222, "type": "short", "text": "short", "parent": 221, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 9}}, {"id": 223, "type": "field_identifier", "text": "action", "parent": 220, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 16}}, {"id": 224, "type": "field_declaration", "text": "short iconid;", "parent": 211, "children": [225, 227], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 17}}, {"id": 225, "type": "sized_type_specifier", "text": "short", "parent": 224, "children": [226], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 9}}, {"id": 226, "type": "short", "text": "short", "parent": 225, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 9}}, {"id": 227, "type": "field_identifier", "text": "iconid", "parent": 224, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 16}}, {"id": 228, "type": "field_declaration", "text": "icontableentry **iconh;", "parent": 211, "children": [229, 230], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 27}}, {"id": 229, "type": "type_identifier", "text": "icontableentry", "parent": 228, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 18}}, {"id": 230, "type": "pointer_declarator", "text": "**iconh", "parent": 228, "children": [231, 232], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 26}}, {"id": 231, "type": "*", "text": "*", "parent": 230, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 20}}, {"id": 232, "type": "pointer_declarator", "text": "*iconh", "parent": 230, "children": [233, 234], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 26}}, {"id": 233, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 21}}, {"id": 234, "type": "field_identifier", "text": "iconh", "parent": 232, "children": [], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 26}}, {"id": 235, "type": "type_identifier", "text": "typeinfo", "parent": 209, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 8}}, {"id": 236, "type": "type_definition", "text": "typedef struct _applist\n {\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _applist **next;\n }\napplist;", "parent": null, "children": [237, 238, 264], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 101, "column": 8}}, {"id": 237, "type": "typedef", "text": "typedef", "parent": 236, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 7}}, {"id": 238, "type": "struct_specifier", "text": "struct _applist\n {\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _applist **next;\n }", "parent": 236, "children": [239, 240], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 100, "column": 3}}, {"id": 239, "type": "struct", "text": "struct", "parent": 238, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 14}}, {"id": 240, "type": "type_identifier", "text": "_applist", "parent": 238, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 23}}, {"id": 241, "type": "field_declaration", "text": "short vrefnum;", "parent": 238, "children": [242, 244], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 18}}, {"id": 242, "type": "sized_type_specifier", "text": "short", "parent": 241, "children": [243], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 9}}, {"id": 243, "type": "short", "text": "short", "parent": 242, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 9}}, {"id": 244, "type": "field_identifier", "text": "vrefnum", "parent": 241, "children": [], "start_point": {"row": 95, "column": 10}, "end_point": {"row": 95, "column": 17}}, {"id": 245, "type": "field_declaration", "text": "long parid;", "parent": 238, "children": [246, 248], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 15}}, {"id": 246, "type": "sized_type_specifier", "text": "long", "parent": 245, "children": [247], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 8}}, {"id": 247, "type": "long", "text": "long", "parent": 246, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 8}}, {"id": 248, "type": "field_identifier", "text": "parid", "parent": 245, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 14}}, {"id": 249, "type": "field_declaration", "text": "Str255 name;", "parent": 238, "children": [250, 251], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 16}}, {"id": 250, "type": "type_identifier", "text": "Str255", "parent": 249, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 10}}, {"id": 251, "type": "field_identifier", "text": "name", "parent": 249, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 15}}, {"id": 252, "type": "field_declaration", "text": "OSType sig;", "parent": 238, "children": [253, 254], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 15}}, {"id": 253, "type": "type_identifier", "text": "OSType", "parent": 252, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 10}}, {"id": 254, "type": "field_identifier", "text": "sig", "parent": 252, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 14}}, {"id": 255, "type": "field_declaration", "text": "struct _applist **next;", "parent": 238, "children": [256, 259], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 27}}, {"id": 256, "type": "struct_specifier", "text": "struct _applist", "parent": 255, "children": [257, 258], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 19}}, {"id": 257, "type": "struct", "text": "struct", "parent": 256, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 10}}, {"id": 258, "type": "type_identifier", "text": "_applist", "parent": 256, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 19}}, {"id": 259, "type": "pointer_declarator", "text": "**next", "parent": 255, "children": [260, 261], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 26}}, {"id": 260, "type": "*", "text": "*", "parent": 259, "children": [], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 21}}, {"id": 261, "type": "pointer_declarator", "text": "*next", "parent": 259, "children": [262, 263], "start_point": {"row": 99, "column": 21}, "end_point": {"row": 99, "column": 26}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 99, "column": 21}, "end_point": {"row": 99, "column": 22}}, {"id": 263, "type": "field_identifier", "text": "next", "parent": 261, "children": [], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 26}}, {"id": 264, "type": "type_identifier", "text": "applist", "parent": 236, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 7}}, {"id": 265, "type": "declaration", "text": "extern applist **sigowners[TEXTEDITORPOS + 1];", "parent": null, "children": [266, 268, 269], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 46}}, {"id": 266, "type": "storage_class_specifier", "text": "extern", "parent": 265, "children": [267], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 267, "type": "extern", "text": "extern", "parent": 266, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 268, "type": "type_identifier", "text": "applist", "parent": 265, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 14}}, {"id": 269, "type": "pointer_declarator", "text": "**sigowners[TEXTEDITORPOS + 1]", "parent": 265, "children": [270, 271], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 45}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 16}}, {"id": 271, "type": "pointer_declarator", "text": "*sigowners[TEXTEDITORPOS + 1]", "parent": 269, "children": [272, 273], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 45}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 17}}, {"id": 273, "type": "array_declarator", "text": "sigowners[TEXTEDITORPOS + 1]", "parent": 271, "children": [274, 275], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 45}}, {"id": 274, "type": "identifier", "text": "sigowners", "parent": 273, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 26}}, {"id": 275, "type": "binary_expression", "text": "TEXTEDITORPOS + 1", "parent": 273, "children": [276, 277, 278], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 44}}, {"id": 276, "type": "identifier", "text": "TEXTEDITORPOS", "parent": 275, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 40}}, {"id": 277, "type": "+", "text": "+", "parent": 275, "children": [], "start_point": {"row": 103, "column": 41}, "end_point": {"row": 103, "column": 42}}, {"id": 278, "type": "number_literal", "text": "1", "parent": 275, "children": [], "start_point": {"row": 103, "column": 43}, "end_point": {"row": 103, "column": 44}}, {"id": 279, "type": "declaration", "text": "extern typeinfo typearray[];", "parent": null, "children": [280, 282, 283], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 28}}, {"id": 280, "type": "storage_class_specifier", "text": "extern", "parent": 279, "children": [281], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 6}}, {"id": 281, "type": "extern", "text": "extern", "parent": 280, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 6}}, {"id": 282, "type": "type_identifier", "text": "typeinfo", "parent": 279, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 15}}, {"id": 283, "type": "array_declarator", "text": "typearray[]", "parent": 279, "children": [284], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 27}}, {"id": 284, "type": "identifier", "text": "typearray", "parent": 283, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 25}}, {"id": 285, "type": "declaration", "text": "extern Handle g_iconcdefproc;", "parent": null, "children": [286, 288, 289], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 29}}, {"id": 286, "type": "storage_class_specifier", "text": "extern", "parent": 285, "children": [287], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 287, "type": "extern", "text": "extern", "parent": 286, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 288, "type": "type_identifier", "text": "Handle", "parent": 285, "children": [], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 13}}, {"id": 289, "type": "identifier", "text": "g_iconcdefproc", "parent": 285, "children": [], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 28}}, {"id": 290, "type": "declaration", "text": "extern ControlHandle (**g_selection)[];", "parent": null, "children": [291, 293, 294], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 39}}, {"id": 291, "type": "storage_class_specifier", "text": "extern", "parent": 290, "children": [292], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 292, "type": "extern", "text": "extern", "parent": 291, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 6}}, {"id": 293, "type": "type_identifier", "text": "ControlHandle", "parent": 290, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 20}}, {"id": 294, "type": "array_declarator", "text": "(**g_selection)[]", "parent": 290, "children": [295], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 38}}, {"id": 295, "type": "parenthesized_declarator", "text": "(**g_selection)", "parent": 294, "children": [296], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 36}}, {"id": 296, "type": "pointer_declarator", "text": "**g_selection", "parent": 295, "children": [297, 298], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 35}}, {"id": 297, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 23}}, {"id": 298, "type": "pointer_declarator", "text": "*g_selection", "parent": 296, "children": [299, 300], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 35}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 24}}, {"id": 300, "type": "identifier", "text": "g_selection", "parent": 298, "children": [], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 35}}, {"id": 301, "type": "declaration", "text": "extern long g_screensavetime;", "parent": null, "children": [302, 304, 306], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 29}}, {"id": 302, "type": "storage_class_specifier", "text": "extern", "parent": 301, "children": [303], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 6}}, {"id": 303, "type": "extern", "text": "extern", "parent": 302, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 6}}, {"id": 304, "type": "sized_type_specifier", "text": "long", "parent": 301, "children": [305], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 11}}, {"id": 305, "type": "long", "text": "long", "parent": 304, "children": [], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 11}}, {"id": 306, "type": "identifier", "text": "g_screensavetime", "parent": 301, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 28}}, {"id": 307, "type": "declaration", "text": "extern long g_lastclick;", "parent": null, "children": [308, 310, 312], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 24}}, {"id": 308, "type": "storage_class_specifier", "text": "extern", "parent": 307, "children": [309], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 6}}, {"id": 309, "type": "extern", "text": "extern", "parent": 308, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 6}}, {"id": 310, "type": "sized_type_specifier", "text": "long", "parent": 307, "children": [311], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 11}}, {"id": 311, "type": "long", "text": "long", "parent": 310, "children": [], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 11}}, {"id": 312, "type": "identifier", "text": "g_lastclick", "parent": 307, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 23}}, {"id": 313, "type": "declaration", "text": "extern DialogPtr g_hotband;", "parent": null, "children": [314, 316, 317], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 27}}, {"id": 314, "type": "storage_class_specifier", "text": "extern", "parent": 313, "children": [315], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 6}}, {"id": 315, "type": "extern", "text": "extern", "parent": 314, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 6}}, {"id": 316, "type": "type_identifier", "text": "DialogPtr", "parent": 313, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 16}}, {"id": 317, "type": "identifier", "text": "g_hotband", "parent": 313, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 26}}, {"id": 318, "type": "declaration", "text": "extern icontableentry **icontable[ICONTABLESIZE];", "parent": null, "children": [319, 321, 322], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 49}}, {"id": 319, "type": "storage_class_specifier", "text": "extern", "parent": 318, "children": [320], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 6}}, {"id": 320, "type": "extern", "text": "extern", "parent": 319, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 6}}, {"id": 321, "type": "type_identifier", "text": "icontableentry", "parent": 318, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 21}}, {"id": 322, "type": "pointer_declarator", "text": "**icontable[ICONTABLESIZE]", "parent": 318, "children": [323, 324], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 48}}, {"id": 323, "type": "*", "text": "*", "parent": 322, "children": [], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 23}}, {"id": 324, "type": "pointer_declarator", "text": "*icontable[ICONTABLESIZE]", "parent": 322, "children": [325, 326], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 48}}, {"id": 325, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 24}}, {"id": 326, "type": "array_declarator", "text": "icontable[ICONTABLESIZE]", "parent": 324, "children": [327, 328], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 48}}, {"id": 327, "type": "identifier", "text": "icontable", "parent": 326, "children": [], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 33}}, {"id": 328, "type": "identifier", "text": "ICONTABLESIZE", "parent": 326, "children": [], "start_point": {"row": 120, "column": 34}, "end_point": {"row": 120, "column": 47}}, {"id": 329, "type": "declaration", "text": "extern short g_currentband;", "parent": null, "children": [330, 332, 334], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 27}}, {"id": 330, "type": "storage_class_specifier", "text": "extern", "parent": 329, "children": [331], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 331, "type": "extern", "text": "extern", "parent": 330, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 332, "type": "sized_type_specifier", "text": "short", "parent": 329, "children": [333], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 12}}, {"id": 333, "type": "short", "text": "short", "parent": 332, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 12}}, {"id": 334, "type": "identifier", "text": "g_currentband", "parent": 329, "children": [], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 26}}, {"id": 335, "type": "declaration", "text": "extern short g_done;", "parent": null, "children": [336, 338, 340], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 20}}, {"id": 336, "type": "storage_class_specifier", "text": "extern", "parent": 335, "children": [337], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 6}}, {"id": 337, "type": "extern", "text": "extern", "parent": 336, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 6}}, {"id": 338, "type": "sized_type_specifier", "text": "short", "parent": 335, "children": [339], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 12}}, {"id": 339, "type": "short", "text": "short", "parent": 338, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 12}}, {"id": 340, "type": "identifier", "text": "g_done", "parent": 335, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 19}}, {"id": 341, "type": "declaration", "text": "extern TEHandle g_currenttitle;", "parent": null, "children": [342, 344, 345], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 31}}, {"id": 342, "type": "storage_class_specifier", "text": "extern", "parent": 341, "children": [343], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 6}}, {"id": 343, "type": "extern", "text": "extern", "parent": 342, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 6}}, {"id": 344, "type": "type_identifier", "text": "TEHandle", "parent": 341, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 15}}, {"id": 345, "type": "identifier", "text": "g_currenttitle", "parent": 341, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 30}}, {"id": 346, "type": "declaration", "text": "extern CCrsrHandle g_movecursor, g_copycursor;", "parent": null, "children": [347, 349, 350, 351], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 46}}, {"id": 347, "type": "storage_class_specifier", "text": "extern", "parent": 346, "children": [348], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 6}}, {"id": 348, "type": "extern", "text": "extern", "parent": 347, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 6}}, {"id": 349, "type": "type_identifier", "text": "CCrsrHandle", "parent": 346, "children": [], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 18}}, {"id": 350, "type": "identifier", "text": "g_movecursor", "parent": 346, "children": [], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 125, "column": 31}}, {"id": 351, "type": "identifier", "text": "g_copycursor", "parent": 346, "children": [], "start_point": {"row": 125, "column": 33}, "end_point": {"row": 125, "column": 45}}, {"id": 352, "type": "declaration", "text": "pascal OSErr unixmount (CInfoPBRec * cpbp) =\n{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n};", "parent": null, "children": [353, 354, 356], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 139, "column": 2}}, {"id": 353, "type": "type_identifier", "text": "pascal", "parent": 352, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 11}}, {"id": 354, "type": "ERROR", "text": "OSErr", "parent": 352, "children": [355], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 17}}, {"id": 355, "type": "identifier", "text": "OSErr", "parent": 354, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 17}}, {"id": 356, "type": "init_declarator", "text": "unixmount (CInfoPBRec * cpbp) =\n{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n}", "parent": 352, "children": [357, 365, 366], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 139, "column": 1}}, {"id": 357, "type": "function_declarator", "text": "unixmount (CInfoPBRec * cpbp)", "parent": 356, "children": [358, 359], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 47}}, {"id": 358, "type": "identifier", "text": "unixmount", "parent": 357, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 27}}, {"id": 359, "type": "parameter_list", "text": "(CInfoPBRec * cpbp)", "parent": 357, "children": [360], "start_point": {"row": 136, "column": 28}, "end_point": {"row": 136, "column": 47}}, {"id": 360, "type": "parameter_declaration", "text": "CInfoPBRec * cpbp", "parent": 359, "children": [361, 362], "start_point": {"row": 136, "column": 29}, "end_point": {"row": 136, "column": 46}}, {"id": 361, "type": "type_identifier", "text": "CInfoPBRec", "parent": 360, "children": [], "start_point": {"row": 136, "column": 29}, "end_point": {"row": 136, "column": 39}}, {"id": 362, "type": "pointer_declarator", "text": "* cpbp", "parent": 360, "children": [363, 364], "start_point": {"row": 136, "column": 40}, "end_point": {"row": 136, "column": 46}}, {"id": 363, "type": "*", "text": "*", "parent": 362, "children": [], "start_point": {"row": 136, "column": 40}, "end_point": {"row": 136, "column": 41}}, {"id": 364, "type": "identifier", "text": "cpbp", "parent": 362, "children": [], "start_point": {"row": 136, "column": 42}, "end_point": {"row": 136, "column": 46}}, {"id": 365, "type": "=", "text": "=", "parent": 356, "children": [], "start_point": {"row": 136, "column": 48}, "end_point": {"row": 136, "column": 49}}, {"id": 366, "type": "initializer_list", "text": "{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n}", "parent": 356, "children": [367, 368, 369, 370, 371], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 367, "type": "number_literal", "text": "0x2078", "parent": 366, "children": [], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 8}}, {"id": 368, "type": "number_literal", "text": "0x0058", "parent": 366, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 16}}, {"id": 369, "type": "number_literal", "text": "0x2068", "parent": 366, "children": [], "start_point": {"row": 138, "column": 18}, "end_point": {"row": 138, "column": 24}}, {"id": 370, "type": "number_literal", "text": "0x0020", "parent": 366, "children": [], "start_point": {"row": 138, "column": 26}, "end_point": {"row": 138, "column": 32}}, {"id": 371, "type": "number_literal", "text": "0x4e90", "parent": 366, "children": [], "start_point": {"row": 138, "column": 34}, "end_point": {"row": 138, "column": 40}}]}, "node_categories": {"declarations": {"functions": [136, 357], "variables": [156, 160, 164, 169, 173, 177, 181, 185, 188, 192, 196, 199, 209, 213, 216, 220, 224, 228, 236, 241, 245, 249, 252, 255, 265, 279, 285, 290, 301, 307, 313, 318, 329, 335, 341, 346, 352, 360], "classes": [158, 159, 171, 172, 211, 212, 238, 239, 256, 257, 266, 280, 286, 291, 302, 308, 314, 319, 330, 336, 342, 347], "imports": [3, 4, 6, 7], "modules": [], "enums": [9, 10, 11, 12, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 142, 143, 145, 146, 148, 150, 152, 154]}, "statements": {"expressions": [275], "assignments": [], "loops": [], "conditionals": [2, 13, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 140, 144, 147, 149, 151, 153, 155, 161, 163, 165, 167, 168, 174, 176, 178, 180, 182, 184, 186, 187, 189, 191, 193, 195, 197, 198, 200, 207, 208, 214, 215, 217, 219, 221, 223, 225, 227, 229, 234, 235, 240, 242, 244, 246, 248, 250, 251, 253, 254, 258, 263, 264, 268, 274, 276, 282, 284, 288, 289, 293, 300, 304, 306, 310, 312, 316, 317, 321, 327, 328, 332, 334, 338, 340, 344, 345, 349, 350, 351, 353, 355, 358, 361, 364], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [5, 8, 15, 278, 367, 368, 369, 370, 371], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "#define NELEM(x) (sizeof(x) / sizeof((x)[0]))\n"}, {"node_id": 357, "universal_type": "function", "name": "unknown", "text_snippet": "unixmount (CInfoPBRec * cpbp)"}], "class_declarations": [{"node_id": 158, "universal_type": "class", "name": "{", "text_snippet": "struct\n {\n short localid;\n short resid;\n }"}, {"node_id": 159, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 171, "universal_type": "class", "name": "{", "text_snippet": "struct\n {\n short sortorder;\t/* FIXME - why not use enum here? */\n short view;\n short numit"}, {"node_id": 172, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 211, "universal_type": "class", "name": "{", "text_snippet": "struct\n {\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableent"}, {"node_id": 212, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 238, "universal_type": "class", "name": "_applist", "text_snippet": "struct _applist\n {\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _"}, {"node_id": 239, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 256, "universal_type": "class", "name": "_applist", "text_snippet": "struct _applist"}, {"node_id": 257, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 266, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 280, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 286, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 291, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 302, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 308, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 314, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 319, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 330, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 336, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 342, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 347, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 3, "text": "#include <stdio.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"iconcontrol.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#define NDEBUG\t\t\t/* I'm building a production copy -- ctm */\n\n#include <stdio.h>\n#include \"iconcontrol.h\"\n\nenum\n {\n new_folder_menuid = 1,\n open_menuid,\n print_menuid,\n close_menuid,\n save_menuid,\n unused,\n delete_menuid,\n duplicate_menuid,\n get_info_menuid,\n rename_menuid,\n send_to_hotband_menuid,\n unused_2,\n check_for_disk_menuid,\n format_menuid,\n eject_menuid,\n unused_3,\n quit_menuid\n };\n\n#define\tMAXDRIVENUM\t\t15\n#define DIRBIT\t\t\t(1 << 4)\n#define\tICONTABLESIZE\t91\n#define SIGARRAYSIZE\t41\n#define TEXTEDITORPOS\t(SIGARRAYSIZE)\n#define HOTBANDRESID\t200\n#define ABOUTDIALOG\t\t201\n#define BANDARRAYSIZE\t50\n#define CREATOR\t\t\t'GOGO'\n#define GOMBARID\t\t128\n#define FIRSTMENU\t\t300\n#define FILEMENU\t\t301\n#define EDITMENU\t\t302\n#define VIEWMENU\t\t303\n#define SCROLLBARWIDTH\t16\n#define SCROLLSPEED\t\t9\n#define\tDEFAULTEDITORSTRINGID\t201\n\n#define COPYCURSORID\t\t128\n#define\tMOVECURSORID\t\t129\n\n#define\tGONAME\t\t\t\t\"\\pgo.appl\"\n#define GOSAVEFILE\t\t\t\"godata.sav\"\n#define GOBACKUPFILE\t\t\"godata.bak\"\n\n#define NELEM(x) (sizeof(x) / sizeof((x)[0]))\n\nenum actions\n {\n LAUNCH,\n OPENDIR,\n LAUNCHCREATOR,\n OPENDA,\n NOACTION\n };\n\n\ntypedef struct\n {\n short localid;\n short resid;\n }\nidentry;\n\ntypedef struct\n {\n short sortorder;\t/* FIXME - why not use enum here? */\n short view;\n short numitems;\n Handle path;\n long iodirid;\n short vrefnum;\n ControlHandle sbar;\n ControlHandle (**items)[];\n }\nopendirinfo;\n\ntypedef struct\n {\n OSType filetype;\n short band;\n short action;\n short iconid;\n icontableentry **iconh;\n }\ntypeinfo;\n\ntypedef struct _applist\n {\n short vrefnum;\n long parid;\n Str255 name;\n OSType sig;\n struct _applist **next;\n }\napplist;\n\nextern applist **sigowners[TEXTEDITORPOS + 1];\nextern typeinfo typearray[];\n\n/* used to determine if a control is an icon control */\nextern Handle g_iconcdefproc;\n\n/* someday more than one item may be selected so make g_selection look like a handle */\nextern ControlHandle (**g_selection)[];\n \n/* time until screensaver kicks in in sixtieths of seconds */\nextern long g_screensavetime;\n \nextern long g_lastclick;\n\n/* Pointer to the \"hotband\", the special window at the top of the screen */\nextern DialogPtr g_hotband;\n\nextern icontableentry **icontable[ICONTABLESIZE];\nextern short g_currentband;\nextern short g_done;\nextern TEHandle g_currenttitle;\n\nextern CCrsrHandle g_movecursor, g_copycursor;\n/*\n * Fun Executor trickery (kids, we are trained professionals; don't try this at home)\n *\n * unixcd is needed because under Executor, we could be traversing a mount point.\n * When that happens, Executor needs to internally \"mount\" the new filesystem and we need\n * to update our vrefnum.\n *\n * NOTE: this code will cause any version of Executor prior to 1.99m to crash.\n */\n\n pascal OSErr unixmount (CInfoPBRec * cpbp) =\n{\n 0x2078, 0x0058, 0x2068, 0x0020, 0x4e90\n};\n"}
80,890
c
// Copyright 2013 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 NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ #define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_ #include <string> #include <vector> #include "base/basictypes.h" #include "base/compiler_specific.h" #include "base/memory/scoped_ptr.h" #include "net/base/completion_callback.h" #include "net/base/net_export.h" #include "net/base/net_log.h" #include "net/cert/cert_verify_result.h" #include "net/cert/x509_certificate.h" #include "net/quic/crypto/proof_verifier.h" namespace net { class CertVerifier; class SingleRequestCertVerifier; // ProofVerifyDetailsChromium is the implementation-specific information that a // ProofVerifierChromium returns about a certificate verification. struct ProofVerifyDetailsChromium : public ProofVerifyDetails { public: CertVerifyResult cert_verify_result; }; // ProofVerifierChromium implements the QUIC ProofVerifier interface. // TODO(rtenneti): Add support for multiple requests for one ProofVerifier. class NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier { public: ProofVerifierChromium(CertVerifier* cert_verifier, const BoundNetLog& net_log); virtual ~ProofVerifierChromium(); // ProofVerifier interface virtual Status VerifyProof(const std::string& hostname, const std::string& server_config, const std::vector<std::string>& certs, const std::string& signature, std::string* error_details, scoped_ptr<ProofVerifyDetails>* details, ProofVerifierCallback* callback) OVERRIDE; private: enum State { STATE_NONE, STATE_VERIFY_CERT, STATE_VERIFY_CERT_COMPLETE, }; int DoLoop(int last_io_result); void OnIOComplete(int result); int DoVerifyCert(int result); int DoVerifyCertComplete(int result); bool VerifySignature(const std::string& signed_data, const std::string& signature, const std::string& cert); // |cert_verifier_| and |verifier_| are used for verifying certificates. CertVerifier* const cert_verifier_; scoped_ptr<SingleRequestCertVerifier> verifier_; // |hostname| specifies the hostname for which |certs| is a valid chain. std::string hostname_; scoped_ptr<ProofVerifierCallback> callback_; scoped_ptr<ProofVerifyDetailsChromium> verify_details_; std::string error_details_; // X509Certificate from a chain of DER encoded certificates. scoped_refptr<X509Certificate> cert_; State next_state_; BoundNetLog net_log_; DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium); }; } // namespace net #endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_
40.75
69
(translation_unit) "// Copyright 2013 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 NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n#define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n\n#include <string>\n#include <vector>\n\n#include "base/basictypes.h"\n#include "base/compiler_specific.h"\n#include "base/memory/scoped_ptr.h"\n#include "net/base/completion_callback.h"\n#include "net/base/net_export.h"\n#include "net/base/net_log.h"\n#include "net/cert/cert_verify_result.h"\n#include "net/cert/x509_certificate.h"\n#include "net/quic/crypto/proof_verifier.h"\n\nnamespace net {\n\nclass CertVerifier;\nclass SingleRequestCertVerifier;\n\n// ProofVerifyDetailsChromium is the implementation-specific information that a\n// ProofVerifierChromium returns about a certificate verification.\nstruct ProofVerifyDetailsChromium : public ProofVerifyDetails {\n public:\n CertVerifyResult cert_verify_result;\n};\n\n// ProofVerifierChromium implements the QUIC ProofVerifier interface.\n// TODO(rtenneti): Add support for multiple requests for one ProofVerifier.\nclass NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier {\n public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);\n virtual ~ProofVerifierChromium();\n\n // ProofVerifier interface\n virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n};\n\n} // namespace net\n\n#endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n" (comment) "// Copyright 2013 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 NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n#define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n\n#include <string>\n#include <vector>\n\n#include "base/basictypes.h"\n#include "base/compiler_specific.h"\n#include "base/memory/scoped_ptr.h"\n#include "net/base/completion_callback.h"\n#include "net/base/net_export.h"\n#include "net/base/net_log.h"\n#include "net/cert/cert_verify_result.h"\n#include "net/cert/x509_certificate.h"\n#include "net/quic/crypto/proof_verifier.h"\n\nnamespace net {\n\nclass CertVerifier;\nclass SingleRequestCertVerifier;\n\n// ProofVerifyDetailsChromium is the implementation-specific information that a\n// ProofVerifierChromium returns about a certificate verification.\nstruct ProofVerifyDetailsChromium : public ProofVerifyDetails {\n public:\n CertVerifyResult cert_verify_result;\n};\n\n// ProofVerifierChromium implements the QUIC ProofVerifier interface.\n// TODO(rtenneti): Add support for multiple requests for one ProofVerifier.\nclass NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier {\n public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);\n virtual ~ProofVerifierChromium();\n\n // ProofVerifier interface\n virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n};\n\n} // namespace net\n\n#endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n" (#ifndef) "#ifndef" (identifier) "NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_" (preproc_def) "#define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n" (#define) "#define" (identifier) "NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_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 "base/basictypes.h"\n" (#include) "#include" (string_literal) ""base/basictypes.h"" (") """ (string_content) "base/basictypes.h" (") """ (preproc_include) "#include "base/compiler_specific.h"\n" (#include) "#include" (string_literal) ""base/compiler_specific.h"" (") """ (string_content) "base/compiler_specific.h" (") """ (preproc_include) "#include "base/memory/scoped_ptr.h"\n" (#include) "#include" (string_literal) ""base/memory/scoped_ptr.h"" (") """ (string_content) "base/memory/scoped_ptr.h" (") """ (preproc_include) "#include "net/base/completion_callback.h"\n" (#include) "#include" (string_literal) ""net/base/completion_callback.h"" (") """ (string_content) "net/base/completion_callback.h" (") """ (preproc_include) "#include "net/base/net_export.h"\n" (#include) "#include" (string_literal) ""net/base/net_export.h"" (") """ (string_content) "net/base/net_export.h" (") """ (preproc_include) "#include "net/base/net_log.h"\n" (#include) "#include" (string_literal) ""net/base/net_log.h"" (") """ (string_content) "net/base/net_log.h" (") """ (preproc_include) "#include "net/cert/cert_verify_result.h"\n" (#include) "#include" (string_literal) ""net/cert/cert_verify_result.h"" (") """ (string_content) "net/cert/cert_verify_result.h" (") """ (preproc_include) "#include "net/cert/x509_certificate.h"\n" (#include) "#include" (string_literal) ""net/cert/x509_certificate.h"" (") """ (string_content) "net/cert/x509_certificate.h" (") """ (preproc_include) "#include "net/quic/crypto/proof_verifier.h"\n" (#include) "#include" (string_literal) ""net/quic/crypto/proof_verifier.h"" (") """ (string_content) "net/quic/crypto/proof_verifier.h" (") """ (type_identifier) "namespace" (identifier) "net" ({) "{" (declaration) "class CertVerifier;" (type_identifier) "class" (identifier) "CertVerifier" (;) ";" (declaration) "class SingleRequestCertVerifier;" (type_identifier) "class" (identifier) "SingleRequestCertVerifier" (;) ";" (comment) "// ProofVerifyDetailsChromium is the implementation-specific information that a" (comment) "// ProofVerifierChromium returns about a certificate verification." (function_definition) "struct ProofVerifyDetailsChromium : public ProofVerifyDetails {\n public:\n CertVerifyResult cert_verify_result;\n}" (struct_specifier) "struct ProofVerifyDetailsChromium" (struct) "struct" (type_identifier) "ProofVerifyDetailsChromium" (ERROR) ": public" (:) ":" (identifier) "public" (identifier) "ProofVerifyDetails" (compound_statement) "{\n public:\n CertVerifyResult cert_verify_result;\n}" ({) "{" (labeled_statement) "public:\n CertVerifyResult cert_verify_result;" (statement_identifier) "public" (:) ":" (declaration) "CertVerifyResult cert_verify_result;" (type_identifier) "CertVerifyResult" (identifier) "cert_verify_result" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// ProofVerifierChromium implements the QUIC ProofVerifier interface." (comment) "// TODO(rtenneti): Add support for multiple requests for one ProofVerifier." (declaration) "class NET_EXPORT_PRIVATE" (type_identifier) "class" (identifier) "NET_EXPORT_PRIVATE" (;) "" (labeled_statement) "ProofVerifierChromium : public ProofVerifier {\n public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);\n virtual ~ProofVerifierChromium();\n\n // ProofVerifier interface\n virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n};\n\n}" (statement_identifier) "ProofVerifierChromium" (:) ":" (ERROR) "public ProofVerifier" (type_identifier) "public" (identifier) "ProofVerifier" (compound_statement) "{\n public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);\n virtual ~ProofVerifierChromium();\n\n // ProofVerifier interface\n virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n};\n\n}" ({) "{" (labeled_statement) "public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);" (statement_identifier) "public" (:) ":" (expression_statement) "ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);" (call_expression) "ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log)" (identifier) "ProofVerifierChromium" (argument_list) "(CertVerifier* cert_verifier,\n const BoundNetLog& net_log)" (() "(" (binary_expression) "CertVerifier* cert_verifier" (identifier) "CertVerifier" (*) "*" (identifier) "cert_verifier" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "BoundNetLog& net_log" (identifier) "BoundNetLog" (&) "&" (identifier) "net_log" ()) ")" (;) ";" (declaration) "virtual ~ProofVerifierChromium();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "ProofVerifierChromium()" (identifier) "ProofVerifierChromium" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// ProofVerifier interface" (function_definition) "virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n}" (type_identifier) "virtual" (ERROR) "Status" (identifier) "Status" (function_declarator) "VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE" (identifier) "VerifyProof" (parameter_list) "(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback)" (() "(" (parameter_declaration) "const std::string& hostname" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "hostname" (,) "," (parameter_declaration) "const std::string& server_config" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "server_config" (,) "," (parameter_declaration) "const std::vector<std::string>& certs" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<std::string>&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "certs" (,) "," (parameter_declaration) "const std::string& signature" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "signature" (,) "," (parameter_declaration) "std::string* error_details" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (pointer_declarator) "* error_details" (*) "*" (identifier) "error_details" (,) "," (parameter_declaration) "scoped_ptr<ProofVerifyDetails>* details" (type_identifier) "scoped_ptr" (ERROR) "<ProofVerifyDetails>" (<) "<" (identifier) "ProofVerifyDetails" (>) ">" (pointer_declarator) "* details" (*) "*" (identifier) "details" (,) "," (parameter_declaration) "ProofVerifierCallback* callback" (type_identifier) "ProofVerifierCallback" (pointer_declarator) "* callback" (*) "*" (identifier) "callback" ()) ")" (identifier) "OVERRIDE" (ERROR) ";\n\n private:\n enum State" (;) ";" (identifier) "private" (:) ":" (enum) "enum" (identifier) "State" (compound_statement) "{\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n}" ({) "{" (expression_statement) "STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };" (comma_expression) "STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE" (identifier) "STATE_NONE" (,) "," (comma_expression) "STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE" (identifier) "STATE_VERIFY_CERT" (,) "," (identifier) "STATE_VERIFY_CERT_COMPLETE" (ERROR) ",\n }" (,) "," (}) "}" (;) ";" (declaration) "int DoLoop(int last_io_result);" (primitive_type) "int" (function_declarator) "DoLoop(int last_io_result)" (identifier) "DoLoop" (parameter_list) "(int last_io_result)" (() "(" (parameter_declaration) "int last_io_result" (primitive_type) "int" (identifier) "last_io_result" ()) ")" (;) ";" (declaration) "void OnIOComplete(int result);" (primitive_type) "void" (function_declarator) "OnIOComplete(int result)" (identifier) "OnIOComplete" (parameter_list) "(int result)" (() "(" (parameter_declaration) "int result" (primitive_type) "int" (identifier) "result" ()) ")" (;) ";" (declaration) "int DoVerifyCert(int result);" (primitive_type) "int" (function_declarator) "DoVerifyCert(int result)" (identifier) "DoVerifyCert" (parameter_list) "(int result)" (() "(" (parameter_declaration) "int result" (primitive_type) "int" (identifier) "result" ()) ")" (;) ";" (declaration) "int DoVerifyCertComplete(int result);" (primitive_type) "int" (function_declarator) "DoVerifyCertComplete(int result)" (identifier) "DoVerifyCertComplete" (parameter_list) "(int result)" (() "(" (parameter_declaration) "int result" (primitive_type) "int" (identifier) "result" ()) ")" (;) ";" (declaration) "bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);" (primitive_type) "bool" (function_declarator) "VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert)" (identifier) "VerifySignature" (parameter_list) "(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert)" (() "(" (parameter_declaration) "const std::string& signed_data" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "signed_data" (,) "," (parameter_declaration) "const std::string& signature" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "signature" (,) "," (parameter_declaration) "const std::string& cert" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "cert" ()) ")" (;) ";" (comment) "// |cert_verifier_| and |verifier_| are used for verifying certificates." (declaration) "CertVerifier* const cert_verifier_;" (type_identifier) "CertVerifier" (pointer_declarator) "* const cert_verifier_" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "cert_verifier_" (;) ";" (expression_statement) "scoped_ptr<SingleRequestCertVerifier> verifier_;" (binary_expression) "scoped_ptr<SingleRequestCertVerifier> verifier_" (binary_expression) "scoped_ptr<SingleRequestCertVerifier" (identifier) "scoped_ptr" (<) "<" (identifier) "SingleRequestCertVerifier" (>) ">" (identifier) "verifier_" (;) ";" (comment) "// |hostname| specifies the hostname for which |certs| is a valid chain." (labeled_statement) "std::string hostname_;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string hostname_;" (type_identifier) "string" (identifier) "hostname_" (;) ";" (expression_statement) "scoped_ptr<ProofVerifierCallback> callback_;" (binary_expression) "scoped_ptr<ProofVerifierCallback> callback_" (binary_expression) "scoped_ptr<ProofVerifierCallback" (identifier) "scoped_ptr" (<) "<" (identifier) "ProofVerifierCallback" (>) ">" (identifier) "callback_" (;) ";" (expression_statement) "scoped_ptr<ProofVerifyDetailsChromium> verify_details_;" (binary_expression) "scoped_ptr<ProofVerifyDetailsChromium> verify_details_" (binary_expression) "scoped_ptr<ProofVerifyDetailsChromium" (identifier) "scoped_ptr" (<) "<" (identifier) "ProofVerifyDetailsChromium" (>) ">" (identifier) "verify_details_" (;) ";" (labeled_statement) "std::string error_details_;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string error_details_;" (type_identifier) "string" (identifier) "error_details_" (;) ";" (comment) "// X509Certificate from a chain of DER encoded certificates." (expression_statement) "scoped_refptr<X509Certificate> cert_;" (binary_expression) "scoped_refptr<X509Certificate> cert_" (binary_expression) "scoped_refptr<X509Certificate" (identifier) "scoped_refptr" (<) "<" (identifier) "X509Certificate" (>) ">" (identifier) "cert_" (;) ";" (declaration) "State next_state_;" (type_identifier) "State" (identifier) "next_state_" (;) ";" (declaration) "BoundNetLog net_log_;" (type_identifier) "BoundNetLog" (identifier) "net_log_" (;) ";" (expression_statement) "DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);" (call_expression) "DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium)" (identifier) "DISALLOW_COPY_AND_ASSIGN" (argument_list) "(ProofVerifierChromium)" (() "(" (identifier) "ProofVerifierChromium" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace net" (preproc_call) "#endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n" (preproc_directive) "#endif" (comment) "// NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_"
427
19
{"language": "c", "success": true, "metadata": {"lines": 69, "avg_line_length": 40.75, "nodes": 248, "errors": 0, "source_hash": "34bd242febe584eb64aacaf35bf155ffccbc5dd127adb872fa334c49b2d32021", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n#define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n\n#include <string>\n#include <vector>\n\n#include \"base/basictypes.h\"\n#include \"base/compiler_specific.h\"\n#include \"base/memory/scoped_ptr.h\"\n#include \"net/base/completion_callback.h\"\n#include \"net/base/net_export.h\"\n#include \"net/base/net_log.h\"\n#include \"net/cert/cert_verify_result.h\"\n#include \"net/cert/x509_certificate.h\"\n#include \"net/quic/crypto/proof_verifier.h\"\n\nnamespace net {\n\nclass CertVerifier;\nclass SingleRequestCertVerifier;\n\n// ProofVerifyDetailsChromium is the implementation-specific information that a\n// ProofVerifierChromium returns about a certificate verification.\nstruct ProofVerifyDetailsChromium : public ProofVerifyDetails {\n public:\n CertVerifyResult cert_verify_result;\n};\n\n// ProofVerifierChromium implements the QUIC ProofVerifier interface.\n// TODO(rtenneti): Add support for multiple requests for one ProofVerifier.\nclass NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier {\n public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);\n virtual ~ProofVerifierChromium();\n\n // ProofVerifier interface\n virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n};\n\n} // namespace net\n\n#endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 40, 41, 43, 45, 55, 57, 246], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 89, "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": "NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 50}}, {"id": 3, "type": "preproc_def", "text": "#define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_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": "NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 50}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include \"base/basictypes.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"base/basictypes.h\"", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 28}}, {"id": 15, "type": "preproc_include", "text": "#include \"base/compiler_specific.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"base/compiler_specific.h\"", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 35}}, {"id": 18, "type": "preproc_include", "text": "#include \"base/memory/scoped_ptr.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"base/memory/scoped_ptr.h\"", "parent": 18, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 35}}, {"id": 21, "type": "preproc_include", "text": "#include \"net/base/completion_callback.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"net/base/completion_callback.h\"", "parent": 21, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 41}}, {"id": 24, "type": "preproc_include", "text": "#include \"net/base/net_export.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"net/base/net_export.h\"", "parent": 24, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 32}}, {"id": 27, "type": "preproc_include", "text": "#include \"net/base/net_log.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"net/base/net_log.h\"", "parent": 27, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 29}}, {"id": 30, "type": "preproc_include", "text": "#include \"net/cert/cert_verify_result.h\"\n", "parent": 0, "children": [31, 32], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"net/cert/cert_verify_result.h\"", "parent": 30, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 40}}, {"id": 33, "type": "preproc_include", "text": "#include \"net/cert/x509_certificate.h\"\n", "parent": 0, "children": [34, 35], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"net/cert/x509_certificate.h\"", "parent": 33, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 38}}, {"id": 36, "type": "preproc_include", "text": "#include \"net/quic/crypto/proof_verifier.h\"\n", "parent": 0, "children": [37, 38], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"net/quic/crypto/proof_verifier.h\"", "parent": 36, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 43}}, {"id": 39, "type": "type_identifier", "text": "namespace", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 40, "type": "identifier", "text": "net", "parent": 0, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 13}}, {"id": 41, "type": "declaration", "text": "class CertVerifier;", "parent": 0, "children": [42], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 19}}, {"id": 42, "type": "identifier", "text": "CertVerifier", "parent": 41, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 18}}, {"id": 43, "type": "declaration", "text": "class SingleRequestCertVerifier;", "parent": 0, "children": [44], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 32}}, {"id": 44, "type": "identifier", "text": "SingleRequestCertVerifier", "parent": 43, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 31}}, {"id": 45, "type": "function_definition", "text": "struct ProofVerifyDetailsChromium : public ProofVerifyDetails {\n public:\n CertVerifyResult cert_verify_result;\n}", "parent": 0, "children": [46, 49, 50], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 46, "type": "struct_specifier", "text": "struct ProofVerifyDetailsChromium", "parent": 45, "children": [47, 48], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 33}}, {"id": 47, "type": "struct", "text": "struct", "parent": 46, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 48, "type": "type_identifier", "text": "ProofVerifyDetailsChromium", "parent": 46, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 33}}, {"id": 49, "type": "ERROR", "text": ": public", "parent": 45, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 42}}, {"id": 50, "type": "identifier", "text": "ProofVerifyDetails", "parent": 45, "children": [], "start_point": {"row": 27, "column": 43}, "end_point": {"row": 27, "column": 61}}, {"id": 51, "type": "labeled_statement", "text": "public:\n CertVerifyResult cert_verify_result;", "parent": 45, "children": [52], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 29, "column": 38}}, {"id": 52, "type": "declaration", "text": "CertVerifyResult cert_verify_result;", "parent": 51, "children": [53, 54], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 38}}, {"id": 53, "type": "type_identifier", "text": "CertVerifyResult", "parent": 52, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 18}}, {"id": 54, "type": "identifier", "text": "cert_verify_result", "parent": 52, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 37}}, {"id": 55, "type": "declaration", "text": "class NET_EXPORT_PRIVATE", "parent": 0, "children": [56], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 24}}, {"id": 56, "type": "identifier", "text": "NET_EXPORT_PRIVATE", "parent": 55, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 24}}, {"id": 57, "type": "labeled_statement", "text": "ProofVerifierChromium : public ProofVerifier {\n public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);\n virtual ~ProofVerifierChromium();\n\n // ProofVerifier interface\n virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n};\n\n}", "parent": 0, "children": [58, 59], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 86, "column": 1}}, {"id": 58, "type": "statement_identifier", "text": "ProofVerifierChromium", "parent": 57, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 46}}, {"id": 59, "type": "ERROR", "text": "public ProofVerifier", "parent": 57, "children": [60], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 69}}, {"id": 60, "type": "identifier", "text": "ProofVerifier", "parent": 59, "children": [], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 69}}, {"id": 61, "type": "labeled_statement", "text": "public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);", "parent": 57, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 37, "column": 52}}, {"id": 62, "type": "call_expression", "text": "ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log)", "parent": 61, "children": [63, 64], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 51}}, {"id": 63, "type": "identifier", "text": "ProofVerifierChromium", "parent": 62, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 23}}, {"id": 64, "type": "argument_list", "text": "(CertVerifier* cert_verifier,\n const BoundNetLog& net_log)", "parent": 62, "children": [65, 69], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 37, "column": 51}}, {"id": 65, "type": "binary_expression", "text": "CertVerifier* cert_verifier", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 51}}, {"id": 66, "type": "identifier", "text": "CertVerifier", "parent": 65, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 36}}, {"id": 67, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 37}}, {"id": 68, "type": "identifier", "text": "cert_verifier", "parent": 65, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 51}}, {"id": 69, "type": "binary_expression", "text": "BoundNetLog& net_log", "parent": 64, "children": [70, 71], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 50}}, {"id": 70, "type": "identifier", "text": "BoundNetLog", "parent": 69, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 41}}, {"id": 71, "type": "identifier", "text": "net_log", "parent": 69, "children": [], "start_point": {"row": 37, "column": 43}, "end_point": {"row": 37, "column": 50}}, {"id": 72, "type": "declaration", "text": "virtual ~ProofVerifierChromium();", "parent": 57, "children": [73, 74, 76], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 35}}, {"id": 73, "type": "type_identifier", "text": "virtual", "parent": 72, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 9}}, {"id": 74, "type": "ERROR", "text": "~", "parent": 72, "children": [75], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 11}}, {"id": 75, "type": "~", "text": "~", "parent": 74, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 11}}, {"id": 76, "type": "function_declarator", "text": "ProofVerifierChromium()", "parent": 72, "children": [77, 78], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 34}}, {"id": 77, "type": "identifier", "text": "ProofVerifierChromium", "parent": 76, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 32}}, {"id": 78, "type": "parameter_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 34}}, {"id": 79, "type": "function_definition", "text": "virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n}", "parent": 57, "children": [80, 81, 83, 132], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 84, "column": 1}}, {"id": 80, "type": "type_identifier", "text": "virtual", "parent": 79, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 9}}, {"id": 81, "type": "ERROR", "text": "Status", "parent": 79, "children": [82], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 16}}, {"id": 82, "type": "identifier", "text": "Status", "parent": 81, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 16}}, {"id": 83, "type": "function_declarator", "text": "VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE", "parent": 79, "children": [84, 85, 131], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 47, "column": 70}}, {"id": 84, "type": "identifier", "text": "VerifyProof", "parent": 83, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 28}}, {"id": 85, "type": "parameter_list", "text": "(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback)", "parent": 83, "children": [86, 91, 96, 105, 110, 117, 126], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 47, "column": 61}}, {"id": 86, "type": "parameter_declaration", "text": "const std::string& hostname", "parent": 85, "children": [87, 88, 90], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 56}}, {"id": 87, "type": "type_identifier", "text": "std", "parent": 86, "children": [], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 38}}, {"id": 88, "type": "ERROR", "text": "::string&", "parent": 86, "children": [89], "start_point": {"row": 41, "column": 38}, "end_point": {"row": 41, "column": 47}}, {"id": 89, "type": "identifier", "text": "string", "parent": 88, "children": [], "start_point": {"row": 41, "column": 40}, "end_point": {"row": 41, "column": 46}}, {"id": 90, "type": "identifier", "text": "hostname", "parent": 86, "children": [], "start_point": {"row": 41, "column": 48}, "end_point": {"row": 41, "column": 56}}, {"id": 91, "type": "parameter_declaration", "text": "const std::string& server_config", "parent": 85, "children": [92, 93, 95], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 61}}, {"id": 92, "type": "type_identifier", "text": "std", "parent": 91, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 38}}, {"id": 93, "type": "ERROR", "text": "::string&", "parent": 91, "children": [94], "start_point": {"row": 42, "column": 38}, "end_point": {"row": 42, "column": 47}}, {"id": 94, "type": "identifier", "text": "string", "parent": 93, "children": [], "start_point": {"row": 42, "column": 40}, "end_point": {"row": 42, "column": 46}}, {"id": 95, "type": "identifier", "text": "server_config", "parent": 91, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 61}}, {"id": 96, "type": "parameter_declaration", "text": "const std::vector<std::string>& certs", "parent": 85, "children": [97, 98, 104], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 66}}, {"id": 97, "type": "type_identifier", "text": "std", "parent": 96, "children": [], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 38}}, {"id": 98, "type": "ERROR", "text": "::vector<std::string>&", "parent": 96, "children": [99, 100, 101, 102, 103], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 60}}, {"id": 99, "type": "identifier", "text": "vector", "parent": 98, "children": [], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 46}}, {"id": 100, "type": "<", "text": "<", "parent": 98, "children": [], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 43, "column": 47}}, {"id": 101, "type": "identifier", "text": "std", "parent": 98, "children": [], "start_point": {"row": 43, "column": 47}, "end_point": {"row": 43, "column": 50}}, {"id": 102, "type": "identifier", "text": "string", "parent": 98, "children": [], "start_point": {"row": 43, "column": 52}, "end_point": {"row": 43, "column": 58}}, {"id": 103, "type": ">", "text": ">", "parent": 98, "children": [], "start_point": {"row": 43, "column": 58}, "end_point": {"row": 43, "column": 59}}, {"id": 104, "type": "identifier", "text": "certs", "parent": 96, "children": [], "start_point": {"row": 43, "column": 61}, "end_point": {"row": 43, "column": 66}}, {"id": 105, "type": "parameter_declaration", "text": "const std::string& signature", "parent": 85, "children": [106, 107, 109], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 57}}, {"id": 106, "type": "type_identifier", "text": "std", "parent": 105, "children": [], "start_point": {"row": 44, "column": 35}, "end_point": {"row": 44, "column": 38}}, {"id": 107, "type": "ERROR", "text": "::string&", "parent": 105, "children": [108], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 47}}, {"id": 108, "type": "identifier", "text": "string", "parent": 107, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 46}}, {"id": 109, "type": "identifier", "text": "signature", "parent": 105, "children": [], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 44, "column": 57}}, {"id": 110, "type": "parameter_declaration", "text": "std::string* error_details", "parent": 85, "children": [111, 112, 114], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 55}}, {"id": 111, "type": "type_identifier", "text": "std", "parent": 110, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 32}}, {"id": 112, "type": "ERROR", "text": "::string", "parent": 110, "children": [113], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 40}}, {"id": 113, "type": "identifier", "text": "string", "parent": 112, "children": [], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 40}}, {"id": 114, "type": "pointer_declarator", "text": "* error_details", "parent": 110, "children": [115, 116], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 55}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 41}}, {"id": 116, "type": "identifier", "text": "error_details", "parent": 114, "children": [], "start_point": {"row": 45, "column": 42}, "end_point": {"row": 45, "column": 55}}, {"id": 117, "type": "parameter_declaration", "text": "scoped_ptr<ProofVerifyDetails>* details", "parent": 85, "children": [118, 119, 123], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 68}}, {"id": 118, "type": "type_identifier", "text": "scoped_ptr", "parent": 117, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 39}}, {"id": 119, "type": "ERROR", "text": "<ProofVerifyDetails>", "parent": 117, "children": [120, 121, 122], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 59}}, {"id": 120, "type": "<", "text": "<", "parent": 119, "children": [], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 40}}, {"id": 121, "type": "identifier", "text": "ProofVerifyDetails", "parent": 119, "children": [], "start_point": {"row": 46, "column": 40}, "end_point": {"row": 46, "column": 58}}, {"id": 122, "type": ">", "text": ">", "parent": 119, "children": [], "start_point": {"row": 46, "column": 58}, "end_point": {"row": 46, "column": 59}}, {"id": 123, "type": "pointer_declarator", "text": "* details", "parent": 117, "children": [124, 125], "start_point": {"row": 46, "column": 59}, "end_point": {"row": 46, "column": 68}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 46, "column": 59}, "end_point": {"row": 46, "column": 60}}, {"id": 125, "type": "identifier", "text": "details", "parent": 123, "children": [], "start_point": {"row": 46, "column": 61}, "end_point": {"row": 46, "column": 68}}, {"id": 126, "type": "parameter_declaration", "text": "ProofVerifierCallback* callback", "parent": 85, "children": [127, 128], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 60}}, {"id": 127, "type": "type_identifier", "text": "ProofVerifierCallback", "parent": 126, "children": [], "start_point": {"row": 47, "column": 29}, "end_point": {"row": 47, "column": 50}}, {"id": 128, "type": "pointer_declarator", "text": "* callback", "parent": 126, "children": [129, 130], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 60}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 51}}, {"id": 130, "type": "identifier", "text": "callback", "parent": 128, "children": [], "start_point": {"row": 47, "column": 52}, "end_point": {"row": 47, "column": 60}}, {"id": 131, "type": "identifier", "text": "OVERRIDE", "parent": 83, "children": [], "start_point": {"row": 47, "column": 62}, "end_point": {"row": 47, "column": 70}}, {"id": 132, "type": "ERROR", "text": ";\n\n private:\n enum State", "parent": 79, "children": [133, 134], "start_point": {"row": 47, "column": 70}, "end_point": {"row": 50, "column": 12}}, {"id": 133, "type": "enum", "text": "enum", "parent": 132, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 6}}, {"id": 134, "type": "identifier", "text": "State", "parent": 132, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 12}}, {"id": 135, "type": "comma_expression", "text": "STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE", "parent": 79, "children": [136, 137], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 53, "column": 30}}, {"id": 136, "type": "identifier", "text": "STATE_NONE", "parent": 135, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 14}}, {"id": 137, "type": "comma_expression", "text": "STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE", "parent": 135, "children": [138, 139], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 53, "column": 30}}, {"id": 138, "type": "identifier", "text": "STATE_VERIFY_CERT", "parent": 137, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 21}}, {"id": 139, "type": "identifier", "text": "STATE_VERIFY_CERT_COMPLETE", "parent": 137, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 30}}, {"id": 140, "type": "ERROR", "text": ",\n }", "parent": 79, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 54, "column": 3}}, {"id": 141, "type": "declaration", "text": "int DoLoop(int last_io_result);", "parent": 79, "children": [142, 143], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 33}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 5}}, {"id": 143, "type": "function_declarator", "text": "DoLoop(int last_io_result)", "parent": 141, "children": [144, 145], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 32}}, {"id": 144, "type": "identifier", "text": "DoLoop", "parent": 143, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 12}}, {"id": 145, "type": "parameter_list", "text": "(int last_io_result)", "parent": 143, "children": [146], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 32}}, {"id": 146, "type": "parameter_declaration", "text": "int last_io_result", "parent": 145, "children": [147, 148], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 31}}, {"id": 147, "type": "primitive_type", "text": "int", "parent": 146, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 16}}, {"id": 148, "type": "identifier", "text": "last_io_result", "parent": 146, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 31}}, {"id": 149, "type": "declaration", "text": "void OnIOComplete(int result);", "parent": 79, "children": [150, 151], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 32}}, {"id": 150, "type": "primitive_type", "text": "void", "parent": 149, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 6}}, {"id": 151, "type": "function_declarator", "text": "OnIOComplete(int result)", "parent": 149, "children": [152, 153], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 31}}, {"id": 152, "type": "identifier", "text": "OnIOComplete", "parent": 151, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 19}}, {"id": 153, "type": "parameter_list", "text": "(int result)", "parent": 151, "children": [154], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 31}}, {"id": 154, "type": "parameter_declaration", "text": "int result", "parent": 153, "children": [155, 156], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 30}}, {"id": 155, "type": "primitive_type", "text": "int", "parent": 154, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 23}}, {"id": 156, "type": "identifier", "text": "result", "parent": 154, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 30}}, {"id": 157, "type": "declaration", "text": "int DoVerifyCert(int result);", "parent": 79, "children": [158, 159], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 31}}, {"id": 158, "type": "primitive_type", "text": "int", "parent": 157, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 5}}, {"id": 159, "type": "function_declarator", "text": "DoVerifyCert(int result)", "parent": 157, "children": [160, 161], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 30}}, {"id": 160, "type": "identifier", "text": "DoVerifyCert", "parent": 159, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 18}}, {"id": 161, "type": "parameter_list", "text": "(int result)", "parent": 159, "children": [162], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 30}}, {"id": 162, "type": "parameter_declaration", "text": "int result", "parent": 161, "children": [163, 164], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 29}}, {"id": 163, "type": "primitive_type", "text": "int", "parent": 162, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 22}}, {"id": 164, "type": "identifier", "text": "result", "parent": 162, "children": [], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 29}}, {"id": 165, "type": "declaration", "text": "int DoVerifyCertComplete(int result);", "parent": 79, "children": [166, 167], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 39}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 165, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 5}}, {"id": 167, "type": "function_declarator", "text": "DoVerifyCertComplete(int result)", "parent": 165, "children": [168, 169], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 38}}, {"id": 168, "type": "identifier", "text": "DoVerifyCertComplete", "parent": 167, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 26}}, {"id": 169, "type": "parameter_list", "text": "(int result)", "parent": 167, "children": [170], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 38}}, {"id": 170, "type": "parameter_declaration", "text": "int result", "parent": 169, "children": [171, 172], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 37}}, {"id": 171, "type": "primitive_type", "text": "int", "parent": 170, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 30}}, {"id": 172, "type": "identifier", "text": "result", "parent": 170, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 37}}, {"id": 173, "type": "declaration", "text": "bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);", "parent": 79, "children": [174, 175], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 63, "column": 48}}, {"id": 174, "type": "primitive_type", "text": "bool", "parent": 173, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 175, "type": "function_declarator", "text": "VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert)", "parent": 173, "children": [176, 177], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 63, "column": 47}}, {"id": 176, "type": "identifier", "text": "VerifySignature", "parent": 175, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 22}}, {"id": 177, "type": "parameter_list", "text": "(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert)", "parent": 175, "children": [178, 183, 188], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 63, "column": 47}}, {"id": 178, "type": "parameter_declaration", "text": "const std::string& signed_data", "parent": 177, "children": [179, 180, 182], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 53}}, {"id": 179, "type": "type_identifier", "text": "std", "parent": 178, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 32}}, {"id": 180, "type": "ERROR", "text": "::string&", "parent": 178, "children": [181], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 41}}, {"id": 181, "type": "identifier", "text": "string", "parent": 180, "children": [], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 40}}, {"id": 182, "type": "identifier", "text": "signed_data", "parent": 178, "children": [], "start_point": {"row": 61, "column": 42}, "end_point": {"row": 61, "column": 53}}, {"id": 183, "type": "parameter_declaration", "text": "const std::string& signature", "parent": 177, "children": [184, 185, 187], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 51}}, {"id": 184, "type": "type_identifier", "text": "std", "parent": 183, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 32}}, {"id": 185, "type": "ERROR", "text": "::string&", "parent": 183, "children": [186], "start_point": {"row": 62, "column": 32}, "end_point": {"row": 62, "column": 41}}, {"id": 186, "type": "identifier", "text": "string", "parent": 185, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 40}}, {"id": 187, "type": "identifier", "text": "signature", "parent": 183, "children": [], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 51}}, {"id": 188, "type": "parameter_declaration", "text": "const std::string& cert", "parent": 177, "children": [189, 190, 192], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 46}}, {"id": 189, "type": "type_identifier", "text": "std", "parent": 188, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 32}}, {"id": 190, "type": "ERROR", "text": "::string&", "parent": 188, "children": [191], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 41}}, {"id": 191, "type": "identifier", "text": "string", "parent": 190, "children": [], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 40}}, {"id": 192, "type": "identifier", "text": "cert", "parent": 188, "children": [], "start_point": {"row": 63, "column": 42}, "end_point": {"row": 63, "column": 46}}, {"id": 193, "type": "declaration", "text": "CertVerifier* const cert_verifier_;", "parent": 79, "children": [194, 195], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 37}}, {"id": 194, "type": "type_identifier", "text": "CertVerifier", "parent": 193, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 14}}, {"id": 195, "type": "pointer_declarator", "text": "* const cert_verifier_", "parent": 193, "children": [196, 197], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 36}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 197, "type": "identifier", "text": "cert_verifier_", "parent": 195, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 36}}, {"id": 198, "type": "binary_expression", "text": "scoped_ptr<SingleRequestCertVerifier> verifier_", "parent": 79, "children": [199, 203, 204], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 49}}, {"id": 199, "type": "binary_expression", "text": "scoped_ptr<SingleRequestCertVerifier", "parent": 198, "children": [200, 201, 202], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 38}}, {"id": 200, "type": "identifier", "text": "scoped_ptr", "parent": 199, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 12}}, {"id": 201, "type": "<", "text": "<", "parent": 199, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 13}}, {"id": 202, "type": "identifier", "text": "SingleRequestCertVerifier", "parent": 199, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 38}}, {"id": 203, "type": ">", "text": ">", "parent": 198, "children": [], "start_point": {"row": 67, "column": 38}, "end_point": {"row": 67, "column": 39}}, {"id": 204, "type": "identifier", "text": "verifier_", "parent": 198, "children": [], "start_point": {"row": 67, "column": 40}, "end_point": {"row": 67, "column": 49}}, {"id": 205, "type": "labeled_statement", "text": "std::string hostname_;", "parent": 79, "children": [206, 207], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 24}}, {"id": 206, "type": "statement_identifier", "text": "std", "parent": 205, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 5}}, {"id": 207, "type": "declaration", "text": "string hostname_;", "parent": 205, "children": [208, 209], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 24}}, {"id": 208, "type": "type_identifier", "text": "string", "parent": 207, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 13}}, {"id": 209, "type": "identifier", "text": "hostname_", "parent": 207, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 23}}, {"id": 210, "type": "binary_expression", "text": "scoped_ptr<ProofVerifierCallback> callback_", "parent": 79, "children": [211, 215, 216], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 45}}, {"id": 211, "type": "binary_expression", "text": "scoped_ptr<ProofVerifierCallback", "parent": 210, "children": [212, 213, 214], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 34}}, {"id": 212, "type": "identifier", "text": "scoped_ptr", "parent": 211, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 12}}, {"id": 213, "type": "<", "text": "<", "parent": 211, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 13}}, {"id": 214, "type": "identifier", "text": "ProofVerifierCallback", "parent": 211, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 34}}, {"id": 215, "type": ">", "text": ">", "parent": 210, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 35}}, {"id": 216, "type": "identifier", "text": "callback_", "parent": 210, "children": [], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 45}}, {"id": 217, "type": "binary_expression", "text": "scoped_ptr<ProofVerifyDetailsChromium> verify_details_", "parent": 79, "children": [218, 222, 223], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 56}}, {"id": 218, "type": "binary_expression", "text": "scoped_ptr<ProofVerifyDetailsChromium", "parent": 217, "children": [219, 220, 221], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 39}}, {"id": 219, "type": "identifier", "text": "scoped_ptr", "parent": 218, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 12}}, {"id": 220, "type": "<", "text": "<", "parent": 218, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 13}}, {"id": 221, "type": "identifier", "text": "ProofVerifyDetailsChromium", "parent": 218, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 39}}, {"id": 222, "type": ">", "text": ">", "parent": 217, "children": [], "start_point": {"row": 73, "column": 39}, "end_point": {"row": 73, "column": 40}}, {"id": 223, "type": "identifier", "text": "verify_details_", "parent": 217, "children": [], "start_point": {"row": 73, "column": 41}, "end_point": {"row": 73, "column": 56}}, {"id": 224, "type": "labeled_statement", "text": "std::string error_details_;", "parent": 79, "children": [225, 226], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 29}}, {"id": 225, "type": "statement_identifier", "text": "std", "parent": 224, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 5}}, {"id": 226, "type": "declaration", "text": "string error_details_;", "parent": 224, "children": [227, 228], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 29}}, {"id": 227, "type": "type_identifier", "text": "string", "parent": 226, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 13}}, {"id": 228, "type": "identifier", "text": "error_details_", "parent": 226, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 28}}, {"id": 229, "type": "binary_expression", "text": "scoped_refptr<X509Certificate> cert_", "parent": 79, "children": [230, 234, 235], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 38}}, {"id": 230, "type": "binary_expression", "text": "scoped_refptr<X509Certificate", "parent": 229, "children": [231, 232, 233], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 31}}, {"id": 231, "type": "identifier", "text": "scoped_refptr", "parent": 230, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 15}}, {"id": 232, "type": "<", "text": "<", "parent": 230, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 16}}, {"id": 233, "type": "identifier", "text": "X509Certificate", "parent": 230, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 31}}, {"id": 234, "type": ">", "text": ">", "parent": 229, "children": [], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 32}}, {"id": 235, "type": "identifier", "text": "cert_", "parent": 229, "children": [], "start_point": {"row": 77, "column": 33}, "end_point": {"row": 77, "column": 38}}, {"id": 236, "type": "declaration", "text": "State next_state_;", "parent": 79, "children": [237, 238], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 20}}, {"id": 237, "type": "type_identifier", "text": "State", "parent": 236, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 7}}, {"id": 238, "type": "identifier", "text": "next_state_", "parent": 236, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 19}}, {"id": 239, "type": "declaration", "text": "BoundNetLog net_log_;", "parent": 79, "children": [240, 241], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 23}}, {"id": 240, "type": "type_identifier", "text": "BoundNetLog", "parent": 239, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 13}}, {"id": 241, "type": "identifier", "text": "net_log_", "parent": 239, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 22}}, {"id": 242, "type": "call_expression", "text": "DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium)", "parent": 79, "children": [243, 244], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 49}}, {"id": 243, "type": "identifier", "text": "DISALLOW_COPY_AND_ASSIGN", "parent": 242, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 26}}, {"id": 244, "type": "argument_list", "text": "(ProofVerifierChromium)", "parent": 242, "children": [245], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 49}}, {"id": 245, "type": "identifier", "text": "ProofVerifierChromium", "parent": 244, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 48}}, {"id": 246, "type": "preproc_call", "text": "#endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n", "parent": 0, "children": [247], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 89, "column": 0}}, {"id": 247, "type": "preproc_directive", "text": "#endif", "parent": 246, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 6}}]}, "node_categories": {"declarations": {"functions": [45, 76, 79, 83, 143, 151, 159, 167, 175], "variables": [41, 43, 52, 55, 72, 86, 91, 96, 105, 110, 117, 126, 141, 146, 149, 154, 157, 162, 165, 170, 173, 178, 183, 188, 193, 207, 226, 236, 239], "classes": [46, 47], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 34, 36, 37], "modules": [], "enums": [133]}, "statements": {"expressions": [62, 65, 69, 135, 137, 198, 199, 210, 211, 217, 218, 229, 230, 242], "assignments": [], "loops": [], "conditionals": [1, 2, 5, 39, 40, 42, 44, 48, 50, 53, 54, 56, 58, 60, 63, 66, 68, 70, 71, 73, 77, 80, 82, 84, 87, 89, 90, 92, 94, 95, 97, 99, 101, 102, 104, 106, 108, 109, 111, 113, 116, 118, 121, 125, 127, 130, 131, 134, 136, 138, 139, 144, 148, 152, 156, 160, 164, 168, 172, 176, 179, 181, 182, 184, 186, 187, 189, 191, 192, 194, 197, 200, 202, 204, 206, 208, 209, 212, 214, 216, 219, 221, 223, 225, 227, 228, 231, 233, 235, 237, 238, 240, 241, 243, 245], "returns": [], "exceptions": []}, "expressions": {"calls": [246], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 45, "universal_type": "function", "name": "ProofVerifyDetailsChromium", "text_snippet": "struct ProofVerifyDetailsChromium : public ProofVerifyDetails {\n public:\n CertVerifyResult cert_ver"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "ProofVerifierChromium()"}, {"node_id": 79, "universal_type": "function", "name": "DoLoop", "text_snippet": "virtual Status VerifyProof(const std::string& hostname,\n const std::stri"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "VerifyProof(const std::string& hostname,\n const std::string& server_conf"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "DoLoop(int last_io_result)"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "OnIOComplete(int result)"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "DoVerifyCert(int result)"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "DoVerifyCertComplete(int result)"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "VerifySignature(const std::string& signed_data,\n const std::string& signature,"}], "class_declarations": [{"node_id": 46, "universal_type": "class", "name": "ProofVerifyDetailsChromium", "text_snippet": "struct ProofVerifyDetailsChromium"}, {"node_id": 47, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"base/basictypes.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"base/compiler_specific.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"base/memory/scoped_ptr.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"net/base/completion_callback.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"net/base/net_export.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"net/base/net_log.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"net/cert/cert_verify_result.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"net/cert/x509_certificate.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"net/quic/crypto/proof_verifier.h\"\n"}, {"node_id": 37, "text": "#include"}]}, "original_source_code": "// Copyright 2013 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 NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n#define NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n\n#include <string>\n#include <vector>\n\n#include \"base/basictypes.h\"\n#include \"base/compiler_specific.h\"\n#include \"base/memory/scoped_ptr.h\"\n#include \"net/base/completion_callback.h\"\n#include \"net/base/net_export.h\"\n#include \"net/base/net_log.h\"\n#include \"net/cert/cert_verify_result.h\"\n#include \"net/cert/x509_certificate.h\"\n#include \"net/quic/crypto/proof_verifier.h\"\n\nnamespace net {\n\nclass CertVerifier;\nclass SingleRequestCertVerifier;\n\n// ProofVerifyDetailsChromium is the implementation-specific information that a\n// ProofVerifierChromium returns about a certificate verification.\nstruct ProofVerifyDetailsChromium : public ProofVerifyDetails {\n public:\n CertVerifyResult cert_verify_result;\n};\n\n// ProofVerifierChromium implements the QUIC ProofVerifier interface.\n// TODO(rtenneti): Add support for multiple requests for one ProofVerifier.\nclass NET_EXPORT_PRIVATE ProofVerifierChromium : public ProofVerifier {\n public:\n ProofVerifierChromium(CertVerifier* cert_verifier,\n const BoundNetLog& net_log);\n virtual ~ProofVerifierChromium();\n\n // ProofVerifier interface\n virtual Status VerifyProof(const std::string& hostname,\n const std::string& server_config,\n const std::vector<std::string>& certs,\n const std::string& signature,\n std::string* error_details,\n scoped_ptr<ProofVerifyDetails>* details,\n ProofVerifierCallback* callback) OVERRIDE;\n\n private:\n enum State {\n STATE_NONE,\n STATE_VERIFY_CERT,\n STATE_VERIFY_CERT_COMPLETE,\n };\n\n int DoLoop(int last_io_result);\n void OnIOComplete(int result);\n int DoVerifyCert(int result);\n int DoVerifyCertComplete(int result);\n\n bool VerifySignature(const std::string& signed_data,\n const std::string& signature,\n const std::string& cert);\n\n // |cert_verifier_| and |verifier_| are used for verifying certificates.\n CertVerifier* const cert_verifier_;\n scoped_ptr<SingleRequestCertVerifier> verifier_;\n\n // |hostname| specifies the hostname for which |certs| is a valid chain.\n std::string hostname_;\n\n scoped_ptr<ProofVerifierCallback> callback_;\n scoped_ptr<ProofVerifyDetailsChromium> verify_details_;\n std::string error_details_;\n\n // X509Certificate from a chain of DER encoded certificates.\n scoped_refptr<X509Certificate> cert_;\n\n State next_state_;\n\n BoundNetLog net_log_;\n\n DISALLOW_COPY_AND_ASSIGN(ProofVerifierChromium);\n};\n\n} // namespace net\n\n#endif // NET_QUIC_CRYPTO_PROOF_VERIFIER_CHROMIUM_H_\n"}
80,891
c
#ifndef SYSTEM_H #define SYSTEM_H /////////////////////////////// // PRE-PROCESSING DIRECTIVES // /////////////////////////////// #define WIN32_LEAN_AND_MEAN #include <Windows.h> #include "TextClass.h" #include "GamePlay.h" #include "Direct3D.h" #include "Menu.h" //move this ///////////// // GLOBALS // ///////////// const bool FULL_SCREEN = false; const bool VSYNC_ENABLED = true; const float SCREEN_DEPTH = 1000.0f; const float SCREEN_NEAR = 0.1f; class System { private: struct LevelInfo { wstring scene; wstring collision; wstring kristall; wstring winPlane; }; vector<LevelInfo> levels; size_t currentLevel; int screenWidth; int screenHeight; LPCWSTR applicationName; HINSTANCE hinstance; HWND hwnd; double countsPerSecond; __int64 counterStart; int frameCount; int fps; __int64 frameTimeOld; double frameTime; enum GameState { gMenu, gGamePlay, gPause, gDeath, gWin, gLoading, gHowToPlay } gameState; GameState prevState; Menu* menu; Menu* pauseMenu; Menu* deathScreen; Menu* howToPlay; Menu* winScreen; Menu* loadScreen; GamePlay* gamePlay; Direct3D* direct3D; TextClass* timer; float lastTime; public: System(); virtual ~System(); bool Initialize(); void Shutdown(); void Run(); LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM); private: bool Frame(double _time); void InitializeWindows(int&, int&); void ShutdownWindows(); void StartTimer(); double GetTime(); double GetFrameTime(); }; ///////////////////////// // FUNCTION PROTOTYPES // ///////////////////////// static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); ///////////// // GLOBALS // ///////////// static System* ApplicationHandle = 0; #endif
17.7
91
(translation_unit) "#ifndef SYSTEM_H\n#define SYSTEM_H\n\n///////////////////////////////\n// PRE-PROCESSING DIRECTIVES //\n///////////////////////////////\n#define WIN32_LEAN_AND_MEAN\n\n#include <Windows.h>\n\n#include "TextClass.h"\n#include "GamePlay.h"\n#include "Direct3D.h"\n#include "Menu.h"\n\n//move this\n/////////////\n// GLOBALS //\n/////////////\nconst bool FULL_SCREEN = false;\nconst bool VSYNC_ENABLED = true;\nconst float SCREEN_DEPTH = 1000.0f;\nconst float SCREEN_NEAR = 0.1f;\n\nclass System\n{\nprivate:\n struct LevelInfo\n {\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n };\n \n vector<LevelInfo> levels;\n size_t currentLevel;\n\n int screenWidth;\n int screenHeight;\n\n LPCWSTR applicationName;\n HINSTANCE hinstance;\n HWND hwnd;\n\n double countsPerSecond;\n __int64 counterStart;\n\n int frameCount;\n int fps;\n\n __int64 frameTimeOld;\n double frameTime;\n\n enum GameState\n {\n gMenu,\n gGamePlay,\n gPause,\n gDeath,\n gWin,\n gLoading,\n gHowToPlay\n }\n gameState;\n\n GameState prevState;\n\n Menu* menu;\n Menu* pauseMenu;\n Menu* deathScreen;\n Menu* howToPlay;\n Menu* winScreen;\n Menu* loadScreen;\n GamePlay* gamePlay;\n Direct3D* direct3D;\n TextClass* timer;\n\n float lastTime;\n\npublic:\n System();\n virtual ~System();\n\n bool Initialize();\n void Shutdown();\n void Run();\n\n LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);\n\nprivate:\n bool Frame(double _time);\n void InitializeWindows(int&, int&);\n void ShutdownWindows();\n\n void StartTimer();\n double GetTime();\n double GetFrameTime();\n\n\n};\n\n/////////////////////////\n// FUNCTION PROTOTYPES //\n/////////////////////////\nstatic LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);\n\n\n/////////////\n// GLOBALS //\n/////////////\nstatic System* ApplicationHandle = 0;\n\n#endif" (preproc_ifdef) "#ifndef SYSTEM_H\n#define SYSTEM_H\n\n///////////////////////////////\n// PRE-PROCESSING DIRECTIVES //\n///////////////////////////////\n#define WIN32_LEAN_AND_MEAN\n\n#include <Windows.h>\n\n#include "TextClass.h"\n#include "GamePlay.h"\n#include "Direct3D.h"\n#include "Menu.h"\n\n//move this\n/////////////\n// GLOBALS //\n/////////////\nconst bool FULL_SCREEN = false;\nconst bool VSYNC_ENABLED = true;\nconst float SCREEN_DEPTH = 1000.0f;\nconst float SCREEN_NEAR = 0.1f;\n\nclass System\n{\nprivate:\n struct LevelInfo\n {\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n };\n \n vector<LevelInfo> levels;\n size_t currentLevel;\n\n int screenWidth;\n int screenHeight;\n\n LPCWSTR applicationName;\n HINSTANCE hinstance;\n HWND hwnd;\n\n double countsPerSecond;\n __int64 counterStart;\n\n int frameCount;\n int fps;\n\n __int64 frameTimeOld;\n double frameTime;\n\n enum GameState\n {\n gMenu,\n gGamePlay,\n gPause,\n gDeath,\n gWin,\n gLoading,\n gHowToPlay\n }\n gameState;\n\n GameState prevState;\n\n Menu* menu;\n Menu* pauseMenu;\n Menu* deathScreen;\n Menu* howToPlay;\n Menu* winScreen;\n Menu* loadScreen;\n GamePlay* gamePlay;\n Direct3D* direct3D;\n TextClass* timer;\n\n float lastTime;\n\npublic:\n System();\n virtual ~System();\n\n bool Initialize();\n void Shutdown();\n void Run();\n\n LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);\n\nprivate:\n bool Frame(double _time);\n void InitializeWindows(int&, int&);\n void ShutdownWindows();\n\n void StartTimer();\n double GetTime();\n double GetFrameTime();\n\n\n};\n\n/////////////////////////\n// FUNCTION PROTOTYPES //\n/////////////////////////\nstatic LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);\n\n\n/////////////\n// GLOBALS //\n/////////////\nstatic System* ApplicationHandle = 0;\n\n#endif" (#ifndef) "#ifndef" (identifier) "SYSTEM_H" (preproc_def) "#define SYSTEM_H\n" (#define) "#define" (identifier) "SYSTEM_H" (comment) "///////////////////////////////" (comment) "// PRE-PROCESSING DIRECTIVES //" (comment) "///////////////////////////////" (preproc_def) "#define WIN32_LEAN_AND_MEAN\n" (#define) "#define" (identifier) "WIN32_LEAN_AND_MEAN" (preproc_include) "#include <Windows.h>\n" (#include) "#include" (system_lib_string) "<Windows.h>" (preproc_include) "#include "TextClass.h"\n" (#include) "#include" (string_literal) ""TextClass.h"" (") """ (string_content) "TextClass.h" (") """ (preproc_include) "#include "GamePlay.h"\n" (#include) "#include" (string_literal) ""GamePlay.h"" (") """ (string_content) "GamePlay.h" (") """ (preproc_include) "#include "Direct3D.h"\n" (#include) "#include" (string_literal) ""Direct3D.h"" (") """ (string_content) "Direct3D.h" (") """ (preproc_include) "#include "Menu.h"\n" (#include) "#include" (string_literal) ""Menu.h"" (") """ (string_content) "Menu.h" (") """ (comment) "//move this" (comment) "/////////////" (comment) "// GLOBALS //" (comment) "/////////////" (declaration) "const bool FULL_SCREEN = false;" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (init_declarator) "FULL_SCREEN = false" (identifier) "FULL_SCREEN" (=) "=" (false) "false" (;) ";" (declaration) "const bool VSYNC_ENABLED = true;" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (init_declarator) "VSYNC_ENABLED = true" (identifier) "VSYNC_ENABLED" (=) "=" (true) "true" (;) ";" (declaration) "const float SCREEN_DEPTH = 1000.0f;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "SCREEN_DEPTH = 1000.0f" (identifier) "SCREEN_DEPTH" (=) "=" (number_literal) "1000.0f" (;) ";" (declaration) "const float SCREEN_NEAR = 0.1f;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "SCREEN_NEAR = 0.1f" (identifier) "SCREEN_NEAR" (=) "=" (number_literal) "0.1f" (;) ";" (function_definition) "class System\n{\nprivate:\n struct LevelInfo\n {\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n };\n \n vector<LevelInfo> levels;\n size_t currentLevel;\n\n int screenWidth;\n int screenHeight;\n\n LPCWSTR applicationName;\n HINSTANCE hinstance;\n HWND hwnd;\n\n double countsPerSecond;\n __int64 counterStart;\n\n int frameCount;\n int fps;\n\n __int64 frameTimeOld;\n double frameTime;\n\n enum GameState\n {\n gMenu,\n gGamePlay,\n gPause,\n gDeath,\n gWin,\n gLoading,\n gHowToPlay\n }\n gameState;\n\n GameState prevState;\n\n Menu* menu;\n Menu* pauseMenu;\n Menu* deathScreen;\n Menu* howToPlay;\n Menu* winScreen;\n Menu* loadScreen;\n GamePlay* gamePlay;\n Direct3D* direct3D;\n TextClass* timer;\n\n float lastTime;\n\npublic:\n System();\n virtual ~System();\n\n bool Initialize();\n void Shutdown();\n void Run();\n\n LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);\n\nprivate:\n bool Frame(double _time);\n void InitializeWindows(int&, int&);\n void ShutdownWindows();\n\n void StartTimer();\n double GetTime();\n double GetFrameTime();\n\n\n}" (type_identifier) "class" (identifier) "System" (compound_statement) "{\nprivate:\n struct LevelInfo\n {\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n };\n \n vector<LevelInfo> levels;\n size_t currentLevel;\n\n int screenWidth;\n int screenHeight;\n\n LPCWSTR applicationName;\n HINSTANCE hinstance;\n HWND hwnd;\n\n double countsPerSecond;\n __int64 counterStart;\n\n int frameCount;\n int fps;\n\n __int64 frameTimeOld;\n double frameTime;\n\n enum GameState\n {\n gMenu,\n gGamePlay,\n gPause,\n gDeath,\n gWin,\n gLoading,\n gHowToPlay\n }\n gameState;\n\n GameState prevState;\n\n Menu* menu;\n Menu* pauseMenu;\n Menu* deathScreen;\n Menu* howToPlay;\n Menu* winScreen;\n Menu* loadScreen;\n GamePlay* gamePlay;\n Direct3D* direct3D;\n TextClass* timer;\n\n float lastTime;\n\npublic:\n System();\n virtual ~System();\n\n bool Initialize();\n void Shutdown();\n void Run();\n\n LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);\n\nprivate:\n bool Frame(double _time);\n void InitializeWindows(int&, int&);\n void ShutdownWindows();\n\n void StartTimer();\n double GetTime();\n double GetFrameTime();\n\n\n}" ({) "{" (labeled_statement) "private:\n struct LevelInfo\n {\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n };" (statement_identifier) "private" (:) ":" (declaration) "struct LevelInfo\n {\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n };" (struct_specifier) "struct LevelInfo\n {\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n }" (struct) "struct" (type_identifier) "LevelInfo" (field_declaration_list) "{\n wstring scene;\n wstring collision;\n wstring kristall;\n wstring winPlane;\n }" ({) "{" (field_declaration) "wstring scene;" (type_identifier) "wstring" (field_identifier) "scene" (;) ";" (field_declaration) "wstring collision;" (type_identifier) "wstring" (field_identifier) "collision" (;) ";" (field_declaration) "wstring kristall;" (type_identifier) "wstring" (field_identifier) "kristall" (;) ";" (field_declaration) "wstring winPlane;" (type_identifier) "wstring" (field_identifier) "winPlane" (;) ";" (}) "}" (identifier) "" (;) ";" (expression_statement) "vector<LevelInfo> levels;" (binary_expression) "vector<LevelInfo> levels" (binary_expression) "vector<LevelInfo" (identifier) "vector" (<) "<" (identifier) "LevelInfo" (>) ">" (identifier) "levels" (;) ";" (declaration) "size_t currentLevel;" (primitive_type) "size_t" (identifier) "currentLevel" (;) ";" (declaration) "int screenWidth;" (primitive_type) "int" (identifier) "screenWidth" (;) ";" (declaration) "int screenHeight;" (primitive_type) "int" (identifier) "screenHeight" (;) ";" (declaration) "LPCWSTR applicationName;" (type_identifier) "LPCWSTR" (identifier) "applicationName" (;) ";" (declaration) "HINSTANCE hinstance;" (type_identifier) "HINSTANCE" (identifier) "hinstance" (;) ";" (declaration) "HWND hwnd;" (type_identifier) "HWND" (identifier) "hwnd" (;) ";" (declaration) "double countsPerSecond;" (primitive_type) "double" (identifier) "countsPerSecond" (;) ";" (declaration) "__int64 counterStart;" (type_identifier) "__int64" (identifier) "counterStart" (;) ";" (declaration) "int frameCount;" (primitive_type) "int" (identifier) "frameCount" (;) ";" (declaration) "int fps;" (primitive_type) "int" (identifier) "fps" (;) ";" (declaration) "__int64 frameTimeOld;" (type_identifier) "__int64" (identifier) "frameTimeOld" (;) ";" (declaration) "double frameTime;" (primitive_type) "double" (identifier) "frameTime" (;) ";" (declaration) "enum GameState\n {\n gMenu,\n gGamePlay,\n gPause,\n gDeath,\n gWin,\n gLoading,\n gHowToPlay\n }\n gameState;" (enum_specifier) "enum GameState\n {\n gMenu,\n gGamePlay,\n gPause,\n gDeath,\n gWin,\n gLoading,\n gHowToPlay\n }" (enum) "enum" (type_identifier) "GameState" (enumerator_list) "{\n gMenu,\n gGamePlay,\n gPause,\n gDeath,\n gWin,\n gLoading,\n gHowToPlay\n }" ({) "{" (enumerator) "gMenu" (identifier) "gMenu" (,) "," (enumerator) "gGamePlay" (identifier) "gGamePlay" (,) "," (enumerator) "gPause" (identifier) "gPause" (,) "," (enumerator) "gDeath" (identifier) "gDeath" (,) "," (enumerator) "gWin" (identifier) "gWin" (,) "," (enumerator) "gLoading" (identifier) "gLoading" (,) "," (enumerator) "gHowToPlay" (identifier) "gHowToPlay" (}) "}" (identifier) "gameState" (;) ";" (declaration) "GameState prevState;" (type_identifier) "GameState" (identifier) "prevState" (;) ";" (declaration) "Menu* menu;" (type_identifier) "Menu" (pointer_declarator) "* menu" (*) "*" (identifier) "menu" (;) ";" (declaration) "Menu* pauseMenu;" (type_identifier) "Menu" (pointer_declarator) "* pauseMenu" (*) "*" (identifier) "pauseMenu" (;) ";" (declaration) "Menu* deathScreen;" (type_identifier) "Menu" (pointer_declarator) "* deathScreen" (*) "*" (identifier) "deathScreen" (;) ";" (declaration) "Menu* howToPlay;" (type_identifier) "Menu" (pointer_declarator) "* howToPlay" (*) "*" (identifier) "howToPlay" (;) ";" (declaration) "Menu* winScreen;" (type_identifier) "Menu" (pointer_declarator) "* winScreen" (*) "*" (identifier) "winScreen" (;) ";" (declaration) "Menu* loadScreen;" (type_identifier) "Menu" (pointer_declarator) "* loadScreen" (*) "*" (identifier) "loadScreen" (;) ";" (declaration) "GamePlay* gamePlay;" (type_identifier) "GamePlay" (pointer_declarator) "* gamePlay" (*) "*" (identifier) "gamePlay" (;) ";" (declaration) "Direct3D* direct3D;" (type_identifier) "Direct3D" (pointer_declarator) "* direct3D" (*) "*" (identifier) "direct3D" (;) ";" (declaration) "TextClass* timer;" (type_identifier) "TextClass" (pointer_declarator) "* timer" (*) "*" (identifier) "timer" (;) ";" (declaration) "float lastTime;" (primitive_type) "float" (identifier) "lastTime" (;) ";" (labeled_statement) "public:\n System();" (statement_identifier) "public" (:) ":" (expression_statement) "System();" (call_expression) "System()" (identifier) "System" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~System();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "System()" (identifier) "System" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool Initialize();" (primitive_type) "bool" (function_declarator) "Initialize()" (identifier) "Initialize" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void Shutdown();" (primitive_type) "void" (function_declarator) "Shutdown()" (identifier) "Shutdown" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void Run();" (primitive_type) "void" (function_declarator) "Run()" (identifier) "Run" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);" (type_identifier) "LRESULT" (ERROR) "CALLBACK" (identifier) "CALLBACK" (function_declarator) "MessageHandler(HWND, UINT, WPARAM, LPARAM)" (identifier) "MessageHandler" (parameter_list) "(HWND, UINT, WPARAM, LPARAM)" (() "(" (parameter_declaration) "HWND" (type_identifier) "HWND" (,) "," (parameter_declaration) "UINT" (type_identifier) "UINT" (,) "," (parameter_declaration) "WPARAM" (type_identifier) "WPARAM" (,) "," (parameter_declaration) "LPARAM" (type_identifier) "LPARAM" ()) ")" (;) ";" (labeled_statement) "private:\n bool Frame(double _time);" (statement_identifier) "private" (:) ":" (declaration) "bool Frame(double _time);" (primitive_type) "bool" (function_declarator) "Frame(double _time)" (identifier) "Frame" (parameter_list) "(double _time)" (() "(" (parameter_declaration) "double _time" (primitive_type) "double" (identifier) "_time" ()) ")" (;) ";" (declaration) "void InitializeWindows(int&, int&);" (primitive_type) "void" (function_declarator) "InitializeWindows(int&, int&)" (identifier) "InitializeWindows" (parameter_list) "(int&, int&)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (ERROR) "&" (&) "&" (,) "," (parameter_declaration) "int" (primitive_type) "int" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "void ShutdownWindows();" (primitive_type) "void" (function_declarator) "ShutdownWindows()" (identifier) "ShutdownWindows" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void StartTimer();" (primitive_type) "void" (function_declarator) "StartTimer()" (identifier) "StartTimer" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "double GetTime();" (primitive_type) "double" (function_declarator) "GetTime()" (identifier) "GetTime" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "double GetFrameTime();" (primitive_type) "double" (function_declarator) "GetFrameTime()" (identifier) "GetFrameTime" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "/////////////////////////" (comment) "// FUNCTION PROTOTYPES //" (comment) "/////////////////////////" (declaration) "static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);" (storage_class_specifier) "static" (static) "static" (type_identifier) "LRESULT" (ERROR) "CALLBACK" (identifier) "CALLBACK" (function_declarator) "WndProc(HWND, UINT, WPARAM, LPARAM)" (identifier) "WndProc" (parameter_list) "(HWND, UINT, WPARAM, LPARAM)" (() "(" (parameter_declaration) "HWND" (type_identifier) "HWND" (,) "," (parameter_declaration) "UINT" (type_identifier) "UINT" (,) "," (parameter_declaration) "WPARAM" (type_identifier) "WPARAM" (,) "," (parameter_declaration) "LPARAM" (type_identifier) "LPARAM" ()) ")" (;) ";" (comment) "/////////////" (comment) "// GLOBALS //" (comment) "/////////////" (declaration) "static System* ApplicationHandle = 0;" (storage_class_specifier) "static" (static) "static" (type_identifier) "System" (init_declarator) "* ApplicationHandle = 0" (pointer_declarator) "* ApplicationHandle" (*) "*" (identifier) "ApplicationHandle" (=) "=" (number_literal) "0" (;) ";" (#endif) "#endif"
433
5
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 17.7, "nodes": 285, "errors": 0, "source_hash": "061bcee2de0346ee951ba5b63b95ba5ae0b6246b35386a01bcc6947a0ffef1a5", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SYSTEM_H\n#define SYSTEM_H\n\n///////////////////////////////\n// PRE-PROCESSING DIRECTIVES //\n///////////////////////////////\n#define WIN32_LEAN_AND_MEAN\n\n#include <Windows.h>\n\n#include \"TextClass.h\"\n#include \"GamePlay.h\"\n#include \"Direct3D.h\"\n#include \"Menu.h\"\n\n//move this\n/////////////\n// GLOBALS //\n/////////////\nconst bool FULL_SCREEN = false;\nconst bool VSYNC_ENABLED = true;\nconst float SCREEN_DEPTH = 1000.0f;\nconst float SCREEN_NEAR = 0.1f;\n\nclass System\n{\nprivate:\n\tstruct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristall;\n\t\twstring winPlane;\n\t};\n\t\n\tvector<LevelInfo> levels;\n\tsize_t currentLevel;\n\n\tint screenWidth;\n\tint screenHeight;\n\n\tLPCWSTR applicationName;\n\tHINSTANCE hinstance;\n\tHWND hwnd;\n\n\tdouble countsPerSecond;\n\t__int64 counterStart;\n\n\tint frameCount;\n\tint fps;\n\n\t__int64 frameTimeOld;\n\tdouble frameTime;\n\n\tenum GameState\n\t{\n\t\tgMenu,\n\t\tgGamePlay,\n\t\tgPause,\n\t\tgDeath,\n\t\tgWin,\n\t\tgLoading,\n\t\tgHowToPlay\n\t}\n\tgameState;\n\n\tGameState prevState;\n\n\tMenu* menu;\n\tMenu* pauseMenu;\n\tMenu* deathScreen;\n\tMenu* howToPlay;\n\tMenu* winScreen;\n\tMenu* loadScreen;\n\tGamePlay* gamePlay;\n\tDirect3D* direct3D;\n\tTextClass* timer;\n\n\tfloat lastTime;\n\npublic:\n\tSystem();\n\tvirtual ~System();\n\n\tbool Initialize();\n\tvoid Shutdown();\n\tvoid Run();\n\n\tLRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);\n\nprivate:\n\tbool Frame(double _time);\n\tvoid InitializeWindows(int&, int&);\n\tvoid ShutdownWindows();\n\n\tvoid StartTimer();\n\tdouble GetTime();\n\tdouble GetFrameTime();\n\n\n};\n\n/////////////////////////\n// FUNCTION PROTOTYPES //\n/////////////////////////\nstatic LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);\n\n\n/////////////\n// GLOBALS //\n/////////////\nstatic System* ApplicationHandle = 0;\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 30, 36, 42, 48, 261, 276, 284], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 113, "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": "SYSTEM_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 16}}, {"id": 3, "type": "preproc_def", "text": "#define SYSTEM_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": "SYSTEM_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 16}}, {"id": 6, "type": "preproc_def", "text": "#define WIN32_LEAN_AND_MEAN\n", "parent": 0, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 8, "type": "identifier", "text": "WIN32_LEAN_AND_MEAN", "parent": 6, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 27}}, {"id": 9, "type": "preproc_include", "text": "#include <Windows.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<Windows.h>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"TextClass.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"TextClass.h\"", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 22}}, {"id": 15, "type": "preproc_include", "text": "#include \"GamePlay.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"GamePlay.h\"", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include \"Direct3D.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"Direct3D.h\"", "parent": 18, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 21}}, {"id": 21, "type": "preproc_include", "text": "#include \"Menu.h\"\n", "parent": 0, "children": [22, 23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"Menu.h\"", "parent": 21, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 17}}, {"id": 24, "type": "declaration", "text": "const bool FULL_SCREEN = false;", "parent": 0, "children": [25, 26], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 31}}, {"id": 25, "type": "primitive_type", "text": "bool", "parent": 24, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 10}}, {"id": 26, "type": "init_declarator", "text": "FULL_SCREEN = false", "parent": 24, "children": [27, 28, 29], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 30}}, {"id": 27, "type": "identifier", "text": "FULL_SCREEN", "parent": 26, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 22}}, {"id": 28, "type": "=", "text": "=", "parent": 26, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 29, "type": "false", "text": "false", "parent": 26, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 30}}, {"id": 30, "type": "declaration", "text": "const bool VSYNC_ENABLED = true;", "parent": 0, "children": [31, 32], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 32}}, {"id": 31, "type": "primitive_type", "text": "bool", "parent": 30, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 10}}, {"id": 32, "type": "init_declarator", "text": "VSYNC_ENABLED = true", "parent": 30, "children": [33, 34, 35], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 31}}, {"id": 33, "type": "identifier", "text": "VSYNC_ENABLED", "parent": 32, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 24}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 26}}, {"id": 35, "type": "true", "text": "true", "parent": 32, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 31}}, {"id": 36, "type": "declaration", "text": "const float SCREEN_DEPTH = 1000.0f;", "parent": 0, "children": [37, 38], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 35}}, {"id": 37, "type": "primitive_type", "text": "float", "parent": 36, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 11}}, {"id": 38, "type": "init_declarator", "text": "SCREEN_DEPTH = 1000.0f", "parent": 36, "children": [39, 40, 41], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 34}}, {"id": 39, "type": "identifier", "text": "SCREEN_DEPTH", "parent": 38, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 24}}, {"id": 40, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 26}}, {"id": 41, "type": "number_literal", "text": "1000.0f", "parent": 38, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 34}}, {"id": 42, "type": "declaration", "text": "const float SCREEN_NEAR = 0.1f;", "parent": 0, "children": [43, 44], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 31}}, {"id": 43, "type": "primitive_type", "text": "float", "parent": 42, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 11}}, {"id": 44, "type": "init_declarator", "text": "SCREEN_NEAR = 0.1f", "parent": 42, "children": [45, 46, 47], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 30}}, {"id": 45, "type": "identifier", "text": "SCREEN_NEAR", "parent": 44, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 23}}, {"id": 46, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 25}}, {"id": 47, "type": "number_literal", "text": "0.1f", "parent": 44, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 30}}, {"id": 48, "type": "function_definition", "text": "class System\n{\nprivate:\n\tstruct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristall;\n\t\twstring winPlane;\n\t};\n\t\n\tvector<LevelInfo> levels;\n\tsize_t currentLevel;\n\n\tint screenWidth;\n\tint screenHeight;\n\n\tLPCWSTR applicationName;\n\tHINSTANCE hinstance;\n\tHWND hwnd;\n\n\tdouble countsPerSecond;\n\t__int64 counterStart;\n\n\tint frameCount;\n\tint fps;\n\n\t__int64 frameTimeOld;\n\tdouble frameTime;\n\n\tenum GameState\n\t{\n\t\tgMenu,\n\t\tgGamePlay,\n\t\tgPause,\n\t\tgDeath,\n\t\tgWin,\n\t\tgLoading,\n\t\tgHowToPlay\n\t}\n\tgameState;\n\n\tGameState prevState;\n\n\tMenu* menu;\n\tMenu* pauseMenu;\n\tMenu* deathScreen;\n\tMenu* howToPlay;\n\tMenu* winScreen;\n\tMenu* loadScreen;\n\tGamePlay* gamePlay;\n\tDirect3D* direct3D;\n\tTextClass* timer;\n\n\tfloat lastTime;\n\npublic:\n\tSystem();\n\tvirtual ~System();\n\n\tbool Initialize();\n\tvoid Shutdown();\n\tvoid Run();\n\n\tLRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);\n\nprivate:\n\tbool Frame(double _time);\n\tvoid InitializeWindows(int&, int&);\n\tvoid ShutdownWindows();\n\n\tvoid StartTimer();\n\tdouble GetTime();\n\tdouble GetFrameTime();\n\n\n}", "parent": 0, "children": [49], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 49, "type": "identifier", "text": "System", "parent": 48, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 12}}, {"id": 50, "type": "labeled_statement", "text": "private:\n\tstruct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristall;\n\t\twstring winPlane;\n\t};", "parent": 48, "children": [51], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 51, "type": "declaration", "text": "struct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristall;\n\t\twstring winPlane;\n\t};", "parent": 50, "children": [52, 67], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 33, "column": 3}}, {"id": 52, "type": "struct_specifier", "text": "struct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristall;\n\t\twstring winPlane;\n\t}", "parent": 51, "children": [53, 54], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 33, "column": 2}}, {"id": 53, "type": "struct", "text": "struct", "parent": 52, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 7}}, {"id": 54, "type": "type_identifier", "text": "LevelInfo", "parent": 52, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 17}}, {"id": 55, "type": "field_declaration", "text": "wstring scene;", "parent": 52, "children": [56, 57], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 16}}, {"id": 56, "type": "type_identifier", "text": "wstring", "parent": 55, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 9}}, {"id": 57, "type": "field_identifier", "text": "scene", "parent": 55, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 15}}, {"id": 58, "type": "field_declaration", "text": "wstring collision;", "parent": 52, "children": [59, 60], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 20}}, {"id": 59, "type": "type_identifier", "text": "wstring", "parent": 58, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 60, "type": "field_identifier", "text": "collision", "parent": 58, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 19}}, {"id": 61, "type": "field_declaration", "text": "wstring kristall;", "parent": 52, "children": [62, 63], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 19}}, {"id": 62, "type": "type_identifier", "text": "wstring", "parent": 61, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 63, "type": "field_identifier", "text": "kristall", "parent": 61, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 18}}, {"id": 64, "type": "field_declaration", "text": "wstring winPlane;", "parent": 52, "children": [65, 66], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 19}}, {"id": 65, "type": "type_identifier", "text": "wstring", "parent": 64, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 9}}, {"id": 66, "type": "field_identifier", "text": "winPlane", "parent": 64, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 18}}, {"id": 67, "type": "identifier", "text": "", "parent": 51, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 2}}, {"id": 68, "type": "binary_expression", "text": "vector<LevelInfo> levels", "parent": 48, "children": [69, 73, 74], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 25}}, {"id": 69, "type": "binary_expression", "text": "vector<LevelInfo", "parent": 68, "children": [70, 71, 72], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 17}}, {"id": 70, "type": "identifier", "text": "vector", "parent": 69, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 7}}, {"id": 71, "type": "<", "text": "<", "parent": 69, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 8}}, {"id": 72, "type": "identifier", "text": "LevelInfo", "parent": 69, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 17}}, {"id": 73, "type": ">", "text": ">", "parent": 68, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 18}}, {"id": 74, "type": "identifier", "text": "levels", "parent": 68, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 25}}, {"id": 75, "type": "declaration", "text": "size_t currentLevel;", "parent": 48, "children": [76, 77], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 21}}, {"id": 76, "type": "primitive_type", "text": "size_t", "parent": 75, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 7}}, {"id": 77, "type": "identifier", "text": "currentLevel", "parent": 75, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 20}}, {"id": 78, "type": "declaration", "text": "int screenWidth;", "parent": 48, "children": [79, 80], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 17}}, {"id": 79, "type": "primitive_type", "text": "int", "parent": 78, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 4}}, {"id": 80, "type": "identifier", "text": "screenWidth", "parent": 78, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 16}}, {"id": 81, "type": "declaration", "text": "int screenHeight;", "parent": 48, "children": [82, 83], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 18}}, {"id": 82, "type": "primitive_type", "text": "int", "parent": 81, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}, {"id": 83, "type": "identifier", "text": "screenHeight", "parent": 81, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 17}}, {"id": 84, "type": "declaration", "text": "LPCWSTR applicationName;", "parent": 48, "children": [85, 86], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 25}}, {"id": 85, "type": "type_identifier", "text": "LPCWSTR", "parent": 84, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 8}}, {"id": 86, "type": "identifier", "text": "applicationName", "parent": 84, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 24}}, {"id": 87, "type": "declaration", "text": "HINSTANCE hinstance;", "parent": 48, "children": [88, 89], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 21}}, {"id": 88, "type": "type_identifier", "text": "HINSTANCE", "parent": 87, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 10}}, {"id": 89, "type": "identifier", "text": "hinstance", "parent": 87, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 20}}, {"id": 90, "type": "declaration", "text": "HWND hwnd;", "parent": 48, "children": [91, 92], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 11}}, {"id": 91, "type": "type_identifier", "text": "HWND", "parent": 90, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 92, "type": "identifier", "text": "hwnd", "parent": 90, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 10}}, {"id": 93, "type": "declaration", "text": "double countsPerSecond;", "parent": 48, "children": [94, 95], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 24}}, {"id": 94, "type": "primitive_type", "text": "double", "parent": 93, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 7}}, {"id": 95, "type": "identifier", "text": "countsPerSecond", "parent": 93, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 23}}, {"id": 96, "type": "declaration", "text": "__int64 counterStart;", "parent": 48, "children": [97, 98], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 22}}, {"id": 97, "type": "type_identifier", "text": "__int64", "parent": 96, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 8}}, {"id": 98, "type": "identifier", "text": "counterStart", "parent": 96, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 21}}, {"id": 99, "type": "declaration", "text": "int frameCount;", "parent": 48, "children": [100, 101], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 16}}, {"id": 100, "type": "primitive_type", "text": "int", "parent": 99, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 4}}, {"id": 101, "type": "identifier", "text": "frameCount", "parent": 99, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 15}}, {"id": 102, "type": "declaration", "text": "int fps;", "parent": 48, "children": [103, 104], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 9}}, {"id": 103, "type": "primitive_type", "text": "int", "parent": 102, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 4}}, {"id": 104, "type": "identifier", "text": "fps", "parent": 102, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 8}}, {"id": 105, "type": "declaration", "text": "__int64 frameTimeOld;", "parent": 48, "children": [106, 107], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 22}}, {"id": 106, "type": "type_identifier", "text": "__int64", "parent": 105, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 8}}, {"id": 107, "type": "identifier", "text": "frameTimeOld", "parent": 105, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 21}}, {"id": 108, "type": "declaration", "text": "double frameTime;", "parent": 48, "children": [109, 110], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 18}}, {"id": 109, "type": "primitive_type", "text": "double", "parent": 108, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 7}}, {"id": 110, "type": "identifier", "text": "frameTime", "parent": 108, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 17}}, {"id": 111, "type": "declaration", "text": "enum GameState\n\t{\n\t\tgMenu,\n\t\tgGamePlay,\n\t\tgPause,\n\t\tgDeath,\n\t\tgWin,\n\t\tgLoading,\n\t\tgHowToPlay\n\t}\n\tgameState;", "parent": 48, "children": [112, 130], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 64, "column": 11}}, {"id": 112, "type": "enum_specifier", "text": "enum GameState\n\t{\n\t\tgMenu,\n\t\tgGamePlay,\n\t\tgPause,\n\t\tgDeath,\n\t\tgWin,\n\t\tgLoading,\n\t\tgHowToPlay\n\t}", "parent": 111, "children": [113, 114, 115], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 63, "column": 2}}, {"id": 113, "type": "enum", "text": "enum", "parent": 112, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 5}}, {"id": 114, "type": "type_identifier", "text": "GameState", "parent": 112, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 15}}, {"id": 115, "type": "enumerator_list", "text": "{\n\t\tgMenu,\n\t\tgGamePlay,\n\t\tgPause,\n\t\tgDeath,\n\t\tgWin,\n\t\tgLoading,\n\t\tgHowToPlay\n\t}", "parent": 112, "children": [116, 118, 120, 122, 124, 126, 128], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 63, "column": 2}}, {"id": 116, "type": "enumerator", "text": "gMenu", "parent": 115, "children": [117], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 7}}, {"id": 117, "type": "identifier", "text": "gMenu", "parent": 116, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 7}}, {"id": 118, "type": "enumerator", "text": "gGamePlay", "parent": 115, "children": [119], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 11}}, {"id": 119, "type": "identifier", "text": "gGamePlay", "parent": 118, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 11}}, {"id": 120, "type": "enumerator", "text": "gPause", "parent": 115, "children": [121], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 8}}, {"id": 121, "type": "identifier", "text": "gPause", "parent": 120, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 8}}, {"id": 122, "type": "enumerator", "text": "gDeath", "parent": 115, "children": [123], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 8}}, {"id": 123, "type": "identifier", "text": "gDeath", "parent": 122, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 8}}, {"id": 124, "type": "enumerator", "text": "gWin", "parent": 115, "children": [125], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 6}}, {"id": 125, "type": "identifier", "text": "gWin", "parent": 124, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 6}}, {"id": 126, "type": "enumerator", "text": "gLoading", "parent": 115, "children": [127], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 10}}, {"id": 127, "type": "identifier", "text": "gLoading", "parent": 126, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 10}}, {"id": 128, "type": "enumerator", "text": "gHowToPlay", "parent": 115, "children": [129], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 12}}, {"id": 129, "type": "identifier", "text": "gHowToPlay", "parent": 128, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 12}}, {"id": 130, "type": "identifier", "text": "gameState", "parent": 111, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 10}}, {"id": 131, "type": "declaration", "text": "GameState prevState;", "parent": 48, "children": [132, 133], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 21}}, {"id": 132, "type": "type_identifier", "text": "GameState", "parent": 131, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 10}}, {"id": 133, "type": "identifier", "text": "prevState", "parent": 131, "children": [], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 20}}, {"id": 134, "type": "declaration", "text": "Menu* menu;", "parent": 48, "children": [135, 136], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 12}}, {"id": 135, "type": "type_identifier", "text": "Menu", "parent": 134, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 5}}, {"id": 136, "type": "pointer_declarator", "text": "* menu", "parent": 134, "children": [137, 138], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 11}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 6}}, {"id": 138, "type": "identifier", "text": "menu", "parent": 136, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 11}}, {"id": 139, "type": "declaration", "text": "Menu* pauseMenu;", "parent": 48, "children": [140, 141], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 17}}, {"id": 140, "type": "type_identifier", "text": "Menu", "parent": 139, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 5}}, {"id": 141, "type": "pointer_declarator", "text": "* pauseMenu", "parent": 139, "children": [142, 143], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 16}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 6}}, {"id": 143, "type": "identifier", "text": "pauseMenu", "parent": 141, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 16}}, {"id": 144, "type": "declaration", "text": "Menu* deathScreen;", "parent": 48, "children": [145, 146], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 19}}, {"id": 145, "type": "type_identifier", "text": "Menu", "parent": 144, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 5}}, {"id": 146, "type": "pointer_declarator", "text": "* deathScreen", "parent": 144, "children": [147, 148], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 18}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 6}}, {"id": 148, "type": "identifier", "text": "deathScreen", "parent": 146, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 18}}, {"id": 149, "type": "declaration", "text": "Menu* howToPlay;", "parent": 48, "children": [150, 151], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 17}}, {"id": 150, "type": "type_identifier", "text": "Menu", "parent": 149, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 5}}, {"id": 151, "type": "pointer_declarator", "text": "* howToPlay", "parent": 149, "children": [152, 153], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 16}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 6}}, {"id": 153, "type": "identifier", "text": "howToPlay", "parent": 151, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 16}}, {"id": 154, "type": "declaration", "text": "Menu* winScreen;", "parent": 48, "children": [155, 156], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 17}}, {"id": 155, "type": "type_identifier", "text": "Menu", "parent": 154, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 156, "type": "pointer_declarator", "text": "* winScreen", "parent": 154, "children": [157, 158], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 16}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 6}}, {"id": 158, "type": "identifier", "text": "winScreen", "parent": 156, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 16}}, {"id": 159, "type": "declaration", "text": "Menu* loadScreen;", "parent": 48, "children": [160, 161], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 18}}, {"id": 160, "type": "type_identifier", "text": "Menu", "parent": 159, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 5}}, {"id": 161, "type": "pointer_declarator", "text": "* loadScreen", "parent": 159, "children": [162, 163], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 17}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 6}}, {"id": 163, "type": "identifier", "text": "loadScreen", "parent": 161, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 17}}, {"id": 164, "type": "declaration", "text": "GamePlay* gamePlay;", "parent": 48, "children": [165, 166], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 20}}, {"id": 165, "type": "type_identifier", "text": "GamePlay", "parent": 164, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 9}}, {"id": 166, "type": "pointer_declarator", "text": "* gamePlay", "parent": 164, "children": [167, 168], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 19}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 10}}, {"id": 168, "type": "identifier", "text": "gamePlay", "parent": 166, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 19}}, {"id": 169, "type": "declaration", "text": "Direct3D* direct3D;", "parent": 48, "children": [170, 171], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 20}}, {"id": 170, "type": "type_identifier", "text": "Direct3D", "parent": 169, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 9}}, {"id": 171, "type": "pointer_declarator", "text": "* direct3D", "parent": 169, "children": [172, 173], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 19}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 10}}, {"id": 173, "type": "identifier", "text": "direct3D", "parent": 171, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 19}}, {"id": 174, "type": "declaration", "text": "TextClass* timer;", "parent": 48, "children": [175, 176], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 18}}, {"id": 175, "type": "type_identifier", "text": "TextClass", "parent": 174, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 10}}, {"id": 176, "type": "pointer_declarator", "text": "* timer", "parent": 174, "children": [177, 178], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 17}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 11}}, {"id": 178, "type": "identifier", "text": "timer", "parent": 176, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 17}}, {"id": 179, "type": "declaration", "text": "float lastTime;", "parent": 48, "children": [180, 181], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 16}}, {"id": 180, "type": "primitive_type", "text": "float", "parent": 179, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 6}}, {"id": 181, "type": "identifier", "text": "lastTime", "parent": 179, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 15}}, {"id": 182, "type": "labeled_statement", "text": "public:\n\tSystem();", "parent": 48, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 81, "column": 10}}, {"id": 183, "type": "call_expression", "text": "System()", "parent": 182, "children": [184, 185], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 9}}, {"id": 184, "type": "identifier", "text": "System", "parent": 183, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 7}}, {"id": 185, "type": "argument_list", "text": "()", "parent": 183, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 9}}, {"id": 186, "type": "declaration", "text": "virtual ~System();", "parent": 48, "children": [187, 188, 190], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 19}}, {"id": 187, "type": "type_identifier", "text": "virtual", "parent": 186, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 8}}, {"id": 188, "type": "ERROR", "text": "~", "parent": 186, "children": [189], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 10}}, {"id": 189, "type": "~", "text": "~", "parent": 188, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 10}}, {"id": 190, "type": "function_declarator", "text": "System()", "parent": 186, "children": [191, 192], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 18}}, {"id": 191, "type": "identifier", "text": "System", "parent": 190, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 16}}, {"id": 192, "type": "parameter_list", "text": "()", "parent": 190, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 18}}, {"id": 193, "type": "declaration", "text": "bool Initialize();", "parent": 48, "children": [194, 195], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 19}}, {"id": 194, "type": "primitive_type", "text": "bool", "parent": 193, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 5}}, {"id": 195, "type": "function_declarator", "text": "Initialize()", "parent": 193, "children": [196, 197], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 18}}, {"id": 196, "type": "identifier", "text": "Initialize", "parent": 195, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 16}}, {"id": 197, "type": "parameter_list", "text": "()", "parent": 195, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 18}}, {"id": 198, "type": "declaration", "text": "void Shutdown();", "parent": 48, "children": [199, 200], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 17}}, {"id": 199, "type": "primitive_type", "text": "void", "parent": 198, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 5}}, {"id": 200, "type": "function_declarator", "text": "Shutdown()", "parent": 198, "children": [201, 202], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 16}}, {"id": 201, "type": "identifier", "text": "Shutdown", "parent": 200, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 14}}, {"id": 202, "type": "parameter_list", "text": "()", "parent": 200, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 16}}, {"id": 203, "type": "declaration", "text": "void Run();", "parent": 48, "children": [204, 205], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 12}}, {"id": 204, "type": "primitive_type", "text": "void", "parent": 203, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 205, "type": "function_declarator", "text": "Run()", "parent": 203, "children": [206, 207], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 11}}, {"id": 206, "type": "identifier", "text": "Run", "parent": 205, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 9}}, {"id": 207, "type": "parameter_list", "text": "()", "parent": 205, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 11}}, {"id": 208, "type": "declaration", "text": "LRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);", "parent": 48, "children": [209, 210, 212], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 61}}, {"id": 209, "type": "type_identifier", "text": "LRESULT", "parent": 208, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 8}}, {"id": 210, "type": "ERROR", "text": "CALLBACK", "parent": 208, "children": [211], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 17}}, {"id": 211, "type": "identifier", "text": "CALLBACK", "parent": 210, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 17}}, {"id": 212, "type": "function_declarator", "text": "MessageHandler(HWND, UINT, WPARAM, LPARAM)", "parent": 208, "children": [213, 214], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 60}}, {"id": 213, "type": "identifier", "text": "MessageHandler", "parent": 212, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 32}}, {"id": 214, "type": "parameter_list", "text": "(HWND, UINT, WPARAM, LPARAM)", "parent": 212, "children": [215, 217, 219, 221], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 60}}, {"id": 215, "type": "parameter_declaration", "text": "HWND", "parent": 214, "children": [216], "start_point": {"row": 88, "column": 33}, "end_point": {"row": 88, "column": 37}}, {"id": 216, "type": "type_identifier", "text": "HWND", "parent": 215, "children": [], "start_point": {"row": 88, "column": 33}, "end_point": {"row": 88, "column": 37}}, {"id": 217, "type": "parameter_declaration", "text": "UINT", "parent": 214, "children": [218], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 43}}, {"id": 218, "type": "type_identifier", "text": "UINT", "parent": 217, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 43}}, {"id": 219, "type": "parameter_declaration", "text": "WPARAM", "parent": 214, "children": [220], "start_point": {"row": 88, "column": 45}, "end_point": {"row": 88, "column": 51}}, {"id": 220, "type": "type_identifier", "text": "WPARAM", "parent": 219, "children": [], "start_point": {"row": 88, "column": 45}, "end_point": {"row": 88, "column": 51}}, {"id": 221, "type": "parameter_declaration", "text": "LPARAM", "parent": 214, "children": [222], "start_point": {"row": 88, "column": 53}, "end_point": {"row": 88, "column": 59}}, {"id": 222, "type": "type_identifier", "text": "LPARAM", "parent": 221, "children": [], "start_point": {"row": 88, "column": 53}, "end_point": {"row": 88, "column": 59}}, {"id": 223, "type": "labeled_statement", "text": "private:\n\tbool Frame(double _time);", "parent": 48, "children": [224], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 91, "column": 26}}, {"id": 224, "type": "declaration", "text": "bool Frame(double _time);", "parent": 223, "children": [225, 226], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 26}}, {"id": 225, "type": "primitive_type", "text": "bool", "parent": 224, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 5}}, {"id": 226, "type": "function_declarator", "text": "Frame(double _time)", "parent": 224, "children": [227, 228], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 25}}, {"id": 227, "type": "identifier", "text": "Frame", "parent": 226, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 11}}, {"id": 228, "type": "parameter_list", "text": "(double _time)", "parent": 226, "children": [229], "start_point": {"row": 91, "column": 11}, "end_point": {"row": 91, "column": 25}}, {"id": 229, "type": "parameter_declaration", "text": "double _time", "parent": 228, "children": [230, 231], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 24}}, {"id": 230, "type": "primitive_type", "text": "double", "parent": 229, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 18}}, {"id": 231, "type": "identifier", "text": "_time", "parent": 229, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 24}}, {"id": 232, "type": "declaration", "text": "void InitializeWindows(int&, int&);", "parent": 48, "children": [233, 234], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 36}}, {"id": 233, "type": "primitive_type", "text": "void", "parent": 232, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 5}}, {"id": 234, "type": "function_declarator", "text": "InitializeWindows(int&, int&)", "parent": 232, "children": [235, 236], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 35}}, {"id": 235, "type": "identifier", "text": "InitializeWindows", "parent": 234, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 23}}, {"id": 236, "type": "parameter_list", "text": "(int&, int&)", "parent": 234, "children": [237, 239], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 35}}, {"id": 237, "type": "parameter_declaration", "text": "int", "parent": 236, "children": [238], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 27}}, {"id": 238, "type": "primitive_type", "text": "int", "parent": 237, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 27}}, {"id": 239, "type": "parameter_declaration", "text": "int", "parent": 236, "children": [240], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 33}}, {"id": 240, "type": "primitive_type", "text": "int", "parent": 239, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 33}}, {"id": 241, "type": "declaration", "text": "void ShutdownWindows();", "parent": 48, "children": [242, 243], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 24}}, {"id": 242, "type": "primitive_type", "text": "void", "parent": 241, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 5}}, {"id": 243, "type": "function_declarator", "text": "ShutdownWindows()", "parent": 241, "children": [244, 245], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 23}}, {"id": 244, "type": "identifier", "text": "ShutdownWindows", "parent": 243, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 21}}, {"id": 245, "type": "parameter_list", "text": "()", "parent": 243, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 23}}, {"id": 246, "type": "declaration", "text": "void StartTimer();", "parent": 48, "children": [247, 248], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 19}}, {"id": 247, "type": "primitive_type", "text": "void", "parent": 246, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 5}}, {"id": 248, "type": "function_declarator", "text": "StartTimer()", "parent": 246, "children": [249, 250], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 18}}, {"id": 249, "type": "identifier", "text": "StartTimer", "parent": 248, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 16}}, {"id": 250, "type": "parameter_list", "text": "()", "parent": 248, "children": [], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 18}}, {"id": 251, "type": "declaration", "text": "double GetTime();", "parent": 48, "children": [252, 253], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 18}}, {"id": 252, "type": "primitive_type", "text": "double", "parent": 251, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 7}}, {"id": 253, "type": "function_declarator", "text": "GetTime()", "parent": 251, "children": [254, 255], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 17}}, {"id": 254, "type": "identifier", "text": "GetTime", "parent": 253, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 15}}, {"id": 255, "type": "parameter_list", "text": "()", "parent": 253, "children": [], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 17}}, {"id": 256, "type": "declaration", "text": "double GetFrameTime();", "parent": 48, "children": [257, 258], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 23}}, {"id": 257, "type": "primitive_type", "text": "double", "parent": 256, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 7}}, {"id": 258, "type": "function_declarator", "text": "GetFrameTime()", "parent": 256, "children": [259, 260], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 22}}, {"id": 259, "type": "identifier", "text": "GetFrameTime", "parent": 258, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 20}}, {"id": 260, "type": "parameter_list", "text": "()", "parent": 258, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 22}}, {"id": 261, "type": "declaration", "text": "static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);", "parent": 0, "children": [262, 263, 265], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 60}}, {"id": 262, "type": "type_identifier", "text": "LRESULT", "parent": 261, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 14}}, {"id": 263, "type": "ERROR", "text": "CALLBACK", "parent": 261, "children": [264], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 23}}, {"id": 264, "type": "identifier", "text": "CALLBACK", "parent": 263, "children": [], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 23}}, {"id": 265, "type": "function_declarator", "text": "WndProc(HWND, UINT, WPARAM, LPARAM)", "parent": 261, "children": [266, 267], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 59}}, {"id": 266, "type": "identifier", "text": "WndProc", "parent": 265, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 31}}, {"id": 267, "type": "parameter_list", "text": "(HWND, UINT, WPARAM, LPARAM)", "parent": 265, "children": [268, 270, 272, 274], "start_point": {"row": 105, "column": 31}, "end_point": {"row": 105, "column": 59}}, {"id": 268, "type": "parameter_declaration", "text": "HWND", "parent": 267, "children": [269], "start_point": {"row": 105, "column": 32}, "end_point": {"row": 105, "column": 36}}, {"id": 269, "type": "type_identifier", "text": "HWND", "parent": 268, "children": [], "start_point": {"row": 105, "column": 32}, "end_point": {"row": 105, "column": 36}}, {"id": 270, "type": "parameter_declaration", "text": "UINT", "parent": 267, "children": [271], "start_point": {"row": 105, "column": 38}, "end_point": {"row": 105, "column": 42}}, {"id": 271, "type": "type_identifier", "text": "UINT", "parent": 270, "children": [], "start_point": {"row": 105, "column": 38}, "end_point": {"row": 105, "column": 42}}, {"id": 272, "type": "parameter_declaration", "text": "WPARAM", "parent": 267, "children": [273], "start_point": {"row": 105, "column": 44}, "end_point": {"row": 105, "column": 50}}, {"id": 273, "type": "type_identifier", "text": "WPARAM", "parent": 272, "children": [], "start_point": {"row": 105, "column": 44}, "end_point": {"row": 105, "column": 50}}, {"id": 274, "type": "parameter_declaration", "text": "LPARAM", "parent": 267, "children": [275], "start_point": {"row": 105, "column": 52}, "end_point": {"row": 105, "column": 58}}, {"id": 275, "type": "type_identifier", "text": "LPARAM", "parent": 274, "children": [], "start_point": {"row": 105, "column": 52}, "end_point": {"row": 105, "column": 58}}, {"id": 276, "type": "declaration", "text": "static System* ApplicationHandle = 0;", "parent": 0, "children": [277, 278], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 37}}, {"id": 277, "type": "type_identifier", "text": "System", "parent": 276, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 13}}, {"id": 278, "type": "init_declarator", "text": "* ApplicationHandle = 0", "parent": 276, "children": [279, 282, 283], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 36}}, {"id": 279, "type": "pointer_declarator", "text": "* ApplicationHandle", "parent": 278, "children": [280, 281], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 32}}, {"id": 280, "type": "*", "text": "*", "parent": 279, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 14}}, {"id": 281, "type": "identifier", "text": "ApplicationHandle", "parent": 279, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 32}}, {"id": 282, "type": "=", "text": "=", "parent": 278, "children": [], "start_point": {"row": 111, "column": 33}, "end_point": {"row": 111, "column": 34}}, {"id": 283, "type": "number_literal", "text": "0", "parent": 278, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 36}}, {"id": 284, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 6}}]}, "node_categories": {"declarations": {"functions": [48, 190, 195, 200, 205, 212, 226, 234, 243, 248, 253, 258, 265], "variables": [24, 30, 36, 42, 51, 55, 58, 61, 64, 75, 78, 81, 84, 87, 90, 93, 96, 99, 102, 105, 108, 111, 131, 134, 139, 144, 149, 154, 159, 164, 169, 174, 179, 186, 193, 198, 203, 208, 215, 217, 219, 221, 224, 229, 232, 237, 239, 241, 246, 251, 256, 261, 268, 270, 272, 274, 276], "classes": [52, 53], "imports": [9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": [112, 113, 115, 116, 118, 120, 122, 124, 126, 128]}, "statements": {"expressions": [68, 69, 183], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 27, 33, 39, 45, 49, 54, 56, 57, 59, 60, 62, 63, 65, 66, 67, 70, 72, 74, 77, 80, 83, 85, 86, 88, 89, 91, 92, 95, 97, 98, 101, 104, 106, 107, 110, 114, 117, 119, 121, 123, 125, 127, 129, 130, 132, 133, 135, 138, 140, 143, 145, 148, 150, 153, 155, 158, 160, 163, 165, 168, 170, 173, 175, 178, 181, 184, 187, 191, 196, 201, 206, 209, 211, 213, 216, 218, 220, 222, 227, 231, 235, 244, 249, 254, 259, 262, 264, 266, 269, 271, 273, 275, 277, 281, 284], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [11, 14, 17, 20, 23, 41, 47, 283], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 48, "universal_type": "function", "name": "System", "text_snippet": "class System\n{\nprivate:\n\tstruct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristal"}, {"node_id": 190, "universal_type": "function", "name": "unknown", "text_snippet": "System()"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "Initialize()"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "Shutdown()"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "Run()"}, {"node_id": 212, "universal_type": "function", "name": "unknown", "text_snippet": "MessageHandler(HWND, UINT, WPARAM, LPARAM)"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "Frame(double _time)"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "InitializeWindows(int&, int&)"}, {"node_id": 243, "universal_type": "function", "name": "unknown", "text_snippet": "ShutdownWindows()"}, {"node_id": 248, "universal_type": "function", "name": "unknown", "text_snippet": "StartTimer()"}, {"node_id": 253, "universal_type": "function", "name": "unknown", "text_snippet": "GetTime()"}, {"node_id": 258, "universal_type": "function", "name": "unknown", "text_snippet": "GetFrameTime()"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "WndProc(HWND, UINT, WPARAM, LPARAM)"}], "class_declarations": [{"node_id": 52, "universal_type": "class", "name": "LevelInfo", "text_snippet": "struct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristall;\n\t\twstring winPlane;\n\t}"}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 9, "text": "#include <Windows.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"TextClass.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"GamePlay.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"Direct3D.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"Menu.h\"\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "#ifndef SYSTEM_H\n#define SYSTEM_H\n\n///////////////////////////////\n// PRE-PROCESSING DIRECTIVES //\n///////////////////////////////\n#define WIN32_LEAN_AND_MEAN\n\n#include <Windows.h>\n\n#include \"TextClass.h\"\n#include \"GamePlay.h\"\n#include \"Direct3D.h\"\n#include \"Menu.h\"\n\n//move this\n/////////////\n// GLOBALS //\n/////////////\nconst bool FULL_SCREEN = false;\nconst bool VSYNC_ENABLED = true;\nconst float SCREEN_DEPTH = 1000.0f;\nconst float SCREEN_NEAR = 0.1f;\n\nclass System\n{\nprivate:\n\tstruct LevelInfo\n\t{\n\t\twstring scene;\n\t\twstring collision;\n\t\twstring kristall;\n\t\twstring winPlane;\n\t};\n\t\n\tvector<LevelInfo> levels;\n\tsize_t currentLevel;\n\n\tint screenWidth;\n\tint screenHeight;\n\n\tLPCWSTR applicationName;\n\tHINSTANCE hinstance;\n\tHWND hwnd;\n\n\tdouble countsPerSecond;\n\t__int64 counterStart;\n\n\tint frameCount;\n\tint fps;\n\n\t__int64 frameTimeOld;\n\tdouble frameTime;\n\n\tenum GameState\n\t{\n\t\tgMenu,\n\t\tgGamePlay,\n\t\tgPause,\n\t\tgDeath,\n\t\tgWin,\n\t\tgLoading,\n\t\tgHowToPlay\n\t}\n\tgameState;\n\n\tGameState prevState;\n\n\tMenu* menu;\n\tMenu* pauseMenu;\n\tMenu* deathScreen;\n\tMenu* howToPlay;\n\tMenu* winScreen;\n\tMenu* loadScreen;\n\tGamePlay* gamePlay;\n\tDirect3D* direct3D;\n\tTextClass* timer;\n\n\tfloat lastTime;\n\npublic:\n\tSystem();\n\tvirtual ~System();\n\n\tbool Initialize();\n\tvoid Shutdown();\n\tvoid Run();\n\n\tLRESULT CALLBACK MessageHandler(HWND, UINT, WPARAM, LPARAM);\n\nprivate:\n\tbool Frame(double _time);\n\tvoid InitializeWindows(int&, int&);\n\tvoid ShutdownWindows();\n\n\tvoid StartTimer();\n\tdouble GetTime();\n\tdouble GetFrameTime();\n\n\n};\n\n/////////////////////////\n// FUNCTION PROTOTYPES //\n/////////////////////////\nstatic LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);\n\n\n/////////////\n// GLOBALS //\n/////////////\nstatic System* ApplicationHandle = 0;\n\n#endif"}
80,892
c
#include <stdio.h> #include <stdlib.h> int sieve (int *x, int *y, int b, int n, int nx) { int i; int ny = 1; for (i=1; i<nx; i++) { if (i != b && i%n == b%n) continue; y[ny++] = x[i]; } for (i=1; i<ny; i++) { x[i] = y[i]; } return ny; } int main (int ac, char **av) { int i; int N = 35000; int *x; int *y; int nx; if (ac > 1) N = atoi(av[1]); x = (int *) malloc (N * sizeof (int)); y = (int *) malloc (N * sizeof (int)); for (i=1; i<N; i++) { x[i] = i; } nx = N; for (i=2; i < nx && i + x[i]<nx; i++) { nx = sieve (x, y, i, x[i], nx); } while(1) { scanf("%d",&i); if(i==0) break; printf ("%d\n", x[i+1]); } return 0; }
15.43
42
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint sieve (int *x, int *y, int b, int n, int nx)\n{\n int i;\n int ny = 1;\n\n\n for (i=1; i<nx; i++) {\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }\n for (i=1; i<ny; i++) {\n x[i] = y[i];\n }\n\n return ny;\n}\n\nint main (int ac, char **av)\n{\n int i;\n int N = 35000;\n int *x;\n int *y;\n int nx;\n\n if (ac > 1) N = atoi(av[1]);\n\n x = (int *) malloc (N * sizeof (int));\n y = (int *) malloc (N * sizeof (int));\n\n for (i=1; i<N; i++) {\n x[i] = i;\n }\n nx = N;\n\n for (i=2; i < nx && i + x[i]<nx; i++) {\n nx = sieve (x, y, i, x[i], nx);\n }\n\n while(1)\n {\n scanf("%d",&i);\n if(i==0)\n break;\n printf ("%d\n", x[i+1]);\n }\n return 0;\n}\n\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (function_definition) "int sieve (int *x, int *y, int b, int n, int nx)\n{\n int i;\n int ny = 1;\n\n\n for (i=1; i<nx; i++) {\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }\n for (i=1; i<ny; i++) {\n x[i] = y[i];\n }\n\n return ny;\n}" (primitive_type) "int" (function_declarator) "sieve (int *x, int *y, int b, int n, int nx)" (identifier) "sieve" (parameter_list) "(int *x, int *y, int b, int n, int nx)" (() "(" (parameter_declaration) "int *x" (primitive_type) "int" (pointer_declarator) "*x" (*) "*" (identifier) "x" (,) "," (parameter_declaration) "int *y" (primitive_type) "int" (pointer_declarator) "*y" (*) "*" (identifier) "y" (,) "," (parameter_declaration) "int b" (primitive_type) "int" (identifier) "b" (,) "," (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" (,) "," (parameter_declaration) "int nx" (primitive_type) "int" (identifier) "nx" ()) ")" (compound_statement) "{\n int i;\n int ny = 1;\n\n\n for (i=1; i<nx; i++) {\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }\n for (i=1; i<ny; i++) {\n x[i] = y[i];\n }\n\n return ny;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "int ny = 1;" (primitive_type) "int" (init_declarator) "ny = 1" (identifier) "ny" (=) "=" (number_literal) "1" (;) ";" (for_statement) "for (i=1; i<nx; i++) {\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i<nx" (identifier) "i" (<) "<" (identifier) "nx" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }" ({) "{" (if_statement) "if (i != b && i%n == b%n) continue;" (if) "if" (parenthesized_expression) "(i != b && i%n == b%n)" (() "(" (binary_expression) "i != b && i%n == b%n" (binary_expression) "i != b" (identifier) "i" (!=) "!=" (identifier) "b" (&&) "&&" (binary_expression) "i%n == b%n" (binary_expression) "i%n" (identifier) "i" (%) "%" (identifier) "n" (==) "==" (binary_expression) "b%n" (identifier) "b" (%) "%" (identifier) "n" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "y[ny++] = x[i];" (assignment_expression) "y[ny++] = x[i]" (subscript_expression) "y[ny++]" (identifier) "y" ([) "[" (update_expression) "ny++" (identifier) "ny" (++) "++" (]) "]" (=) "=" (subscript_expression) "x[i]" (identifier) "x" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (for_statement) "for (i=1; i<ny; i++) {\n x[i] = y[i];\n }" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i<ny" (identifier) "i" (<) "<" (identifier) "ny" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n x[i] = y[i];\n }" ({) "{" (expression_statement) "x[i] = y[i];" (assignment_expression) "x[i] = y[i]" (subscript_expression) "x[i]" (identifier) "x" ([) "[" (identifier) "i" (]) "]" (=) "=" (subscript_expression) "y[i]" (identifier) "y" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (return_statement) "return ny;" (return) "return" (identifier) "ny" (;) ";" (}) "}" (function_definition) "int main (int ac, char **av)\n{\n int i;\n int N = 35000;\n int *x;\n int *y;\n int nx;\n\n if (ac > 1) N = atoi(av[1]);\n\n x = (int *) malloc (N * sizeof (int));\n y = (int *) malloc (N * sizeof (int));\n\n for (i=1; i<N; i++) {\n x[i] = i;\n }\n nx = N;\n\n for (i=2; i < nx && i + x[i]<nx; i++) {\n nx = sieve (x, y, i, x[i], nx);\n }\n\n while(1)\n {\n scanf("%d",&i);\n if(i==0)\n break;\n printf ("%d\n", x[i+1]);\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "main (int ac, char **av)" (identifier) "main" (parameter_list) "(int ac, char **av)" (() "(" (parameter_declaration) "int ac" (primitive_type) "int" (identifier) "ac" (,) "," (parameter_declaration) "char **av" (primitive_type) "char" (pointer_declarator) "**av" (*) "*" (pointer_declarator) "*av" (*) "*" (identifier) "av" ()) ")" (compound_statement) "{\n int i;\n int N = 35000;\n int *x;\n int *y;\n int nx;\n\n if (ac > 1) N = atoi(av[1]);\n\n x = (int *) malloc (N * sizeof (int));\n y = (int *) malloc (N * sizeof (int));\n\n for (i=1; i<N; i++) {\n x[i] = i;\n }\n nx = N;\n\n for (i=2; i < nx && i + x[i]<nx; i++) {\n nx = sieve (x, y, i, x[i], nx);\n }\n\n while(1)\n {\n scanf("%d",&i);\n if(i==0)\n break;\n printf ("%d\n", x[i+1]);\n }\n return 0;\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "int N = 35000;" (primitive_type) "int" (init_declarator) "N = 35000" (identifier) "N" (=) "=" (number_literal) "35000" (;) ";" (declaration) "int *x;" (primitive_type) "int" (pointer_declarator) "*x" (*) "*" (identifier) "x" (;) ";" (declaration) "int *y;" (primitive_type) "int" (pointer_declarator) "*y" (*) "*" (identifier) "y" (;) ";" (declaration) "int nx;" (primitive_type) "int" (identifier) "nx" (;) ";" (if_statement) "if (ac > 1) N = atoi(av[1]);" (if) "if" (parenthesized_expression) "(ac > 1)" (() "(" (binary_expression) "ac > 1" (identifier) "ac" (>) ">" (number_literal) "1" ()) ")" (expression_statement) "N = atoi(av[1]);" (assignment_expression) "N = atoi(av[1])" (identifier) "N" (=) "=" (call_expression) "atoi(av[1])" (identifier) "atoi" (argument_list) "(av[1])" (() "(" (subscript_expression) "av[1]" (identifier) "av" ([) "[" (number_literal) "1" (]) "]" ()) ")" (;) ";" (expression_statement) "x = (int *) malloc (N * sizeof (int));" (assignment_expression) "x = (int *) malloc (N * sizeof (int))" (identifier) "x" (=) "=" (cast_expression) "(int *) malloc (N * sizeof (int))" (() "(" (type_descriptor) "int *" (primitive_type) "int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc (N * sizeof (int))" (identifier) "malloc" (argument_list) "(N * sizeof (int))" (() "(" (binary_expression) "N * sizeof (int)" (identifier) "N" (*) "*" (sizeof_expression) "sizeof (int)" (sizeof) "sizeof" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" ()) ")" (;) ";" (expression_statement) "y = (int *) malloc (N * sizeof (int));" (assignment_expression) "y = (int *) malloc (N * sizeof (int))" (identifier) "y" (=) "=" (cast_expression) "(int *) malloc (N * sizeof (int))" (() "(" (type_descriptor) "int *" (primitive_type) "int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc (N * sizeof (int))" (identifier) "malloc" (argument_list) "(N * sizeof (int))" (() "(" (binary_expression) "N * sizeof (int)" (identifier) "N" (*) "*" (sizeof_expression) "sizeof (int)" (sizeof) "sizeof" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" ()) ")" (;) ";" (for_statement) "for (i=1; i<N; i++) {\n x[i] = i;\n }" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i<N" (identifier) "i" (<) "<" (identifier) "N" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n x[i] = i;\n }" ({) "{" (expression_statement) "x[i] = i;" (assignment_expression) "x[i] = i" (subscript_expression) "x[i]" (identifier) "x" ([) "[" (identifier) "i" (]) "]" (=) "=" (identifier) "i" (;) ";" (}) "}" (expression_statement) "nx = N;" (assignment_expression) "nx = N" (identifier) "nx" (=) "=" (identifier) "N" (;) ";" (for_statement) "for (i=2; i < nx && i + x[i]<nx; i++) {\n nx = sieve (x, y, i, x[i], nx);\n }" (for) "for" (() "(" (assignment_expression) "i=2" (identifier) "i" (=) "=" (number_literal) "2" (;) ";" (binary_expression) "i < nx && i + x[i]<nx" (binary_expression) "i < nx" (identifier) "i" (<) "<" (identifier) "nx" (&&) "&&" (binary_expression) "i + x[i]<nx" (binary_expression) "i + x[i]" (identifier) "i" (+) "+" (subscript_expression) "x[i]" (identifier) "x" ([) "[" (identifier) "i" (]) "]" (<) "<" (identifier) "nx" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n nx = sieve (x, y, i, x[i], nx);\n }" ({) "{" (expression_statement) "nx = sieve (x, y, i, x[i], nx);" (assignment_expression) "nx = sieve (x, y, i, x[i], nx)" (identifier) "nx" (=) "=" (call_expression) "sieve (x, y, i, x[i], nx)" (identifier) "sieve" (argument_list) "(x, y, i, x[i], nx)" (() "(" (identifier) "x" (,) "," (identifier) "y" (,) "," (identifier) "i" (,) "," (subscript_expression) "x[i]" (identifier) "x" ([) "[" (identifier) "i" (]) "]" (,) "," (identifier) "nx" ()) ")" (;) ";" (}) "}" (while_statement) "while(1)\n {\n scanf("%d",&i);\n if(i==0)\n break;\n printf ("%d\n", x[i+1]);\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n scanf("%d",&i);\n if(i==0)\n break;\n printf ("%d\n", x[i+1]);\n }" ({) "{" (expression_statement) "scanf("%d",&i);" (call_expression) "scanf("%d",&i)" (identifier) "scanf" (argument_list) "("%d",&i)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&i" (&) "&" (identifier) "i" ()) ")" (;) ";" (if_statement) "if(i==0)\n break;" (if) "if" (parenthesized_expression) "(i==0)" (() "(" (binary_expression) "i==0" (identifier) "i" (==) "==" (number_literal) "0" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "printf ("%d\n", x[i+1]);" (call_expression) "printf ("%d\n", x[i+1])" (identifier) "printf" (argument_list) "("%d\n", x[i+1])" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "x[i+1]" (identifier) "x" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
426
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 15.43, "nodes": 277, "errors": 0, "source_hash": "541a944a2316d11c94da67117879a15e6c5335645c612302adf31302363510d5", "categorized_nodes": 186}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "function_definition", "text": "int sieve (int *x, int *y, int b, int n, int nx)\n{\n int i;\n int ny = 1;\n\n\n for (i=1; i<nx; i++) {\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }\n for (i=1; i<ny; i++) {\n x[i] = y[i];\n }\n\n return ny;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 18, "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": "sieve (int *x, int *y, int b, int n, int nx)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 48}}, {"id": 9, "type": "identifier", "text": "sieve", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 9}}, {"id": 10, "type": "parameter_list", "text": "(int *x, int *y, int b, int n, int nx)", "parent": 8, "children": [11, 16, 21, 24, 27], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 48}}, {"id": 11, "type": "parameter_declaration", "text": "int *x", "parent": 10, "children": [12, 13], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 14}}, {"id": 13, "type": "pointer_declarator", "text": "*x", "parent": 11, "children": [14, 15], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 17}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 16}}, {"id": 15, "type": "identifier", "text": "x", "parent": 13, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 17}}, {"id": 16, "type": "parameter_declaration", "text": "int *y", "parent": 10, "children": [17, 18], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 25}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 22}}, {"id": 18, "type": "pointer_declarator", "text": "*y", "parent": 16, "children": [19, 20], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 25}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 24}}, {"id": 20, "type": "identifier", "text": "y", "parent": 18, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 25}}, {"id": 21, "type": "parameter_declaration", "text": "int b", "parent": 10, "children": [22, 23], "start_point": {"row": 3, "column": 27}, "end_point": {"row": 3, "column": 32}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 3, "column": 27}, "end_point": {"row": 3, "column": 30}}, {"id": 23, "type": "identifier", "text": "b", "parent": 21, "children": [], "start_point": {"row": 3, "column": 31}, "end_point": {"row": 3, "column": 32}}, {"id": 24, "type": "parameter_declaration", "text": "int n", "parent": 10, "children": [25, 26], "start_point": {"row": 3, "column": 34}, "end_point": {"row": 3, "column": 39}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 3, "column": 34}, "end_point": {"row": 3, "column": 37}}, {"id": 26, "type": "identifier", "text": "n", "parent": 24, "children": [], "start_point": {"row": 3, "column": 38}, "end_point": {"row": 3, "column": 39}}, {"id": 27, "type": "parameter_declaration", "text": "int nx", "parent": 10, "children": [28, 29], "start_point": {"row": 3, "column": 41}, "end_point": {"row": 3, "column": 47}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 3, "column": 41}, "end_point": {"row": 3, "column": 44}}, {"id": 29, "type": "identifier", "text": "nx", "parent": 27, "children": [], "start_point": {"row": 3, "column": 45}, "end_point": {"row": 3, "column": 47}}, {"id": 30, "type": "declaration", "text": "int i;", "parent": 6, "children": [31, 32], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 8}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 5}}, {"id": 32, "type": "identifier", "text": "i", "parent": 30, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 7}}, {"id": 33, "type": "declaration", "text": "int ny = 1;", "parent": 6, "children": [34, 35], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 13}}, {"id": 34, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 5}}, {"id": 35, "type": "init_declarator", "text": "ny = 1", "parent": 33, "children": [36, 37, 38], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 12}}, {"id": 36, "type": "identifier", "text": "ny", "parent": 35, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 8}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 10}}, {"id": 38, "type": "number_literal", "text": "1", "parent": 35, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 12}}, {"id": 39, "type": "for_statement", "text": "for (i=1; i<nx; i++) {\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }", "parent": 6, "children": [40, 44, 48], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 12, "column": 3}}, {"id": 40, "type": "assignment_expression", "text": "i=1", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 10}}, {"id": 41, "type": "identifier", "text": "i", "parent": 40, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 8}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 43, "type": "number_literal", "text": "1", "parent": 40, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 10}}, {"id": 44, "type": "binary_expression", "text": "i<nx", "parent": 39, "children": [45, 46, 47], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 16}}, {"id": 45, "type": "identifier", "text": "i", "parent": 44, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 13}}, {"id": 46, "type": "<", "text": "<", "parent": 44, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 14}}, {"id": 47, "type": "identifier", "text": "nx", "parent": 44, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 16}}, {"id": 48, "type": "update_expression", "text": "i++", "parent": 39, "children": [49, 50], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 21}}, {"id": 49, "type": "identifier", "text": "i", "parent": 48, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 19}}, {"id": 50, "type": "++", "text": "++", "parent": 48, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 21}}, {"id": 51, "type": "if_statement", "text": "if (i != b && i%n == b%n) continue;", "parent": 39, "children": [52, 69], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 39}}, {"id": 52, "type": "parenthesized_expression", "text": "(i != b && i%n == b%n)", "parent": 51, "children": [53], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 29}}, {"id": 53, "type": "binary_expression", "text": "i != b && i%n == b%n", "parent": 52, "children": [54, 58, 59], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 28}}, {"id": 54, "type": "binary_expression", "text": "i != b", "parent": 53, "children": [55, 56, 57], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 55, "type": "identifier", "text": "i", "parent": 54, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}, {"id": 56, "type": "!=", "text": "!=", "parent": 54, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 12}}, {"id": 57, "type": "identifier", "text": "b", "parent": 54, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 14}}, {"id": 58, "type": "&&", "text": "&&", "parent": 53, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 17}}, {"id": 59, "type": "binary_expression", "text": "i%n == b%n", "parent": 53, "children": [60, 64, 65], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 28}}, {"id": 60, "type": "binary_expression", "text": "i%n", "parent": 59, "children": [61, 62, 63], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 21}}, {"id": 61, "type": "identifier", "text": "i", "parent": 60, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 19}}, {"id": 62, "type": "%", "text": "%", "parent": 60, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 20}}, {"id": 63, "type": "identifier", "text": "n", "parent": 60, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 21}}, {"id": 64, "type": "==", "text": "==", "parent": 59, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 24}}, {"id": 65, "type": "binary_expression", "text": "b%n", "parent": 59, "children": [66, 67, 68], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 28}}, {"id": 66, "type": "identifier", "text": "b", "parent": 65, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 26}}, {"id": 67, "type": "%", "text": "%", "parent": 65, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 27}}, {"id": 68, "type": "identifier", "text": "n", "parent": 65, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 28}}, {"id": 69, "type": "continue_statement", "text": "continue;", "parent": 51, "children": [70], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 39}}, {"id": 70, "type": "continue", "text": "continue", "parent": 69, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 38}}, {"id": 71, "type": "assignment_expression", "text": "y[ny++] = x[i]", "parent": 39, "children": [72, 77, 78], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 18}}, {"id": 72, "type": "subscript_expression", "text": "y[ny++]", "parent": 71, "children": [73, 74], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 11}}, {"id": 73, "type": "identifier", "text": "y", "parent": 72, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 5}}, {"id": 74, "type": "update_expression", "text": "ny++", "parent": 72, "children": [75, 76], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 10}}, {"id": 75, "type": "identifier", "text": "ny", "parent": 74, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 8}}, {"id": 76, "type": "++", "text": "++", "parent": 74, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 10}}, {"id": 77, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 13}}, {"id": 78, "type": "subscript_expression", "text": "x[i]", "parent": 71, "children": [79, 80], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 18}}, {"id": 79, "type": "identifier", "text": "x", "parent": 78, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 15}}, {"id": 80, "type": "identifier", "text": "i", "parent": 78, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 17}}, {"id": 81, "type": "for_statement", "text": "for (i=1; i<ny; i++) {\n x[i] = y[i];\n }", "parent": 6, "children": [82, 86, 90], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 15, "column": 3}}, {"id": 82, "type": "assignment_expression", "text": "i=1", "parent": 81, "children": [83, 84, 85], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 10}}, {"id": 83, "type": "identifier", "text": "i", "parent": 82, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 85, "type": "number_literal", "text": "1", "parent": 82, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 86, "type": "binary_expression", "text": "i<ny", "parent": 81, "children": [87, 88, 89], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 16}}, {"id": 87, "type": "identifier", "text": "i", "parent": 86, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 88, "type": "<", "text": "<", "parent": 86, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 89, "type": "identifier", "text": "ny", "parent": 86, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 16}}, {"id": 90, "type": "update_expression", "text": "i++", "parent": 81, "children": [91, 92], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 21}}, {"id": 91, "type": "identifier", "text": "i", "parent": 90, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 19}}, {"id": 92, "type": "++", "text": "++", "parent": 90, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 21}}, {"id": 93, "type": "assignment_expression", "text": "x[i] = y[i]", "parent": 81, "children": [94, 97, 98], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 15}}, {"id": 94, "type": "subscript_expression", "text": "x[i]", "parent": 93, "children": [95, 96], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 8}}, {"id": 95, "type": "identifier", "text": "x", "parent": 94, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 5}}, {"id": 96, "type": "identifier", "text": "i", "parent": 94, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 7}}, {"id": 97, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 10}}, {"id": 98, "type": "subscript_expression", "text": "y[i]", "parent": 93, "children": [99, 100], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 15}}, {"id": 99, "type": "identifier", "text": "y", "parent": 98, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 100, "type": "identifier", "text": "i", "parent": 98, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 101, "type": "return_statement", "text": "return ny;", "parent": 6, "children": [102], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 12}}, {"id": 102, "type": "identifier", "text": "ny", "parent": 101, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 11}}, {"id": 103, "type": "function_definition", "text": "int main (int ac, char **av)\n{\n int i;\n int N = 35000;\n int *x;\n int *y;\n int nx;\n\n if (ac > 1) N = atoi(av[1]);\n\n x = (int *) malloc (N * sizeof (int));\n y = (int *) malloc (N * sizeof (int));\n\n for (i=1; i<N; i++) {\n x[i] = i;\n }\n nx = N;\n\n for (i=2; i < nx && i + x[i]<nx; i++) {\n nx = sieve (x, y, i, x[i], nx);\n }\n\n while(1)\n\t{\n\tscanf(\"%d\",&i);\n\tif(i==0)\n\tbreak;\n\tprintf (\"%d\\n\", x[i+1]);\n\t}\n return 0;\n}", "parent": null, "children": [104, 105], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 3}}, {"id": 105, "type": "function_declarator", "text": "main (int ac, char **av)", "parent": 103, "children": [106, 107], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 28}}, {"id": 106, "type": "identifier", "text": "main", "parent": 105, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 107, "type": "parameter_list", "text": "(int ac, char **av)", "parent": 105, "children": [108, 111], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 28}}, {"id": 108, "type": "parameter_declaration", "text": "int ac", "parent": 107, "children": [109, 110], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 16}}, {"id": 109, "type": "primitive_type", "text": "int", "parent": 108, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 13}}, {"id": 110, "type": "identifier", "text": "ac", "parent": 108, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 16}}, {"id": 111, "type": "parameter_declaration", "text": "char **av", "parent": 107, "children": [112, 113], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 27}}, {"id": 112, "type": "primitive_type", "text": "char", "parent": 111, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 22}}, {"id": 113, "type": "pointer_declarator", "text": "**av", "parent": 111, "children": [114, 115], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 27}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 24}}, {"id": 115, "type": "pointer_declarator", "text": "*av", "parent": 113, "children": [116, 117], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 27}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 117, "type": "identifier", "text": "av", "parent": 115, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 27}}, {"id": 118, "type": "declaration", "text": "int i;", "parent": 103, "children": [119, 120], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 8}}, {"id": 119, "type": "primitive_type", "text": "int", "parent": 118, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 5}}, {"id": 120, "type": "identifier", "text": "i", "parent": 118, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 121, "type": "declaration", "text": "int N = 35000;", "parent": 103, "children": [122, 123], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 16}}, {"id": 122, "type": "primitive_type", "text": "int", "parent": 121, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 5}}, {"id": 123, "type": "init_declarator", "text": "N = 35000", "parent": 121, "children": [124, 125, 126], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 15}}, {"id": 124, "type": "identifier", "text": "N", "parent": 123, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 125, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 126, "type": "number_literal", "text": "35000", "parent": 123, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 15}}, {"id": 127, "type": "declaration", "text": "int *x;", "parent": 103, "children": [128, 129], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 9}}, {"id": 128, "type": "primitive_type", "text": "int", "parent": 127, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 5}}, {"id": 129, "type": "pointer_declarator", "text": "*x", "parent": 127, "children": [130, 131], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 8}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 7}}, {"id": 131, "type": "identifier", "text": "x", "parent": 129, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 8}}, {"id": 132, "type": "declaration", "text": "int *y;", "parent": 103, "children": [133, 134], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 9}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 134, "type": "pointer_declarator", "text": "*y", "parent": 132, "children": [135, 136], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 8}}, {"id": 135, "type": "*", "text": "*", "parent": 134, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 7}}, {"id": 136, "type": "identifier", "text": "y", "parent": 134, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 8}}, {"id": 137, "type": "declaration", "text": "int nx;", "parent": 103, "children": [138, 139], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 9}}, {"id": 138, "type": "primitive_type", "text": "int", "parent": 137, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 5}}, {"id": 139, "type": "identifier", "text": "nx", "parent": 137, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 8}}, {"id": 140, "type": "if_statement", "text": "if (ac > 1) N = atoi(av[1]);", "parent": 103, "children": [141], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 30}}, {"id": 141, "type": "parenthesized_expression", "text": "(ac > 1)", "parent": 140, "children": [142], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 13}}, {"id": 142, "type": "binary_expression", "text": "ac > 1", "parent": 141, "children": [143, 144, 145], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 12}}, {"id": 143, "type": "identifier", "text": "ac", "parent": 142, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 8}}, {"id": 144, "type": ">", "text": ">", "parent": 142, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 145, "type": "number_literal", "text": "1", "parent": 142, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 12}}, {"id": 146, "type": "assignment_expression", "text": "N = atoi(av[1])", "parent": 140, "children": [147, 148, 149], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 29}}, {"id": 147, "type": "identifier", "text": "N", "parent": 146, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 148, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 17}}, {"id": 149, "type": "call_expression", "text": "atoi(av[1])", "parent": 146, "children": [150, 151], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 29}}, {"id": 150, "type": "identifier", "text": "atoi", "parent": 149, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 22}}, {"id": 151, "type": "argument_list", "text": "(av[1])", "parent": 149, "children": [152], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 29}}, {"id": 152, "type": "subscript_expression", "text": "av[1]", "parent": 151, "children": [153, 154], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 28}}, {"id": 153, "type": "identifier", "text": "av", "parent": 152, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 25}}, {"id": 154, "type": "number_literal", "text": "1", "parent": 152, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 27}}, {"id": 155, "type": "assignment_expression", "text": "x = (int *) malloc (N * sizeof (int))", "parent": 103, "children": [156, 157, 158], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 39}}, {"id": 156, "type": "identifier", "text": "x", "parent": 155, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 3}}, {"id": 157, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 5}}, {"id": 158, "type": "cast_expression", "text": "(int *) malloc (N * sizeof (int))", "parent": 155, "children": [159, 163], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 39}}, {"id": 159, "type": "type_descriptor", "text": "int *", "parent": 158, "children": [160, 161], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 12}}, {"id": 160, "type": "primitive_type", "text": "int", "parent": 159, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 10}}, {"id": 161, "type": "abstract_pointer_declarator", "text": "*", "parent": 159, "children": [162], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 163, "type": "call_expression", "text": "malloc (N * sizeof (int))", "parent": 158, "children": [164, 165], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 39}}, {"id": 164, "type": "identifier", "text": "malloc", "parent": 163, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 165, "type": "argument_list", "text": "(N * sizeof (int))", "parent": 163, "children": [166], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 39}}, {"id": 166, "type": "binary_expression", "text": "N * sizeof (int)", "parent": 165, "children": [167, 168, 169], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 38}}, {"id": 167, "type": "identifier", "text": "N", "parent": 166, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 23}}, {"id": 168, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 169, "type": "sizeof_expression", "text": "sizeof (int)", "parent": 166, "children": [170], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 38}}, {"id": 170, "type": "type_descriptor", "text": "int", "parent": 169, "children": [171], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 37}}, {"id": 171, "type": "primitive_type", "text": "int", "parent": 170, "children": [], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 37}}, {"id": 172, "type": "assignment_expression", "text": "y = (int *) malloc (N * sizeof (int))", "parent": 103, "children": [173, 174, 175], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 39}}, {"id": 173, "type": "identifier", "text": "y", "parent": 172, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 3}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 175, "type": "cast_expression", "text": "(int *) malloc (N * sizeof (int))", "parent": 172, "children": [176, 180], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 39}}, {"id": 176, "type": "type_descriptor", "text": "int *", "parent": 175, "children": [177, 178], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 12}}, {"id": 177, "type": "primitive_type", "text": "int", "parent": 176, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 10}}, {"id": 178, "type": "abstract_pointer_declarator", "text": "*", "parent": 176, "children": [179], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 12}}, {"id": 179, "type": "*", "text": "*", "parent": 178, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 12}}, {"id": 180, "type": "call_expression", "text": "malloc (N * sizeof (int))", "parent": 175, "children": [181, 182], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 39}}, {"id": 181, "type": "identifier", "text": "malloc", "parent": 180, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 20}}, {"id": 182, "type": "argument_list", "text": "(N * sizeof (int))", "parent": 180, "children": [183], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 39}}, {"id": 183, "type": "binary_expression", "text": "N * sizeof (int)", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 38}}, {"id": 184, "type": "identifier", "text": "N", "parent": 183, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 185, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 25}}, {"id": 186, "type": "sizeof_expression", "text": "sizeof (int)", "parent": 183, "children": [187], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 38}}, {"id": 187, "type": "type_descriptor", "text": "int", "parent": 186, "children": [188], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 37}}, {"id": 188, "type": "primitive_type", "text": "int", "parent": 187, "children": [], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 37}}, {"id": 189, "type": "for_statement", "text": "for (i=1; i<N; i++) {\n x[i] = i;\n }", "parent": 103, "children": [190, 194, 198], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 35, "column": 3}}, {"id": 190, "type": "assignment_expression", "text": "i=1", "parent": 189, "children": [191, 192, 193], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 10}}, {"id": 191, "type": "identifier", "text": "i", "parent": 190, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 8}}, {"id": 192, "type": "=", "text": "=", "parent": 190, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 9}}, {"id": 193, "type": "number_literal", "text": "1", "parent": 190, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 194, "type": "binary_expression", "text": "i<N", "parent": 189, "children": [195, 196, 197], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 15}}, {"id": 195, "type": "identifier", "text": "i", "parent": 194, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 196, "type": "<", "text": "<", "parent": 194, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 14}}, {"id": 197, "type": "identifier", "text": "N", "parent": 194, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 15}}, {"id": 198, "type": "update_expression", "text": "i++", "parent": 189, "children": [199, 200], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 20}}, {"id": 199, "type": "identifier", "text": "i", "parent": 198, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 18}}, {"id": 200, "type": "++", "text": "++", "parent": 198, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 20}}, {"id": 201, "type": "assignment_expression", "text": "x[i] = i", "parent": 189, "children": [202, 205, 206], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 12}}, {"id": 202, "type": "subscript_expression", "text": "x[i]", "parent": 201, "children": [203, 204], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 203, "type": "identifier", "text": "x", "parent": 202, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 5}}, {"id": 204, "type": "identifier", "text": "i", "parent": 202, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 7}}, {"id": 205, "type": "=", "text": "=", "parent": 201, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 10}}, {"id": 206, "type": "identifier", "text": "i", "parent": 201, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 12}}, {"id": 207, "type": "assignment_expression", "text": "nx = N", "parent": 103, "children": [208, 209, 210], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 8}}, {"id": 208, "type": "identifier", "text": "nx", "parent": 207, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 4}}, {"id": 209, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 6}}, {"id": 210, "type": "identifier", "text": "N", "parent": 207, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 8}}, {"id": 211, "type": "for_statement", "text": "for (i=2; i < nx && i + x[i]<nx; i++) {\n nx = sieve (x, y, i, x[i], nx);\n }", "parent": 103, "children": [212, 216, 231], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 40, "column": 3}}, {"id": 212, "type": "assignment_expression", "text": "i=2", "parent": 211, "children": [213, 214, 215], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 10}}, {"id": 213, "type": "identifier", "text": "i", "parent": 212, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 8}}, {"id": 214, "type": "=", "text": "=", "parent": 212, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 9}}, {"id": 215, "type": "number_literal", "text": "2", "parent": 212, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 216, "type": "binary_expression", "text": "i < nx && i + x[i]<nx", "parent": 211, "children": [217, 221, 222], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 33}}, {"id": 217, "type": "binary_expression", "text": "i < nx", "parent": 216, "children": [218, 219, 220], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 18}}, {"id": 218, "type": "identifier", "text": "i", "parent": 217, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 219, "type": "<", "text": "<", "parent": 217, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 15}}, {"id": 220, "type": "identifier", "text": "nx", "parent": 217, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 18}}, {"id": 221, "type": "&&", "text": "&&", "parent": 216, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 21}}, {"id": 222, "type": "binary_expression", "text": "i + x[i]<nx", "parent": 216, "children": [223, 229, 230], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 33}}, {"id": 223, "type": "binary_expression", "text": "i + x[i]", "parent": 222, "children": [224, 225, 226], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 30}}, {"id": 224, "type": "identifier", "text": "i", "parent": 223, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 225, "type": "+", "text": "+", "parent": 223, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 25}}, {"id": 226, "type": "subscript_expression", "text": "x[i]", "parent": 223, "children": [227, 228], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 30}}, {"id": 227, "type": "identifier", "text": "x", "parent": 226, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 27}}, {"id": 228, "type": "identifier", "text": "i", "parent": 226, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 29}}, {"id": 229, "type": "<", "text": "<", "parent": 222, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 31}}, {"id": 230, "type": "identifier", "text": "nx", "parent": 222, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 33}}, {"id": 231, "type": "update_expression", "text": "i++", "parent": 211, "children": [232, 233], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 38}}, {"id": 232, "type": "identifier", "text": "i", "parent": 231, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 36}}, {"id": 233, "type": "++", "text": "++", "parent": 231, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 38}}, {"id": 234, "type": "assignment_expression", "text": "nx = sieve (x, y, i, x[i], nx)", "parent": 211, "children": [235, 236, 237], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 34}}, {"id": 235, "type": "identifier", "text": "nx", "parent": 234, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 6}}, {"id": 236, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 8}}, {"id": 237, "type": "call_expression", "text": "sieve (x, y, i, x[i], nx)", "parent": 234, "children": [238, 239], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 34}}, {"id": 238, "type": "identifier", "text": "sieve", "parent": 237, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 14}}, {"id": 239, "type": "argument_list", "text": "(x, y, i, x[i], nx)", "parent": 237, "children": [240, 241, 242, 243, 246], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 34}}, {"id": 240, "type": "identifier", "text": "x", "parent": 239, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 17}}, {"id": 241, "type": "identifier", "text": "y", "parent": 239, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 20}}, {"id": 242, "type": "identifier", "text": "i", "parent": 239, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 243, "type": "subscript_expression", "text": "x[i]", "parent": 239, "children": [244, 245], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 29}}, {"id": 244, "type": "identifier", "text": "x", "parent": 243, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 26}}, {"id": 245, "type": "identifier", "text": "i", "parent": 243, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 28}}, {"id": 246, "type": "identifier", "text": "nx", "parent": 239, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 33}}, {"id": 247, "type": "while_statement", "text": "while(1)\n\t{\n\tscanf(\"%d\",&i);\n\tif(i==0)\n\tbreak;\n\tprintf (\"%d\\n\", x[i+1]);\n\t}", "parent": 103, "children": [248], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 48, "column": 2}}, {"id": 248, "type": "parenthesized_expression", "text": "(1)", "parent": 247, "children": [249], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 10}}, {"id": 249, "type": "number_literal", "text": "1", "parent": 248, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 9}}, {"id": 250, "type": "call_expression", "text": "scanf(\"%d\",&i)", "parent": 247, "children": [251, 252], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 15}}, {"id": 251, "type": "identifier", "text": "scanf", "parent": 250, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 6}}, {"id": 252, "type": "argument_list", "text": "(\"%d\",&i)", "parent": 250, "children": [253, 254], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 15}}, {"id": 253, "type": "string_literal", "text": "\"%d\"", "parent": 252, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 11}}, {"id": 254, "type": "pointer_expression", "text": "&i", "parent": 252, "children": [255], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 14}}, {"id": 255, "type": "identifier", "text": "i", "parent": 254, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 14}}, {"id": 256, "type": "if_statement", "text": "if(i==0)\n\tbreak;", "parent": 247, "children": [257, 262], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 46, "column": 7}}, {"id": 257, "type": "parenthesized_expression", "text": "(i==0)", "parent": 256, "children": [258], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 9}}, {"id": 258, "type": "binary_expression", "text": "i==0", "parent": 257, "children": [259, 260, 261], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 259, "type": "identifier", "text": "i", "parent": 258, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 5}}, {"id": 260, "type": "==", "text": "==", "parent": 258, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 7}}, {"id": 261, "type": "number_literal", "text": "0", "parent": 258, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 8}}, {"id": 262, "type": "break_statement", "text": "break;", "parent": 256, "children": [263], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 7}}, {"id": 263, "type": "break", "text": "break", "parent": 262, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 6}}, {"id": 264, "type": "call_expression", "text": "printf (\"%d\\n\", x[i+1])", "parent": 247, "children": [265, 266], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 24}}, {"id": 265, "type": "identifier", "text": "printf", "parent": 264, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 7}}, {"id": 266, "type": "argument_list", "text": "(\"%d\\n\", x[i+1])", "parent": 264, "children": [267, 269], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 24}}, {"id": 267, "type": "string_literal", "text": "\"%d\\n\"", "parent": 266, "children": [268], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 15}}, {"id": 268, "type": "escape_sequence", "text": "\\n", "parent": 267, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 14}}, {"id": 269, "type": "subscript_expression", "text": "x[i+1]", "parent": 266, "children": [270, 271], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 23}}, {"id": 270, "type": "identifier", "text": "x", "parent": 269, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 18}}, {"id": 271, "type": "binary_expression", "text": "i+1", "parent": 269, "children": [272, 273, 274], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 22}}, {"id": 272, "type": "identifier", "text": "i", "parent": 271, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 20}}, {"id": 273, "type": "+", "text": "+", "parent": 271, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 21}}, {"id": 274, "type": "number_literal", "text": "1", "parent": 271, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 22}}, {"id": 275, "type": "return_statement", "text": "return 0;", "parent": 103, "children": [276], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 11}}, {"id": 276, "type": "number_literal", "text": "0", "parent": 275, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 10}}]}, "node_categories": {"declarations": {"functions": [6, 8, 103, 105], "variables": [11, 16, 21, 24, 27, 30, 33, 108, 111, 118, 121, 127, 132, 137], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [44, 48, 52, 53, 54, 59, 60, 65, 72, 74, 78, 86, 90, 94, 98, 141, 142, 149, 152, 158, 163, 166, 169, 175, 180, 183, 186, 194, 198, 202, 216, 217, 222, 223, 226, 231, 237, 243, 248, 250, 254, 257, 258, 264, 269, 271], "assignments": [40, 71, 82, 93, 146, 155, 172, 190, 201, 207, 212, 234], "loops": [39, 81, 189, 211, 247], "conditionals": [9, 15, 20, 23, 26, 29, 32, 36, 41, 45, 47, 49, 51, 55, 57, 61, 63, 66, 68, 73, 75, 79, 80, 83, 87, 89, 91, 95, 96, 99, 100, 102, 106, 110, 117, 120, 124, 131, 136, 139, 140, 143, 147, 150, 153, 156, 164, 167, 173, 181, 184, 191, 195, 197, 199, 203, 204, 206, 208, 210, 213, 218, 220, 224, 227, 228, 230, 232, 235, 238, 240, 241, 242, 244, 245, 246, 251, 255, 256, 259, 265, 270, 272], "returns": [101, 275], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 38, 43, 85, 126, 145, 154, 193, 215, 249, 253, 261, 267, 274, 276], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "sieve", "text_snippet": "int sieve (int *x, int *y, int b, int n, int nx)\n{\n int i;\n int ny = 1;\n\n\n for (i=1; i<nx; i++) {"}, {"node_id": 8, "universal_type": "function", "name": "*y,", "text_snippet": "sieve (int *x, int *y, int b, int n, int nx)"}, {"node_id": 103, "universal_type": "function", "name": "main", "text_snippet": "int main (int ac, char **av)\n{\n int i;\n int N = 35000;\n int *x;\n int *y;\n int nx;\n\n if (ac > 1"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "main (int ac, char **av)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n\nint sieve (int *x, int *y, int b, int n, int nx)\n{\n int i;\n int ny = 1;\n\n\n for (i=1; i<nx; i++) {\n if (i != b && i%n == b%n) continue;\n y[ny++] = x[i];\n }\n for (i=1; i<ny; i++) {\n x[i] = y[i];\n }\n\n return ny;\n}\n\nint main (int ac, char **av)\n{\n int i;\n int N = 35000;\n int *x;\n int *y;\n int nx;\n\n if (ac > 1) N = atoi(av[1]);\n\n x = (int *) malloc (N * sizeof (int));\n y = (int *) malloc (N * sizeof (int));\n\n for (i=1; i<N; i++) {\n x[i] = i;\n }\n nx = N;\n\n for (i=2; i < nx && i + x[i]<nx; i++) {\n nx = sieve (x, y, i, x[i], nx);\n }\n\n while(1)\n\t{\n\tscanf(\"%d\",&i);\n\tif(i==0)\n\tbreak;\n\tprintf (\"%d\\n\", x[i+1]);\n\t}\n return 0;\n}\n\n"}
80,893
c
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:52:19 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/Frameworks/ClassKit.framework/ClassKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ #import <ClassKit/CLSObject.h> #import <libobjc.A.dylib/CLSRelationable.h> @class NSString; @interface CLSActivityItem : CLSObject <CLSRelationable> { NSString* _title; NSString* _identifier; } @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (copy,readonly) NSString * description; @property (copy,readonly) NSString * debugDescription; @property (nonatomic,copy) NSString * identifier; //@synthesize identifier=_identifier - In the implementation block @property (nonatomic,copy) NSString * title; +(BOOL)supportsSecureCoding; +(id)relations; -(id)initWithIdentifier:(id)arg1 title:(id)arg2 ; -(BOOL)validateObject:(id*)arg1 ; -(NSString *)identifier; -(void)encodeWithCoder:(id)arg1 ; -(id)initWithCoder:(id)arg1 ; -(NSString *)description; -(void)setTitle:(NSString *)arg1 ; -(NSString *)title; -(void)setIdentifier:(NSString *)arg1 ; -(id)dictionaryRepresentation; -(id)_init; @end
36.53
34
(translation_unit) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:52:19 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/Frameworks/ClassKit.framework/ClassKit\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.\n*/\n\n#import <ClassKit/CLSObject.h>\n#import <libobjc.A.dylib/CLSRelationable.h>\n\n@class NSString;\n\n@interface CLSActivityItem : CLSObject <CLSRelationable> {\n\n NSString* _title;\n NSString* _identifier;\n\n}\n\n@property (readonly) unsigned long long hash; \n@property (readonly) Class superclass; \n@property (copy,readonly) NSString * description; \n@property (copy,readonly) NSString * debugDescription; \n@property (nonatomic,copy) NSString * identifier; //@synthesize identifier=_identifier - In the implementation block\n@property (nonatomic,copy) NSString * title; \n+(BOOL)supportsSecureCoding;\n+(id)relations;\n-(id)initWithIdentifier:(id)arg1 title:(id)arg2 ;\n-(BOOL)validateObject:(id*)arg1 ;\n-(NSString *)identifier;\n-(void)encodeWithCoder:(id)arg1 ;\n-(id)initWithCoder:(id)arg1 ;\n-(NSString *)description;\n-(void)setTitle:(NSString *)arg1 ;\n-(NSString *)title;\n-(void)setIdentifier:(NSString *)arg1 ;\n-(id)dictionaryRepresentation;\n-(id)_init;\n@end\n\n" (comment) "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:52:19 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/Frameworks/ClassKit.framework/ClassKit\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.\n*/\n" (preproc_call) "import <ClassKit/CLSObject.h>\n#" (preproc_directive) "import " (preproc_arg) "ClassKit/CLSObject.h>\n" (preproc_call) "import <libobjc.A.dylib/CLSRelationable.h>\n\n" (preproc_directive) "import " (preproc_arg) "libobjc.A.dylib/CLSRelationable.h>\n" (ERROR) "c" (ERROR) "c" (declaration) "lass NSString;\n" (type_identifier) "lass " (identifier) "SString;" (;) "\n" (ERROR) "i" (ERROR) "i" (function_definition) "nterface CLSActivityItem : CLSObject <CLSRelationable> {\n\n NSString* _title;\n NSString* _identifier;\n\n}\n" (type_identifier) "nterface " (identifier) "LSActivityItem " (ERROR) " CLSObject <CLSRelationable> " (:) " " (identifier) "LSObject " (<) "C" (identifier) "LSRelationable>" (>) " " (compound_statement) "\n\n NSString* _title;\n NSString* _identifier;\n\n}\n" ({) "\n" (declaration) "SString* _title;\n" (type_identifier) "SString*" (pointer_declarator) " _title;" (*) " " (identifier) "title;" (;) "\n" (declaration) "SString* _identifier;\n" (type_identifier) "SString*" (pointer_declarator) " _identifier;" (*) " " (identifier) "identifier;" (;) "\n" (}) "\n" (ERROR) "property (readonly) unsigned long " (ERROR) "p" (macro_type_specifier) "roperty (readonly) " (identifier) "roperty " (() "r" (type_descriptor) "eadonly)" (type_identifier) "eadonly)" ()) " " (identifier) "nsigned " (identifier) "ong " (declaration) "ong hash; " (sized_type_specifier) "ong " (long) "ong " (identifier) "ash;" (;) " " (ERROR) "p" (ERROR) "p" (declaration) "roperty (readonly) Class superclass; " (macro_type_specifier) "roperty (readonly) " (identifier) "roperty " (() "r" (type_descriptor) "eadonly)" (type_identifier) "eadonly)" ()) " " (ERROR) "lass " (identifier) "lass " (identifier) "uperclass;" (;) " " (ERROR) "p" (ERROR) "p" (expression_statement) "roperty (copy,readonly) " (call_expression) "roperty (copy,readonly) " (identifier) "roperty " (argument_list) "copy,readonly) " (() "c" (identifier) "opy," (,) "r" (identifier) "eadonly)" ()) " " (;) "" (declaration) "SString * description; " (type_identifier) "SString " (pointer_declarator) " description;" (*) " " (identifier) "escription;" (;) " " (ERROR) "p" (ERROR) "p" (expression_statement) "roperty (copy,readonly) " (call_expression) "roperty (copy,readonly) " (identifier) "roperty " (argument_list) "copy,readonly) " (() "c" (identifier) "opy," (,) "r" (identifier) "eadonly)" ()) " " (;) "" (declaration) "SString * debugDescription; " (type_identifier) "SString " (pointer_declarator) " debugDescription;" (*) " " (identifier) "ebugDescription;" (;) " " (ERROR) "p" (ERROR) "p" (expression_statement) "roperty (nonatomic,copy) " (call_expression) "roperty (nonatomic,copy) " (identifier) "roperty " (argument_list) "nonatomic,copy) " (() "n" (identifier) "onatomic," (,) "c" (identifier) "opy)" ()) " " (;) "" (declaration) "SString * identifier; " (type_identifier) "SString " (pointer_declarator) " identifier;" (*) " " (identifier) "dentifier;" (;) " " (comment) "/@synthesize identifier=_identifier - In the implementation block\n" (ERROR) "p" (ERROR) "p" (expression_statement) "roperty (nonatomic,copy) " (call_expression) "roperty (nonatomic,copy) " (identifier) "roperty " (argument_list) "nonatomic,copy) " (() "n" (identifier) "onatomic," (,) "c" (identifier) "opy)" ()) " " (;) "" (declaration) "SString * title; " (type_identifier) "SString " (pointer_declarator) " title;" (*) " " (identifier) "itle;" (;) " " (expression_statement) "(BOOL)supportsSecureCoding;\n" (unary_expression) "(BOOL)supportsSecureCoding;" (+) "(" (cast_expression) "BOOL)supportsSecureCoding;" (() "B" (type_descriptor) "OOL)" (type_identifier) "OOL)" ()) "s" (identifier) "upportsSecureCoding;" (;) "\n" (expression_statement) "(id)relations;\n" (unary_expression) "(id)relations;" (+) "(" (cast_expression) "id)relations;" (() "i" (type_descriptor) "d)" (type_identifier) "d)" ()) "r" (identifier) "elations;" (;) "\n" (ERROR) "(id)initWithIdentifier:(id)a" (unary_expression) "(id)initWithIdentifier:" (-) "(" (cast_expression) "id)initWithIdentifier:" (() "i" (type_descriptor) "d)" (type_identifier) "d)" ()) "i" (identifier) "nitWithIdentifier:" (:) "(" (() "i" (identifier) "d)" ()) "a" (declaration) "rg1 title:(id)arg2 ;\n" (type_identifier) "rg1 " (identifier) "itle:" (ERROR) "(id)arg2 " (:) "(" (() "i" (identifier) "d)" ()) "a" (identifier) "rg2 " (;) "\n" (expression_statement) "(BOOL)validateObject:(id*)arg1 ;\n" (update_expression) "(BOOL)validateObject:(id*)arg1 " (binary_expression) "(BOOL)validateObject:(id*)arg1 " (unary_expression) "(BOOL)validateObject:" (-) "(" (cast_expression) "BOOL)validateObject:" (() "B" (type_descriptor) "OOL)" (type_identifier) "OOL)" ()) "v" (identifier) "alidateObject:" (ERROR) "(id*" (:) "(" (() "i" (identifier) "d*" (*) ")" (ERROR) "a" ()) "a" (identifier) "rg1 " (--) "" (;) "\n" (expression_statement) "(NSString *)identifier;\n" (unary_expression) "(NSString *)identifier;" (-) "(" (cast_expression) "NSString *)identifier;" (() "N" (type_descriptor) "SString *)" (type_identifier) "SString " (abstract_pointer_declarator) ")" (*) ")" ()) "i" (identifier) "dentifier;" (;) "\n" (expression_statement) "(void)encodeWithCoder:(id)arg1 ;\n" (unary_expression) "(void)encodeWithCoder:" (-) "(" (cast_expression) "void)encodeWithCoder:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "e" (identifier) "ncodeWithCoder:" (ERROR) "(id)arg1 " (:) "(" (() "i" (identifier) "d)" ()) "a" (identifier) "rg1 " (;) "\n" (expression_statement) "(id)initWithCoder:(id)arg1 ;\n" (unary_expression) "(id)initWithCoder:" (-) "(" (cast_expression) "id)initWithCoder:" (() "i" (type_descriptor) "d)" (type_identifier) "d)" ()) "i" (identifier) "nitWithCoder:" (ERROR) "(id)arg1 " (:) "(" (() "i" (identifier) "d)" ()) "a" (identifier) "rg1 " (;) "\n" (expression_statement) "(NSString *)description;\n" (unary_expression) "(NSString *)description;" (-) "(" (cast_expression) "NSString *)description;" (() "N" (type_descriptor) "SString *)" (type_identifier) "SString " (abstract_pointer_declarator) ")" (*) ")" ()) "d" (identifier) "escription;" (;) "\n" (expression_statement) "(void)setTitle:(NSString *)arg1 ;\n" (update_expression) "(void)setTitle:(NSString *)arg1 " (binary_expression) "(void)setTitle:(NSString *)arg1 " (unary_expression) "(void)setTitle:" (-) "(" (cast_expression) "void)setTitle:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etTitle:" (ERROR) "(NSString " (:) "(" (() "N" (identifier) "SString " (*) ")" (ERROR) "a" ()) "a" (identifier) "rg1 " (--) "" (;) "\n" (expression_statement) "(NSString *)title;\n" (unary_expression) "(NSString *)title;" (-) "(" (cast_expression) "NSString *)title;" (() "N" (type_descriptor) "SString *)" (type_identifier) "SString " (abstract_pointer_declarator) ")" (*) ")" ()) "t" (identifier) "itle;" (;) "\n" (expression_statement) "(void)setIdentifier:(NSString *)arg1 ;\n" (update_expression) "(void)setIdentifier:(NSString *)arg1 " (binary_expression) "(void)setIdentifier:(NSString *)arg1 " (unary_expression) "(void)setIdentifier:" (-) "(" (cast_expression) "void)setIdentifier:" (() "v" (type_descriptor) "oid)" (primitive_type) "oid)" ()) "s" (identifier) "etIdentifier:" (ERROR) "(NSString " (:) "(" (() "N" (identifier) "SString " (*) ")" (ERROR) "a" ()) "a" (identifier) "rg1 " (--) "" (;) "\n" (expression_statement) "(id)dictionaryRepresentation;\n" (unary_expression) "(id)dictionaryRepresentation;" (-) "(" (cast_expression) "id)dictionaryRepresentation;" (() "i" (type_descriptor) "d)" (type_identifier) "d)" ()) "d" (identifier) "ictionaryRepresentation;" (;) "\n" (expression_statement) "(id)_init;\n" (unary_expression) "(id)_init;" (-) "(" (cast_expression) "id)_init;" (() "i" (type_descriptor) "d)" (type_identifier) "d)" ()) "_" (identifier) "init;" (;) "\n" (ERROR) "e" (ERROR) "e" (expression_statement) "nd\n" (identifier) "nd\n" (;) ""
340
30
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 36.53, "nodes": 202, "errors": 0, "source_hash": "90b34402c25b2cf09d664f4bf39ed726b8cc32bbb8775c674ca1e1b243753e32", "categorized_nodes": 130}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <ClassKit/CLSObject.h>\n#", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "ClassKit/CLSObject.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 30}}, {"id": 2, "type": "preproc_call", "text": "import <libobjc.A.dylib/CLSRelationable.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": "libobjc.A.dylib/CLSRelationable.h>\n", "parent": 2, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 43}}, {"id": 4, "type": "ERROR", "text": "c", "parent": null, "children": [5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 5, "type": "ERROR", "text": "c", "parent": 4, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 6, "type": "declaration", "text": "lass NSString;\n", "parent": null, "children": [7, 8], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 16}}, {"id": 7, "type": "type_identifier", "text": "lass ", "parent": 6, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 6}}, {"id": 8, "type": "identifier", "text": "SString;", "parent": 6, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 15}}, {"id": 9, "type": "ERROR", "text": "i", "parent": null, "children": [10], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 10, "type": "ERROR", "text": "i", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 11, "type": "function_definition", "text": "nterface CLSActivityItem : CLSObject <CLSRelationable> {\n\n\tNSString* _title;\n\tNSString* _identifier;\n\n}\n", "parent": null, "children": [12, 13, 14], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 18, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "nterface ", "parent": 11, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 13, "type": "identifier", "text": "LSActivityItem ", "parent": 11, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 26}}, {"id": 14, "type": "ERROR", "text": " CLSObject <CLSRelationable> ", "parent": 11, "children": [15, 16, 17, 18], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 56}}, {"id": 15, "type": "identifier", "text": "LSObject ", "parent": 14, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 38}}, {"id": 16, "type": "<", "text": "C", "parent": 14, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 40}}, {"id": 17, "type": "identifier", "text": "LSRelationable>", "parent": 14, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 55}}, {"id": 18, "type": ">", "text": " ", "parent": 14, "children": [], "start_point": {"row": 13, "column": 55}, "end_point": {"row": 13, "column": 56}}, {"id": 19, "type": "declaration", "text": "SString* _title;\n", "parent": 11, "children": [20, 21], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 18}}, {"id": 20, "type": "type_identifier", "text": "SString*", "parent": 19, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 21, "type": "pointer_declarator", "text": " _title;", "parent": 19, "children": [22, 23], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 17}}, {"id": 22, "type": "*", "text": " ", "parent": 21, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 10}}, {"id": 23, "type": "identifier", "text": "title;", "parent": 21, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 17}}, {"id": 24, "type": "declaration", "text": "SString* _identifier;\n", "parent": 11, "children": [25, 26], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 23}}, {"id": 25, "type": "type_identifier", "text": "SString*", "parent": 24, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 26, "type": "pointer_declarator", "text": " _identifier;", "parent": 24, "children": [27, 28], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 22}}, {"id": 27, "type": "*", "text": " ", "parent": 26, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 10}}, {"id": 28, "type": "identifier", "text": "identifier;", "parent": 26, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 22}}, {"id": 29, "type": "ERROR", "text": "property (readonly) unsigned long ", "parent": null, "children": [30, 31, 35, 36], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 34}}, {"id": 30, "type": "ERROR", "text": "p", "parent": 29, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 31, "type": "macro_type_specifier", "text": "roperty (readonly) ", "parent": 29, "children": [32, 33], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 20}}, {"id": 32, "type": "identifier", "text": "roperty ", "parent": 31, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 33, "type": "type_descriptor", "text": "eadonly)", "parent": 31, "children": [34], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 19}}, {"id": 34, "type": "type_identifier", "text": "eadonly)", "parent": 33, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 19}}, {"id": 35, "type": "identifier", "text": "nsigned ", "parent": 29, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 29}}, {"id": 36, "type": "identifier", "text": "ong ", "parent": 29, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 34}}, {"id": 37, "type": "declaration", "text": "ong hash; ", "parent": null, "children": [38, 40], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 45}}, {"id": 38, "type": "sized_type_specifier", "text": "ong ", "parent": 37, "children": [39], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 39}}, {"id": 39, "type": "long", "text": "ong ", "parent": 38, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 39}}, {"id": 40, "type": "identifier", "text": "ash;", "parent": 37, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 44}}, {"id": 41, "type": "ERROR", "text": "p", "parent": null, "children": [42], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 42, "type": "ERROR", "text": "p", "parent": 41, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 43, "type": "declaration", "text": "roperty (readonly) Class superclass; ", "parent": null, "children": [44, 48, 50], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 38}}, {"id": 44, "type": "macro_type_specifier", "text": "roperty (readonly) ", "parent": 43, "children": [45, 46], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 20}}, {"id": 45, "type": "identifier", "text": "roperty ", "parent": 44, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 46, "type": "type_descriptor", "text": "eadonly)", "parent": 44, "children": [47], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 19}}, {"id": 47, "type": "type_identifier", "text": "eadonly)", "parent": 46, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 19}}, {"id": 48, "type": "ERROR", "text": "lass ", "parent": 43, "children": [49], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 26}}, {"id": 49, "type": "identifier", "text": "lass ", "parent": 48, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 26}}, {"id": 50, "type": "identifier", "text": "uperclass;", "parent": 43, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 37}}, {"id": 51, "type": "ERROR", "text": "p", "parent": null, "children": [52], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 52, "type": "ERROR", "text": "p", "parent": 51, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 53, "type": "call_expression", "text": "roperty (copy,readonly) ", "parent": null, "children": [54, 55], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 25}}, {"id": 54, "type": "identifier", "text": "roperty ", "parent": 53, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 55, "type": "argument_list", "text": "copy,readonly) ", "parent": 53, "children": [56, 57], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 25}}, {"id": 56, "type": "identifier", "text": "opy,", "parent": 55, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 15}}, {"id": 57, "type": "identifier", "text": "eadonly)", "parent": 55, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 24}}, {"id": 58, "type": "declaration", "text": "SString * description; ", "parent": null, "children": [59, 60], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 49}}, {"id": 59, "type": "type_identifier", "text": "SString ", "parent": 58, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 34}}, {"id": 60, "type": "pointer_declarator", "text": " description;", "parent": 58, "children": [61, 62], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 48}}, {"id": 61, "type": "*", "text": " ", "parent": 60, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 36}}, {"id": 62, "type": "identifier", "text": "escription;", "parent": 60, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 48}}, {"id": 63, "type": "ERROR", "text": "p", "parent": null, "children": [64], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 64, "type": "ERROR", "text": "p", "parent": 63, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 65, "type": "call_expression", "text": "roperty (copy,readonly) ", "parent": null, "children": [66, 67], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 25}}, {"id": 66, "type": "identifier", "text": "roperty ", "parent": 65, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 67, "type": "argument_list", "text": "copy,readonly) ", "parent": 65, "children": [68, 69], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 25}}, {"id": 68, "type": "identifier", "text": "opy,", "parent": 67, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 15}}, {"id": 69, "type": "identifier", "text": "eadonly)", "parent": 67, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 24}}, {"id": 70, "type": "declaration", "text": "SString * debugDescription; ", "parent": null, "children": [71, 72], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 54}}, {"id": 71, "type": "type_identifier", "text": "SString ", "parent": 70, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 34}}, {"id": 72, "type": "pointer_declarator", "text": " debugDescription;", "parent": 70, "children": [73, 74], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 53}}, {"id": 73, "type": "*", "text": " ", "parent": 72, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 36}}, {"id": 74, "type": "identifier", "text": "ebugDescription;", "parent": 72, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 53}}, {"id": 75, "type": "ERROR", "text": "p", "parent": null, "children": [76], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 76, "type": "ERROR", "text": "p", "parent": 75, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 77, "type": "call_expression", "text": "roperty (nonatomic,copy) ", "parent": null, "children": [78, 79], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 26}}, {"id": 78, "type": "identifier", "text": "roperty ", "parent": 77, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 79, "type": "argument_list", "text": "nonatomic,copy) ", "parent": 77, "children": [80, 81], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 26}}, {"id": 80, "type": "identifier", "text": "onatomic,", "parent": 79, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 20}}, {"id": 81, "type": "identifier", "text": "opy)", "parent": 79, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 25}}, {"id": 82, "type": "declaration", "text": "SString * identifier; ", "parent": null, "children": [83, 84], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 49}}, {"id": 83, "type": "type_identifier", "text": "SString ", "parent": 82, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 35}}, {"id": 84, "type": "pointer_declarator", "text": " identifier;", "parent": 82, "children": [85, 86], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 48}}, {"id": 85, "type": "*", "text": " ", "parent": 84, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 37}}, {"id": 86, "type": "identifier", "text": "dentifier;", "parent": 84, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 48}}, {"id": 87, "type": "ERROR", "text": "p", "parent": null, "children": [88], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 88, "type": "ERROR", "text": "p", "parent": 87, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 89, "type": "call_expression", "text": "roperty (nonatomic,copy) ", "parent": null, "children": [90, 91], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 26}}, {"id": 90, "type": "identifier", "text": "roperty ", "parent": 89, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 91, "type": "argument_list", "text": "nonatomic,copy) ", "parent": 89, "children": [92, 93], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 26}}, {"id": 92, "type": "identifier", "text": "onatomic,", "parent": 91, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 20}}, {"id": 93, "type": "identifier", "text": "opy)", "parent": 91, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 25}}, {"id": 94, "type": "declaration", "text": "SString * title; ", "parent": null, "children": [95, 96], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 44}}, {"id": 95, "type": "type_identifier", "text": "SString ", "parent": 94, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 35}}, {"id": 96, "type": "pointer_declarator", "text": " title;", "parent": 94, "children": [97, 98], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 43}}, {"id": 97, "type": "*", "text": " ", "parent": 96, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 37}}, {"id": 98, "type": "identifier", "text": "itle;", "parent": 96, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 43}}, {"id": 99, "type": "unary_expression", "text": "(BOOL)supportsSecureCoding;", "parent": null, "children": [100], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 27}}, {"id": 100, "type": "cast_expression", "text": "BOOL)supportsSecureCoding;", "parent": 99, "children": [101, 103], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 27}}, {"id": 101, "type": "type_descriptor", "text": "OOL)", "parent": 100, "children": [102], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 102, "type": "type_identifier", "text": "OOL)", "parent": 101, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 103, "type": "identifier", "text": "upportsSecureCoding;", "parent": 100, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 27}}, {"id": 104, "type": "unary_expression", "text": "(id)relations;", "parent": null, "children": [105], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 14}}, {"id": 105, "type": "cast_expression", "text": "id)relations;", "parent": 104, "children": [106, 108], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 14}}, {"id": 106, "type": "type_descriptor", "text": "d)", "parent": 105, "children": [107], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 4}}, {"id": 107, "type": "type_identifier", "text": "d)", "parent": 106, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 4}}, {"id": 108, "type": "identifier", "text": "elations;", "parent": 105, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 14}}, {"id": 109, "type": "ERROR", "text": "(id)initWithIdentifier:(id)a", "parent": null, "children": [110, 115], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 28}}, {"id": 110, "type": "unary_expression", "text": "(id)initWithIdentifier:", "parent": 109, "children": [111], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 23}}, {"id": 111, "type": "cast_expression", "text": "id)initWithIdentifier:", "parent": 110, "children": [112, 114], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 23}}, {"id": 112, "type": "type_descriptor", "text": "d)", "parent": 111, "children": [113], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 4}}, {"id": 113, "type": "type_identifier", "text": "d)", "parent": 112, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 4}}, {"id": 114, "type": "identifier", "text": "nitWithIdentifier:", "parent": 111, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 23}}, {"id": 115, "type": "identifier", "text": "d)", "parent": 109, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 27}}, {"id": 116, "type": "declaration", "text": "rg1 title:(id)arg2 ;\n", "parent": null, "children": [117, 118, 119], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 49}}, {"id": 117, "type": "type_identifier", "text": "rg1 ", "parent": 116, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 32}}, {"id": 118, "type": "identifier", "text": "itle:", "parent": 116, "children": [], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 38}}, {"id": 119, "type": "ERROR", "text": "(id)arg2 ", "parent": 116, "children": [120, 121], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 47}}, {"id": 120, "type": "identifier", "text": "d)", "parent": 119, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 42}}, {"id": 121, "type": "identifier", "text": "rg2 ", "parent": 119, "children": [], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 47}}, {"id": 122, "type": "update_expression", "text": "(BOOL)validateObject:(id*)arg1 ", "parent": null, "children": [123, 133], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 31}}, {"id": 123, "type": "binary_expression", "text": "(BOOL)validateObject:(id*)arg1 ", "parent": 122, "children": [124, 129, 131, 132], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 31}}, {"id": 124, "type": "unary_expression", "text": "(BOOL)validateObject:", "parent": 123, "children": [125], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 21}}, {"id": 125, "type": "cast_expression", "text": "BOOL)validateObject:", "parent": 124, "children": [126, 128], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 21}}, {"id": 126, "type": "type_descriptor", "text": "OOL)", "parent": 125, "children": [127], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 127, "type": "type_identifier", "text": "OOL)", "parent": 126, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 128, "type": "identifier", "text": "alidateObject:", "parent": 125, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 21}}, {"id": 129, "type": "ERROR", "text": "(id*", "parent": 123, "children": [130], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 25}}, {"id": 130, "type": "identifier", "text": "d*", "parent": 129, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 25}}, {"id": 131, "type": "ERROR", "text": "a", "parent": 123, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 27}}, {"id": 132, "type": "identifier", "text": "rg1 ", "parent": 123, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 31}}, {"id": 133, "type": "--", "text": "", "parent": 122, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 31}}, {"id": 134, "type": "unary_expression", "text": "(NSString *)identifier;", "parent": null, "children": [135], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 23}}, {"id": 135, "type": "cast_expression", "text": "NSString *)identifier;", "parent": 134, "children": [136, 138], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 23}}, {"id": 136, "type": "type_descriptor", "text": "SString *)", "parent": 135, "children": [137], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 12}}, {"id": 137, "type": "type_identifier", "text": "SString ", "parent": 136, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 10}}, {"id": 138, "type": "identifier", "text": "dentifier;", "parent": 135, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 23}}, {"id": 139, "type": "unary_expression", "text": "(void)encodeWithCoder:", "parent": null, "children": [140], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 22}}, {"id": 140, "type": "cast_expression", "text": "void)encodeWithCoder:", "parent": 139, "children": [141, 143], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 22}}, {"id": 141, "type": "type_descriptor", "text": "oid)", "parent": 140, "children": [142], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 142, "type": "primitive_type", "text": "oid)", "parent": 141, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 143, "type": "identifier", "text": "ncodeWithCoder:", "parent": 140, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 22}}, {"id": 144, "type": "ERROR", "text": "(id)arg1 ", "parent": null, "children": [145, 146], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 31}}, {"id": 145, "type": "identifier", "text": "d)", "parent": 144, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 26}}, {"id": 146, "type": "identifier", "text": "rg1 ", "parent": 144, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 31}}, {"id": 147, "type": "unary_expression", "text": "(id)initWithCoder:", "parent": null, "children": [148], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 18}}, {"id": 148, "type": "cast_expression", "text": "id)initWithCoder:", "parent": 147, "children": [149, 151], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 18}}, {"id": 149, "type": "type_descriptor", "text": "d)", "parent": 148, "children": [150], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 4}}, {"id": 150, "type": "type_identifier", "text": "d)", "parent": 149, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 4}}, {"id": 151, "type": "identifier", "text": "nitWithCoder:", "parent": 148, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 18}}, {"id": 152, "type": "ERROR", "text": "(id)arg1 ", "parent": null, "children": [153, 154], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 27}}, {"id": 153, "type": "identifier", "text": "d)", "parent": 152, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 22}}, {"id": 154, "type": "identifier", "text": "rg1 ", "parent": 152, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 27}}, {"id": 155, "type": "unary_expression", "text": "(NSString *)description;", "parent": null, "children": [156], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 24}}, {"id": 156, "type": "cast_expression", "text": "NSString *)description;", "parent": 155, "children": [157, 159], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 24}}, {"id": 157, "type": "type_descriptor", "text": "SString *)", "parent": 156, "children": [158], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 12}}, {"id": 158, "type": "type_identifier", "text": "SString ", "parent": 157, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 10}}, {"id": 159, "type": "identifier", "text": "escription;", "parent": 156, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 24}}, {"id": 160, "type": "update_expression", "text": "(void)setTitle:(NSString *)arg1 ", "parent": null, "children": [161, 171], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 32}}, {"id": 161, "type": "binary_expression", "text": "(void)setTitle:(NSString *)arg1 ", "parent": 160, "children": [162, 167, 169, 170], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 32}}, {"id": 162, "type": "unary_expression", "text": "(void)setTitle:", "parent": 161, "children": [163], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 15}}, {"id": 163, "type": "cast_expression", "text": "void)setTitle:", "parent": 162, "children": [164, 166], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 15}}, {"id": 164, "type": "type_descriptor", "text": "oid)", "parent": 163, "children": [165], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 165, "type": "primitive_type", "text": "oid)", "parent": 164, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 166, "type": "identifier", "text": "etTitle:", "parent": 163, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 15}}, {"id": 167, "type": "ERROR", "text": "(NSString ", "parent": 161, "children": [168], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 25}}, {"id": 168, "type": "identifier", "text": "SString ", "parent": 167, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 25}}, {"id": 169, "type": "ERROR", "text": "a", "parent": 161, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 28}}, {"id": 170, "type": "identifier", "text": "rg1 ", "parent": 161, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 32}}, {"id": 171, "type": "--", "text": "", "parent": 160, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 32}}, {"id": 172, "type": "unary_expression", "text": "(NSString *)title;", "parent": null, "children": [173], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 18}}, {"id": 173, "type": "cast_expression", "text": "NSString *)title;", "parent": 172, "children": [174, 176], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 18}}, {"id": 174, "type": "type_descriptor", "text": "SString *)", "parent": 173, "children": [175], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 12}}, {"id": 175, "type": "type_identifier", "text": "SString ", "parent": 174, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 10}}, {"id": 176, "type": "identifier", "text": "itle;", "parent": 173, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 18}}, {"id": 177, "type": "update_expression", "text": "(void)setIdentifier:(NSString *)arg1 ", "parent": null, "children": [178, 188], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 37}}, {"id": 178, "type": "binary_expression", "text": "(void)setIdentifier:(NSString *)arg1 ", "parent": 177, "children": [179, 184, 186, 187], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 37}}, {"id": 179, "type": "unary_expression", "text": "(void)setIdentifier:", "parent": 178, "children": [180], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 20}}, {"id": 180, "type": "cast_expression", "text": "void)setIdentifier:", "parent": 179, "children": [181, 183], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 20}}, {"id": 181, "type": "type_descriptor", "text": "oid)", "parent": 180, "children": [182], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 182, "type": "primitive_type", "text": "oid)", "parent": 181, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 183, "type": "identifier", "text": "etIdentifier:", "parent": 180, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 20}}, {"id": 184, "type": "ERROR", "text": "(NSString ", "parent": 178, "children": [185], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 30}}, {"id": 185, "type": "identifier", "text": "SString ", "parent": 184, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 30}}, {"id": 186, "type": "ERROR", "text": "a", "parent": 178, "children": [], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 33}}, {"id": 187, "type": "identifier", "text": "rg1 ", "parent": 178, "children": [], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 37}}, {"id": 188, "type": "--", "text": "", "parent": 177, "children": [], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 37}}, {"id": 189, "type": "unary_expression", "text": "(id)dictionaryRepresentation;", "parent": null, "children": [190], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 29}}, {"id": 190, "type": "cast_expression", "text": "id)dictionaryRepresentation;", "parent": 189, "children": [191, 193], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 29}}, {"id": 191, "type": "type_descriptor", "text": "d)", "parent": 190, "children": [192], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 4}}, {"id": 192, "type": "type_identifier", "text": "d)", "parent": 191, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 4}}, {"id": 193, "type": "identifier", "text": "ictionaryRepresentation;", "parent": 190, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 29}}, {"id": 194, "type": "unary_expression", "text": "(id)_init;", "parent": null, "children": [195], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 10}}, {"id": 195, "type": "cast_expression", "text": "id)_init;", "parent": 194, "children": [196, 198], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 10}}, {"id": 196, "type": "type_descriptor", "text": "d)", "parent": 195, "children": [197], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 4}}, {"id": 197, "type": "type_identifier", "text": "d)", "parent": 196, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 4}}, {"id": 198, "type": "identifier", "text": "init;", "parent": 195, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 10}}, {"id": 199, "type": "ERROR", "text": "e", "parent": null, "children": [200], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 200, "type": "ERROR", "text": "e", "parent": 199, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 201, "type": "identifier", "text": "nd\n", "parent": null, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [6, 19, 24, 37, 43, 58, 70, 82, 94, 116], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [53, 65, 77, 89, 99, 100, 104, 105, 110, 111, 122, 123, 124, 125, 134, 135, 139, 140, 147, 148, 155, 156, 160, 161, 162, 163, 172, 173, 177, 178, 179, 180, 189, 190, 194, 195], "assignments": [], "loops": [], "conditionals": [7, 8, 12, 13, 15, 17, 20, 23, 25, 28, 31, 32, 34, 35, 36, 38, 40, 44, 45, 47, 49, 50, 54, 56, 57, 59, 62, 66, 68, 69, 71, 74, 78, 80, 81, 83, 86, 90, 92, 93, 95, 98, 102, 103, 107, 108, 113, 114, 115, 117, 118, 120, 121, 127, 128, 130, 132, 137, 138, 143, 145, 146, 150, 151, 153, 154, 158, 159, 166, 168, 170, 175, 176, 183, 185, 187, 192, 193, 197, 198, 201], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 2], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "nterface CLSActivityItem : CLSObject <CLSRelationable> {\n\n\tNSString* _title;\n\tNSString* _identifier;"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n* This header is generated by classdump-dyld 1.0\n* on Saturday, June 1, 2019 at 6:52:19 PM Mountain Standard Time\n* Operating System: Version 12.1.1 (Build 16C5050a)\n* Image Source: /System/Library/Frameworks/ClassKit.framework/ClassKit\n* classdump-dyld is licensed under GPLv3, Copyright \u00a9 2013-2016 by <NAME>.\n*/\n\n#import <ClassKit/CLSObject.h>\n#import <libobjc.A.dylib/CLSRelationable.h>\n\n@class NSString;\n\n@interface CLSActivityItem : CLSObject <CLSRelationable> {\n\n\tNSString* _title;\n\tNSString* _identifier;\n\n}\n\n@property (readonly) unsigned long long hash; \n@property (readonly) Class superclass; \n@property (copy,readonly) NSString * description; \n@property (copy,readonly) NSString * debugDescription; \n@property (nonatomic,copy) NSString * identifier; //@synthesize identifier=_identifier - In the implementation block\n@property (nonatomic,copy) NSString * title; \n+(BOOL)supportsSecureCoding;\n+(id)relations;\n-(id)initWithIdentifier:(id)arg1 title:(id)arg2 ;\n-(BOOL)validateObject:(id*)arg1 ;\n-(NSString *)identifier;\n-(void)encodeWithCoder:(id)arg1 ;\n-(id)initWithCoder:(id)arg1 ;\n-(NSString *)description;\n-(void)setTitle:(NSString *)arg1 ;\n-(NSString *)title;\n-(void)setIdentifier:(NSString *)arg1 ;\n-(id)dictionaryRepresentation;\n-(id)_init;\n@end\n\n"}
80,894
c
/*s: kernel/devices/screen/devdraw.h */ typedef struct Client Client; typedef struct KDraw KDraw; typedef struct DImage DImage; typedef struct DName DName; typedef struct DScreen DScreen; typedef struct CScreen CScreen; typedef struct FChar FChar; typedef struct Refresh Refresh; typedef struct Refx Refx; /*s: constant NHASH bis */ #define NHASH (1<<5) /*e: constant NHASH bis */ /*s: constant [[HASHMASK]] */ #define HASHMASK (NHASH-1) /*e: constant [[HASHMASK]] */ /*s: struct [[KDraw]] */ struct KDraw { // growing_array<option<Client>> (size = KDraw.nclient) Client** client; int nclient; // gensym int clientid; /*s: [[KDraw]] other fields */ bool softscreen; /*x: [[KDraw]] other fields */ // growing_array<DName>, size = KDraw.nname DName* name; int nname; /*x: [[KDraw]] other fields */ int vers; /*x: [[KDraw]] other fields */ bool blanked; /* screen turned off */ /*x: [[KDraw]] other fields */ ulong savemap[3*256]; /*x: [[KDraw]] other fields */ ulong blanktime; /* time of last operation */ /*e: [[KDraw]] other fields */ }; /*e: struct [[KDraw]] */ /*s: struct [[Client]] */ struct Client { int clientid; // /dev/draw/x/ // hash<Image.id, ref_own<Dimage>> (next = Dimage.next in bucket) DImage* dimage[NHASH]; /*s: [[Client]] drawing state fields */ // enum<Drawop> int op; /*e: [[Client]] drawing state fields */ /*s: [[Client]] layer fields */ // list<ref_own<DScreen>> (next = CScreen.next) CScreen* cscreen; /*e: [[Client]] layer fields */ /*s: [[Client]] other fields */ // index in KDraw.clients[] int slot; /*x: [[Client]] other fields */ int infoid; /*x: [[Client]] other fields */ // array<byte> (size >= Client.nreaddata) byte* readdata; int nreaddata; /*x: [[Client]] other fields */ Refresh* refresh; Rendez refrend; int refreshme; /*e: [[Client]] other fields */ // Extra /*s: [[Client]] concurrency fields */ bool busy; /*e: [[Client]] concurrency fields */ Ref r; }; /*e: struct [[Client]] */ /*s: struct [[DName]] */ struct DName { // key char *name; // value Client *client; // the owner DImage* dimage; /*s: [[DName]] other fields */ int vers; /*e: [[DName]] other fields */ }; /*e: struct [[DName]] */ /*s: struct [[DImage]] */ /* * Reference counts in DImages: * one per open by original client * one per screen image or fill * one per image derived from this one by name */ struct DImage { int id; Memimage* image; /*s: [[DImage]] layer fields */ DScreen* dscreen; /* nil if not a window */ /*e: [[DImage]] layer fields */ /*s: [[DImage]] font fields */ // growing_hash<Rune, ref_own<Fchar>> (size = DImage.nfchar) FChar* fchar; int nfchar; /*x: [[DImage]] font fields */ int ascent; /*e: [[DImage]] font fields */ /*s: [[DImage]] other fields */ // option<string>, Some when DImage derives from a named image char *name; // option<ref<DImage>> DImage* fromname; /* image this one is derived from, by name */ /*x: [[DImage]] other fields */ int vers; /*e: [[DImage]] other fields */ // Extra /*s: [[DImage]] extra fields */ DImage* next; /*e: [[DImage]] extra fields */ int ref; }; /*e: struct [[DImage]] */ /*s: struct [[FChar]] */ struct FChar { // Rectangle in Font.cacheimage int minx; /* left edge of bits */ int maxx; /* right edge of bits */ uchar miny; /* first non-zero scan-line */ uchar maxy; /* last non-zero scan-line + 1 */ schar left; /* offset of baseline */ uchar width; /* width of baseline */ }; /*e: struct [[FChar]] */ /*s: struct [[CScreen]] */ struct CScreen { // ref_shared<DScreen> DScreen* dscreen; CScreen* next; }; /*e: struct [[CScreen]] */ /*s: struct [[DScreen]] */ struct DScreen { int id; DImage *dimage; DImage *dfill; /*s: [[DScreen]] other fields */ bool public; /*x: [[DScreen]] other fields */ Client* owner; /*x: [[DScreen]] other fields */ // ref_own<Memscreen> Memscreen* screen; /*e: [[DScreen]] other fields */ // Extra int ref; /*s: [[DScreen]] extra fields */ // list<ref<DScreen>> (head = dscreen) DScreen* next; /*e: [[DScreen]] extra fields */ }; /*e: struct [[DScreen]] */ /*s: struct [[Refresh]] */ struct Refresh { DImage* dimage; Rectangle r; Refresh* next; }; /*e: struct [[Refresh]] */ /*s: struct [[Refx]] */ struct Refx { Client* client; DImage* dimage; }; /*e: struct [[Refx]] */ // drawerror.c extern char Enodrawimage[]; extern char Enodrawscreen[]; extern char Eshortdraw[]; extern char Eshortread[]; extern char Eimageexists[]; extern char Escreenexists[]; extern char Edrawmem[]; extern char Ereadoutside[]; extern char Ewriteoutside[]; extern char Enotfont[]; extern char Eindex[]; extern char Enoclient[]; extern char Enameused[]; extern char Enoname[]; extern char Eoldname[]; extern char Enamed[]; extern char Ewrongname[]; //drawinit.c extern Memimage *screenimage; error0 initscreenimage(void); //devdraw.c extern KDraw sdraw; void dlock(void); int candlock(void); void dunlock(void); DImage* drawlookup(Client *client, int id, bool checkname); void addflush(Rectangle r); void dstflush(int dstid, Memimage *dst, Rectangle r); void drawflush(void); //drawalloc.c DImage* allocdimage(Memimage *i); void drawfreedimage(DImage *dimage); Memimage* drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen); void drawuninstall(Client *client, int id); //drawname.c extern char screenname[]; DName* drawlookupname(int n, char *str); bool drawgoodname(DImage *d); void drawaddname(Client *client, DImage *di, int n, char *str); void drawdelname(DName *name); //drawwindow.c DScreen* drawlookupscreen(Client *client, int id, CScreen **cs); Memscreen* drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool); void drawuninstallscreen(Client*, CScreen*); DScreen* drawlookupdscreen(int id); void drawfreedscreen(DScreen*); //drawmisc.c int drawrefactive(void *a); void drawrefresh(Memimage*, Rectangle r, void *v); void drawrefreshscreen(DImage *l, Client *client); /*e: kernel/devices/screen/devdraw.h */
26.32
240
(translation_unit) "/*s: kernel/devices/screen/devdraw.h */\n\ntypedef struct Client Client;\ntypedef struct KDraw KDraw;\ntypedef struct DImage DImage;\ntypedef struct DName DName;\ntypedef struct DScreen DScreen;\ntypedef struct CScreen CScreen;\ntypedef struct FChar FChar;\ntypedef struct Refresh Refresh;\ntypedef struct Refx Refx;\n\n/*s: constant NHASH bis */\n#define NHASH (1<<5)\n/*e: constant NHASH bis */\n/*s: constant [[HASHMASK]] */\n#define HASHMASK (NHASH-1)\n/*e: constant [[HASHMASK]] */\n\n\n/*s: struct [[KDraw]] */\nstruct KDraw\n{\n // growing_array<option<Client>> (size = KDraw.nclient)\n Client** client;\n int nclient;\n\n // gensym\n int clientid;\n \n /*s: [[KDraw]] other fields */\n bool softscreen;\n /*x: [[KDraw]] other fields */\n // growing_array<DName>, size = KDraw.nname\n DName* name;\n int nname;\n /*x: [[KDraw]] other fields */\n int vers;\n /*x: [[KDraw]] other fields */\n bool blanked; /* screen turned off */\n /*x: [[KDraw]] other fields */\n ulong savemap[3*256];\n /*x: [[KDraw]] other fields */\n ulong blanktime; /* time of last operation */\n /*e: [[KDraw]] other fields */\n};\n/*e: struct [[KDraw]] */\n\n/*s: struct [[Client]] */\nstruct Client\n{\n int clientid; // /dev/draw/x/\n\n // hash<Image.id, ref_own<Dimage>> (next = Dimage.next in bucket)\n DImage* dimage[NHASH];\n\n /*s: [[Client]] drawing state fields */\n // enum<Drawop>\n int op;\n /*e: [[Client]] drawing state fields */\n /*s: [[Client]] layer fields */\n // list<ref_own<DScreen>> (next = CScreen.next)\n CScreen* cscreen;\n /*e: [[Client]] layer fields */\n /*s: [[Client]] other fields */\n // index in KDraw.clients[]\n int slot;\n /*x: [[Client]] other fields */\n int infoid;\n /*x: [[Client]] other fields */\n // array<byte> (size >= Client.nreaddata)\n byte* readdata;\n int nreaddata;\n /*x: [[Client]] other fields */\n Refresh* refresh;\n Rendez refrend;\n int refreshme;\n /*e: [[Client]] other fields */\n\n // Extra\n /*s: [[Client]] concurrency fields */\n bool busy;\n /*e: [[Client]] concurrency fields */\n Ref r;\n};\n/*e: struct [[Client]] */\n\n\n/*s: struct [[DName]] */\nstruct DName\n{\n // key\n char *name;\n\n // value\n Client *client; // the owner\n DImage* dimage;\n /*s: [[DName]] other fields */\n int vers;\n /*e: [[DName]] other fields */\n};\n/*e: struct [[DName]] */\n\n\n/*s: struct [[DImage]] */\n/*\n * Reference counts in DImages:\n * one per open by original client\n * one per screen image or fill\n * one per image derived from this one by name\n */\nstruct DImage\n{\n int id;\n Memimage* image;\n\n /*s: [[DImage]] layer fields */\n DScreen* dscreen; /* nil if not a window */\n /*e: [[DImage]] layer fields */\n /*s: [[DImage]] font fields */\n // growing_hash<Rune, ref_own<Fchar>> (size = DImage.nfchar)\n FChar* fchar;\n int nfchar;\n /*x: [[DImage]] font fields */\n int ascent;\n /*e: [[DImage]] font fields */\n /*s: [[DImage]] other fields */\n // option<string>, Some when DImage derives from a named image\n char *name;\n // option<ref<DImage>>\n DImage* fromname; /* image this one is derived from, by name */\n /*x: [[DImage]] other fields */\n int vers;\n /*e: [[DImage]] other fields */\n\n // Extra\n /*s: [[DImage]] extra fields */\n DImage* next;\n /*e: [[DImage]] extra fields */\n int ref;\n};\n/*e: struct [[DImage]] */\n\n/*s: struct [[FChar]] */\nstruct FChar\n{\n // Rectangle in Font.cacheimage\n int minx; /* left edge of bits */\n int maxx; /* right edge of bits */\n uchar miny; /* first non-zero scan-line */\n uchar maxy; /* last non-zero scan-line + 1 */\n\n schar left; /* offset of baseline */\n uchar width; /* width of baseline */\n};\n/*e: struct [[FChar]] */\n\n\n\n/*s: struct [[CScreen]] */\nstruct CScreen\n{\n // ref_shared<DScreen>\n DScreen* dscreen;\n\n CScreen* next;\n};\n/*e: struct [[CScreen]] */\n\n/*s: struct [[DScreen]] */\nstruct DScreen\n{\n int id;\n\n DImage *dimage;\n DImage *dfill;\n\n /*s: [[DScreen]] other fields */\n bool public;\n /*x: [[DScreen]] other fields */\n Client* owner;\n /*x: [[DScreen]] other fields */\n // ref_own<Memscreen>\n Memscreen* screen;\n /*e: [[DScreen]] other fields */\n\n // Extra\n int ref;\n /*s: [[DScreen]] extra fields */\n // list<ref<DScreen>> (head = dscreen)\n DScreen* next;\n /*e: [[DScreen]] extra fields */\n};\n/*e: struct [[DScreen]] */\n\n\n/*s: struct [[Refresh]] */\nstruct Refresh\n{\n DImage* dimage;\n Rectangle r;\n Refresh* next;\n};\n/*e: struct [[Refresh]] */\n\n/*s: struct [[Refx]] */\nstruct Refx\n{\n Client* client;\n DImage* dimage;\n};\n/*e: struct [[Refx]] */\n\n// drawerror.c\nextern char Enodrawimage[];\nextern char Enodrawscreen[];\nextern char Eshortdraw[];\nextern char Eshortread[];\nextern char Eimageexists[];\nextern char Escreenexists[];\nextern char Edrawmem[];\nextern char Ereadoutside[];\nextern char Ewriteoutside[];\nextern char Enotfont[];\nextern char Eindex[];\nextern char Enoclient[];\nextern char Enameused[];\nextern char Enoname[];\nextern char Eoldname[];\nextern char Enamed[];\nextern char Ewrongname[];\n\n//drawinit.c\nextern Memimage *screenimage;\nerror0 initscreenimage(void);\n\n//devdraw.c\nextern KDraw sdraw;\nvoid dlock(void);\nint candlock(void);\nvoid dunlock(void);\nDImage* drawlookup(Client *client, int id, bool checkname);\nvoid addflush(Rectangle r);\nvoid dstflush(int dstid, Memimage *dst, Rectangle r);\nvoid drawflush(void);\n\n//drawalloc.c\nDImage* allocdimage(Memimage *i);\nvoid drawfreedimage(DImage *dimage);\nMemimage* drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen);\nvoid drawuninstall(Client *client, int id);\n\n//drawname.c\nextern char screenname[];\nDName* drawlookupname(int n, char *str);\nbool drawgoodname(DImage *d);\nvoid drawaddname(Client *client, DImage *di, int n, char *str);\nvoid drawdelname(DName *name);\n\n//drawwindow.c\nDScreen* drawlookupscreen(Client *client, int id, CScreen **cs);\nMemscreen* drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool);\nvoid drawuninstallscreen(Client*, CScreen*);\nDScreen* drawlookupdscreen(int id);\nvoid drawfreedscreen(DScreen*);\n\n//drawmisc.c\nint drawrefactive(void *a);\nvoid drawrefresh(Memimage*, Rectangle r, void *v);\nvoid drawrefreshscreen(DImage *l, Client *client);\n\n/*e: kernel/devices/screen/devdraw.h */\n" (comment) "/*s: kernel/devices/screen/devdraw.h */" (type_definition) "typedef struct Client Client;" (typedef) "typedef" (struct_specifier) "struct Client" (struct) "struct" (type_identifier) "Client" (type_identifier) "Client" (;) ";" (type_definition) "typedef struct KDraw KDraw;" (typedef) "typedef" (struct_specifier) "struct KDraw" (struct) "struct" (type_identifier) "KDraw" (type_identifier) "KDraw" (;) ";" (type_definition) "typedef struct DImage DImage;" (typedef) "typedef" (struct_specifier) "struct DImage" (struct) "struct" (type_identifier) "DImage" (type_identifier) "DImage" (;) ";" (type_definition) "typedef struct DName DName;" (typedef) "typedef" (struct_specifier) "struct DName" (struct) "struct" (type_identifier) "DName" (type_identifier) "DName" (;) ";" (type_definition) "typedef struct DScreen DScreen;" (typedef) "typedef" (struct_specifier) "struct DScreen" (struct) "struct" (type_identifier) "DScreen" (type_identifier) "DScreen" (;) ";" (type_definition) "typedef struct CScreen CScreen;" (typedef) "typedef" (struct_specifier) "struct CScreen" (struct) "struct" (type_identifier) "CScreen" (type_identifier) "CScreen" (;) ";" (type_definition) "typedef struct FChar FChar;" (typedef) "typedef" (struct_specifier) "struct FChar" (struct) "struct" (type_identifier) "FChar" (type_identifier) "FChar" (;) ";" (type_definition) "typedef struct Refresh Refresh;" (typedef) "typedef" (struct_specifier) "struct Refresh" (struct) "struct" (type_identifier) "Refresh" (type_identifier) "Refresh" (;) ";" (type_definition) "typedef struct Refx Refx;" (typedef) "typedef" (struct_specifier) "struct Refx" (struct) "struct" (type_identifier) "Refx" (type_identifier) "Refx" (;) ";" (comment) "/*s: constant NHASH bis */" (preproc_def) "#define NHASH (1<<5)\n" (#define) "#define" (identifier) "NHASH" (preproc_arg) "(1<<5)" (comment) "/*e: constant NHASH bis */" (comment) "/*s: constant [[HASHMASK]] */" (preproc_def) "#define HASHMASK (NHASH-1)\n" (#define) "#define" (identifier) "HASHMASK" (preproc_arg) "(NHASH-1)" (comment) "/*e: constant [[HASHMASK]] */" (comment) "/*s: struct [[KDraw]] */" (struct_specifier) "struct KDraw\n{\n // growing_array<option<Client>> (size = KDraw.nclient)\n Client** client;\n int nclient;\n\n // gensym\n int clientid;\n \n /*s: [[KDraw]] other fields */\n bool softscreen;\n /*x: [[KDraw]] other fields */\n // growing_array<DName>, size = KDraw.nname\n DName* name;\n int nname;\n /*x: [[KDraw]] other fields */\n int vers;\n /*x: [[KDraw]] other fields */\n bool blanked; /* screen turned off */\n /*x: [[KDraw]] other fields */\n ulong savemap[3*256];\n /*x: [[KDraw]] other fields */\n ulong blanktime; /* time of last operation */\n /*e: [[KDraw]] other fields */\n}" (struct) "struct" (type_identifier) "KDraw" (field_declaration_list) "{\n // growing_array<option<Client>> (size = KDraw.nclient)\n Client** client;\n int nclient;\n\n // gensym\n int clientid;\n \n /*s: [[KDraw]] other fields */\n bool softscreen;\n /*x: [[KDraw]] other fields */\n // growing_array<DName>, size = KDraw.nname\n DName* name;\n int nname;\n /*x: [[KDraw]] other fields */\n int vers;\n /*x: [[KDraw]] other fields */\n bool blanked; /* screen turned off */\n /*x: [[KDraw]] other fields */\n ulong savemap[3*256];\n /*x: [[KDraw]] other fields */\n ulong blanktime; /* time of last operation */\n /*e: [[KDraw]] other fields */\n}" ({) "{" (comment) "// growing_array<option<Client>> (size = KDraw.nclient)" (field_declaration) "Client** client;" (type_identifier) "Client" (pointer_declarator) "** client" (*) "*" (pointer_declarator) "* client" (*) "*" (field_identifier) "client" (;) ";" (field_declaration) "int nclient;" (primitive_type) "int" (field_identifier) "nclient" (;) ";" (comment) "// gensym" (field_declaration) "int clientid;" (primitive_type) "int" (field_identifier) "clientid" (;) ";" (comment) "/*s: [[KDraw]] other fields */" (field_declaration) "bool softscreen;" (primitive_type) "bool" (field_identifier) "softscreen" (;) ";" (comment) "/*x: [[KDraw]] other fields */" (comment) "// growing_array<DName>, size = KDraw.nname" (field_declaration) "DName* name;" (type_identifier) "DName" (pointer_declarator) "* name" (*) "*" (field_identifier) "name" (;) ";" (field_declaration) "int nname;" (primitive_type) "int" (field_identifier) "nname" (;) ";" (comment) "/*x: [[KDraw]] other fields */" (field_declaration) "int vers;" (primitive_type) "int" (field_identifier) "vers" (;) ";" (comment) "/*x: [[KDraw]] other fields */" (field_declaration) "bool blanked;" (primitive_type) "bool" (field_identifier) "blanked" (;) ";" (comment) "/* screen turned off */" (comment) "/*x: [[KDraw]] other fields */" (field_declaration) "ulong savemap[3*256];" (type_identifier) "ulong" (array_declarator) "savemap[3*256]" (field_identifier) "savemap" ([) "[" (binary_expression) "3*256" (number_literal) "3" (*) "*" (number_literal) "256" (]) "]" (;) ";" (comment) "/*x: [[KDraw]] other fields */" (field_declaration) "ulong blanktime;" (type_identifier) "ulong" (field_identifier) "blanktime" (;) ";" (comment) "/* time of last operation */" (comment) "/*e: [[KDraw]] other fields */" (}) "}" (;) ";" (comment) "/*e: struct [[KDraw]] */" (comment) "/*s: struct [[Client]] */" (struct_specifier) "struct Client\n{\n int clientid; // /dev/draw/x/\n\n // hash<Image.id, ref_own<Dimage>> (next = Dimage.next in bucket)\n DImage* dimage[NHASH];\n\n /*s: [[Client]] drawing state fields */\n // enum<Drawop>\n int op;\n /*e: [[Client]] drawing state fields */\n /*s: [[Client]] layer fields */\n // list<ref_own<DScreen>> (next = CScreen.next)\n CScreen* cscreen;\n /*e: [[Client]] layer fields */\n /*s: [[Client]] other fields */\n // index in KDraw.clients[]\n int slot;\n /*x: [[Client]] other fields */\n int infoid;\n /*x: [[Client]] other fields */\n // array<byte> (size >= Client.nreaddata)\n byte* readdata;\n int nreaddata;\n /*x: [[Client]] other fields */\n Refresh* refresh;\n Rendez refrend;\n int refreshme;\n /*e: [[Client]] other fields */\n\n // Extra\n /*s: [[Client]] concurrency fields */\n bool busy;\n /*e: [[Client]] concurrency fields */\n Ref r;\n}" (struct) "struct" (type_identifier) "Client" (field_declaration_list) "{\n int clientid; // /dev/draw/x/\n\n // hash<Image.id, ref_own<Dimage>> (next = Dimage.next in bucket)\n DImage* dimage[NHASH];\n\n /*s: [[Client]] drawing state fields */\n // enum<Drawop>\n int op;\n /*e: [[Client]] drawing state fields */\n /*s: [[Client]] layer fields */\n // list<ref_own<DScreen>> (next = CScreen.next)\n CScreen* cscreen;\n /*e: [[Client]] layer fields */\n /*s: [[Client]] other fields */\n // index in KDraw.clients[]\n int slot;\n /*x: [[Client]] other fields */\n int infoid;\n /*x: [[Client]] other fields */\n // array<byte> (size >= Client.nreaddata)\n byte* readdata;\n int nreaddata;\n /*x: [[Client]] other fields */\n Refresh* refresh;\n Rendez refrend;\n int refreshme;\n /*e: [[Client]] other fields */\n\n // Extra\n /*s: [[Client]] concurrency fields */\n bool busy;\n /*e: [[Client]] concurrency fields */\n Ref r;\n}" ({) "{" (field_declaration) "int clientid;" (primitive_type) "int" (field_identifier) "clientid" (;) ";" (comment) "// /dev/draw/x/" (comment) "// hash<Image.id, ref_own<Dimage>> (next = Dimage.next in bucket)" (field_declaration) "DImage* dimage[NHASH];" (type_identifier) "DImage" (pointer_declarator) "* dimage[NHASH]" (*) "*" (array_declarator) "dimage[NHASH]" (field_identifier) "dimage" ([) "[" (identifier) "NHASH" (]) "]" (;) ";" (comment) "/*s: [[Client]] drawing state fields */" (comment) "// enum<Drawop>" (field_declaration) "int op;" (primitive_type) "int" (field_identifier) "op" (;) ";" (comment) "/*e: [[Client]] drawing state fields */" (comment) "/*s: [[Client]] layer fields */" (comment) "// list<ref_own<DScreen>> (next = CScreen.next)" (field_declaration) "CScreen* cscreen;" (type_identifier) "CScreen" (pointer_declarator) "* cscreen" (*) "*" (field_identifier) "cscreen" (;) ";" (comment) "/*e: [[Client]] layer fields */" (comment) "/*s: [[Client]] other fields */" (comment) "// index in KDraw.clients[]" (field_declaration) "int slot;" (primitive_type) "int" (field_identifier) "slot" (;) ";" (comment) "/*x: [[Client]] other fields */" (field_declaration) "int infoid;" (primitive_type) "int" (field_identifier) "infoid" (;) ";" (comment) "/*x: [[Client]] other fields */" (comment) "// array<byte> (size >= Client.nreaddata)" (field_declaration) "byte* readdata;" (type_identifier) "byte" (pointer_declarator) "* readdata" (*) "*" (field_identifier) "readdata" (;) ";" (field_declaration) "int nreaddata;" (primitive_type) "int" (field_identifier) "nreaddata" (;) ";" (comment) "/*x: [[Client]] other fields */" (field_declaration) "Refresh* refresh;" (type_identifier) "Refresh" (pointer_declarator) "* refresh" (*) "*" (field_identifier) "refresh" (;) ";" (field_declaration) "Rendez refrend;" (type_identifier) "Rendez" (field_identifier) "refrend" (;) ";" (field_declaration) "int refreshme;" (primitive_type) "int" (field_identifier) "refreshme" (;) ";" (comment) "/*e: [[Client]] other fields */" (comment) "// Extra" (comment) "/*s: [[Client]] concurrency fields */" (field_declaration) "bool busy;" (primitive_type) "bool" (field_identifier) "busy" (;) ";" (comment) "/*e: [[Client]] concurrency fields */" (field_declaration) "Ref r;" (type_identifier) "Ref" (field_identifier) "r" (;) ";" (}) "}" (;) ";" (comment) "/*e: struct [[Client]] */" (comment) "/*s: struct [[DName]] */" (struct_specifier) "struct DName\n{\n // key\n char *name;\n\n // value\n Client *client; // the owner\n DImage* dimage;\n /*s: [[DName]] other fields */\n int vers;\n /*e: [[DName]] other fields */\n}" (struct) "struct" (type_identifier) "DName" (field_declaration_list) "{\n // key\n char *name;\n\n // value\n Client *client; // the owner\n DImage* dimage;\n /*s: [[DName]] other fields */\n int vers;\n /*e: [[DName]] other fields */\n}" ({) "{" (comment) "// key" (field_declaration) "char *name;" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (comment) "// value" (field_declaration) "Client *client;" (type_identifier) "Client" (pointer_declarator) "*client" (*) "*" (field_identifier) "client" (;) ";" (comment) "// the owner" (field_declaration) "DImage* dimage;" (type_identifier) "DImage" (pointer_declarator) "* dimage" (*) "*" (field_identifier) "dimage" (;) ";" (comment) "/*s: [[DName]] other fields */" (field_declaration) "int vers;" (primitive_type) "int" (field_identifier) "vers" (;) ";" (comment) "/*e: [[DName]] other fields */" (}) "}" (;) ";" (comment) "/*e: struct [[DName]] */" (comment) "/*s: struct [[DImage]] */" (comment) "/*\n * Reference counts in DImages:\n * one per open by original client\n * one per screen image or fill\n * one per image derived from this one by name\n */" (struct_specifier) "struct DImage\n{\n int id;\n Memimage* image;\n\n /*s: [[DImage]] layer fields */\n DScreen* dscreen; /* nil if not a window */\n /*e: [[DImage]] layer fields */\n /*s: [[DImage]] font fields */\n // growing_hash<Rune, ref_own<Fchar>> (size = DImage.nfchar)\n FChar* fchar;\n int nfchar;\n /*x: [[DImage]] font fields */\n int ascent;\n /*e: [[DImage]] font fields */\n /*s: [[DImage]] other fields */\n // option<string>, Some when DImage derives from a named image\n char *name;\n // option<ref<DImage>>\n DImage* fromname; /* image this one is derived from, by name */\n /*x: [[DImage]] other fields */\n int vers;\n /*e: [[DImage]] other fields */\n\n // Extra\n /*s: [[DImage]] extra fields */\n DImage* next;\n /*e: [[DImage]] extra fields */\n int ref;\n}" (struct) "struct" (type_identifier) "DImage" (field_declaration_list) "{\n int id;\n Memimage* image;\n\n /*s: [[DImage]] layer fields */\n DScreen* dscreen; /* nil if not a window */\n /*e: [[DImage]] layer fields */\n /*s: [[DImage]] font fields */\n // growing_hash<Rune, ref_own<Fchar>> (size = DImage.nfchar)\n FChar* fchar;\n int nfchar;\n /*x: [[DImage]] font fields */\n int ascent;\n /*e: [[DImage]] font fields */\n /*s: [[DImage]] other fields */\n // option<string>, Some when DImage derives from a named image\n char *name;\n // option<ref<DImage>>\n DImage* fromname; /* image this one is derived from, by name */\n /*x: [[DImage]] other fields */\n int vers;\n /*e: [[DImage]] other fields */\n\n // Extra\n /*s: [[DImage]] extra fields */\n DImage* next;\n /*e: [[DImage]] extra fields */\n int ref;\n}" ({) "{" (field_declaration) "int id;" (primitive_type) "int" (field_identifier) "id" (;) ";" (field_declaration) "Memimage* image;" (type_identifier) "Memimage" (pointer_declarator) "* image" (*) "*" (field_identifier) "image" (;) ";" (comment) "/*s: [[DImage]] layer fields */" (field_declaration) "DScreen* dscreen;" (type_identifier) "DScreen" (pointer_declarator) "* dscreen" (*) "*" (field_identifier) "dscreen" (;) ";" (comment) "/* nil if not a window */" (comment) "/*e: [[DImage]] layer fields */" (comment) "/*s: [[DImage]] font fields */" (comment) "// growing_hash<Rune, ref_own<Fchar>> (size = DImage.nfchar)" (field_declaration) "FChar* fchar;" (type_identifier) "FChar" (pointer_declarator) "* fchar" (*) "*" (field_identifier) "fchar" (;) ";" (field_declaration) "int nfchar;" (primitive_type) "int" (field_identifier) "nfchar" (;) ";" (comment) "/*x: [[DImage]] font fields */" (field_declaration) "int ascent;" (primitive_type) "int" (field_identifier) "ascent" (;) ";" (comment) "/*e: [[DImage]] font fields */" (comment) "/*s: [[DImage]] other fields */" (comment) "// option<string>, Some when DImage derives from a named image" (field_declaration) "char *name;" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (comment) "// option<ref<DImage>>" (field_declaration) "DImage* fromname;" (type_identifier) "DImage" (pointer_declarator) "* fromname" (*) "*" (field_identifier) "fromname" (;) ";" (comment) "/* image this one is derived from, by name */" (comment) "/*x: [[DImage]] other fields */" (field_declaration) "int vers;" (primitive_type) "int" (field_identifier) "vers" (;) ";" (comment) "/*e: [[DImage]] other fields */" (comment) "// Extra" (comment) "/*s: [[DImage]] extra fields */" (field_declaration) "DImage* next;" (type_identifier) "DImage" (pointer_declarator) "* next" (*) "*" (field_identifier) "next" (;) ";" (comment) "/*e: [[DImage]] extra fields */" (field_declaration) "int ref;" (primitive_type) "int" (field_identifier) "ref" (;) ";" (}) "}" (;) ";" (comment) "/*e: struct [[DImage]] */" (comment) "/*s: struct [[FChar]] */" (struct_specifier) "struct FChar\n{\n // Rectangle in Font.cacheimage\n int minx; /* left edge of bits */\n int maxx; /* right edge of bits */\n uchar miny; /* first non-zero scan-line */\n uchar maxy; /* last non-zero scan-line + 1 */\n\n schar left; /* offset of baseline */\n uchar width; /* width of baseline */\n}" (struct) "struct" (type_identifier) "FChar" (field_declaration_list) "{\n // Rectangle in Font.cacheimage\n int minx; /* left edge of bits */\n int maxx; /* right edge of bits */\n uchar miny; /* first non-zero scan-line */\n uchar maxy; /* last non-zero scan-line + 1 */\n\n schar left; /* offset of baseline */\n uchar width; /* width of baseline */\n}" ({) "{" (comment) "// Rectangle in Font.cacheimage" (field_declaration) "int minx;" (primitive_type) "int" (field_identifier) "minx" (;) ";" (comment) "/* left edge of bits */" (field_declaration) "int maxx;" (primitive_type) "int" (field_identifier) "maxx" (;) ";" (comment) "/* right edge of bits */" (field_declaration) "uchar miny;" (type_identifier) "uchar" (field_identifier) "miny" (;) ";" (comment) "/* first non-zero scan-line */" (field_declaration) "uchar maxy;" (type_identifier) "uchar" (field_identifier) "maxy" (;) ";" (comment) "/* last non-zero scan-line + 1 */" (field_declaration) "schar left;" (type_identifier) "schar" (field_identifier) "left" (;) ";" (comment) "/* offset of baseline */" (field_declaration) "uchar width;" (type_identifier) "uchar" (field_identifier) "width" (;) ";" (comment) "/* width of baseline */" (}) "}" (;) ";" (comment) "/*e: struct [[FChar]] */" (comment) "/*s: struct [[CScreen]] */" (struct_specifier) "struct CScreen\n{\n // ref_shared<DScreen>\n DScreen* dscreen;\n\n CScreen* next;\n}" (struct) "struct" (type_identifier) "CScreen" (field_declaration_list) "{\n // ref_shared<DScreen>\n DScreen* dscreen;\n\n CScreen* next;\n}" ({) "{" (comment) "// ref_shared<DScreen>" (field_declaration) "DScreen* dscreen;" (type_identifier) "DScreen" (pointer_declarator) "* dscreen" (*) "*" (field_identifier) "dscreen" (;) ";" (field_declaration) "CScreen* next;" (type_identifier) "CScreen" (pointer_declarator) "* next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (comment) "/*e: struct [[CScreen]] */" (comment) "/*s: struct [[DScreen]] */" (struct_specifier) "struct DScreen\n{\n int id;\n\n DImage *dimage;\n DImage *dfill;\n\n /*s: [[DScreen]] other fields */\n bool public;\n /*x: [[DScreen]] other fields */\n Client* owner;\n /*x: [[DScreen]] other fields */\n // ref_own<Memscreen>\n Memscreen* screen;\n /*e: [[DScreen]] other fields */\n\n // Extra\n int ref;\n /*s: [[DScreen]] extra fields */\n // list<ref<DScreen>> (head = dscreen)\n DScreen* next;\n /*e: [[DScreen]] extra fields */\n}" (struct) "struct" (type_identifier) "DScreen" (field_declaration_list) "{\n int id;\n\n DImage *dimage;\n DImage *dfill;\n\n /*s: [[DScreen]] other fields */\n bool public;\n /*x: [[DScreen]] other fields */\n Client* owner;\n /*x: [[DScreen]] other fields */\n // ref_own<Memscreen>\n Memscreen* screen;\n /*e: [[DScreen]] other fields */\n\n // Extra\n int ref;\n /*s: [[DScreen]] extra fields */\n // list<ref<DScreen>> (head = dscreen)\n DScreen* next;\n /*e: [[DScreen]] extra fields */\n}" ({) "{" (field_declaration) "int id;" (primitive_type) "int" (field_identifier) "id" (;) ";" (field_declaration) "DImage *dimage;" (type_identifier) "DImage" (pointer_declarator) "*dimage" (*) "*" (field_identifier) "dimage" (;) ";" (field_declaration) "DImage *dfill;" (type_identifier) "DImage" (pointer_declarator) "*dfill" (*) "*" (field_identifier) "dfill" (;) ";" (comment) "/*s: [[DScreen]] other fields */" (field_declaration) "bool public;" (primitive_type) "bool" (field_identifier) "public" (;) ";" (comment) "/*x: [[DScreen]] other fields */" (field_declaration) "Client* owner;" (type_identifier) "Client" (pointer_declarator) "* owner" (*) "*" (field_identifier) "owner" (;) ";" (comment) "/*x: [[DScreen]] other fields */" (comment) "// ref_own<Memscreen>" (field_declaration) "Memscreen* screen;" (type_identifier) "Memscreen" (pointer_declarator) "* screen" (*) "*" (field_identifier) "screen" (;) ";" (comment) "/*e: [[DScreen]] other fields */" (comment) "// Extra" (field_declaration) "int ref;" (primitive_type) "int" (field_identifier) "ref" (;) ";" (comment) "/*s: [[DScreen]] extra fields */" (comment) "// list<ref<DScreen>> (head = dscreen)" (field_declaration) "DScreen* next;" (type_identifier) "DScreen" (pointer_declarator) "* next" (*) "*" (field_identifier) "next" (;) ";" (comment) "/*e: [[DScreen]] extra fields */" (}) "}" (;) ";" (comment) "/*e: struct [[DScreen]] */" (comment) "/*s: struct [[Refresh]] */" (struct_specifier) "struct Refresh\n{\n DImage* dimage;\n Rectangle r;\n Refresh* next;\n}" (struct) "struct" (type_identifier) "Refresh" (field_declaration_list) "{\n DImage* dimage;\n Rectangle r;\n Refresh* next;\n}" ({) "{" (field_declaration) "DImage* dimage;" (type_identifier) "DImage" (pointer_declarator) "* dimage" (*) "*" (field_identifier) "dimage" (;) ";" (field_declaration) "Rectangle r;" (type_identifier) "Rectangle" (field_identifier) "r" (;) ";" (field_declaration) "Refresh* next;" (type_identifier) "Refresh" (pointer_declarator) "* next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (;) ";" (comment) "/*e: struct [[Refresh]] */" (comment) "/*s: struct [[Refx]] */" (struct_specifier) "struct Refx\n{\n Client* client;\n DImage* dimage;\n}" (struct) "struct" (type_identifier) "Refx" (field_declaration_list) "{\n Client* client;\n DImage* dimage;\n}" ({) "{" (field_declaration) "Client* client;" (type_identifier) "Client" (pointer_declarator) "* client" (*) "*" (field_identifier) "client" (;) ";" (field_declaration) "DImage* dimage;" (type_identifier) "DImage" (pointer_declarator) "* dimage" (*) "*" (field_identifier) "dimage" (;) ";" (}) "}" (;) ";" (comment) "/*e: struct [[Refx]] */" (comment) "// drawerror.c" (declaration) "extern char Enodrawimage[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Enodrawimage[]" (identifier) "Enodrawimage" ([) "[" (]) "]" (;) ";" (declaration) "extern char Enodrawscreen[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Enodrawscreen[]" (identifier) "Enodrawscreen" ([) "[" (]) "]" (;) ";" (declaration) "extern char Eshortdraw[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Eshortdraw[]" (identifier) "Eshortdraw" ([) "[" (]) "]" (;) ";" (declaration) "extern char Eshortread[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Eshortread[]" (identifier) "Eshortread" ([) "[" (]) "]" (;) ";" (declaration) "extern char Eimageexists[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Eimageexists[]" (identifier) "Eimageexists" ([) "[" (]) "]" (;) ";" (declaration) "extern char Escreenexists[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Escreenexists[]" (identifier) "Escreenexists" ([) "[" (]) "]" (;) ";" (declaration) "extern char Edrawmem[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Edrawmem[]" (identifier) "Edrawmem" ([) "[" (]) "]" (;) ";" (declaration) "extern char Ereadoutside[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Ereadoutside[]" (identifier) "Ereadoutside" ([) "[" (]) "]" (;) ";" (declaration) "extern char Ewriteoutside[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Ewriteoutside[]" (identifier) "Ewriteoutside" ([) "[" (]) "]" (;) ";" (declaration) "extern char Enotfont[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Enotfont[]" (identifier) "Enotfont" ([) "[" (]) "]" (;) ";" (declaration) "extern char Eindex[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Eindex[]" (identifier) "Eindex" ([) "[" (]) "]" (;) ";" (declaration) "extern char Enoclient[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Enoclient[]" (identifier) "Enoclient" ([) "[" (]) "]" (;) ";" (declaration) "extern char Enameused[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Enameused[]" (identifier) "Enameused" ([) "[" (]) "]" (;) ";" (declaration) "extern char Enoname[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Enoname[]" (identifier) "Enoname" ([) "[" (]) "]" (;) ";" (declaration) "extern char Eoldname[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Eoldname[]" (identifier) "Eoldname" ([) "[" (]) "]" (;) ";" (declaration) "extern char Enamed[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Enamed[]" (identifier) "Enamed" ([) "[" (]) "]" (;) ";" (declaration) "extern char Ewrongname[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "Ewrongname[]" (identifier) "Ewrongname" ([) "[" (]) "]" (;) ";" (comment) "//drawinit.c" (declaration) "extern Memimage *screenimage;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "Memimage" (pointer_declarator) "*screenimage" (*) "*" (identifier) "screenimage" (;) ";" (declaration) "error0 initscreenimage(void);" (type_identifier) "error0" (function_declarator) "initscreenimage(void)" (identifier) "initscreenimage" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "//devdraw.c" (declaration) "extern KDraw sdraw;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "KDraw" (identifier) "sdraw" (;) ";" (declaration) "void dlock(void);" (primitive_type) "void" (function_declarator) "dlock(void)" (identifier) "dlock" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "int candlock(void);" (primitive_type) "int" (function_declarator) "candlock(void)" (identifier) "candlock" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void dunlock(void);" (primitive_type) "void" (function_declarator) "dunlock(void)" (identifier) "dunlock" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "DImage* drawlookup(Client *client, int id, bool checkname);" (type_identifier) "DImage" (pointer_declarator) "* drawlookup(Client *client, int id, bool checkname)" (*) "*" (function_declarator) "drawlookup(Client *client, int id, bool checkname)" (identifier) "drawlookup" (parameter_list) "(Client *client, int id, bool checkname)" (() "(" (parameter_declaration) "Client *client" (type_identifier) "Client" (pointer_declarator) "*client" (*) "*" (identifier) "client" (,) "," (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" (,) "," (parameter_declaration) "bool checkname" (primitive_type) "bool" (identifier) "checkname" ()) ")" (;) ";" (declaration) "void addflush(Rectangle r);" (primitive_type) "void" (function_declarator) "addflush(Rectangle r)" (identifier) "addflush" (parameter_list) "(Rectangle r)" (() "(" (parameter_declaration) "Rectangle r" (type_identifier) "Rectangle" (identifier) "r" ()) ")" (;) ";" (declaration) "void dstflush(int dstid, Memimage *dst, Rectangle r);" (primitive_type) "void" (function_declarator) "dstflush(int dstid, Memimage *dst, Rectangle r)" (identifier) "dstflush" (parameter_list) "(int dstid, Memimage *dst, Rectangle r)" (() "(" (parameter_declaration) "int dstid" (primitive_type) "int" (identifier) "dstid" (,) "," (parameter_declaration) "Memimage *dst" (type_identifier) "Memimage" (pointer_declarator) "*dst" (*) "*" (identifier) "dst" (,) "," (parameter_declaration) "Rectangle r" (type_identifier) "Rectangle" (identifier) "r" ()) ")" (;) ";" (declaration) "void drawflush(void);" (primitive_type) "void" (function_declarator) "drawflush(void)" (identifier) "drawflush" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "//drawalloc.c" (declaration) "DImage* allocdimage(Memimage *i);" (type_identifier) "DImage" (pointer_declarator) "* allocdimage(Memimage *i)" (*) "*" (function_declarator) "allocdimage(Memimage *i)" (identifier) "allocdimage" (parameter_list) "(Memimage *i)" (() "(" (parameter_declaration) "Memimage *i" (type_identifier) "Memimage" (pointer_declarator) "*i" (*) "*" (identifier) "i" ()) ")" (;) ";" (declaration) "void drawfreedimage(DImage *dimage);" (primitive_type) "void" (function_declarator) "drawfreedimage(DImage *dimage)" (identifier) "drawfreedimage" (parameter_list) "(DImage *dimage)" (() "(" (parameter_declaration) "DImage *dimage" (type_identifier) "DImage" (pointer_declarator) "*dimage" (*) "*" (identifier) "dimage" ()) ")" (;) ";" (declaration) "Memimage* drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen);" (type_identifier) "Memimage" (pointer_declarator) "* drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen)" (*) "*" (function_declarator) "drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen)" (identifier) "drawinstall" (parameter_list) "(Client *client, int id, Memimage *i, DScreen *dscreen)" (() "(" (parameter_declaration) "Client *client" (type_identifier) "Client" (pointer_declarator) "*client" (*) "*" (identifier) "client" (,) "," (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" (,) "," (parameter_declaration) "Memimage *i" (type_identifier) "Memimage" (pointer_declarator) "*i" (*) "*" (identifier) "i" (,) "," (parameter_declaration) "DScreen *dscreen" (type_identifier) "DScreen" (pointer_declarator) "*dscreen" (*) "*" (identifier) "dscreen" ()) ")" (;) ";" (declaration) "void drawuninstall(Client *client, int id);" (primitive_type) "void" (function_declarator) "drawuninstall(Client *client, int id)" (identifier) "drawuninstall" (parameter_list) "(Client *client, int id)" (() "(" (parameter_declaration) "Client *client" (type_identifier) "Client" (pointer_declarator) "*client" (*) "*" (identifier) "client" (,) "," (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" ()) ")" (;) ";" (comment) "//drawname.c" (declaration) "extern char screenname[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (array_declarator) "screenname[]" (identifier) "screenname" ([) "[" (]) "]" (;) ";" (declaration) "DName* drawlookupname(int n, char *str);" (type_identifier) "DName" (pointer_declarator) "* drawlookupname(int n, char *str)" (*) "*" (function_declarator) "drawlookupname(int n, char *str)" (identifier) "drawlookupname" (parameter_list) "(int n, char *str)" (() "(" (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" (,) "," (parameter_declaration) "char *str" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "bool drawgoodname(DImage *d);" (primitive_type) "bool" (function_declarator) "drawgoodname(DImage *d)" (identifier) "drawgoodname" (parameter_list) "(DImage *d)" (() "(" (parameter_declaration) "DImage *d" (type_identifier) "DImage" (pointer_declarator) "*d" (*) "*" (identifier) "d" ()) ")" (;) ";" (declaration) "void drawaddname(Client *client, DImage *di, int n, char *str);" (primitive_type) "void" (function_declarator) "drawaddname(Client *client, DImage *di, int n, char *str)" (identifier) "drawaddname" (parameter_list) "(Client *client, DImage *di, int n, char *str)" (() "(" (parameter_declaration) "Client *client" (type_identifier) "Client" (pointer_declarator) "*client" (*) "*" (identifier) "client" (,) "," (parameter_declaration) "DImage *di" (type_identifier) "DImage" (pointer_declarator) "*di" (*) "*" (identifier) "di" (,) "," (parameter_declaration) "int n" (primitive_type) "int" (identifier) "n" (,) "," (parameter_declaration) "char *str" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "void drawdelname(DName *name);" (primitive_type) "void" (function_declarator) "drawdelname(DName *name)" (identifier) "drawdelname" (parameter_list) "(DName *name)" (() "(" (parameter_declaration) "DName *name" (type_identifier) "DName" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (comment) "//drawwindow.c" (declaration) "DScreen* drawlookupscreen(Client *client, int id, CScreen **cs);" (type_identifier) "DScreen" (pointer_declarator) "* drawlookupscreen(Client *client, int id, CScreen **cs)" (*) "*" (function_declarator) "drawlookupscreen(Client *client, int id, CScreen **cs)" (identifier) "drawlookupscreen" (parameter_list) "(Client *client, int id, CScreen **cs)" (() "(" (parameter_declaration) "Client *client" (type_identifier) "Client" (pointer_declarator) "*client" (*) "*" (identifier) "client" (,) "," (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" (,) "," (parameter_declaration) "CScreen **cs" (type_identifier) "CScreen" (pointer_declarator) "**cs" (*) "*" (pointer_declarator) "*cs" (*) "*" (identifier) "cs" ()) ")" (;) ";" (declaration) "Memscreen* drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool);" (type_identifier) "Memscreen" (pointer_declarator) "* drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool)" (*) "*" (function_declarator) "drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool)" (identifier) "drawinstallscreen" (parameter_list) "(Client*, DScreen*, int, DImage *, DImage *, bool)" (() "(" (parameter_declaration) "Client*" (type_identifier) "Client" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "DScreen*" (type_identifier) "DScreen" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "DImage *" (type_identifier) "DImage" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "DImage *" (type_identifier) "DImage" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "bool" (primitive_type) "bool" ()) ")" (;) ";" (declaration) "void drawuninstallscreen(Client*, CScreen*);" (primitive_type) "void" (function_declarator) "drawuninstallscreen(Client*, CScreen*)" (identifier) "drawuninstallscreen" (parameter_list) "(Client*, CScreen*)" (() "(" (parameter_declaration) "Client*" (type_identifier) "Client" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "CScreen*" (type_identifier) "CScreen" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "DScreen* drawlookupdscreen(int id);" (type_identifier) "DScreen" (pointer_declarator) "* drawlookupdscreen(int id)" (*) "*" (function_declarator) "drawlookupdscreen(int id)" (identifier) "drawlookupdscreen" (parameter_list) "(int id)" (() "(" (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" ()) ")" (;) ";" (declaration) "void drawfreedscreen(DScreen*);" (primitive_type) "void" (function_declarator) "drawfreedscreen(DScreen*)" (identifier) "drawfreedscreen" (parameter_list) "(DScreen*)" (() "(" (parameter_declaration) "DScreen*" (type_identifier) "DScreen" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "//drawmisc.c" (declaration) "int drawrefactive(void *a);" (primitive_type) "int" (function_declarator) "drawrefactive(void *a)" (identifier) "drawrefactive" (parameter_list) "(void *a)" (() "(" (parameter_declaration) "void *a" (primitive_type) "void" (pointer_declarator) "*a" (*) "*" (identifier) "a" ()) ")" (;) ";" (declaration) "void drawrefresh(Memimage*, Rectangle r, void *v);" (primitive_type) "void" (function_declarator) "drawrefresh(Memimage*, Rectangle r, void *v)" (identifier) "drawrefresh" (parameter_list) "(Memimage*, Rectangle r, void *v)" (() "(" (parameter_declaration) "Memimage*" (type_identifier) "Memimage" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "Rectangle r" (type_identifier) "Rectangle" (identifier) "r" (,) "," (parameter_declaration) "void *v" (primitive_type) "void" (pointer_declarator) "*v" (*) "*" (identifier) "v" ()) ")" (;) ";" (declaration) "void drawrefreshscreen(DImage *l, Client *client);" (primitive_type) "void" (function_declarator) "drawrefreshscreen(DImage *l, Client *client)" (identifier) "drawrefreshscreen" (parameter_list) "(DImage *l, Client *client)" (() "(" (parameter_declaration) "DImage *l" (type_identifier) "DImage" (pointer_declarator) "*l" (*) "*" (identifier) "l" (,) "," (parameter_declaration) "Client *client" (type_identifier) "Client" (pointer_declarator) "*client" (*) "*" (identifier) "client" ()) ")" (;) ";" (comment) "/*e: kernel/devices/screen/devdraw.h */"
1,125
0
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 26.32, "nodes": 764, "errors": 0, "source_hash": "3fa761ea082d245abb9a04ed4a69223acb099274861013128d53829f79562275", "categorized_nodes": 476}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef struct Client Client;", "parent": null, "children": [1, 2, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 29}}, {"id": 1, "type": "typedef", "text": "typedef", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 2, "type": "struct_specifier", "text": "struct Client", "parent": 0, "children": [3, 4], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 21}}, {"id": 3, "type": "struct", "text": "struct", "parent": 2, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 4, "type": "type_identifier", "text": "Client", "parent": 2, "children": [], "start_point": {"row": 2, "column": 15}, "end_point": {"row": 2, "column": 21}}, {"id": 5, "type": "type_identifier", "text": "Client", "parent": 0, "children": [], "start_point": {"row": 2, "column": 22}, "end_point": {"row": 2, "column": 28}}, {"id": 6, "type": "type_definition", "text": "typedef struct KDraw KDraw;", "parent": null, "children": [7, 8, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 27}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "struct_specifier", "text": "struct KDraw", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 20}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 10, "type": "type_identifier", "text": "KDraw", "parent": 8, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 20}}, {"id": 11, "type": "type_identifier", "text": "KDraw", "parent": 6, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 26}}, {"id": 12, "type": "type_definition", "text": "typedef struct DImage DImage;", "parent": null, "children": [13, 14, 17], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 29}}, {"id": 13, "type": "typedef", "text": "typedef", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 14, "type": "struct_specifier", "text": "struct DImage", "parent": 12, "children": [15, 16], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 21}}, {"id": 15, "type": "struct", "text": "struct", "parent": 14, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 14}}, {"id": 16, "type": "type_identifier", "text": "DImage", "parent": 14, "children": [], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 21}}, {"id": 17, "type": "type_identifier", "text": "DImage", "parent": 12, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 28}}, {"id": 18, "type": "type_definition", "text": "typedef struct DName DName;", "parent": null, "children": [19, 20, 23], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 27}}, {"id": 19, "type": "typedef", "text": "typedef", "parent": 18, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 20, "type": "struct_specifier", "text": "struct DName", "parent": 18, "children": [21, 22], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 20}}, {"id": 21, "type": "struct", "text": "struct", "parent": 20, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 14}}, {"id": 22, "type": "type_identifier", "text": "DName", "parent": 20, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 20}}, {"id": 23, "type": "type_identifier", "text": "DName", "parent": 18, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 26}}, {"id": 24, "type": "type_definition", "text": "typedef struct DScreen DScreen;", "parent": null, "children": [25, 26, 29], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 31}}, {"id": 25, "type": "typedef", "text": "typedef", "parent": 24, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 26, "type": "struct_specifier", "text": "struct DScreen", "parent": 24, "children": [27, 28], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 22}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 14}}, {"id": 28, "type": "type_identifier", "text": "DScreen", "parent": 26, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 22}}, {"id": 29, "type": "type_identifier", "text": "DScreen", "parent": 24, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 30}}, {"id": 30, "type": "type_definition", "text": "typedef struct CScreen CScreen;", "parent": null, "children": [31, 32, 35], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 31}}, {"id": 31, "type": "typedef", "text": "typedef", "parent": 30, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 32, "type": "struct_specifier", "text": "struct CScreen", "parent": 30, "children": [33, 34], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 22}}, {"id": 33, "type": "struct", "text": "struct", "parent": 32, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 34, "type": "type_identifier", "text": "CScreen", "parent": 32, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 22}}, {"id": 35, "type": "type_identifier", "text": "CScreen", "parent": 30, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 30}}, {"id": 36, "type": "type_definition", "text": "typedef struct FChar FChar;", "parent": null, "children": [37, 38, 41], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 27}}, {"id": 37, "type": "typedef", "text": "typedef", "parent": 36, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 38, "type": "struct_specifier", "text": "struct FChar", "parent": 36, "children": [39, 40], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 20}}, {"id": 39, "type": "struct", "text": "struct", "parent": 38, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 14}}, {"id": 40, "type": "type_identifier", "text": "FChar", "parent": 38, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 20}}, {"id": 41, "type": "type_identifier", "text": "FChar", "parent": 36, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 26}}, {"id": 42, "type": "type_definition", "text": "typedef struct Refresh Refresh;", "parent": null, "children": [43, 44, 47], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 31}}, {"id": 43, "type": "typedef", "text": "typedef", "parent": 42, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 44, "type": "struct_specifier", "text": "struct Refresh", "parent": 42, "children": [45, 46], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 22}}, {"id": 45, "type": "struct", "text": "struct", "parent": 44, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 46, "type": "type_identifier", "text": "Refresh", "parent": 44, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 22}}, {"id": 47, "type": "type_identifier", "text": "Refresh", "parent": 42, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 30}}, {"id": 48, "type": "type_definition", "text": "typedef struct Refx Refx;", "parent": null, "children": [49, 50, 53], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 25}}, {"id": 49, "type": "typedef", "text": "typedef", "parent": 48, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 50, "type": "struct_specifier", "text": "struct Refx", "parent": 48, "children": [51, 52], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 19}}, {"id": 51, "type": "struct", "text": "struct", "parent": 50, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 52, "type": "type_identifier", "text": "Refx", "parent": 50, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 19}}, {"id": 53, "type": "type_identifier", "text": "Refx", "parent": 48, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 24}}, {"id": 54, "type": "preproc_def", "text": "#define NHASH (1<<5)\n", "parent": null, "children": [55, 56, 57], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 56, "type": "identifier", "text": "NHASH", "parent": 54, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 13}}, {"id": 57, "type": "preproc_arg", "text": "(1<<5)", "parent": 54, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 26}}, {"id": 58, "type": "preproc_def", "text": "#define HASHMASK (NHASH-1)\n", "parent": null, "children": [59, 60, 61], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 60, "type": "identifier", "text": "HASHMASK", "parent": 58, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 16}}, {"id": 61, "type": "preproc_arg", "text": "(NHASH-1)", "parent": 58, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 29}}, {"id": 62, "type": "struct_specifier", "text": "struct KDraw\n{\n // growing_array<option<Client>> (size = KDraw.nclient)\n Client** client;\n int nclient;\n\n // gensym\n int clientid;\n \n /*s: [[KDraw]] other fields */\n bool softscreen;\n /*x: [[KDraw]] other fields */\n // growing_array<DName>, size = KDraw.nname\n DName* name;\n int nname;\n /*x: [[KDraw]] other fields */\n int vers;\n /*x: [[KDraw]] other fields */\n bool\tblanked; /* screen turned off */\n /*x: [[KDraw]] other fields */\n ulong savemap[3*256];\n /*x: [[KDraw]] other fields */\n ulong blanktime; /* time of last operation */\n /*e: [[KDraw]] other fields */\n}", "parent": null, "children": [63, 64], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 63, "type": "struct", "text": "struct", "parent": 62, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 64, "type": "type_identifier", "text": "KDraw", "parent": 62, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 12}}, {"id": 65, "type": "field_declaration", "text": "Client** client;", "parent": 62, "children": [66, 67], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 23}}, {"id": 66, "type": "type_identifier", "text": "Client", "parent": 65, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 67, "type": "pointer_declarator", "text": "** client", "parent": 65, "children": [68, 69], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 22}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 11}}, {"id": 69, "type": "pointer_declarator", "text": "* client", "parent": 67, "children": [70, 71], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 22}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 71, "type": "field_identifier", "text": "client", "parent": 69, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 72, "type": "field_declaration", "text": "int nclient;", "parent": 62, "children": [73, 74], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 20}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 74, "type": "field_identifier", "text": "nclient", "parent": 72, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 19}}, {"id": 75, "type": "field_declaration", "text": "int clientid;", "parent": 62, "children": [76, 77], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 21}}, {"id": 76, "type": "primitive_type", "text": "int", "parent": 75, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 77, "type": "field_identifier", "text": "clientid", "parent": 75, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 20}}, {"id": 78, "type": "field_declaration", "text": "bool softscreen;", "parent": 62, "children": [79, 80], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 24}}, {"id": 79, "type": "primitive_type", "text": "bool", "parent": 78, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 80, "type": "field_identifier", "text": "softscreen", "parent": 78, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 23}}, {"id": 81, "type": "field_declaration", "text": "DName* name;", "parent": 62, "children": [82, 83], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 17}}, {"id": 82, "type": "type_identifier", "text": "DName", "parent": 81, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 9}}, {"id": 83, "type": "pointer_declarator", "text": "* name", "parent": 81, "children": [84, 85], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 16}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 10}}, {"id": 85, "type": "field_identifier", "text": "name", "parent": 83, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 16}}, {"id": 86, "type": "field_declaration", "text": "int nname;", "parent": 62, "children": [87, 88], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 18}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 88, "type": "field_identifier", "text": "nname", "parent": 86, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 17}}, {"id": 89, "type": "field_declaration", "text": "int vers;", "parent": 62, "children": [90, 91], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 17}}, {"id": 90, "type": "primitive_type", "text": "int", "parent": 89, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 7}}, {"id": 91, "type": "field_identifier", "text": "vers", "parent": 89, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 92, "type": "field_declaration", "text": "bool\tblanked;", "parent": 62, "children": [93, 94], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 17}}, {"id": 93, "type": "primitive_type", "text": "bool", "parent": 92, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 94, "type": "field_identifier", "text": "blanked", "parent": 92, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 16}}, {"id": 95, "type": "field_declaration", "text": "ulong savemap[3*256];", "parent": 62, "children": [96, 97], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 27}}, {"id": 96, "type": "type_identifier", "text": "ulong", "parent": 95, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 9}}, {"id": 97, "type": "array_declarator", "text": "savemap[3*256]", "parent": 95, "children": [98, 99], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 26}}, {"id": 98, "type": "field_identifier", "text": "savemap", "parent": 97, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 19}}, {"id": 99, "type": "binary_expression", "text": "3*256", "parent": 97, "children": [100, 101, 102], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 25}}, {"id": 100, "type": "number_literal", "text": "3", "parent": 99, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 21}}, {"id": 101, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 22}}, {"id": 102, "type": "number_literal", "text": "256", "parent": 99, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 25}}, {"id": 103, "type": "field_declaration", "text": "ulong blanktime;", "parent": 62, "children": [104, 105], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 22}}, {"id": 104, "type": "type_identifier", "text": "ulong", "parent": 103, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 9}}, {"id": 105, "type": "field_identifier", "text": "blanktime", "parent": 103, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 21}}, {"id": 106, "type": "struct_specifier", "text": "struct Client\n{\n int clientid; // /dev/draw/x/\n\n // hash<Image.id, ref_own<Dimage>> (next = Dimage.next in bucket)\n DImage* dimage[NHASH];\n\n /*s: [[Client]] drawing state fields */\n // enum<Drawop>\n int op;\n /*e: [[Client]] drawing state fields */\n /*s: [[Client]] layer fields */\n // list<ref_own<DScreen>> (next = CScreen.next)\n CScreen* cscreen;\n /*e: [[Client]] layer fields */\n /*s: [[Client]] other fields */\n // index in KDraw.clients[]\n int slot;\n /*x: [[Client]] other fields */\n int infoid;\n /*x: [[Client]] other fields */\n // array<byte> (size >= Client.nreaddata)\n byte* readdata;\n int nreaddata;\n /*x: [[Client]] other fields */\n Refresh* refresh;\n Rendez refrend;\n int refreshme;\n /*e: [[Client]] other fields */\n\n // Extra\n /*s: [[Client]] concurrency fields */\n bool busy;\n /*e: [[Client]] concurrency fields */\n Ref r;\n}", "parent": null, "children": [107, 108], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 107, "type": "struct", "text": "struct", "parent": 106, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 108, "type": "type_identifier", "text": "Client", "parent": 106, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 13}}, {"id": 109, "type": "field_declaration", "text": "int clientid;", "parent": 106, "children": [110, 111], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 21}}, {"id": 110, "type": "primitive_type", "text": "int", "parent": 109, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 7}}, {"id": 111, "type": "field_identifier", "text": "clientid", "parent": 109, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 20}}, {"id": 112, "type": "field_declaration", "text": "DImage* dimage[NHASH];", "parent": 106, "children": [113, 114], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 30}}, {"id": 113, "type": "type_identifier", "text": "DImage", "parent": 112, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 10}}, {"id": 114, "type": "pointer_declarator", "text": "* dimage[NHASH]", "parent": 112, "children": [115, 116], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 29}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 11}}, {"id": 116, "type": "array_declarator", "text": "dimage[NHASH]", "parent": 114, "children": [117, 118], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 29}}, {"id": 117, "type": "field_identifier", "text": "dimage", "parent": 116, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 22}}, {"id": 118, "type": "identifier", "text": "NHASH", "parent": 116, "children": [], "start_point": {"row": 54, "column": 23}, "end_point": {"row": 54, "column": 28}}, {"id": 119, "type": "field_declaration", "text": "int op;", "parent": 106, "children": [120, 121], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 15}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 7}}, {"id": 121, "type": "field_identifier", "text": "op", "parent": 119, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 14}}, {"id": 122, "type": "field_declaration", "text": "CScreen* cscreen;", "parent": 106, "children": [123, 124], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 24}}, {"id": 123, "type": "type_identifier", "text": "CScreen", "parent": 122, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 11}}, {"id": 124, "type": "pointer_declarator", "text": "* cscreen", "parent": 122, "children": [125, 126], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 23}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 126, "type": "field_identifier", "text": "cscreen", "parent": 124, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 23}}, {"id": 127, "type": "field_declaration", "text": "int slot;", "parent": 106, "children": [128, 129], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 17}}, {"id": 128, "type": "primitive_type", "text": "int", "parent": 127, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 7}}, {"id": 129, "type": "field_identifier", "text": "slot", "parent": 127, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 16}}, {"id": 130, "type": "field_declaration", "text": "int infoid;", "parent": 106, "children": [131, 132], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 19}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 7}}, {"id": 132, "type": "field_identifier", "text": "infoid", "parent": 130, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 18}}, {"id": 133, "type": "field_declaration", "text": "byte* readdata;", "parent": 106, "children": [134, 135], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 21}}, {"id": 134, "type": "type_identifier", "text": "byte", "parent": 133, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 135, "type": "pointer_declarator", "text": "* readdata", "parent": 133, "children": [136, 137], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 20}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 9}}, {"id": 137, "type": "field_identifier", "text": "readdata", "parent": 135, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 20}}, {"id": 138, "type": "field_declaration", "text": "int nreaddata;", "parent": 106, "children": [139, 140], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 22}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 7}}, {"id": 140, "type": "field_identifier", "text": "nreaddata", "parent": 138, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 21}}, {"id": 141, "type": "field_declaration", "text": "Refresh* refresh;", "parent": 106, "children": [142, 143], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 24}}, {"id": 142, "type": "type_identifier", "text": "Refresh", "parent": 141, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 11}}, {"id": 143, "type": "pointer_declarator", "text": "* refresh", "parent": 141, "children": [144, 145], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 23}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 12}}, {"id": 145, "type": "field_identifier", "text": "refresh", "parent": 143, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 23}}, {"id": 146, "type": "field_declaration", "text": "Rendez refrend;", "parent": 106, "children": [147, 148], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 24}}, {"id": 147, "type": "type_identifier", "text": "Rendez", "parent": 146, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 10}}, {"id": 148, "type": "field_identifier", "text": "refrend", "parent": 146, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 23}}, {"id": 149, "type": "field_declaration", "text": "int refreshme;", "parent": 106, "children": [150, 151], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 22}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 7}}, {"id": 151, "type": "field_identifier", "text": "refreshme", "parent": 149, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 21}}, {"id": 152, "type": "field_declaration", "text": "bool busy;", "parent": 106, "children": [153, 154], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 18}}, {"id": 153, "type": "primitive_type", "text": "bool", "parent": 152, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 154, "type": "field_identifier", "text": "busy", "parent": 152, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 17}}, {"id": 155, "type": "field_declaration", "text": "Ref r;", "parent": 106, "children": [156, 157], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 14}}, {"id": 156, "type": "type_identifier", "text": "Ref", "parent": 155, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 7}}, {"id": 157, "type": "field_identifier", "text": "r", "parent": 155, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 158, "type": "struct_specifier", "text": "struct DName\n{\n // key\n char *name;\n\n // value\n Client *client; // the owner\n DImage* dimage;\n /*s: [[DName]] other fields */\n int vers;\n /*e: [[DName]] other fields */\n}", "parent": null, "children": [159, 160], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 159, "type": "struct", "text": "struct", "parent": 158, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 6}}, {"id": 160, "type": "type_identifier", "text": "DName", "parent": 158, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 12}}, {"id": 161, "type": "field_declaration", "text": "char *name;", "parent": 158, "children": [162, 163], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 22}}, {"id": 162, "type": "primitive_type", "text": "char", "parent": 161, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 8}}, {"id": 163, "type": "pointer_declarator", "text": "*name", "parent": 161, "children": [164, 165], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 21}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 17}}, {"id": 165, "type": "field_identifier", "text": "name", "parent": 163, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 21}}, {"id": 166, "type": "field_declaration", "text": "Client *client;", "parent": 158, "children": [167, 168], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 24}}, {"id": 167, "type": "type_identifier", "text": "Client", "parent": 166, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 10}}, {"id": 168, "type": "pointer_declarator", "text": "*client", "parent": 166, "children": [169, 170], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 23}}, {"id": 169, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 17}}, {"id": 170, "type": "field_identifier", "text": "client", "parent": 168, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 23}}, {"id": 171, "type": "field_declaration", "text": "DImage* dimage;", "parent": 158, "children": [172, 173], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 23}}, {"id": 172, "type": "type_identifier", "text": "DImage", "parent": 171, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 10}}, {"id": 173, "type": "pointer_declarator", "text": "* dimage", "parent": 171, "children": [174, 175], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 22}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 11}}, {"id": 175, "type": "field_identifier", "text": "dimage", "parent": 173, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 22}}, {"id": 176, "type": "field_declaration", "text": "int vers;", "parent": 158, "children": [177, 178], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 17}}, {"id": 177, "type": "primitive_type", "text": "int", "parent": 176, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 7}}, {"id": 178, "type": "field_identifier", "text": "vers", "parent": 176, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 16}}, {"id": 179, "type": "struct_specifier", "text": "struct DImage\n{\n int id;\n Memimage* image;\n\n /*s: [[DImage]] layer fields */\n DScreen* dscreen; /* nil if not a window */\n /*e: [[DImage]] layer fields */\n /*s: [[DImage]] font fields */\n // growing_hash<Rune, ref_own<Fchar>> (size = DImage.nfchar)\n FChar* fchar;\n int nfchar;\n /*x: [[DImage]] font fields */\n int ascent;\n /*e: [[DImage]] font fields */\n /*s: [[DImage]] other fields */\n // option<string>, Some when DImage derives from a named image\n char *name;\n // option<ref<DImage>>\n DImage* fromname; /* image this one is derived from, by name */\n /*x: [[DImage]] other fields */\n int vers;\n /*e: [[DImage]] other fields */\n\n // Extra\n /*s: [[DImage]] extra fields */\n DImage* next;\n /*e: [[DImage]] extra fields */\n int ref;\n}", "parent": null, "children": [180, 181], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 140, "column": 1}}, {"id": 180, "type": "struct", "text": "struct", "parent": 179, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 6}}, {"id": 181, "type": "type_identifier", "text": "DImage", "parent": 179, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 13}}, {"id": 182, "type": "field_declaration", "text": "int id;", "parent": 179, "children": [183, 184], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 15}}, {"id": 183, "type": "primitive_type", "text": "int", "parent": 182, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 7}}, {"id": 184, "type": "field_identifier", "text": "id", "parent": 182, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 14}}, {"id": 185, "type": "field_declaration", "text": "Memimage* image;", "parent": 179, "children": [186, 187], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 22}}, {"id": 186, "type": "type_identifier", "text": "Memimage", "parent": 185, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 12}}, {"id": 187, "type": "pointer_declarator", "text": "* image", "parent": 185, "children": [188, 189], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 21}}, {"id": 188, "type": "*", "text": "*", "parent": 187, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 13}}, {"id": 189, "type": "field_identifier", "text": "image", "parent": 187, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 21}}, {"id": 190, "type": "field_declaration", "text": "DScreen* dscreen;", "parent": 179, "children": [191, 192], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 24}}, {"id": 191, "type": "type_identifier", "text": "DScreen", "parent": 190, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 11}}, {"id": 192, "type": "pointer_declarator", "text": "* dscreen", "parent": 190, "children": [193, 194], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 23}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 12}}, {"id": 194, "type": "field_identifier", "text": "dscreen", "parent": 192, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 23}}, {"id": 195, "type": "field_declaration", "text": "FChar* fchar;", "parent": 179, "children": [196, 197], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 22}}, {"id": 196, "type": "type_identifier", "text": "FChar", "parent": 195, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 9}}, {"id": 197, "type": "pointer_declarator", "text": "* fchar", "parent": 195, "children": [198, 199], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 21}}, {"id": 198, "type": "*", "text": "*", "parent": 197, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 10}}, {"id": 199, "type": "field_identifier", "text": "fchar", "parent": 197, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 21}}, {"id": 200, "type": "field_declaration", "text": "int nfchar;", "parent": 179, "children": [201, 202], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 19}}, {"id": 201, "type": "primitive_type", "text": "int", "parent": 200, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 7}}, {"id": 202, "type": "field_identifier", "text": "nfchar", "parent": 200, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 18}}, {"id": 203, "type": "field_declaration", "text": "int ascent;", "parent": 179, "children": [204, 205], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 19}}, {"id": 204, "type": "primitive_type", "text": "int", "parent": 203, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 7}}, {"id": 205, "type": "field_identifier", "text": "ascent", "parent": 203, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 18}}, {"id": 206, "type": "field_declaration", "text": "char *name;", "parent": 179, "children": [207, 208], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 18}}, {"id": 207, "type": "primitive_type", "text": "char", "parent": 206, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 8}}, {"id": 208, "type": "pointer_declarator", "text": "*name", "parent": 206, "children": [209, 210], "start_point": {"row": 128, "column": 12}, "end_point": {"row": 128, "column": 17}}, {"id": 209, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 128, "column": 12}, "end_point": {"row": 128, "column": 13}}, {"id": 210, "type": "field_identifier", "text": "name", "parent": 208, "children": [], "start_point": {"row": 128, "column": 13}, "end_point": {"row": 128, "column": 17}}, {"id": 211, "type": "field_declaration", "text": "DImage* fromname;", "parent": 179, "children": [212, 213], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 25}}, {"id": 212, "type": "type_identifier", "text": "DImage", "parent": 211, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 10}}, {"id": 213, "type": "pointer_declarator", "text": "* fromname", "parent": 211, "children": [214, 215], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 24}}, {"id": 214, "type": "*", "text": "*", "parent": 213, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 11}}, {"id": 215, "type": "field_identifier", "text": "fromname", "parent": 213, "children": [], "start_point": {"row": 130, "column": 16}, "end_point": {"row": 130, "column": 24}}, {"id": 216, "type": "field_declaration", "text": "int vers;", "parent": 179, "children": [217, 218], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 17}}, {"id": 217, "type": "primitive_type", "text": "int", "parent": 216, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 7}}, {"id": 218, "type": "field_identifier", "text": "vers", "parent": 216, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 16}}, {"id": 219, "type": "field_declaration", "text": "DImage* next;", "parent": 179, "children": [220, 221], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 21}}, {"id": 220, "type": "type_identifier", "text": "DImage", "parent": 219, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 10}}, {"id": 221, "type": "pointer_declarator", "text": "* next", "parent": 219, "children": [222, 223], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 20}}, {"id": 222, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 11}}, {"id": 223, "type": "field_identifier", "text": "next", "parent": 221, "children": [], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 20}}, {"id": 224, "type": "field_declaration", "text": "int ref;", "parent": 179, "children": [225, 226], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 16}}, {"id": 225, "type": "primitive_type", "text": "int", "parent": 224, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 7}}, {"id": 226, "type": "field_identifier", "text": "ref", "parent": 224, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 15}}, {"id": 227, "type": "struct_specifier", "text": "struct FChar\n{\n // Rectangle in Font.cacheimage\n int minx; /* left edge of bits */\n int maxx; /* right edge of bits */\n uchar miny; /* first non-zero scan-line */\n uchar maxy; /* last non-zero scan-line + 1 */\n\n schar left; /* offset of baseline */\n uchar width; /* width of baseline */\n}", "parent": null, "children": [228, 229], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 154, "column": 1}}, {"id": 228, "type": "struct", "text": "struct", "parent": 227, "children": [], "start_point": {"row": 144, "column": 0}, "end_point": {"row": 144, "column": 6}}, {"id": 229, "type": "type_identifier", "text": "FChar", "parent": 227, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 12}}, {"id": 230, "type": "field_declaration", "text": "int minx;", "parent": 227, "children": [231, 232], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 17}}, {"id": 231, "type": "primitive_type", "text": "int", "parent": 230, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 7}}, {"id": 232, "type": "field_identifier", "text": "minx", "parent": 230, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 16}}, {"id": 233, "type": "field_declaration", "text": "int maxx;", "parent": 227, "children": [234, 235], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 17}}, {"id": 234, "type": "primitive_type", "text": "int", "parent": 233, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 7}}, {"id": 235, "type": "field_identifier", "text": "maxx", "parent": 233, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 16}}, {"id": 236, "type": "field_declaration", "text": "uchar miny;", "parent": 227, "children": [237, 238], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 17}}, {"id": 237, "type": "type_identifier", "text": "uchar", "parent": 236, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 9}}, {"id": 238, "type": "field_identifier", "text": "miny", "parent": 236, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 16}}, {"id": 239, "type": "field_declaration", "text": "uchar maxy;", "parent": 227, "children": [240, 241], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 17}}, {"id": 240, "type": "type_identifier", "text": "uchar", "parent": 239, "children": [], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 9}}, {"id": 241, "type": "field_identifier", "text": "maxy", "parent": 239, "children": [], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 16}}, {"id": 242, "type": "field_declaration", "text": "schar left;", "parent": 227, "children": [243, 244], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 17}}, {"id": 243, "type": "type_identifier", "text": "schar", "parent": 242, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 9}}, {"id": 244, "type": "field_identifier", "text": "left", "parent": 242, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 16}}, {"id": 245, "type": "field_declaration", "text": "uchar width;", "parent": 227, "children": [246, 247], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 18}}, {"id": 246, "type": "type_identifier", "text": "uchar", "parent": 245, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 9}}, {"id": 247, "type": "field_identifier", "text": "width", "parent": 245, "children": [], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 153, "column": 17}}, {"id": 248, "type": "struct_specifier", "text": "struct CScreen\n{\n // ref_shared<DScreen>\n DScreen* dscreen;\n\n CScreen* next;\n}", "parent": null, "children": [249, 250], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 166, "column": 1}}, {"id": 249, "type": "struct", "text": "struct", "parent": 248, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 6}}, {"id": 250, "type": "type_identifier", "text": "CScreen", "parent": 248, "children": [], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 14}}, {"id": 251, "type": "field_declaration", "text": "DScreen* dscreen;", "parent": 248, "children": [252, 253], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 24}}, {"id": 252, "type": "type_identifier", "text": "DScreen", "parent": 251, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 11}}, {"id": 253, "type": "pointer_declarator", "text": "* dscreen", "parent": 251, "children": [254, 255], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 23}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 12}}, {"id": 255, "type": "field_identifier", "text": "dscreen", "parent": 253, "children": [], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 23}}, {"id": 256, "type": "field_declaration", "text": "CScreen* next;", "parent": 248, "children": [257, 258], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 21}}, {"id": 257, "type": "type_identifier", "text": "CScreen", "parent": 256, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 11}}, {"id": 258, "type": "pointer_declarator", "text": "* next", "parent": 256, "children": [259, 260], "start_point": {"row": 165, "column": 11}, "end_point": {"row": 165, "column": 20}}, {"id": 259, "type": "*", "text": "*", "parent": 258, "children": [], "start_point": {"row": 165, "column": 11}, "end_point": {"row": 165, "column": 12}}, {"id": 260, "type": "field_identifier", "text": "next", "parent": 258, "children": [], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 20}}, {"id": 261, "type": "struct_specifier", "text": "struct DScreen\n{\n int id;\n\n DImage *dimage;\n DImage *dfill;\n\n /*s: [[DScreen]] other fields */\n bool public;\n /*x: [[DScreen]] other fields */\n Client* owner;\n /*x: [[DScreen]] other fields */\n // ref_own<Memscreen>\n Memscreen* screen;\n /*e: [[DScreen]] other fields */\n\n // Extra\n int ref;\n /*s: [[DScreen]] extra fields */\n // list<ref<DScreen>> (head = dscreen)\n DScreen* next;\n /*e: [[DScreen]] extra fields */\n}", "parent": null, "children": [262, 263], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 192, "column": 1}}, {"id": 262, "type": "struct", "text": "struct", "parent": 261, "children": [], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 6}}, {"id": 263, "type": "type_identifier", "text": "DScreen", "parent": 261, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 14}}, {"id": 264, "type": "field_declaration", "text": "int id;", "parent": 261, "children": [265, 266], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 15}}, {"id": 265, "type": "primitive_type", "text": "int", "parent": 264, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 7}}, {"id": 266, "type": "field_identifier", "text": "id", "parent": 264, "children": [], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 14}}, {"id": 267, "type": "field_declaration", "text": "DImage *dimage;", "parent": 261, "children": [268, 269], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 24}}, {"id": 268, "type": "type_identifier", "text": "DImage", "parent": 267, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 10}}, {"id": 269, "type": "pointer_declarator", "text": "*dimage", "parent": 267, "children": [270, 271], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 23}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 17}}, {"id": 271, "type": "field_identifier", "text": "dimage", "parent": 269, "children": [], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 23}}, {"id": 272, "type": "field_declaration", "text": "DImage *dfill;", "parent": 261, "children": [273, 274], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 23}}, {"id": 273, "type": "type_identifier", "text": "DImage", "parent": 272, "children": [], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 10}}, {"id": 274, "type": "pointer_declarator", "text": "*dfill", "parent": 272, "children": [275, 276], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 22}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 17}}, {"id": 276, "type": "field_identifier", "text": "dfill", "parent": 274, "children": [], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 22}}, {"id": 277, "type": "field_declaration", "text": "bool public;", "parent": 261, "children": [278], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 20}}, {"id": 278, "type": "primitive_type", "text": "bool", "parent": 277, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 8}}, {"id": 279, "type": "field_declaration", "text": "Client* owner;", "parent": 261, "children": [280, 281], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 22}}, {"id": 280, "type": "type_identifier", "text": "Client", "parent": 279, "children": [], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 10}}, {"id": 281, "type": "pointer_declarator", "text": "* owner", "parent": 279, "children": [282, 283], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 21}}, {"id": 282, "type": "*", "text": "*", "parent": 281, "children": [], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 11}}, {"id": 283, "type": "field_identifier", "text": "owner", "parent": 281, "children": [], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 21}}, {"id": 284, "type": "field_declaration", "text": "Memscreen* screen;", "parent": 261, "children": [285, 286], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 23}}, {"id": 285, "type": "type_identifier", "text": "Memscreen", "parent": 284, "children": [], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 13}}, {"id": 286, "type": "pointer_declarator", "text": "* screen", "parent": 284, "children": [287, 288], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 22}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 14}}, {"id": 288, "type": "field_identifier", "text": "screen", "parent": 286, "children": [], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 22}}, {"id": 289, "type": "field_declaration", "text": "int ref;", "parent": 261, "children": [290, 291], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 16}}, {"id": 290, "type": "primitive_type", "text": "int", "parent": 289, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 7}}, {"id": 291, "type": "field_identifier", "text": "ref", "parent": 289, "children": [], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 15}}, {"id": 292, "type": "field_declaration", "text": "DScreen* next;", "parent": 261, "children": [293, 294], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 21}}, {"id": 293, "type": "type_identifier", "text": "DScreen", "parent": 292, "children": [], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 190, "column": 11}}, {"id": 294, "type": "pointer_declarator", "text": "* next", "parent": 292, "children": [295, 296], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 20}}, {"id": 295, "type": "*", "text": "*", "parent": 294, "children": [], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 12}}, {"id": 296, "type": "field_identifier", "text": "next", "parent": 294, "children": [], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 20}}, {"id": 297, "type": "struct_specifier", "text": "struct Refresh\n{\n DImage* dimage;\n Rectangle r;\n Refresh* next;\n}", "parent": null, "children": [298, 299], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 202, "column": 1}}, {"id": 298, "type": "struct", "text": "struct", "parent": 297, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 6}}, {"id": 299, "type": "type_identifier", "text": "Refresh", "parent": 297, "children": [], "start_point": {"row": 197, "column": 7}, "end_point": {"row": 197, "column": 14}}, {"id": 300, "type": "field_declaration", "text": "DImage* dimage;", "parent": 297, "children": [301, 302], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 23}}, {"id": 301, "type": "type_identifier", "text": "DImage", "parent": 300, "children": [], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 10}}, {"id": 302, "type": "pointer_declarator", "text": "* dimage", "parent": 300, "children": [303, 304], "start_point": {"row": 199, "column": 10}, "end_point": {"row": 199, "column": 22}}, {"id": 303, "type": "*", "text": "*", "parent": 302, "children": [], "start_point": {"row": 199, "column": 10}, "end_point": {"row": 199, "column": 11}}, {"id": 304, "type": "field_identifier", "text": "dimage", "parent": 302, "children": [], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 22}}, {"id": 305, "type": "field_declaration", "text": "Rectangle r;", "parent": 297, "children": [306, 307], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 18}}, {"id": 306, "type": "type_identifier", "text": "Rectangle", "parent": 305, "children": [], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 13}}, {"id": 307, "type": "field_identifier", "text": "r", "parent": 305, "children": [], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 17}}, {"id": 308, "type": "field_declaration", "text": "Refresh* next;", "parent": 297, "children": [309, 310], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 21}}, {"id": 309, "type": "type_identifier", "text": "Refresh", "parent": 308, "children": [], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 11}}, {"id": 310, "type": "pointer_declarator", "text": "* next", "parent": 308, "children": [311, 312], "start_point": {"row": 201, "column": 11}, "end_point": {"row": 201, "column": 20}}, {"id": 311, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 201, "column": 11}, "end_point": {"row": 201, "column": 12}}, {"id": 312, "type": "field_identifier", "text": "next", "parent": 310, "children": [], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 20}}, {"id": 313, "type": "struct_specifier", "text": "struct Refx\n{\n Client* client;\n DImage* dimage;\n}", "parent": null, "children": [314, 315], "start_point": {"row": 206, "column": 0}, "end_point": {"row": 210, "column": 1}}, {"id": 314, "type": "struct", "text": "struct", "parent": 313, "children": [], "start_point": {"row": 206, "column": 0}, "end_point": {"row": 206, "column": 6}}, {"id": 315, "type": "type_identifier", "text": "Refx", "parent": 313, "children": [], "start_point": {"row": 206, "column": 7}, "end_point": {"row": 206, "column": 11}}, {"id": 316, "type": "field_declaration", "text": "Client* client;", "parent": 313, "children": [317, 318], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 23}}, {"id": 317, "type": "type_identifier", "text": "Client", "parent": 316, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 10}}, {"id": 318, "type": "pointer_declarator", "text": "* client", "parent": 316, "children": [319, 320], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 22}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 11}}, {"id": 320, "type": "field_identifier", "text": "client", "parent": 318, "children": [], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 22}}, {"id": 321, "type": "field_declaration", "text": "DImage* dimage;", "parent": 313, "children": [322, 323], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 23}}, {"id": 322, "type": "type_identifier", "text": "DImage", "parent": 321, "children": [], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 10}}, {"id": 323, "type": "pointer_declarator", "text": "* dimage", "parent": 321, "children": [324, 325], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 209, "column": 22}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 209, "column": 11}}, {"id": 325, "type": "field_identifier", "text": "dimage", "parent": 323, "children": [], "start_point": {"row": 209, "column": 16}, "end_point": {"row": 209, "column": 22}}, {"id": 326, "type": "declaration", "text": "extern char Enodrawimage[];", "parent": null, "children": [327, 329, 330], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 214, "column": 27}}, {"id": 327, "type": "storage_class_specifier", "text": "extern", "parent": 326, "children": [328], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 214, "column": 6}}, {"id": 328, "type": "extern", "text": "extern", "parent": 327, "children": [], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 214, "column": 6}}, {"id": 329, "type": "primitive_type", "text": "char", "parent": 326, "children": [], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 11}}, {"id": 330, "type": "array_declarator", "text": "Enodrawimage[]", "parent": 326, "children": [331], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 26}}, {"id": 331, "type": "identifier", "text": "Enodrawimage", "parent": 330, "children": [], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 24}}, {"id": 332, "type": "declaration", "text": "extern char Enodrawscreen[];", "parent": null, "children": [333, 335, 336], "start_point": {"row": 215, "column": 0}, "end_point": {"row": 215, "column": 28}}, {"id": 333, "type": "storage_class_specifier", "text": "extern", "parent": 332, "children": [334], "start_point": {"row": 215, "column": 0}, "end_point": {"row": 215, "column": 6}}, {"id": 334, "type": "extern", "text": "extern", "parent": 333, "children": [], "start_point": {"row": 215, "column": 0}, "end_point": {"row": 215, "column": 6}}, {"id": 335, "type": "primitive_type", "text": "char", "parent": 332, "children": [], "start_point": {"row": 215, "column": 7}, "end_point": {"row": 215, "column": 11}}, {"id": 336, "type": "array_declarator", "text": "Enodrawscreen[]", "parent": 332, "children": [337], "start_point": {"row": 215, "column": 12}, "end_point": {"row": 215, "column": 27}}, {"id": 337, "type": "identifier", "text": "Enodrawscreen", "parent": 336, "children": [], "start_point": {"row": 215, "column": 12}, "end_point": {"row": 215, "column": 25}}, {"id": 338, "type": "declaration", "text": "extern char Eshortdraw[];", "parent": null, "children": [339, 341, 342], "start_point": {"row": 216, "column": 0}, "end_point": {"row": 216, "column": 25}}, {"id": 339, "type": "storage_class_specifier", "text": "extern", "parent": 338, "children": [340], "start_point": {"row": 216, "column": 0}, "end_point": {"row": 216, "column": 6}}, {"id": 340, "type": "extern", "text": "extern", "parent": 339, "children": [], "start_point": {"row": 216, "column": 0}, "end_point": {"row": 216, "column": 6}}, {"id": 341, "type": "primitive_type", "text": "char", "parent": 338, "children": [], "start_point": {"row": 216, "column": 7}, "end_point": {"row": 216, "column": 11}}, {"id": 342, "type": "array_declarator", "text": "Eshortdraw[]", "parent": 338, "children": [343], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 24}}, {"id": 343, "type": "identifier", "text": "Eshortdraw", "parent": 342, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 22}}, {"id": 344, "type": "declaration", "text": "extern char Eshortread[];", "parent": null, "children": [345, 347, 348], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 217, "column": 25}}, {"id": 345, "type": "storage_class_specifier", "text": "extern", "parent": 344, "children": [346], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 217, "column": 6}}, {"id": 346, "type": "extern", "text": "extern", "parent": 345, "children": [], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 217, "column": 6}}, {"id": 347, "type": "primitive_type", "text": "char", "parent": 344, "children": [], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 11}}, {"id": 348, "type": "array_declarator", "text": "Eshortread[]", "parent": 344, "children": [349], "start_point": {"row": 217, "column": 12}, "end_point": {"row": 217, "column": 24}}, {"id": 349, "type": "identifier", "text": "Eshortread", "parent": 348, "children": [], "start_point": {"row": 217, "column": 12}, "end_point": {"row": 217, "column": 22}}, {"id": 350, "type": "declaration", "text": "extern char Eimageexists[];", "parent": null, "children": [351, 353, 354], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 218, "column": 27}}, {"id": 351, "type": "storage_class_specifier", "text": "extern", "parent": 350, "children": [352], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 218, "column": 6}}, {"id": 352, "type": "extern", "text": "extern", "parent": 351, "children": [], "start_point": {"row": 218, "column": 0}, "end_point": {"row": 218, "column": 6}}, {"id": 353, "type": "primitive_type", "text": "char", "parent": 350, "children": [], "start_point": {"row": 218, "column": 7}, "end_point": {"row": 218, "column": 11}}, {"id": 354, "type": "array_declarator", "text": "Eimageexists[]", "parent": 350, "children": [355], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 26}}, {"id": 355, "type": "identifier", "text": "Eimageexists", "parent": 354, "children": [], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 24}}, {"id": 356, "type": "declaration", "text": "extern char Escreenexists[];", "parent": null, "children": [357, 359, 360], "start_point": {"row": 219, "column": 0}, "end_point": {"row": 219, "column": 28}}, {"id": 357, "type": "storage_class_specifier", "text": "extern", "parent": 356, "children": [358], "start_point": {"row": 219, "column": 0}, "end_point": {"row": 219, "column": 6}}, {"id": 358, "type": "extern", "text": "extern", "parent": 357, "children": [], "start_point": {"row": 219, "column": 0}, "end_point": {"row": 219, "column": 6}}, {"id": 359, "type": "primitive_type", "text": "char", "parent": 356, "children": [], "start_point": {"row": 219, "column": 7}, "end_point": {"row": 219, "column": 11}}, {"id": 360, "type": "array_declarator", "text": "Escreenexists[]", "parent": 356, "children": [361], "start_point": {"row": 219, "column": 12}, "end_point": {"row": 219, "column": 27}}, {"id": 361, "type": "identifier", "text": "Escreenexists", "parent": 360, "children": [], "start_point": {"row": 219, "column": 12}, "end_point": {"row": 219, "column": 25}}, {"id": 362, "type": "declaration", "text": "extern char Edrawmem[];", "parent": null, "children": [363, 365, 366], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 23}}, {"id": 363, "type": "storage_class_specifier", "text": "extern", "parent": 362, "children": [364], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 6}}, {"id": 364, "type": "extern", "text": "extern", "parent": 363, "children": [], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 6}}, {"id": 365, "type": "primitive_type", "text": "char", "parent": 362, "children": [], "start_point": {"row": 220, "column": 7}, "end_point": {"row": 220, "column": 11}}, {"id": 366, "type": "array_declarator", "text": "Edrawmem[]", "parent": 362, "children": [367], "start_point": {"row": 220, "column": 12}, "end_point": {"row": 220, "column": 22}}, {"id": 367, "type": "identifier", "text": "Edrawmem", "parent": 366, "children": [], "start_point": {"row": 220, "column": 12}, "end_point": {"row": 220, "column": 20}}, {"id": 368, "type": "declaration", "text": "extern char Ereadoutside[];", "parent": null, "children": [369, 371, 372], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 221, "column": 27}}, {"id": 369, "type": "storage_class_specifier", "text": "extern", "parent": 368, "children": [370], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 221, "column": 6}}, {"id": 370, "type": "extern", "text": "extern", "parent": 369, "children": [], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 221, "column": 6}}, {"id": 371, "type": "primitive_type", "text": "char", "parent": 368, "children": [], "start_point": {"row": 221, "column": 7}, "end_point": {"row": 221, "column": 11}}, {"id": 372, "type": "array_declarator", "text": "Ereadoutside[]", "parent": 368, "children": [373], "start_point": {"row": 221, "column": 12}, "end_point": {"row": 221, "column": 26}}, {"id": 373, "type": "identifier", "text": "Ereadoutside", "parent": 372, "children": [], "start_point": {"row": 221, "column": 12}, "end_point": {"row": 221, "column": 24}}, {"id": 374, "type": "declaration", "text": "extern char Ewriteoutside[];", "parent": null, "children": [375, 377, 378], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 222, "column": 28}}, {"id": 375, "type": "storage_class_specifier", "text": "extern", "parent": 374, "children": [376], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 222, "column": 6}}, {"id": 376, "type": "extern", "text": "extern", "parent": 375, "children": [], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 222, "column": 6}}, {"id": 377, "type": "primitive_type", "text": "char", "parent": 374, "children": [], "start_point": {"row": 222, "column": 7}, "end_point": {"row": 222, "column": 11}}, {"id": 378, "type": "array_declarator", "text": "Ewriteoutside[]", "parent": 374, "children": [379], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 222, "column": 27}}, {"id": 379, "type": "identifier", "text": "Ewriteoutside", "parent": 378, "children": [], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 222, "column": 25}}, {"id": 380, "type": "declaration", "text": "extern char Enotfont[];", "parent": null, "children": [381, 383, 384], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 223, "column": 23}}, {"id": 381, "type": "storage_class_specifier", "text": "extern", "parent": 380, "children": [382], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 223, "column": 6}}, {"id": 382, "type": "extern", "text": "extern", "parent": 381, "children": [], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 223, "column": 6}}, {"id": 383, "type": "primitive_type", "text": "char", "parent": 380, "children": [], "start_point": {"row": 223, "column": 7}, "end_point": {"row": 223, "column": 11}}, {"id": 384, "type": "array_declarator", "text": "Enotfont[]", "parent": 380, "children": [385], "start_point": {"row": 223, "column": 12}, "end_point": {"row": 223, "column": 22}}, {"id": 385, "type": "identifier", "text": "Enotfont", "parent": 384, "children": [], "start_point": {"row": 223, "column": 12}, "end_point": {"row": 223, "column": 20}}, {"id": 386, "type": "declaration", "text": "extern char Eindex[];", "parent": null, "children": [387, 389, 390], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 21}}, {"id": 387, "type": "storage_class_specifier", "text": "extern", "parent": 386, "children": [388], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 6}}, {"id": 388, "type": "extern", "text": "extern", "parent": 387, "children": [], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 6}}, {"id": 389, "type": "primitive_type", "text": "char", "parent": 386, "children": [], "start_point": {"row": 224, "column": 7}, "end_point": {"row": 224, "column": 11}}, {"id": 390, "type": "array_declarator", "text": "Eindex[]", "parent": 386, "children": [391], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 20}}, {"id": 391, "type": "identifier", "text": "Eindex", "parent": 390, "children": [], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 18}}, {"id": 392, "type": "declaration", "text": "extern char Enoclient[];", "parent": null, "children": [393, 395, 396], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 24}}, {"id": 393, "type": "storage_class_specifier", "text": "extern", "parent": 392, "children": [394], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 6}}, {"id": 394, "type": "extern", "text": "extern", "parent": 393, "children": [], "start_point": {"row": 225, "column": 0}, "end_point": {"row": 225, "column": 6}}, {"id": 395, "type": "primitive_type", "text": "char", "parent": 392, "children": [], "start_point": {"row": 225, "column": 7}, "end_point": {"row": 225, "column": 11}}, {"id": 396, "type": "array_declarator", "text": "Enoclient[]", "parent": 392, "children": [397], "start_point": {"row": 225, "column": 12}, "end_point": {"row": 225, "column": 23}}, {"id": 397, "type": "identifier", "text": "Enoclient", "parent": 396, "children": [], "start_point": {"row": 225, "column": 12}, "end_point": {"row": 225, "column": 21}}, {"id": 398, "type": "declaration", "text": "extern char Enameused[];", "parent": null, "children": [399, 401, 402], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 24}}, {"id": 399, "type": "storage_class_specifier", "text": "extern", "parent": 398, "children": [400], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 6}}, {"id": 400, "type": "extern", "text": "extern", "parent": 399, "children": [], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 6}}, {"id": 401, "type": "primitive_type", "text": "char", "parent": 398, "children": [], "start_point": {"row": 226, "column": 7}, "end_point": {"row": 226, "column": 11}}, {"id": 402, "type": "array_declarator", "text": "Enameused[]", "parent": 398, "children": [403], "start_point": {"row": 226, "column": 12}, "end_point": {"row": 226, "column": 23}}, {"id": 403, "type": "identifier", "text": "Enameused", "parent": 402, "children": [], "start_point": {"row": 226, "column": 12}, "end_point": {"row": 226, "column": 21}}, {"id": 404, "type": "declaration", "text": "extern char Enoname[];", "parent": null, "children": [405, 407, 408], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 22}}, {"id": 405, "type": "storage_class_specifier", "text": "extern", "parent": 404, "children": [406], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 6}}, {"id": 406, "type": "extern", "text": "extern", "parent": 405, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 6}}, {"id": 407, "type": "primitive_type", "text": "char", "parent": 404, "children": [], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 11}}, {"id": 408, "type": "array_declarator", "text": "Enoname[]", "parent": 404, "children": [409], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 21}}, {"id": 409, "type": "identifier", "text": "Enoname", "parent": 408, "children": [], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 19}}, {"id": 410, "type": "declaration", "text": "extern char Eoldname[];", "parent": null, "children": [411, 413, 414], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 23}}, {"id": 411, "type": "storage_class_specifier", "text": "extern", "parent": 410, "children": [412], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 6}}, {"id": 412, "type": "extern", "text": "extern", "parent": 411, "children": [], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 6}}, {"id": 413, "type": "primitive_type", "text": "char", "parent": 410, "children": [], "start_point": {"row": 228, "column": 7}, "end_point": {"row": 228, "column": 11}}, {"id": 414, "type": "array_declarator", "text": "Eoldname[]", "parent": 410, "children": [415], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 22}}, {"id": 415, "type": "identifier", "text": "Eoldname", "parent": 414, "children": [], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 20}}, {"id": 416, "type": "declaration", "text": "extern char Enamed[];", "parent": null, "children": [417, 419, 420], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 21}}, {"id": 417, "type": "storage_class_specifier", "text": "extern", "parent": 416, "children": [418], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 6}}, {"id": 418, "type": "extern", "text": "extern", "parent": 417, "children": [], "start_point": {"row": 229, "column": 0}, "end_point": {"row": 229, "column": 6}}, {"id": 419, "type": "primitive_type", "text": "char", "parent": 416, "children": [], "start_point": {"row": 229, "column": 7}, "end_point": {"row": 229, "column": 11}}, {"id": 420, "type": "array_declarator", "text": "Enamed[]", "parent": 416, "children": [421], "start_point": {"row": 229, "column": 12}, "end_point": {"row": 229, "column": 20}}, {"id": 421, "type": "identifier", "text": "Enamed", "parent": 420, "children": [], "start_point": {"row": 229, "column": 12}, "end_point": {"row": 229, "column": 18}}, {"id": 422, "type": "declaration", "text": "extern char Ewrongname[];", "parent": null, "children": [423, 425, 426], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 230, "column": 25}}, {"id": 423, "type": "storage_class_specifier", "text": "extern", "parent": 422, "children": [424], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 230, "column": 6}}, {"id": 424, "type": "extern", "text": "extern", "parent": 423, "children": [], "start_point": {"row": 230, "column": 0}, "end_point": {"row": 230, "column": 6}}, {"id": 425, "type": "primitive_type", "text": "char", "parent": 422, "children": [], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 11}}, {"id": 426, "type": "array_declarator", "text": "Ewrongname[]", "parent": 422, "children": [427], "start_point": {"row": 230, "column": 12}, "end_point": {"row": 230, "column": 24}}, {"id": 427, "type": "identifier", "text": "Ewrongname", "parent": 426, "children": [], "start_point": {"row": 230, "column": 12}, "end_point": {"row": 230, "column": 22}}, {"id": 428, "type": "declaration", "text": "extern Memimage *screenimage;", "parent": null, "children": [429, 431, 432], "start_point": {"row": 233, "column": 0}, "end_point": {"row": 233, "column": 32}}, {"id": 429, "type": "storage_class_specifier", "text": "extern", "parent": 428, "children": [430], "start_point": {"row": 233, "column": 0}, "end_point": {"row": 233, "column": 6}}, {"id": 430, "type": "extern", "text": "extern", "parent": 429, "children": [], "start_point": {"row": 233, "column": 0}, "end_point": {"row": 233, "column": 6}}, {"id": 431, "type": "type_identifier", "text": "Memimage", "parent": 428, "children": [], "start_point": {"row": 233, "column": 7}, "end_point": {"row": 233, "column": 15}}, {"id": 432, "type": "pointer_declarator", "text": "*screenimage", "parent": 428, "children": [433, 434], "start_point": {"row": 233, "column": 19}, "end_point": {"row": 233, "column": 31}}, {"id": 433, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 233, "column": 19}, "end_point": {"row": 233, "column": 20}}, {"id": 434, "type": "identifier", "text": "screenimage", "parent": 432, "children": [], "start_point": {"row": 233, "column": 20}, "end_point": {"row": 233, "column": 31}}, {"id": 435, "type": "declaration", "text": "error0 initscreenimage(void);", "parent": null, "children": [436, 437], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 234, "column": 29}}, {"id": 436, "type": "type_identifier", "text": "error0", "parent": 435, "children": [], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 234, "column": 6}}, {"id": 437, "type": "function_declarator", "text": "initscreenimage(void)", "parent": 435, "children": [438, 439], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 28}}, {"id": 438, "type": "identifier", "text": "initscreenimage", "parent": 437, "children": [], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 22}}, {"id": 439, "type": "parameter_list", "text": "(void)", "parent": 437, "children": [440], "start_point": {"row": 234, "column": 22}, "end_point": {"row": 234, "column": 28}}, {"id": 440, "type": "parameter_declaration", "text": "void", "parent": 439, "children": [441], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 27}}, {"id": 441, "type": "primitive_type", "text": "void", "parent": 440, "children": [], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 27}}, {"id": 442, "type": "declaration", "text": "extern KDraw sdraw;", "parent": null, "children": [443, 445, 446], "start_point": {"row": 237, "column": 0}, "end_point": {"row": 237, "column": 26}}, {"id": 443, "type": "storage_class_specifier", "text": "extern", "parent": 442, "children": [444], "start_point": {"row": 237, "column": 0}, "end_point": {"row": 237, "column": 6}}, {"id": 444, "type": "extern", "text": "extern", "parent": 443, "children": [], "start_point": {"row": 237, "column": 0}, "end_point": {"row": 237, "column": 6}}, {"id": 445, "type": "type_identifier", "text": "KDraw", "parent": 442, "children": [], "start_point": {"row": 237, "column": 7}, "end_point": {"row": 237, "column": 12}}, {"id": 446, "type": "identifier", "text": "sdraw", "parent": 442, "children": [], "start_point": {"row": 237, "column": 20}, "end_point": {"row": 237, "column": 25}}, {"id": 447, "type": "declaration", "text": "void dlock(void);", "parent": null, "children": [448, 449], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 17}}, {"id": 448, "type": "primitive_type", "text": "void", "parent": 447, "children": [], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 4}}, {"id": 449, "type": "function_declarator", "text": "dlock(void)", "parent": 447, "children": [450, 451], "start_point": {"row": 238, "column": 5}, "end_point": {"row": 238, "column": 16}}, {"id": 450, "type": "identifier", "text": "dlock", "parent": 449, "children": [], "start_point": {"row": 238, "column": 5}, "end_point": {"row": 238, "column": 10}}, {"id": 451, "type": "parameter_list", "text": "(void)", "parent": 449, "children": [452], "start_point": {"row": 238, "column": 10}, "end_point": {"row": 238, "column": 16}}, {"id": 452, "type": "parameter_declaration", "text": "void", "parent": 451, "children": [453], "start_point": {"row": 238, "column": 11}, "end_point": {"row": 238, "column": 15}}, {"id": 453, "type": "primitive_type", "text": "void", "parent": 452, "children": [], "start_point": {"row": 238, "column": 11}, "end_point": {"row": 238, "column": 15}}, {"id": 454, "type": "declaration", "text": "int candlock(void);", "parent": null, "children": [455, 456], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 239, "column": 19}}, {"id": 455, "type": "primitive_type", "text": "int", "parent": 454, "children": [], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 239, "column": 3}}, {"id": 456, "type": "function_declarator", "text": "candlock(void)", "parent": 454, "children": [457, 458], "start_point": {"row": 239, "column": 4}, "end_point": {"row": 239, "column": 18}}, {"id": 457, "type": "identifier", "text": "candlock", "parent": 456, "children": [], "start_point": {"row": 239, "column": 4}, "end_point": {"row": 239, "column": 12}}, {"id": 458, "type": "parameter_list", "text": "(void)", "parent": 456, "children": [459], "start_point": {"row": 239, "column": 12}, "end_point": {"row": 239, "column": 18}}, {"id": 459, "type": "parameter_declaration", "text": "void", "parent": 458, "children": [460], "start_point": {"row": 239, "column": 13}, "end_point": {"row": 239, "column": 17}}, {"id": 460, "type": "primitive_type", "text": "void", "parent": 459, "children": [], "start_point": {"row": 239, "column": 13}, "end_point": {"row": 239, "column": 17}}, {"id": 461, "type": "declaration", "text": "void dunlock(void);", "parent": null, "children": [462, 463], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 19}}, {"id": 462, "type": "primitive_type", "text": "void", "parent": 461, "children": [], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 4}}, {"id": 463, "type": "function_declarator", "text": "dunlock(void)", "parent": 461, "children": [464, 465], "start_point": {"row": 240, "column": 5}, "end_point": {"row": 240, "column": 18}}, {"id": 464, "type": "identifier", "text": "dunlock", "parent": 463, "children": [], "start_point": {"row": 240, "column": 5}, "end_point": {"row": 240, "column": 12}}, {"id": 465, "type": "parameter_list", "text": "(void)", "parent": 463, "children": [466], "start_point": {"row": 240, "column": 12}, "end_point": {"row": 240, "column": 18}}, {"id": 466, "type": "parameter_declaration", "text": "void", "parent": 465, "children": [467], "start_point": {"row": 240, "column": 13}, "end_point": {"row": 240, "column": 17}}, {"id": 467, "type": "primitive_type", "text": "void", "parent": 466, "children": [], "start_point": {"row": 240, "column": 13}, "end_point": {"row": 240, "column": 17}}, {"id": 468, "type": "declaration", "text": "DImage* drawlookup(Client *client, int id, bool checkname);", "parent": null, "children": [469, 470], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 241, "column": 59}}, {"id": 469, "type": "type_identifier", "text": "DImage", "parent": 468, "children": [], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 241, "column": 6}}, {"id": 470, "type": "pointer_declarator", "text": "* drawlookup(Client *client, int id, bool checkname)", "parent": 468, "children": [471, 472], "start_point": {"row": 241, "column": 6}, "end_point": {"row": 241, "column": 58}}, {"id": 471, "type": "*", "text": "*", "parent": 470, "children": [], "start_point": {"row": 241, "column": 6}, "end_point": {"row": 241, "column": 7}}, {"id": 472, "type": "function_declarator", "text": "drawlookup(Client *client, int id, bool checkname)", "parent": 470, "children": [473, 474], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 58}}, {"id": 473, "type": "identifier", "text": "drawlookup", "parent": 472, "children": [], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 18}}, {"id": 474, "type": "parameter_list", "text": "(Client *client, int id, bool checkname)", "parent": 472, "children": [475, 480, 483], "start_point": {"row": 241, "column": 18}, "end_point": {"row": 241, "column": 58}}, {"id": 475, "type": "parameter_declaration", "text": "Client *client", "parent": 474, "children": [476, 477], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 33}}, {"id": 476, "type": "type_identifier", "text": "Client", "parent": 475, "children": [], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 25}}, {"id": 477, "type": "pointer_declarator", "text": "*client", "parent": 475, "children": [478, 479], "start_point": {"row": 241, "column": 26}, "end_point": {"row": 241, "column": 33}}, {"id": 478, "type": "*", "text": "*", "parent": 477, "children": [], "start_point": {"row": 241, "column": 26}, "end_point": {"row": 241, "column": 27}}, {"id": 479, "type": "identifier", "text": "client", "parent": 477, "children": [], "start_point": {"row": 241, "column": 27}, "end_point": {"row": 241, "column": 33}}, {"id": 480, "type": "parameter_declaration", "text": "int id", "parent": 474, "children": [481, 482], "start_point": {"row": 241, "column": 35}, "end_point": {"row": 241, "column": 41}}, {"id": 481, "type": "primitive_type", "text": "int", "parent": 480, "children": [], "start_point": {"row": 241, "column": 35}, "end_point": {"row": 241, "column": 38}}, {"id": 482, "type": "identifier", "text": "id", "parent": 480, "children": [], "start_point": {"row": 241, "column": 39}, "end_point": {"row": 241, "column": 41}}, {"id": 483, "type": "parameter_declaration", "text": "bool checkname", "parent": 474, "children": [484, 485], "start_point": {"row": 241, "column": 43}, "end_point": {"row": 241, "column": 57}}, {"id": 484, "type": "primitive_type", "text": "bool", "parent": 483, "children": [], "start_point": {"row": 241, "column": 43}, "end_point": {"row": 241, "column": 47}}, {"id": 485, "type": "identifier", "text": "checkname", "parent": 483, "children": [], "start_point": {"row": 241, "column": 48}, "end_point": {"row": 241, "column": 57}}, {"id": 486, "type": "declaration", "text": "void addflush(Rectangle r);", "parent": null, "children": [487, 488], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 27}}, {"id": 487, "type": "primitive_type", "text": "void", "parent": 486, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 4}}, {"id": 488, "type": "function_declarator", "text": "addflush(Rectangle r)", "parent": 486, "children": [489, 490], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 26}}, {"id": 489, "type": "identifier", "text": "addflush", "parent": 488, "children": [], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 13}}, {"id": 490, "type": "parameter_list", "text": "(Rectangle r)", "parent": 488, "children": [491], "start_point": {"row": 242, "column": 13}, "end_point": {"row": 242, "column": 26}}, {"id": 491, "type": "parameter_declaration", "text": "Rectangle r", "parent": 490, "children": [492, 493], "start_point": {"row": 242, "column": 14}, "end_point": {"row": 242, "column": 25}}, {"id": 492, "type": "type_identifier", "text": "Rectangle", "parent": 491, "children": [], "start_point": {"row": 242, "column": 14}, "end_point": {"row": 242, "column": 23}}, {"id": 493, "type": "identifier", "text": "r", "parent": 491, "children": [], "start_point": {"row": 242, "column": 24}, "end_point": {"row": 242, "column": 25}}, {"id": 494, "type": "declaration", "text": "void dstflush(int dstid, Memimage *dst, Rectangle r);", "parent": null, "children": [495, 496], "start_point": {"row": 243, "column": 0}, "end_point": {"row": 243, "column": 53}}, {"id": 495, "type": "primitive_type", "text": "void", "parent": 494, "children": [], "start_point": {"row": 243, "column": 0}, "end_point": {"row": 243, "column": 4}}, {"id": 496, "type": "function_declarator", "text": "dstflush(int dstid, Memimage *dst, Rectangle r)", "parent": 494, "children": [497, 498], "start_point": {"row": 243, "column": 5}, "end_point": {"row": 243, "column": 52}}, {"id": 497, "type": "identifier", "text": "dstflush", "parent": 496, "children": [], "start_point": {"row": 243, "column": 5}, "end_point": {"row": 243, "column": 13}}, {"id": 498, "type": "parameter_list", "text": "(int dstid, Memimage *dst, Rectangle r)", "parent": 496, "children": [499, 502, 507], "start_point": {"row": 243, "column": 13}, "end_point": {"row": 243, "column": 52}}, {"id": 499, "type": "parameter_declaration", "text": "int dstid", "parent": 498, "children": [500, 501], "start_point": {"row": 243, "column": 14}, "end_point": {"row": 243, "column": 23}}, {"id": 500, "type": "primitive_type", "text": "int", "parent": 499, "children": [], "start_point": {"row": 243, "column": 14}, "end_point": {"row": 243, "column": 17}}, {"id": 501, "type": "identifier", "text": "dstid", "parent": 499, "children": [], "start_point": {"row": 243, "column": 18}, "end_point": {"row": 243, "column": 23}}, {"id": 502, "type": "parameter_declaration", "text": "Memimage *dst", "parent": 498, "children": [503, 504], "start_point": {"row": 243, "column": 25}, "end_point": {"row": 243, "column": 38}}, {"id": 503, "type": "type_identifier", "text": "Memimage", "parent": 502, "children": [], "start_point": {"row": 243, "column": 25}, "end_point": {"row": 243, "column": 33}}, {"id": 504, "type": "pointer_declarator", "text": "*dst", "parent": 502, "children": [505, 506], "start_point": {"row": 243, "column": 34}, "end_point": {"row": 243, "column": 38}}, {"id": 505, "type": "*", "text": "*", "parent": 504, "children": [], "start_point": {"row": 243, "column": 34}, "end_point": {"row": 243, "column": 35}}, {"id": 506, "type": "identifier", "text": "dst", "parent": 504, "children": [], "start_point": {"row": 243, "column": 35}, "end_point": {"row": 243, "column": 38}}, {"id": 507, "type": "parameter_declaration", "text": "Rectangle r", "parent": 498, "children": [508, 509], "start_point": {"row": 243, "column": 40}, "end_point": {"row": 243, "column": 51}}, {"id": 508, "type": "type_identifier", "text": "Rectangle", "parent": 507, "children": [], "start_point": {"row": 243, "column": 40}, "end_point": {"row": 243, "column": 49}}, {"id": 509, "type": "identifier", "text": "r", "parent": 507, "children": [], "start_point": {"row": 243, "column": 50}, "end_point": {"row": 243, "column": 51}}, {"id": 510, "type": "declaration", "text": "void drawflush(void);", "parent": null, "children": [511, 512], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 244, "column": 21}}, {"id": 511, "type": "primitive_type", "text": "void", "parent": 510, "children": [], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 244, "column": 4}}, {"id": 512, "type": "function_declarator", "text": "drawflush(void)", "parent": 510, "children": [513, 514], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 20}}, {"id": 513, "type": "identifier", "text": "drawflush", "parent": 512, "children": [], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 14}}, {"id": 514, "type": "parameter_list", "text": "(void)", "parent": 512, "children": [515], "start_point": {"row": 244, "column": 14}, "end_point": {"row": 244, "column": 20}}, {"id": 515, "type": "parameter_declaration", "text": "void", "parent": 514, "children": [516], "start_point": {"row": 244, "column": 15}, "end_point": {"row": 244, "column": 19}}, {"id": 516, "type": "primitive_type", "text": "void", "parent": 515, "children": [], "start_point": {"row": 244, "column": 15}, "end_point": {"row": 244, "column": 19}}, {"id": 517, "type": "declaration", "text": "DImage* allocdimage(Memimage *i);", "parent": null, "children": [518, 519], "start_point": {"row": 247, "column": 0}, "end_point": {"row": 247, "column": 33}}, {"id": 518, "type": "type_identifier", "text": "DImage", "parent": 517, "children": [], "start_point": {"row": 247, "column": 0}, "end_point": {"row": 247, "column": 6}}, {"id": 519, "type": "pointer_declarator", "text": "* allocdimage(Memimage *i)", "parent": 517, "children": [520, 521], "start_point": {"row": 247, "column": 6}, "end_point": {"row": 247, "column": 32}}, {"id": 520, "type": "*", "text": "*", "parent": 519, "children": [], "start_point": {"row": 247, "column": 6}, "end_point": {"row": 247, "column": 7}}, {"id": 521, "type": "function_declarator", "text": "allocdimage(Memimage *i)", "parent": 519, "children": [522, 523], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 32}}, {"id": 522, "type": "identifier", "text": "allocdimage", "parent": 521, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 19}}, {"id": 523, "type": "parameter_list", "text": "(Memimage *i)", "parent": 521, "children": [524], "start_point": {"row": 247, "column": 19}, "end_point": {"row": 247, "column": 32}}, {"id": 524, "type": "parameter_declaration", "text": "Memimage *i", "parent": 523, "children": [525, 526], "start_point": {"row": 247, "column": 20}, "end_point": {"row": 247, "column": 31}}, {"id": 525, "type": "type_identifier", "text": "Memimage", "parent": 524, "children": [], "start_point": {"row": 247, "column": 20}, "end_point": {"row": 247, "column": 28}}, {"id": 526, "type": "pointer_declarator", "text": "*i", "parent": 524, "children": [527, 528], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 31}}, {"id": 527, "type": "*", "text": "*", "parent": 526, "children": [], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 30}}, {"id": 528, "type": "identifier", "text": "i", "parent": 526, "children": [], "start_point": {"row": 247, "column": 30}, "end_point": {"row": 247, "column": 31}}, {"id": 529, "type": "declaration", "text": "void drawfreedimage(DImage *dimage);", "parent": null, "children": [530, 531], "start_point": {"row": 248, "column": 0}, "end_point": {"row": 248, "column": 36}}, {"id": 530, "type": "primitive_type", "text": "void", "parent": 529, "children": [], "start_point": {"row": 248, "column": 0}, "end_point": {"row": 248, "column": 4}}, {"id": 531, "type": "function_declarator", "text": "drawfreedimage(DImage *dimage)", "parent": 529, "children": [532, 533], "start_point": {"row": 248, "column": 5}, "end_point": {"row": 248, "column": 35}}, {"id": 532, "type": "identifier", "text": "drawfreedimage", "parent": 531, "children": [], "start_point": {"row": 248, "column": 5}, "end_point": {"row": 248, "column": 19}}, {"id": 533, "type": "parameter_list", "text": "(DImage *dimage)", "parent": 531, "children": [534], "start_point": {"row": 248, "column": 19}, "end_point": {"row": 248, "column": 35}}, {"id": 534, "type": "parameter_declaration", "text": "DImage *dimage", "parent": 533, "children": [535, 536], "start_point": {"row": 248, "column": 20}, "end_point": {"row": 248, "column": 34}}, {"id": 535, "type": "type_identifier", "text": "DImage", "parent": 534, "children": [], "start_point": {"row": 248, "column": 20}, "end_point": {"row": 248, "column": 26}}, {"id": 536, "type": "pointer_declarator", "text": "*dimage", "parent": 534, "children": [537, 538], "start_point": {"row": 248, "column": 27}, "end_point": {"row": 248, "column": 34}}, {"id": 537, "type": "*", "text": "*", "parent": 536, "children": [], "start_point": {"row": 248, "column": 27}, "end_point": {"row": 248, "column": 28}}, {"id": 538, "type": "identifier", "text": "dimage", "parent": 536, "children": [], "start_point": {"row": 248, "column": 28}, "end_point": {"row": 248, "column": 34}}, {"id": 539, "type": "declaration", "text": "Memimage* drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen);", "parent": null, "children": [540, 541], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 77}}, {"id": 540, "type": "type_identifier", "text": "Memimage", "parent": 539, "children": [], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 8}}, {"id": 541, "type": "pointer_declarator", "text": "* drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen)", "parent": 539, "children": [542, 543], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 76}}, {"id": 542, "type": "*", "text": "*", "parent": 541, "children": [], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 9}}, {"id": 543, "type": "function_declarator", "text": "drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen)", "parent": 541, "children": [544, 545], "start_point": {"row": 249, "column": 10}, "end_point": {"row": 249, "column": 76}}, {"id": 544, "type": "identifier", "text": "drawinstall", "parent": 543, "children": [], "start_point": {"row": 249, "column": 10}, "end_point": {"row": 249, "column": 21}}, {"id": 545, "type": "parameter_list", "text": "(Client *client, int id, Memimage *i, DScreen *dscreen)", "parent": 543, "children": [546, 551, 554, 559], "start_point": {"row": 249, "column": 21}, "end_point": {"row": 249, "column": 76}}, {"id": 546, "type": "parameter_declaration", "text": "Client *client", "parent": 545, "children": [547, 548], "start_point": {"row": 249, "column": 22}, "end_point": {"row": 249, "column": 36}}, {"id": 547, "type": "type_identifier", "text": "Client", "parent": 546, "children": [], "start_point": {"row": 249, "column": 22}, "end_point": {"row": 249, "column": 28}}, {"id": 548, "type": "pointer_declarator", "text": "*client", "parent": 546, "children": [549, 550], "start_point": {"row": 249, "column": 29}, "end_point": {"row": 249, "column": 36}}, {"id": 549, "type": "*", "text": "*", "parent": 548, "children": [], "start_point": {"row": 249, "column": 29}, "end_point": {"row": 249, "column": 30}}, {"id": 550, "type": "identifier", "text": "client", "parent": 548, "children": [], "start_point": {"row": 249, "column": 30}, "end_point": {"row": 249, "column": 36}}, {"id": 551, "type": "parameter_declaration", "text": "int id", "parent": 545, "children": [552, 553], "start_point": {"row": 249, "column": 38}, "end_point": {"row": 249, "column": 44}}, {"id": 552, "type": "primitive_type", "text": "int", "parent": 551, "children": [], "start_point": {"row": 249, "column": 38}, "end_point": {"row": 249, "column": 41}}, {"id": 553, "type": "identifier", "text": "id", "parent": 551, "children": [], "start_point": {"row": 249, "column": 42}, "end_point": {"row": 249, "column": 44}}, {"id": 554, "type": "parameter_declaration", "text": "Memimage *i", "parent": 545, "children": [555, 556], "start_point": {"row": 249, "column": 46}, "end_point": {"row": 249, "column": 57}}, {"id": 555, "type": "type_identifier", "text": "Memimage", "parent": 554, "children": [], "start_point": {"row": 249, "column": 46}, "end_point": {"row": 249, "column": 54}}, {"id": 556, "type": "pointer_declarator", "text": "*i", "parent": 554, "children": [557, 558], "start_point": {"row": 249, "column": 55}, "end_point": {"row": 249, "column": 57}}, {"id": 557, "type": "*", "text": "*", "parent": 556, "children": [], "start_point": {"row": 249, "column": 55}, "end_point": {"row": 249, "column": 56}}, {"id": 558, "type": "identifier", "text": "i", "parent": 556, "children": [], "start_point": {"row": 249, "column": 56}, "end_point": {"row": 249, "column": 57}}, {"id": 559, "type": "parameter_declaration", "text": "DScreen *dscreen", "parent": 545, "children": [560, 561], "start_point": {"row": 249, "column": 59}, "end_point": {"row": 249, "column": 75}}, {"id": 560, "type": "type_identifier", "text": "DScreen", "parent": 559, "children": [], "start_point": {"row": 249, "column": 59}, "end_point": {"row": 249, "column": 66}}, {"id": 561, "type": "pointer_declarator", "text": "*dscreen", "parent": 559, "children": [562, 563], "start_point": {"row": 249, "column": 67}, "end_point": {"row": 249, "column": 75}}, {"id": 562, "type": "*", "text": "*", "parent": 561, "children": [], "start_point": {"row": 249, "column": 67}, "end_point": {"row": 249, "column": 68}}, {"id": 563, "type": "identifier", "text": "dscreen", "parent": 561, "children": [], "start_point": {"row": 249, "column": 68}, "end_point": {"row": 249, "column": 75}}, {"id": 564, "type": "declaration", "text": "void drawuninstall(Client *client, int id);", "parent": null, "children": [565, 566], "start_point": {"row": 250, "column": 0}, "end_point": {"row": 250, "column": 43}}, {"id": 565, "type": "primitive_type", "text": "void", "parent": 564, "children": [], "start_point": {"row": 250, "column": 0}, "end_point": {"row": 250, "column": 4}}, {"id": 566, "type": "function_declarator", "text": "drawuninstall(Client *client, int id)", "parent": 564, "children": [567, 568], "start_point": {"row": 250, "column": 5}, "end_point": {"row": 250, "column": 42}}, {"id": 567, "type": "identifier", "text": "drawuninstall", "parent": 566, "children": [], "start_point": {"row": 250, "column": 5}, "end_point": {"row": 250, "column": 18}}, {"id": 568, "type": "parameter_list", "text": "(Client *client, int id)", "parent": 566, "children": [569, 574], "start_point": {"row": 250, "column": 18}, "end_point": {"row": 250, "column": 42}}, {"id": 569, "type": "parameter_declaration", "text": "Client *client", "parent": 568, "children": [570, 571], "start_point": {"row": 250, "column": 19}, "end_point": {"row": 250, "column": 33}}, {"id": 570, "type": "type_identifier", "text": "Client", "parent": 569, "children": [], "start_point": {"row": 250, "column": 19}, "end_point": {"row": 250, "column": 25}}, {"id": 571, "type": "pointer_declarator", "text": "*client", "parent": 569, "children": [572, 573], "start_point": {"row": 250, "column": 26}, "end_point": {"row": 250, "column": 33}}, {"id": 572, "type": "*", "text": "*", "parent": 571, "children": [], "start_point": {"row": 250, "column": 26}, "end_point": {"row": 250, "column": 27}}, {"id": 573, "type": "identifier", "text": "client", "parent": 571, "children": [], "start_point": {"row": 250, "column": 27}, "end_point": {"row": 250, "column": 33}}, {"id": 574, "type": "parameter_declaration", "text": "int id", "parent": 568, "children": [575, 576], "start_point": {"row": 250, "column": 35}, "end_point": {"row": 250, "column": 41}}, {"id": 575, "type": "primitive_type", "text": "int", "parent": 574, "children": [], "start_point": {"row": 250, "column": 35}, "end_point": {"row": 250, "column": 38}}, {"id": 576, "type": "identifier", "text": "id", "parent": 574, "children": [], "start_point": {"row": 250, "column": 39}, "end_point": {"row": 250, "column": 41}}, {"id": 577, "type": "declaration", "text": "extern char screenname[];", "parent": null, "children": [578, 580, 581], "start_point": {"row": 253, "column": 0}, "end_point": {"row": 253, "column": 28}}, {"id": 578, "type": "storage_class_specifier", "text": "extern", "parent": 577, "children": [579], "start_point": {"row": 253, "column": 0}, "end_point": {"row": 253, "column": 6}}, {"id": 579, "type": "extern", "text": "extern", "parent": 578, "children": [], "start_point": {"row": 253, "column": 0}, "end_point": {"row": 253, "column": 6}}, {"id": 580, "type": "primitive_type", "text": "char", "parent": 577, "children": [], "start_point": {"row": 253, "column": 7}, "end_point": {"row": 253, "column": 11}}, {"id": 581, "type": "array_declarator", "text": "screenname[]", "parent": 577, "children": [582], "start_point": {"row": 253, "column": 15}, "end_point": {"row": 253, "column": 27}}, {"id": 582, "type": "identifier", "text": "screenname", "parent": 581, "children": [], "start_point": {"row": 253, "column": 15}, "end_point": {"row": 253, "column": 25}}, {"id": 583, "type": "declaration", "text": "DName* drawlookupname(int n, char *str);", "parent": null, "children": [584, 585], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 40}}, {"id": 584, "type": "type_identifier", "text": "DName", "parent": 583, "children": [], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 5}}, {"id": 585, "type": "pointer_declarator", "text": "* drawlookupname(int n, char *str)", "parent": 583, "children": [586, 587], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 39}}, {"id": 586, "type": "*", "text": "*", "parent": 585, "children": [], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 6}}, {"id": 587, "type": "function_declarator", "text": "drawlookupname(int n, char *str)", "parent": 585, "children": [588, 589], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 39}}, {"id": 588, "type": "identifier", "text": "drawlookupname", "parent": 587, "children": [], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 21}}, {"id": 589, "type": "parameter_list", "text": "(int n, char *str)", "parent": 587, "children": [590, 593], "start_point": {"row": 254, "column": 21}, "end_point": {"row": 254, "column": 39}}, {"id": 590, "type": "parameter_declaration", "text": "int n", "parent": 589, "children": [591, 592], "start_point": {"row": 254, "column": 22}, "end_point": {"row": 254, "column": 27}}, {"id": 591, "type": "primitive_type", "text": "int", "parent": 590, "children": [], "start_point": {"row": 254, "column": 22}, "end_point": {"row": 254, "column": 25}}, {"id": 592, "type": "identifier", "text": "n", "parent": 590, "children": [], "start_point": {"row": 254, "column": 26}, "end_point": {"row": 254, "column": 27}}, {"id": 593, "type": "parameter_declaration", "text": "char *str", "parent": 589, "children": [594, 595], "start_point": {"row": 254, "column": 29}, "end_point": {"row": 254, "column": 38}}, {"id": 594, "type": "primitive_type", "text": "char", "parent": 593, "children": [], "start_point": {"row": 254, "column": 29}, "end_point": {"row": 254, "column": 33}}, {"id": 595, "type": "pointer_declarator", "text": "*str", "parent": 593, "children": [596, 597], "start_point": {"row": 254, "column": 34}, "end_point": {"row": 254, "column": 38}}, {"id": 596, "type": "*", "text": "*", "parent": 595, "children": [], "start_point": {"row": 254, "column": 34}, "end_point": {"row": 254, "column": 35}}, {"id": 597, "type": "identifier", "text": "str", "parent": 595, "children": [], "start_point": {"row": 254, "column": 35}, "end_point": {"row": 254, "column": 38}}, {"id": 598, "type": "declaration", "text": "bool drawgoodname(DImage *d);", "parent": null, "children": [599, 600], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 29}}, {"id": 599, "type": "primitive_type", "text": "bool", "parent": 598, "children": [], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 4}}, {"id": 600, "type": "function_declarator", "text": "drawgoodname(DImage *d)", "parent": 598, "children": [601, 602], "start_point": {"row": 255, "column": 5}, "end_point": {"row": 255, "column": 28}}, {"id": 601, "type": "identifier", "text": "drawgoodname", "parent": 600, "children": [], "start_point": {"row": 255, "column": 5}, "end_point": {"row": 255, "column": 17}}, {"id": 602, "type": "parameter_list", "text": "(DImage *d)", "parent": 600, "children": [603], "start_point": {"row": 255, "column": 17}, "end_point": {"row": 255, "column": 28}}, {"id": 603, "type": "parameter_declaration", "text": "DImage *d", "parent": 602, "children": [604, 605], "start_point": {"row": 255, "column": 18}, "end_point": {"row": 255, "column": 27}}, {"id": 604, "type": "type_identifier", "text": "DImage", "parent": 603, "children": [], "start_point": {"row": 255, "column": 18}, "end_point": {"row": 255, "column": 24}}, {"id": 605, "type": "pointer_declarator", "text": "*d", "parent": 603, "children": [606, 607], "start_point": {"row": 255, "column": 25}, "end_point": {"row": 255, "column": 27}}, {"id": 606, "type": "*", "text": "*", "parent": 605, "children": [], "start_point": {"row": 255, "column": 25}, "end_point": {"row": 255, "column": 26}}, {"id": 607, "type": "identifier", "text": "d", "parent": 605, "children": [], "start_point": {"row": 255, "column": 26}, "end_point": {"row": 255, "column": 27}}, {"id": 608, "type": "declaration", "text": "void drawaddname(Client *client, DImage *di, int n, char *str);", "parent": null, "children": [609, 610], "start_point": {"row": 256, "column": 0}, "end_point": {"row": 256, "column": 63}}, {"id": 609, "type": "primitive_type", "text": "void", "parent": 608, "children": [], "start_point": {"row": 256, "column": 0}, "end_point": {"row": 256, "column": 4}}, {"id": 610, "type": "function_declarator", "text": "drawaddname(Client *client, DImage *di, int n, char *str)", "parent": 608, "children": [611, 612], "start_point": {"row": 256, "column": 5}, "end_point": {"row": 256, "column": 62}}, {"id": 611, "type": "identifier", "text": "drawaddname", "parent": 610, "children": [], "start_point": {"row": 256, "column": 5}, "end_point": {"row": 256, "column": 16}}, {"id": 612, "type": "parameter_list", "text": "(Client *client, DImage *di, int n, char *str)", "parent": 610, "children": [613, 618, 623, 626], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 62}}, {"id": 613, "type": "parameter_declaration", "text": "Client *client", "parent": 612, "children": [614, 615], "start_point": {"row": 256, "column": 17}, "end_point": {"row": 256, "column": 31}}, {"id": 614, "type": "type_identifier", "text": "Client", "parent": 613, "children": [], "start_point": {"row": 256, "column": 17}, "end_point": {"row": 256, "column": 23}}, {"id": 615, "type": "pointer_declarator", "text": "*client", "parent": 613, "children": [616, 617], "start_point": {"row": 256, "column": 24}, "end_point": {"row": 256, "column": 31}}, {"id": 616, "type": "*", "text": "*", "parent": 615, "children": [], "start_point": {"row": 256, "column": 24}, "end_point": {"row": 256, "column": 25}}, {"id": 617, "type": "identifier", "text": "client", "parent": 615, "children": [], "start_point": {"row": 256, "column": 25}, "end_point": {"row": 256, "column": 31}}, {"id": 618, "type": "parameter_declaration", "text": "DImage *di", "parent": 612, "children": [619, 620], "start_point": {"row": 256, "column": 33}, "end_point": {"row": 256, "column": 43}}, {"id": 619, "type": "type_identifier", "text": "DImage", "parent": 618, "children": [], "start_point": {"row": 256, "column": 33}, "end_point": {"row": 256, "column": 39}}, {"id": 620, "type": "pointer_declarator", "text": "*di", "parent": 618, "children": [621, 622], "start_point": {"row": 256, "column": 40}, "end_point": {"row": 256, "column": 43}}, {"id": 621, "type": "*", "text": "*", "parent": 620, "children": [], "start_point": {"row": 256, "column": 40}, "end_point": {"row": 256, "column": 41}}, {"id": 622, "type": "identifier", "text": "di", "parent": 620, "children": [], "start_point": {"row": 256, "column": 41}, "end_point": {"row": 256, "column": 43}}, {"id": 623, "type": "parameter_declaration", "text": "int n", "parent": 612, "children": [624, 625], "start_point": {"row": 256, "column": 45}, "end_point": {"row": 256, "column": 50}}, {"id": 624, "type": "primitive_type", "text": "int", "parent": 623, "children": [], "start_point": {"row": 256, "column": 45}, "end_point": {"row": 256, "column": 48}}, {"id": 625, "type": "identifier", "text": "n", "parent": 623, "children": [], "start_point": {"row": 256, "column": 49}, "end_point": {"row": 256, "column": 50}}, {"id": 626, "type": "parameter_declaration", "text": "char *str", "parent": 612, "children": [627, 628], "start_point": {"row": 256, "column": 52}, "end_point": {"row": 256, "column": 61}}, {"id": 627, "type": "primitive_type", "text": "char", "parent": 626, "children": [], "start_point": {"row": 256, "column": 52}, "end_point": {"row": 256, "column": 56}}, {"id": 628, "type": "pointer_declarator", "text": "*str", "parent": 626, "children": [629, 630], "start_point": {"row": 256, "column": 57}, "end_point": {"row": 256, "column": 61}}, {"id": 629, "type": "*", "text": "*", "parent": 628, "children": [], "start_point": {"row": 256, "column": 57}, "end_point": {"row": 256, "column": 58}}, {"id": 630, "type": "identifier", "text": "str", "parent": 628, "children": [], "start_point": {"row": 256, "column": 58}, "end_point": {"row": 256, "column": 61}}, {"id": 631, "type": "declaration", "text": "void drawdelname(DName *name);", "parent": null, "children": [632, 633], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 30}}, {"id": 632, "type": "primitive_type", "text": "void", "parent": 631, "children": [], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 4}}, {"id": 633, "type": "function_declarator", "text": "drawdelname(DName *name)", "parent": 631, "children": [634, 635], "start_point": {"row": 257, "column": 5}, "end_point": {"row": 257, "column": 29}}, {"id": 634, "type": "identifier", "text": "drawdelname", "parent": 633, "children": [], "start_point": {"row": 257, "column": 5}, "end_point": {"row": 257, "column": 16}}, {"id": 635, "type": "parameter_list", "text": "(DName *name)", "parent": 633, "children": [636], "start_point": {"row": 257, "column": 16}, "end_point": {"row": 257, "column": 29}}, {"id": 636, "type": "parameter_declaration", "text": "DName *name", "parent": 635, "children": [637, 638], "start_point": {"row": 257, "column": 17}, "end_point": {"row": 257, "column": 28}}, {"id": 637, "type": "type_identifier", "text": "DName", "parent": 636, "children": [], "start_point": {"row": 257, "column": 17}, "end_point": {"row": 257, "column": 22}}, {"id": 638, "type": "pointer_declarator", "text": "*name", "parent": 636, "children": [639, 640], "start_point": {"row": 257, "column": 23}, "end_point": {"row": 257, "column": 28}}, {"id": 639, "type": "*", "text": "*", "parent": 638, "children": [], "start_point": {"row": 257, "column": 23}, "end_point": {"row": 257, "column": 24}}, {"id": 640, "type": "identifier", "text": "name", "parent": 638, "children": [], "start_point": {"row": 257, "column": 24}, "end_point": {"row": 257, "column": 28}}, {"id": 641, "type": "declaration", "text": "DScreen* drawlookupscreen(Client *client, int id, CScreen **cs);", "parent": null, "children": [642, 643], "start_point": {"row": 260, "column": 0}, "end_point": {"row": 260, "column": 66}}, {"id": 642, "type": "type_identifier", "text": "DScreen", "parent": 641, "children": [], "start_point": {"row": 260, "column": 0}, "end_point": {"row": 260, "column": 7}}, {"id": 643, "type": "pointer_declarator", "text": "* drawlookupscreen(Client *client, int id, CScreen **cs)", "parent": 641, "children": [644, 645], "start_point": {"row": 260, "column": 7}, "end_point": {"row": 260, "column": 65}}, {"id": 644, "type": "*", "text": "*", "parent": 643, "children": [], "start_point": {"row": 260, "column": 7}, "end_point": {"row": 260, "column": 8}}, {"id": 645, "type": "function_declarator", "text": "drawlookupscreen(Client *client, int id, CScreen **cs)", "parent": 643, "children": [646, 647], "start_point": {"row": 260, "column": 11}, "end_point": {"row": 260, "column": 65}}, {"id": 646, "type": "identifier", "text": "drawlookupscreen", "parent": 645, "children": [], "start_point": {"row": 260, "column": 11}, "end_point": {"row": 260, "column": 27}}, {"id": 647, "type": "parameter_list", "text": "(Client *client, int id, CScreen **cs)", "parent": 645, "children": [648, 653, 656], "start_point": {"row": 260, "column": 27}, "end_point": {"row": 260, "column": 65}}, {"id": 648, "type": "parameter_declaration", "text": "Client *client", "parent": 647, "children": [649, 650], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 42}}, {"id": 649, "type": "type_identifier", "text": "Client", "parent": 648, "children": [], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 34}}, {"id": 650, "type": "pointer_declarator", "text": "*client", "parent": 648, "children": [651, 652], "start_point": {"row": 260, "column": 35}, "end_point": {"row": 260, "column": 42}}, {"id": 651, "type": "*", "text": "*", "parent": 650, "children": [], "start_point": {"row": 260, "column": 35}, "end_point": {"row": 260, "column": 36}}, {"id": 652, "type": "identifier", "text": "client", "parent": 650, "children": [], "start_point": {"row": 260, "column": 36}, "end_point": {"row": 260, "column": 42}}, {"id": 653, "type": "parameter_declaration", "text": "int id", "parent": 647, "children": [654, 655], "start_point": {"row": 260, "column": 44}, "end_point": {"row": 260, "column": 50}}, {"id": 654, "type": "primitive_type", "text": "int", "parent": 653, "children": [], "start_point": {"row": 260, "column": 44}, "end_point": {"row": 260, "column": 47}}, {"id": 655, "type": "identifier", "text": "id", "parent": 653, "children": [], "start_point": {"row": 260, "column": 48}, "end_point": {"row": 260, "column": 50}}, {"id": 656, "type": "parameter_declaration", "text": "CScreen **cs", "parent": 647, "children": [657, 658], "start_point": {"row": 260, "column": 52}, "end_point": {"row": 260, "column": 64}}, {"id": 657, "type": "type_identifier", "text": "CScreen", "parent": 656, "children": [], "start_point": {"row": 260, "column": 52}, "end_point": {"row": 260, "column": 59}}, {"id": 658, "type": "pointer_declarator", "text": "**cs", "parent": 656, "children": [659, 660], "start_point": {"row": 260, "column": 60}, "end_point": {"row": 260, "column": 64}}, {"id": 659, "type": "*", "text": "*", "parent": 658, "children": [], "start_point": {"row": 260, "column": 60}, "end_point": {"row": 260, "column": 61}}, {"id": 660, "type": "pointer_declarator", "text": "*cs", "parent": 658, "children": [661, 662], "start_point": {"row": 260, "column": 61}, "end_point": {"row": 260, "column": 64}}, {"id": 661, "type": "*", "text": "*", "parent": 660, "children": [], "start_point": {"row": 260, "column": 61}, "end_point": {"row": 260, "column": 62}}, {"id": 662, "type": "identifier", "text": "cs", "parent": 660, "children": [], "start_point": {"row": 260, "column": 62}, "end_point": {"row": 260, "column": 64}}, {"id": 663, "type": "declaration", "text": "Memscreen* drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool);", "parent": null, "children": [664, 665], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 261, "column": 79}}, {"id": 664, "type": "type_identifier", "text": "Memscreen", "parent": 663, "children": [], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 261, "column": 9}}, {"id": 665, "type": "pointer_declarator", "text": "* drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool)", "parent": 663, "children": [666, 667], "start_point": {"row": 261, "column": 9}, "end_point": {"row": 261, "column": 78}}, {"id": 666, "type": "*", "text": "*", "parent": 665, "children": [], "start_point": {"row": 261, "column": 9}, "end_point": {"row": 261, "column": 10}}, {"id": 667, "type": "function_declarator", "text": "drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool)", "parent": 665, "children": [668, 669], "start_point": {"row": 261, "column": 11}, "end_point": {"row": 261, "column": 78}}, {"id": 668, "type": "identifier", "text": "drawinstallscreen", "parent": 667, "children": [], "start_point": {"row": 261, "column": 11}, "end_point": {"row": 261, "column": 28}}, {"id": 669, "type": "parameter_list", "text": "(Client*, DScreen*, int, DImage *, DImage *, bool)", "parent": 667, "children": [670, 674, 678, 680, 684, 688], "start_point": {"row": 261, "column": 28}, "end_point": {"row": 261, "column": 78}}, {"id": 670, "type": "parameter_declaration", "text": "Client*", "parent": 669, "children": [671, 672], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 36}}, {"id": 671, "type": "type_identifier", "text": "Client", "parent": 670, "children": [], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 35}}, {"id": 672, "type": "abstract_pointer_declarator", "text": "*", "parent": 670, "children": [673], "start_point": {"row": 261, "column": 35}, "end_point": {"row": 261, "column": 36}}, {"id": 673, "type": "*", "text": "*", "parent": 672, "children": [], "start_point": {"row": 261, "column": 35}, "end_point": {"row": 261, "column": 36}}, {"id": 674, "type": "parameter_declaration", "text": "DScreen*", "parent": 669, "children": [675, 676], "start_point": {"row": 261, "column": 38}, "end_point": {"row": 261, "column": 46}}, {"id": 675, "type": "type_identifier", "text": "DScreen", "parent": 674, "children": [], "start_point": {"row": 261, "column": 38}, "end_point": {"row": 261, "column": 45}}, {"id": 676, "type": "abstract_pointer_declarator", "text": "*", "parent": 674, "children": [677], "start_point": {"row": 261, "column": 45}, "end_point": {"row": 261, "column": 46}}, {"id": 677, "type": "*", "text": "*", "parent": 676, "children": [], "start_point": {"row": 261, "column": 45}, "end_point": {"row": 261, "column": 46}}, {"id": 678, "type": "parameter_declaration", "text": "int", "parent": 669, "children": [679], "start_point": {"row": 261, "column": 48}, "end_point": {"row": 261, "column": 51}}, {"id": 679, "type": "primitive_type", "text": "int", "parent": 678, "children": [], "start_point": {"row": 261, "column": 48}, "end_point": {"row": 261, "column": 51}}, {"id": 680, "type": "parameter_declaration", "text": "DImage *", "parent": 669, "children": [681, 682], "start_point": {"row": 261, "column": 53}, "end_point": {"row": 261, "column": 61}}, {"id": 681, "type": "type_identifier", "text": "DImage", "parent": 680, "children": [], "start_point": {"row": 261, "column": 53}, "end_point": {"row": 261, "column": 59}}, {"id": 682, "type": "abstract_pointer_declarator", "text": "*", "parent": 680, "children": [683], "start_point": {"row": 261, "column": 60}, "end_point": {"row": 261, "column": 61}}, {"id": 683, "type": "*", "text": "*", "parent": 682, "children": [], "start_point": {"row": 261, "column": 60}, "end_point": {"row": 261, "column": 61}}, {"id": 684, "type": "parameter_declaration", "text": "DImage *", "parent": 669, "children": [685, 686], "start_point": {"row": 261, "column": 63}, "end_point": {"row": 261, "column": 71}}, {"id": 685, "type": "type_identifier", "text": "DImage", "parent": 684, "children": [], "start_point": {"row": 261, "column": 63}, "end_point": {"row": 261, "column": 69}}, {"id": 686, "type": "abstract_pointer_declarator", "text": "*", "parent": 684, "children": [687], "start_point": {"row": 261, "column": 70}, "end_point": {"row": 261, "column": 71}}, {"id": 687, "type": "*", "text": "*", "parent": 686, "children": [], "start_point": {"row": 261, "column": 70}, "end_point": {"row": 261, "column": 71}}, {"id": 688, "type": "parameter_declaration", "text": "bool", "parent": 669, "children": [689], "start_point": {"row": 261, "column": 73}, "end_point": {"row": 261, "column": 77}}, {"id": 689, "type": "primitive_type", "text": "bool", "parent": 688, "children": [], "start_point": {"row": 261, "column": 73}, "end_point": {"row": 261, "column": 77}}, {"id": 690, "type": "declaration", "text": "void drawuninstallscreen(Client*, CScreen*);", "parent": null, "children": [691, 692], "start_point": {"row": 262, "column": 0}, "end_point": {"row": 262, "column": 50}}, {"id": 691, "type": "primitive_type", "text": "void", "parent": 690, "children": [], "start_point": {"row": 262, "column": 0}, "end_point": {"row": 262, "column": 4}}, {"id": 692, "type": "function_declarator", "text": "drawuninstallscreen(Client*, CScreen*)", "parent": 690, "children": [693, 694], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 49}}, {"id": 693, "type": "identifier", "text": "drawuninstallscreen", "parent": 692, "children": [], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 30}}, {"id": 694, "type": "parameter_list", "text": "(Client*, CScreen*)", "parent": 692, "children": [695, 699], "start_point": {"row": 262, "column": 30}, "end_point": {"row": 262, "column": 49}}, {"id": 695, "type": "parameter_declaration", "text": "Client*", "parent": 694, "children": [696, 697], "start_point": {"row": 262, "column": 31}, "end_point": {"row": 262, "column": 38}}, {"id": 696, "type": "type_identifier", "text": "Client", "parent": 695, "children": [], "start_point": {"row": 262, "column": 31}, "end_point": {"row": 262, "column": 37}}, {"id": 697, "type": "abstract_pointer_declarator", "text": "*", "parent": 695, "children": [698], "start_point": {"row": 262, "column": 37}, "end_point": {"row": 262, "column": 38}}, {"id": 698, "type": "*", "text": "*", "parent": 697, "children": [], "start_point": {"row": 262, "column": 37}, "end_point": {"row": 262, "column": 38}}, {"id": 699, "type": "parameter_declaration", "text": "CScreen*", "parent": 694, "children": [700, 701], "start_point": {"row": 262, "column": 40}, "end_point": {"row": 262, "column": 48}}, {"id": 700, "type": "type_identifier", "text": "CScreen", "parent": 699, "children": [], "start_point": {"row": 262, "column": 40}, "end_point": {"row": 262, "column": 47}}, {"id": 701, "type": "abstract_pointer_declarator", "text": "*", "parent": 699, "children": [702], "start_point": {"row": 262, "column": 47}, "end_point": {"row": 262, "column": 48}}, {"id": 702, "type": "*", "text": "*", "parent": 701, "children": [], "start_point": {"row": 262, "column": 47}, "end_point": {"row": 262, "column": 48}}, {"id": 703, "type": "declaration", "text": "DScreen* drawlookupdscreen(int id);", "parent": null, "children": [704, 705], "start_point": {"row": 263, "column": 0}, "end_point": {"row": 263, "column": 35}}, {"id": 704, "type": "type_identifier", "text": "DScreen", "parent": 703, "children": [], "start_point": {"row": 263, "column": 0}, "end_point": {"row": 263, "column": 7}}, {"id": 705, "type": "pointer_declarator", "text": "* drawlookupdscreen(int id)", "parent": 703, "children": [706, 707], "start_point": {"row": 263, "column": 7}, "end_point": {"row": 263, "column": 34}}, {"id": 706, "type": "*", "text": "*", "parent": 705, "children": [], "start_point": {"row": 263, "column": 7}, "end_point": {"row": 263, "column": 8}}, {"id": 707, "type": "function_declarator", "text": "drawlookupdscreen(int id)", "parent": 705, "children": [708, 709], "start_point": {"row": 263, "column": 9}, "end_point": {"row": 263, "column": 34}}, {"id": 708, "type": "identifier", "text": "drawlookupdscreen", "parent": 707, "children": [], "start_point": {"row": 263, "column": 9}, "end_point": {"row": 263, "column": 26}}, {"id": 709, "type": "parameter_list", "text": "(int id)", "parent": 707, "children": [710], "start_point": {"row": 263, "column": 26}, "end_point": {"row": 263, "column": 34}}, {"id": 710, "type": "parameter_declaration", "text": "int id", "parent": 709, "children": [711, 712], "start_point": {"row": 263, "column": 27}, "end_point": {"row": 263, "column": 33}}, {"id": 711, "type": "primitive_type", "text": "int", "parent": 710, "children": [], "start_point": {"row": 263, "column": 27}, "end_point": {"row": 263, "column": 30}}, {"id": 712, "type": "identifier", "text": "id", "parent": 710, "children": [], "start_point": {"row": 263, "column": 31}, "end_point": {"row": 263, "column": 33}}, {"id": 713, "type": "declaration", "text": "void drawfreedscreen(DScreen*);", "parent": null, "children": [714, 715], "start_point": {"row": 264, "column": 0}, "end_point": {"row": 264, "column": 31}}, {"id": 714, "type": "primitive_type", "text": "void", "parent": 713, "children": [], "start_point": {"row": 264, "column": 0}, "end_point": {"row": 264, "column": 4}}, {"id": 715, "type": "function_declarator", "text": "drawfreedscreen(DScreen*)", "parent": 713, "children": [716, 717], "start_point": {"row": 264, "column": 5}, "end_point": {"row": 264, "column": 30}}, {"id": 716, "type": "identifier", "text": "drawfreedscreen", "parent": 715, "children": [], "start_point": {"row": 264, "column": 5}, "end_point": {"row": 264, "column": 20}}, {"id": 717, "type": "parameter_list", "text": "(DScreen*)", "parent": 715, "children": [718], "start_point": {"row": 264, "column": 20}, "end_point": {"row": 264, "column": 30}}, {"id": 718, "type": "parameter_declaration", "text": "DScreen*", "parent": 717, "children": [719, 720], "start_point": {"row": 264, "column": 21}, "end_point": {"row": 264, "column": 29}}, {"id": 719, "type": "type_identifier", "text": "DScreen", "parent": 718, "children": [], "start_point": {"row": 264, "column": 21}, "end_point": {"row": 264, "column": 28}}, {"id": 720, "type": "abstract_pointer_declarator", "text": "*", "parent": 718, "children": [721], "start_point": {"row": 264, "column": 28}, "end_point": {"row": 264, "column": 29}}, {"id": 721, "type": "*", "text": "*", "parent": 720, "children": [], "start_point": {"row": 264, "column": 28}, "end_point": {"row": 264, "column": 29}}, {"id": 722, "type": "declaration", "text": "int drawrefactive(void *a);", "parent": null, "children": [723, 724], "start_point": {"row": 267, "column": 0}, "end_point": {"row": 267, "column": 27}}, {"id": 723, "type": "primitive_type", "text": "int", "parent": 722, "children": [], "start_point": {"row": 267, "column": 0}, "end_point": {"row": 267, "column": 3}}, {"id": 724, "type": "function_declarator", "text": "drawrefactive(void *a)", "parent": 722, "children": [725, 726], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 26}}, {"id": 725, "type": "identifier", "text": "drawrefactive", "parent": 724, "children": [], "start_point": {"row": 267, "column": 4}, "end_point": {"row": 267, "column": 17}}, {"id": 726, "type": "parameter_list", "text": "(void *a)", "parent": 724, "children": [727], "start_point": {"row": 267, "column": 17}, "end_point": {"row": 267, "column": 26}}, {"id": 727, "type": "parameter_declaration", "text": "void *a", "parent": 726, "children": [728, 729], "start_point": {"row": 267, "column": 18}, "end_point": {"row": 267, "column": 25}}, {"id": 728, "type": "primitive_type", "text": "void", "parent": 727, "children": [], "start_point": {"row": 267, "column": 18}, "end_point": {"row": 267, "column": 22}}, {"id": 729, "type": "pointer_declarator", "text": "*a", "parent": 727, "children": [730, 731], "start_point": {"row": 267, "column": 23}, "end_point": {"row": 267, "column": 25}}, {"id": 730, "type": "*", "text": "*", "parent": 729, "children": [], "start_point": {"row": 267, "column": 23}, "end_point": {"row": 267, "column": 24}}, {"id": 731, "type": "identifier", "text": "a", "parent": 729, "children": [], "start_point": {"row": 267, "column": 24}, "end_point": {"row": 267, "column": 25}}, {"id": 732, "type": "declaration", "text": "void drawrefresh(Memimage*, Rectangle r, void *v);", "parent": null, "children": [733, 734], "start_point": {"row": 268, "column": 0}, "end_point": {"row": 268, "column": 50}}, {"id": 733, "type": "primitive_type", "text": "void", "parent": 732, "children": [], "start_point": {"row": 268, "column": 0}, "end_point": {"row": 268, "column": 4}}, {"id": 734, "type": "function_declarator", "text": "drawrefresh(Memimage*, Rectangle r, void *v)", "parent": 732, "children": [735, 736], "start_point": {"row": 268, "column": 5}, "end_point": {"row": 268, "column": 49}}, {"id": 735, "type": "identifier", "text": "drawrefresh", "parent": 734, "children": [], "start_point": {"row": 268, "column": 5}, "end_point": {"row": 268, "column": 16}}, {"id": 736, "type": "parameter_list", "text": "(Memimage*, Rectangle r, void *v)", "parent": 734, "children": [737, 741, 744], "start_point": {"row": 268, "column": 16}, "end_point": {"row": 268, "column": 49}}, {"id": 737, "type": "parameter_declaration", "text": "Memimage*", "parent": 736, "children": [738, 739], "start_point": {"row": 268, "column": 17}, "end_point": {"row": 268, "column": 26}}, {"id": 738, "type": "type_identifier", "text": "Memimage", "parent": 737, "children": [], "start_point": {"row": 268, "column": 17}, "end_point": {"row": 268, "column": 25}}, {"id": 739, "type": "abstract_pointer_declarator", "text": "*", "parent": 737, "children": [740], "start_point": {"row": 268, "column": 25}, "end_point": {"row": 268, "column": 26}}, {"id": 740, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 268, "column": 25}, "end_point": {"row": 268, "column": 26}}, {"id": 741, "type": "parameter_declaration", "text": "Rectangle r", "parent": 736, "children": [742, 743], "start_point": {"row": 268, "column": 28}, "end_point": {"row": 268, "column": 39}}, {"id": 742, "type": "type_identifier", "text": "Rectangle", "parent": 741, "children": [], "start_point": {"row": 268, "column": 28}, "end_point": {"row": 268, "column": 37}}, {"id": 743, "type": "identifier", "text": "r", "parent": 741, "children": [], "start_point": {"row": 268, "column": 38}, "end_point": {"row": 268, "column": 39}}, {"id": 744, "type": "parameter_declaration", "text": "void *v", "parent": 736, "children": [745, 746], "start_point": {"row": 268, "column": 41}, "end_point": {"row": 268, "column": 48}}, {"id": 745, "type": "primitive_type", "text": "void", "parent": 744, "children": [], "start_point": {"row": 268, "column": 41}, "end_point": {"row": 268, "column": 45}}, {"id": 746, "type": "pointer_declarator", "text": "*v", "parent": 744, "children": [747, 748], "start_point": {"row": 268, "column": 46}, "end_point": {"row": 268, "column": 48}}, {"id": 747, "type": "*", "text": "*", "parent": 746, "children": [], "start_point": {"row": 268, "column": 46}, "end_point": {"row": 268, "column": 47}}, {"id": 748, "type": "identifier", "text": "v", "parent": 746, "children": [], "start_point": {"row": 268, "column": 47}, "end_point": {"row": 268, "column": 48}}, {"id": 749, "type": "declaration", "text": "void drawrefreshscreen(DImage *l, Client *client);", "parent": null, "children": [750, 751], "start_point": {"row": 269, "column": 0}, "end_point": {"row": 269, "column": 50}}, {"id": 750, "type": "primitive_type", "text": "void", "parent": 749, "children": [], "start_point": {"row": 269, "column": 0}, "end_point": {"row": 269, "column": 4}}, {"id": 751, "type": "function_declarator", "text": "drawrefreshscreen(DImage *l, Client *client)", "parent": 749, "children": [752, 753], "start_point": {"row": 269, "column": 5}, "end_point": {"row": 269, "column": 49}}, {"id": 752, "type": "identifier", "text": "drawrefreshscreen", "parent": 751, "children": [], "start_point": {"row": 269, "column": 5}, "end_point": {"row": 269, "column": 22}}, {"id": 753, "type": "parameter_list", "text": "(DImage *l, Client *client)", "parent": 751, "children": [754, 759], "start_point": {"row": 269, "column": 22}, "end_point": {"row": 269, "column": 49}}, {"id": 754, "type": "parameter_declaration", "text": "DImage *l", "parent": 753, "children": [755, 756], "start_point": {"row": 269, "column": 23}, "end_point": {"row": 269, "column": 32}}, {"id": 755, "type": "type_identifier", "text": "DImage", "parent": 754, "children": [], "start_point": {"row": 269, "column": 23}, "end_point": {"row": 269, "column": 29}}, {"id": 756, "type": "pointer_declarator", "text": "*l", "parent": 754, "children": [757, 758], "start_point": {"row": 269, "column": 30}, "end_point": {"row": 269, "column": 32}}, {"id": 757, "type": "*", "text": "*", "parent": 756, "children": [], "start_point": {"row": 269, "column": 30}, "end_point": {"row": 269, "column": 31}}, {"id": 758, "type": "identifier", "text": "l", "parent": 756, "children": [], "start_point": {"row": 269, "column": 31}, "end_point": {"row": 269, "column": 32}}, {"id": 759, "type": "parameter_declaration", "text": "Client *client", "parent": 753, "children": [760, 761], "start_point": {"row": 269, "column": 34}, "end_point": {"row": 269, "column": 48}}, {"id": 760, "type": "type_identifier", "text": "Client", "parent": 759, "children": [], "start_point": {"row": 269, "column": 34}, "end_point": {"row": 269, "column": 40}}, {"id": 761, "type": "pointer_declarator", "text": "*client", "parent": 759, "children": [762, 763], "start_point": {"row": 269, "column": 41}, "end_point": {"row": 269, "column": 48}}, {"id": 762, "type": "*", "text": "*", "parent": 761, "children": [], "start_point": {"row": 269, "column": 41}, "end_point": {"row": 269, "column": 42}}, {"id": 763, "type": "identifier", "text": "client", "parent": 761, "children": [], "start_point": {"row": 269, "column": 42}, "end_point": {"row": 269, "column": 48}}]}, "node_categories": {"declarations": {"functions": [437, 449, 456, 463, 472, 488, 496, 512, 521, 531, 543, 566, 587, 600, 610, 633, 645, 667, 692, 707, 715, 724, 734, 751], "variables": [0, 6, 12, 18, 24, 30, 36, 42, 48, 65, 72, 75, 78, 81, 86, 89, 92, 95, 103, 109, 112, 119, 122, 127, 130, 133, 138, 141, 146, 149, 152, 155, 161, 166, 171, 176, 182, 185, 190, 195, 200, 203, 206, 211, 216, 219, 224, 230, 233, 236, 239, 242, 245, 251, 256, 264, 267, 272, 277, 279, 284, 289, 292, 300, 305, 308, 316, 321, 326, 332, 338, 344, 350, 356, 362, 368, 374, 380, 386, 392, 398, 404, 410, 416, 422, 428, 435, 440, 442, 447, 452, 454, 459, 461, 466, 468, 475, 480, 483, 486, 491, 494, 499, 502, 507, 510, 515, 517, 524, 529, 534, 539, 546, 551, 554, 559, 564, 569, 574, 577, 583, 590, 593, 598, 603, 608, 613, 618, 623, 626, 631, 636, 641, 648, 653, 656, 663, 670, 674, 678, 680, 684, 688, 690, 695, 699, 703, 710, 713, 718, 722, 727, 732, 737, 741, 744, 749, 754, 759], "classes": [2, 3, 8, 9, 14, 15, 20, 21, 26, 27, 32, 33, 38, 39, 44, 45, 50, 51, 62, 63, 106, 107, 158, 159, 179, 180, 227, 228, 248, 249, 261, 262, 297, 298, 313, 314, 327, 333, 339, 345, 351, 357, 363, 369, 375, 381, 387, 393, 399, 405, 411, 417, 423, 429, 443, 578], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [99], "assignments": [], "loops": [], "conditionals": [4, 5, 10, 11, 16, 17, 22, 23, 28, 29, 34, 35, 40, 41, 46, 47, 52, 53, 56, 60, 64, 66, 71, 74, 77, 80, 82, 85, 88, 91, 94, 96, 98, 104, 105, 108, 111, 113, 117, 118, 121, 123, 126, 129, 132, 134, 137, 140, 142, 145, 147, 148, 151, 154, 156, 157, 160, 165, 167, 170, 172, 175, 178, 181, 184, 186, 189, 191, 194, 196, 199, 202, 205, 210, 212, 215, 218, 220, 223, 226, 229, 232, 235, 237, 238, 240, 241, 243, 244, 246, 247, 250, 252, 255, 257, 260, 263, 266, 268, 271, 273, 276, 280, 283, 285, 288, 291, 293, 296, 299, 301, 304, 306, 307, 309, 312, 315, 317, 320, 322, 325, 331, 337, 343, 349, 355, 361, 367, 373, 379, 385, 391, 397, 403, 409, 415, 421, 427, 431, 434, 436, 438, 445, 446, 450, 457, 464, 469, 473, 476, 479, 482, 485, 489, 492, 493, 497, 501, 503, 506, 508, 509, 513, 518, 522, 525, 528, 532, 535, 538, 540, 544, 547, 550, 553, 555, 558, 560, 563, 567, 570, 573, 576, 582, 584, 588, 592, 597, 601, 604, 607, 611, 614, 617, 619, 622, 625, 630, 634, 637, 640, 642, 646, 649, 652, 655, 657, 662, 664, 668, 671, 675, 681, 685, 693, 696, 700, 704, 708, 712, 716, 719, 725, 731, 735, 738, 742, 743, 748, 752, 755, 758, 760, 763], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [100, 102], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 437, "universal_type": "function", "name": "unknown", "text_snippet": "initscreenimage(void)"}, {"node_id": 449, "universal_type": "function", "name": "unknown", "text_snippet": "dlock(void)"}, {"node_id": 456, "universal_type": "function", "name": "unknown", "text_snippet": "candlock(void)"}, {"node_id": 463, "universal_type": "function", "name": "unknown", "text_snippet": "dunlock(void)"}, {"node_id": 472, "universal_type": "function", "name": "id,", "text_snippet": "drawlookup(Client *client, int id, bool checkname)"}, {"node_id": 488, "universal_type": "function", "name": "unknown", "text_snippet": "addflush(Rectangle r)"}, {"node_id": 496, "universal_type": "function", "name": "unknown", "text_snippet": "dstflush(int dstid, Memimage *dst, Rectangle r)"}, {"node_id": 512, "universal_type": "function", "name": "unknown", "text_snippet": "drawflush(void)"}, {"node_id": 521, "universal_type": "function", "name": "unknown", "text_snippet": "allocdimage(Memimage *i)"}, {"node_id": 531, "universal_type": "function", "name": "unknown", "text_snippet": "drawfreedimage(DImage *dimage)"}, {"node_id": 543, "universal_type": "function", "name": "id,", "text_snippet": "drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen)"}, {"node_id": 566, "universal_type": "function", "name": "id)", "text_snippet": "drawuninstall(Client *client, int id)"}, {"node_id": 587, "universal_type": "function", "name": "unknown", "text_snippet": "drawlookupname(int n, char *str)"}, {"node_id": 600, "universal_type": "function", "name": "unknown", "text_snippet": "drawgoodname(DImage *d)"}, {"node_id": 610, "universal_type": "function", "name": "n,", "text_snippet": "drawaddname(Client *client, DImage *di, int n, char *str)"}, {"node_id": 633, "universal_type": "function", "name": "unknown", "text_snippet": "drawdelname(DName *name)"}, {"node_id": 645, "universal_type": "function", "name": "id,", "text_snippet": "drawlookupscreen(Client *client, int id, CScreen **cs)"}, {"node_id": 667, "universal_type": "function", "name": "unknown", "text_snippet": "drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool)"}, {"node_id": 692, "universal_type": "function", "name": "unknown", "text_snippet": "drawuninstallscreen(Client*, CScreen*)"}, {"node_id": 707, "universal_type": "function", "name": "unknown", "text_snippet": "drawlookupdscreen(int id)"}, {"node_id": 715, "universal_type": "function", "name": "unknown", "text_snippet": "drawfreedscreen(DScreen*)"}, {"node_id": 724, "universal_type": "function", "name": "unknown", "text_snippet": "drawrefactive(void *a)"}, {"node_id": 734, "universal_type": "function", "name": "*v)", "text_snippet": "drawrefresh(Memimage*, Rectangle r, void *v)"}, {"node_id": 751, "universal_type": "function", "name": "unknown", "text_snippet": "drawrefreshscreen(DImage *l, Client *client)"}], "class_declarations": [{"node_id": 2, "universal_type": "class", "name": "Client", "text_snippet": "struct Client"}, {"node_id": 3, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 8, "universal_type": "class", "name": "KDraw", "text_snippet": "struct KDraw"}, {"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 14, "universal_type": "class", "name": "DImage", "text_snippet": "struct DImage"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 20, "universal_type": "class", "name": "DName", "text_snippet": "struct DName"}, {"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 26, "universal_type": "class", "name": "DScreen", "text_snippet": "struct DScreen"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 32, "universal_type": "class", "name": "CScreen", "text_snippet": "struct CScreen"}, {"node_id": 33, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 38, "universal_type": "class", "name": "FChar", "text_snippet": "struct FChar"}, {"node_id": 39, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 44, "universal_type": "class", "name": "Refresh", "text_snippet": "struct Refresh"}, {"node_id": 45, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 50, "universal_type": "class", "name": "Refx", "text_snippet": "struct Refx"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 62, "universal_type": "class", "name": "KDraw", "text_snippet": "struct KDraw\n{\n // growing_array<option<Client>> (size = KDraw.nclient)\n Client** client;\n "}, {"node_id": 63, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 106, "universal_type": "class", "name": "Client", "text_snippet": "struct Client\n{\n int clientid; // /dev/draw/x/\n\n // hash<Image.id, ref_own<Dimage>> (next "}, {"node_id": 107, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 158, "universal_type": "class", "name": "DName", "text_snippet": "struct DName\n{\n // key\n char *name;\n\n // value\n Client *client; // the owner"}, {"node_id": 159, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 179, "universal_type": "class", "name": "DImage", "text_snippet": "struct DImage\n{\n int id;\n Memimage* image;\n\n /*s: [[DImage]] layer fields */\n DScr"}, {"node_id": 180, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 227, "universal_type": "class", "name": "FChar", "text_snippet": "struct FChar\n{\n // Rectangle in Font.cacheimage\n int minx; /* left edge of bits */\n i"}, {"node_id": 228, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 248, "universal_type": "class", "name": "CScreen", "text_snippet": "struct CScreen\n{\n // ref_shared<DScreen>\n DScreen* dscreen;\n\n CScreen* next;\n}"}, {"node_id": 249, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 261, "universal_type": "class", "name": "DScreen", "text_snippet": "struct DScreen\n{\n int id;\n\n DImage *dimage;\n DImage *dfill;\n\n /*s: [[DScre"}, {"node_id": 262, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 297, "universal_type": "class", "name": "Refresh", "text_snippet": "struct Refresh\n{\n DImage* dimage;\n Rectangle r;\n Refresh* next;\n}"}, {"node_id": 298, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 313, "universal_type": "class", "name": "Refx", "text_snippet": "struct Refx\n{\n Client* client;\n DImage* dimage;\n}"}, {"node_id": 314, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 327, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 333, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 339, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 345, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 351, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 357, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 363, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 369, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 375, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 381, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 387, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 393, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 399, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 405, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 411, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 417, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 423, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 429, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 443, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 578, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "/*s: kernel/devices/screen/devdraw.h */\n\ntypedef struct Client Client;\ntypedef struct KDraw KDraw;\ntypedef struct DImage DImage;\ntypedef struct DName DName;\ntypedef struct DScreen DScreen;\ntypedef struct CScreen CScreen;\ntypedef struct FChar FChar;\ntypedef struct Refresh Refresh;\ntypedef struct Refx Refx;\n\n/*s: constant NHASH bis */\n#define NHASH (1<<5)\n/*e: constant NHASH bis */\n/*s: constant [[HASHMASK]] */\n#define HASHMASK (NHASH-1)\n/*e: constant [[HASHMASK]] */\n\n\n/*s: struct [[KDraw]] */\nstruct KDraw\n{\n // growing_array<option<Client>> (size = KDraw.nclient)\n Client** client;\n int nclient;\n\n // gensym\n int clientid;\n \n /*s: [[KDraw]] other fields */\n bool softscreen;\n /*x: [[KDraw]] other fields */\n // growing_array<DName>, size = KDraw.nname\n DName* name;\n int nname;\n /*x: [[KDraw]] other fields */\n int vers;\n /*x: [[KDraw]] other fields */\n bool\tblanked; /* screen turned off */\n /*x: [[KDraw]] other fields */\n ulong savemap[3*256];\n /*x: [[KDraw]] other fields */\n ulong blanktime; /* time of last operation */\n /*e: [[KDraw]] other fields */\n};\n/*e: struct [[KDraw]] */\n\n/*s: struct [[Client]] */\nstruct Client\n{\n int clientid; // /dev/draw/x/\n\n // hash<Image.id, ref_own<Dimage>> (next = Dimage.next in bucket)\n DImage* dimage[NHASH];\n\n /*s: [[Client]] drawing state fields */\n // enum<Drawop>\n int op;\n /*e: [[Client]] drawing state fields */\n /*s: [[Client]] layer fields */\n // list<ref_own<DScreen>> (next = CScreen.next)\n CScreen* cscreen;\n /*e: [[Client]] layer fields */\n /*s: [[Client]] other fields */\n // index in KDraw.clients[]\n int slot;\n /*x: [[Client]] other fields */\n int infoid;\n /*x: [[Client]] other fields */\n // array<byte> (size >= Client.nreaddata)\n byte* readdata;\n int nreaddata;\n /*x: [[Client]] other fields */\n Refresh* refresh;\n Rendez refrend;\n int refreshme;\n /*e: [[Client]] other fields */\n\n // Extra\n /*s: [[Client]] concurrency fields */\n bool busy;\n /*e: [[Client]] concurrency fields */\n Ref r;\n};\n/*e: struct [[Client]] */\n\n\n/*s: struct [[DName]] */\nstruct DName\n{\n // key\n char *name;\n\n // value\n Client *client; // the owner\n DImage* dimage;\n /*s: [[DName]] other fields */\n int vers;\n /*e: [[DName]] other fields */\n};\n/*e: struct [[DName]] */\n\n\n/*s: struct [[DImage]] */\n/*\n * Reference counts in DImages:\n * one per open by original client\n * one per screen image or fill\n * one per image derived from this one by name\n */\nstruct DImage\n{\n int id;\n Memimage* image;\n\n /*s: [[DImage]] layer fields */\n DScreen* dscreen; /* nil if not a window */\n /*e: [[DImage]] layer fields */\n /*s: [[DImage]] font fields */\n // growing_hash<Rune, ref_own<Fchar>> (size = DImage.nfchar)\n FChar* fchar;\n int nfchar;\n /*x: [[DImage]] font fields */\n int ascent;\n /*e: [[DImage]] font fields */\n /*s: [[DImage]] other fields */\n // option<string>, Some when DImage derives from a named image\n char *name;\n // option<ref<DImage>>\n DImage* fromname; /* image this one is derived from, by name */\n /*x: [[DImage]] other fields */\n int vers;\n /*e: [[DImage]] other fields */\n\n // Extra\n /*s: [[DImage]] extra fields */\n DImage* next;\n /*e: [[DImage]] extra fields */\n int ref;\n};\n/*e: struct [[DImage]] */\n\n/*s: struct [[FChar]] */\nstruct FChar\n{\n // Rectangle in Font.cacheimage\n int minx; /* left edge of bits */\n int maxx; /* right edge of bits */\n uchar miny; /* first non-zero scan-line */\n uchar maxy; /* last non-zero scan-line + 1 */\n\n schar left; /* offset of baseline */\n uchar width; /* width of baseline */\n};\n/*e: struct [[FChar]] */\n\n\n\n/*s: struct [[CScreen]] */\nstruct CScreen\n{\n // ref_shared<DScreen>\n DScreen* dscreen;\n\n CScreen* next;\n};\n/*e: struct [[CScreen]] */\n\n/*s: struct [[DScreen]] */\nstruct DScreen\n{\n int id;\n\n DImage *dimage;\n DImage *dfill;\n\n /*s: [[DScreen]] other fields */\n bool public;\n /*x: [[DScreen]] other fields */\n Client* owner;\n /*x: [[DScreen]] other fields */\n // ref_own<Memscreen>\n Memscreen* screen;\n /*e: [[DScreen]] other fields */\n\n // Extra\n int ref;\n /*s: [[DScreen]] extra fields */\n // list<ref<DScreen>> (head = dscreen)\n DScreen* next;\n /*e: [[DScreen]] extra fields */\n};\n/*e: struct [[DScreen]] */\n\n\n/*s: struct [[Refresh]] */\nstruct Refresh\n{\n DImage* dimage;\n Rectangle r;\n Refresh* next;\n};\n/*e: struct [[Refresh]] */\n\n/*s: struct [[Refx]] */\nstruct Refx\n{\n Client* client;\n DImage* dimage;\n};\n/*e: struct [[Refx]] */\n\n// drawerror.c\nextern char Enodrawimage[];\nextern char Enodrawscreen[];\nextern char Eshortdraw[];\nextern char Eshortread[];\nextern char Eimageexists[];\nextern char Escreenexists[];\nextern char Edrawmem[];\nextern char Ereadoutside[];\nextern char Ewriteoutside[];\nextern char Enotfont[];\nextern char Eindex[];\nextern char Enoclient[];\nextern char Enameused[];\nextern char Enoname[];\nextern char Eoldname[];\nextern char Enamed[];\nextern char Ewrongname[];\n\n//drawinit.c\nextern Memimage *screenimage;\nerror0 initscreenimage(void);\n\n//devdraw.c\nextern KDraw sdraw;\nvoid dlock(void);\nint candlock(void);\nvoid dunlock(void);\nDImage* drawlookup(Client *client, int id, bool checkname);\nvoid addflush(Rectangle r);\nvoid dstflush(int dstid, Memimage *dst, Rectangle r);\nvoid drawflush(void);\n\n//drawalloc.c\nDImage* allocdimage(Memimage *i);\nvoid drawfreedimage(DImage *dimage);\nMemimage* drawinstall(Client *client, int id, Memimage *i, DScreen *dscreen);\nvoid drawuninstall(Client *client, int id);\n\n//drawname.c\nextern char screenname[];\nDName* drawlookupname(int n, char *str);\nbool drawgoodname(DImage *d);\nvoid drawaddname(Client *client, DImage *di, int n, char *str);\nvoid drawdelname(DName *name);\n\n//drawwindow.c\nDScreen* drawlookupscreen(Client *client, int id, CScreen **cs);\nMemscreen* drawinstallscreen(Client*, DScreen*, int, DImage *, DImage *, bool);\nvoid drawuninstallscreen(Client*, CScreen*);\nDScreen* drawlookupdscreen(int id);\nvoid drawfreedscreen(DScreen*);\n\n//drawmisc.c\nint drawrefactive(void *a);\nvoid drawrefresh(Memimage*, Rectangle r, void *v);\nvoid drawrefreshscreen(DImage *l, Client *client);\n\n/*e: kernel/devices/screen/devdraw.h */\n"}
80,895
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @interface CIMEnginePacketStruct : NSObject { unsigned long long _sendSeq; unsigned long long _sendTime; char *_sendCmd; int _failReason; } - (void)dealloc; - (id)description; @property(nonatomic) int failReason; // @synthesize failReason=_failReason; @property(nonatomic) char *sendCmd; // @synthesize sendCmd=_sendCmd; @property(nonatomic) unsigned long long sendSeq; // @synthesize sendSeq=_sendSeq; @property(nonatomic) unsigned long long sendTime; // @synthesize sendTime=_sendTime; @end
32.1
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@interface CIMEnginePacketStruct : NSObject\n{\n unsigned long long _sendSeq;\n unsigned long long _sendTime;\n char *_sendCmd;\n int _failReason;\n}\n\n- (void)dealloc;\n- (id)description;\n@property(nonatomic) int failReason; // @synthesize failReason=_failReason;\n@property(nonatomic) char *sendCmd; // @synthesize sendCmd=_sendCmd;\n@property(nonatomic) unsigned long long sendSeq; // @synthesize sendSeq=_sendSeq;\n@property(nonatomic) unsigned long long sendTime; // @synthesize sendTime=_sendTime;\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>." (comment) "//" (preproc_call) "#import "NSObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSObject.h"" (ERROR) "@" (ERROR) "@" (function_definition) "interface CIMEnginePacketStruct : NSObject\n{\n unsigned long long _sendSeq;\n unsigned long long _sendTime;\n char *_sendCmd;\n int _failReason;\n}" (type_identifier) "interface" (identifier) "CIMEnginePacketStruct" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n unsigned long long _sendSeq;\n unsigned long long _sendTime;\n char *_sendCmd;\n int _failReason;\n}" ({) "{" (declaration) "unsigned long long _sendSeq;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "_sendSeq" (;) ";" (declaration) "unsigned long long _sendTime;" (sized_type_specifier) "unsigned long long" (unsigned) "unsigned" (long) "long" (long) "long" (identifier) "_sendTime" (;) ";" (declaration) "char *_sendCmd;" (primitive_type) "char" (pointer_declarator) "*_sendCmd" (*) "*" (identifier) "_sendCmd" (;) ";" (declaration) "int _failReason;" (primitive_type) "int" (identifier) "_failReason" (;) ";" (}) "}" (expression_statement) "- (void)dealloc;" (unary_expression) "- (void)dealloc" (-) "-" (cast_expression) "(void)dealloc" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "dealloc" (;) ";" (expression_statement) "- (id)description;" (unary_expression) "- (id)description" (-) "-" (cast_expression) "(id)description" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "description" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) int failReason;" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "int" (identifier) "int" (identifier) "failReason" (;) ";" (comment) "// @synthesize failReason=_failReason;" (ERROR) "@" (ERROR) "@" (declaration) "property(nonatomic) char *sendCmd;" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (ERROR) "char" (identifier) "char" (pointer_declarator) "*sendCmd" (*) "*" (identifier) "sendCmd" (;) ";" (comment) "// @synthesize sendCmd=_sendCmd;" (ERROR) "@property(nonatomic) unsigned long" (ERROR) "@" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "unsigned" (identifier) "long" (declaration) "long sendSeq;" (sized_type_specifier) "long" (long) "long" (identifier) "sendSeq" (;) ";" (comment) "// @synthesize sendSeq=_sendSeq;" (ERROR) "@property(nonatomic) unsigned long" (ERROR) "@" (macro_type_specifier) "property(nonatomic)" (identifier) "property" (() "(" (type_descriptor) "nonatomic" (type_identifier) "nonatomic" ()) ")" (identifier) "unsigned" (identifier) "long" (declaration) "long sendTime;" (sized_type_specifier) "long" (long) "long" (identifier) "sendTime" (;) ";" (comment) "// @synthesize sendTime=_sendTime;" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
131
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 32.1, "nodes": 90, "errors": 0, "source_hash": "928167ec99f8e31001fe26f21c1fc64374852e33650d20ae0dcbe85abccd3e50", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NSObject.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\"NSObject.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "function_definition", "text": "interface CIMEnginePacketStruct : NSObject\n{\n unsigned long long _sendSeq;\n unsigned long long _sendTime;\n char *_sendCmd;\n int _failReason;\n}", "parent": null, "children": [6, 7, 8], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 14, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 5, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 10}}, {"id": 7, "type": "identifier", "text": "CIMEnginePacketStruct", "parent": 5, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 32}}, {"id": 8, "type": "ERROR", "text": ": NSObject", "parent": 5, "children": [9], "start_point": {"row": 8, "column": 33}, "end_point": {"row": 8, "column": 43}}, {"id": 9, "type": "identifier", "text": "NSObject", "parent": 8, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 43}}, {"id": 10, "type": "declaration", "text": "unsigned long long _sendSeq;", "parent": 5, "children": [11, 15], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 32}}, {"id": 11, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 10, "children": [12, 13, 14], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 22}}, {"id": 12, "type": "unsigned", "text": "unsigned", "parent": 11, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 13, "type": "long", "text": "long", "parent": 11, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 17}}, {"id": 14, "type": "long", "text": "long", "parent": 11, "children": [], "start_point": {"row": 10, "column": 18}, "end_point": {"row": 10, "column": 22}}, {"id": 15, "type": "identifier", "text": "_sendSeq", "parent": 10, "children": [], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 31}}, {"id": 16, "type": "declaration", "text": "unsigned long long _sendTime;", "parent": 5, "children": [17, 21], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 33}}, {"id": 17, "type": "sized_type_specifier", "text": "unsigned long long", "parent": 16, "children": [18, 19, 20], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 22}}, {"id": 18, "type": "unsigned", "text": "unsigned", "parent": 17, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 12}}, {"id": 19, "type": "long", "text": "long", "parent": 17, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 17}}, {"id": 20, "type": "long", "text": "long", "parent": 17, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 22}}, {"id": 21, "type": "identifier", "text": "_sendTime", "parent": 16, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 32}}, {"id": 22, "type": "declaration", "text": "char *_sendCmd;", "parent": 5, "children": [23, 24], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 19}}, {"id": 23, "type": "primitive_type", "text": "char", "parent": 22, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 8}}, {"id": 24, "type": "pointer_declarator", "text": "*_sendCmd", "parent": 22, "children": [25, 26], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 18}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 26, "type": "identifier", "text": "_sendCmd", "parent": 24, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 18}}, {"id": 27, "type": "declaration", "text": "int _failReason;", "parent": 5, "children": [28, 29], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 20}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 7}}, {"id": 29, "type": "identifier", "text": "_failReason", "parent": 27, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 19}}, {"id": 30, "type": "unary_expression", "text": "- (void)dealloc", "parent": null, "children": [31, 32], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 15}}, {"id": 31, "type": "-", "text": "-", "parent": 30, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 32, "type": "cast_expression", "text": "(void)dealloc", "parent": 30, "children": [33, 35], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 15}}, {"id": 33, "type": "type_descriptor", "text": "void", "parent": 32, "children": [34], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 35, "type": "identifier", "text": "dealloc", "parent": 32, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 15}}, {"id": 36, "type": "unary_expression", "text": "- (id)description", "parent": null, "children": [37, 38], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 17}}, {"id": 37, "type": "-", "text": "-", "parent": 36, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 38, "type": "cast_expression", "text": "(id)description", "parent": 36, "children": [39, 41], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 17}}, {"id": 39, "type": "type_descriptor", "text": "id", "parent": 38, "children": [40], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 40, "type": "type_identifier", "text": "id", "parent": 39, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 41, "type": "identifier", "text": "description", "parent": 38, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 17}}, {"id": 42, "type": "ERROR", "text": "@", "parent": null, "children": [43], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 43, "type": "ERROR", "text": "@", "parent": 42, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 44, "type": "declaration", "text": "property(nonatomic) int failReason;", "parent": null, "children": [45, 49, 51], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 36}}, {"id": 45, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 44, "children": [46, 47], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 20}}, {"id": 46, "type": "identifier", "text": "property", "parent": 45, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 47, "type": "type_descriptor", "text": "nonatomic", "parent": 45, "children": [48], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 19}}, {"id": 48, "type": "type_identifier", "text": "nonatomic", "parent": 47, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 19}}, {"id": 49, "type": "ERROR", "text": "int", "parent": 44, "children": [50], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 24}}, {"id": 50, "type": "identifier", "text": "int", "parent": 49, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 24}}, {"id": 51, "type": "identifier", "text": "failReason", "parent": 44, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 35}}, {"id": 52, "type": "ERROR", "text": "@", "parent": null, "children": [53], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 53, "type": "ERROR", "text": "@", "parent": 52, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 54, "type": "declaration", "text": "property(nonatomic) char *sendCmd;", "parent": null, "children": [55, 59, 61], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 35}}, {"id": 55, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 54, "children": [56, 57], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 20}}, {"id": 56, "type": "identifier", "text": "property", "parent": 55, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 57, "type": "type_descriptor", "text": "nonatomic", "parent": 55, "children": [58], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 19}}, {"id": 58, "type": "type_identifier", "text": "nonatomic", "parent": 57, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 19}}, {"id": 59, "type": "ERROR", "text": "char", "parent": 54, "children": [60], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 25}}, {"id": 60, "type": "identifier", "text": "char", "parent": 59, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 25}}, {"id": 61, "type": "pointer_declarator", "text": "*sendCmd", "parent": 54, "children": [62, 63], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 34}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 63, "type": "identifier", "text": "sendCmd", "parent": 61, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 34}}, {"id": 64, "type": "ERROR", "text": "@property(nonatomic) unsigned long", "parent": null, "children": [65, 66, 70, 71], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 34}}, {"id": 65, "type": "ERROR", "text": "@", "parent": 64, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 66, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 64, "children": [67, 68], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 20}}, {"id": 67, "type": "identifier", "text": "property", "parent": 66, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 68, "type": "type_descriptor", "text": "nonatomic", "parent": 66, "children": [69], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 19}}, {"id": 69, "type": "type_identifier", "text": "nonatomic", "parent": 68, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 19}}, {"id": 70, "type": "identifier", "text": "unsigned", "parent": 64, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 29}}, {"id": 71, "type": "identifier", "text": "long", "parent": 64, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 34}}, {"id": 72, "type": "declaration", "text": "long sendSeq;", "parent": null, "children": [73, 75], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 48}}, {"id": 73, "type": "sized_type_specifier", "text": "long", "parent": 72, "children": [74], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 39}}, {"id": 74, "type": "long", "text": "long", "parent": 73, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 39}}, {"id": 75, "type": "identifier", "text": "sendSeq", "parent": 72, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 47}}, {"id": 76, "type": "ERROR", "text": "@property(nonatomic) unsigned long", "parent": null, "children": [77, 78, 82, 83], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 34}}, {"id": 77, "type": "ERROR", "text": "@", "parent": 76, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 78, "type": "macro_type_specifier", "text": "property(nonatomic)", "parent": 76, "children": [79, 80], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 20}}, {"id": 79, "type": "identifier", "text": "property", "parent": 78, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 80, "type": "type_descriptor", "text": "nonatomic", "parent": 78, "children": [81], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 19}}, {"id": 81, "type": "type_identifier", "text": "nonatomic", "parent": 80, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 19}}, {"id": 82, "type": "identifier", "text": "unsigned", "parent": 76, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 29}}, {"id": 83, "type": "identifier", "text": "long", "parent": 76, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 34}}, {"id": 84, "type": "declaration", "text": "long sendTime;", "parent": null, "children": [85, 87], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 49}}, {"id": 85, "type": "sized_type_specifier", "text": "long", "parent": 84, "children": [86], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 39}}, {"id": 86, "type": "long", "text": "long", "parent": 85, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 39}}, {"id": 87, "type": "identifier", "text": "sendTime", "parent": 84, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 48}}, {"id": 88, "type": "ERROR", "text": "@", "parent": null, "children": [89], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 89, "type": "ERROR", "text": "@", "parent": 88, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [10, 16, 22, 27, 44, 54, 72, 84], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [30, 32, 36, 38], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 11, 15, 17, 21, 26, 29, 35, 40, 41, 45, 46, 48, 50, 51, 55, 56, 58, 60, 63, 66, 67, 69, 70, 71, 73, 75, 78, 79, 81, 82, 83, 85, 87], "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": "CIMEnginePacketStruct", "text_snippet": "interface CIMEnginePacketStruct : NSObject\n{\n unsigned long long _sendSeq;\n unsigned long long"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import \"NSObject.h\"\n\n@interface CIMEnginePacketStruct : NSObject\n{\n unsigned long long _sendSeq;\n unsigned long long _sendTime;\n char *_sendCmd;\n int _failReason;\n}\n\n- (void)dealloc;\n- (id)description;\n@property(nonatomic) int failReason; // @synthesize failReason=_failReason;\n@property(nonatomic) char *sendCmd; // @synthesize sendCmd=_sendCmd;\n@property(nonatomic) unsigned long long sendSeq; // @synthesize sendSeq=_sendSeq;\n@property(nonatomic) unsigned long long sendTime; // @synthesize sendTime=_sendTime;\n\n@end\n\n"}
80,896
c
/** * @file タスクリスト * @author */ #ifndef TASK_LIST_H_ #define TASK_LIST_H_ #include "task.h" struct task_list { struct task_entry *head; struct task_entry *tail; }; #ifdef __cplusplus extern "C" { #endif void task_list_init(struct task_list *list); void task_list_destroy(struct task_list *list); void task_list_add(struct task_list *list, struct task_entry *entry); struct task_entry* task_list_pop(struct task_list *list); struct task_entry* task_list_head(struct task_list* list); void task_list_remove(struct task_list *list, struct task_entry *entry); int task_list_is_empty(struct task_list *list); #ifdef __cplusplus } #endif #endif /* OS_TASK_LIST_H_ */
22.93
28
(translation_unit) "/**\n * @file タスクリスト\n * @author \n */\n\n#ifndef TASK_LIST_H_\n#define TASK_LIST_H_\n\n#include "task.h"\n\nstruct task_list {\n struct task_entry *head;\n struct task_entry *tail;\n};\n\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#endif /* OS_TASK_LIST_H_ */\n" (comment) "/**\n * @file タスクリスト\n * @author \n */\n\n#ifndef TA" (preproc_ifdef) "_LIST_H_\n#define TASK_LIST_H_\n\n#include "task.h"\n\nstruct task_list {\n struct task_entry *head;\n struct task_entry *tail;\n};\n\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#endif /* OS_TASK_" (#ifndef) "_LIST_H" (identifier) "\n#define TAS" (preproc_def) "_LIST_H_\n\n#include "t" (#define) "_LIST_H" (identifier) "\n\n#include "" (preproc_include) "sk.h"\n\nstruct task" (#include) "sk.h"\n\ns" (string_literal) "ruct tas" (") "r" (string_content) "uct ta" (") "s" (struct_specifier) "list {\n struct task_entry *head;\n struct task_entry *tail;\n};\n\n\n#ifdef _" (struct) "list {" (type_identifier) " struct t" (field_declaration_list) "sk_entry *head;\n struct task_entry *tail;\n};\n\n\n#ifdef _" ({) "s" (field_declaration) "entry *head;\n struct tas" (struct_specifier) "entry *head;\n str" (struct) "entry " (type_identifier) "head;\n str" (pointer_declarator) "ct ta" (*) "c" (field_identifier) "t ta" (;) "s" (field_declaration) "entry *tail;\n};\n\n\n#ifdef" (struct_specifier) "entry *tail;\n};\n\n" (struct) "entry " (type_identifier) "tail;\n};\n\n" (pointer_declarator) "#ifde" (*) "#" (field_identifier) "ifde" (;) "f" (}) "_" (;) "_" (preproc_ifdef) "usplus\nextern "C" {\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#endif /*" (#ifdef) "usplus" (identifier) "extern "C" " (linkage_specification) "\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#e" (extern) "\n#endi" (string_literal) "\n\nv" (") "\n" (string_content) "\n" (") "v" (declaration_list) "id task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#e" ({) "i" (preproc_call) " task_l" (preproc_directive) " task_" (declaration) "st_init(struct task_list *list);\nvoid task_l" (primitive_type) "st_i" (function_declarator) "it(struct task_list *list);\nvoid task_" (identifier) "it(struct task" (parameter_list) "_list *list);\nvoid task_" (() "_" (parameter_declaration) "list *list);\nvoid task" (struct_specifier) "list *list);\nvoi" (struct) "list *" (type_identifier) "ist);\nvoi" (pointer_declarator) " task" (*) " " (identifier) "task" ()) "_" (;) "l" (declaration) "st_destroy(struct task_list *list);\n\nvoid task_" (primitive_type) "st_d" (function_declarator) "stroy(struct task_list *list);\n\nvoid task" (identifier) "stroy(struct task" (parameter_list) "_list *list);\n\nvoid task" (() "_" (parameter_declaration) "list *list);\n\nvoid tas" (struct_specifier) "list *list);\n\nvo" (struct) "list *" (type_identifier) "ist);\n\nvo" (pointer_declarator) "d tas" (*) "d" (identifier) " tas" ()) "k" (;) "_" (declaration) "st_add(struct task_list *list, struct task_entry *entry);\nstruct task" (primitive_type) "st_a" (function_declarator) "d(struct task_list *list, struct task_entry *entry);\nstruct tas" (identifier) "d(struct task" (parameter_list) "_list *list, struct task_entry *entry);\nstruct tas" (() "_" (parameter_declaration) "list *list, struct tas" (struct_specifier) "list *list, stru" (struct) "list *" (type_identifier) "ist, stru" (pointer_declarator) "t tas" (*) "t" (identifier) " tas" (,) "k" (parameter_declaration) "entry *entry);\nstruct ta" (struct_specifier) "entry *entry);\nst" (struct) "entry " (type_identifier) "entry);\nst" (pointer_declarator) "uct ta" (*) "u" (identifier) "ct ta" ()) "s" (;) "k" (declaration) "entry* task_list_pop(struct task_list *list);\nstruct task" (struct_specifier) "entry* task_list_" (struct) "entry*" (type_identifier) "task_list_" (pointer_declarator) "pop(struct task_list *list);\nstruct tas" (*) "p" (function_declarator) "p(struct task_list *list);\nstruct tas" (identifier) "p(struct task" (parameter_list) "_list *list);\nstruct tas" (() "_" (parameter_declaration) "list *list);\nstruct ta" (struct_specifier) "list *list);\nstr" (struct) "list *" (type_identifier) "ist);\nstr" (pointer_declarator) "ct ta" (*) "c" (identifier) "t ta" ()) "s" (;) "k" (declaration) "entry* task_list_head(struct task_list* list);\nvoid task_l" (struct_specifier) "entry* task_list_" (struct) "entry*" (type_identifier) "task_list_" (pointer_declarator) "head(struct task_list* list);\nvoid task_" (*) "h" (function_declarator) "ad(struct task_list* list);\nvoid task_" (identifier) "ad(struct task" (parameter_list) "_list* list);\nvoid task_" (() "_" (parameter_declaration) "list* list);\nvoid task" (struct_specifier) "list* list);\nvoi" (struct) "list* " (type_identifier) "ist);\nvoi" (pointer_declarator) "d task" (*) "d" (identifier) "task" ()) "_" (;) "l" (declaration) "st_remove(struct task_list *list, struct task_entry *entry);\nint task_li" (primitive_type) "st_r" (function_declarator) "move(struct task_list *list, struct task_entry *entry);\nint task_l" (identifier) "move(struct task" (parameter_list) "_list *list, struct task_entry *entry);\nint task_l" (() "_" (parameter_declaration) "list *list, struct tas" (struct_specifier) "list *list, stru" (struct) "list *" (type_identifier) "ist, stru" (pointer_declarator) "t tas" (*) "t" (identifier) " tas" (,) "k" (parameter_declaration) "entry *entry);\nint task_" (struct_specifier) "entry *entry);\nin" (struct) "entry " (type_identifier) "entry);\nin" (pointer_declarator) " task_" (*) " " (identifier) "task_" ()) "l" (;) "i" (declaration) "t_is_empty(struct task_list *list);\n\n\n#ifdef __" (primitive_type) "t_i" (function_declarator) "_empty(struct task_list *list);\n\n\n#ifdef _" (identifier) "_empty(struct task" (parameter_list) "_list *list);\n\n\n#ifdef _" (() "_" (parameter_declaration) "list *list);\n\n\n#ifdef " (struct_specifier) "list *list);\n\n\n#" (struct) "list *" (type_identifier) "ist);\n\n\n#" (pointer_declarator) "fdef " (*) "f" (identifier) "def " ()) "_" (;) "_" (preproc_ifdef) "usplus\n}\n#endif\n\n\n" (#ifdef) "usplus" (identifier) "}\n#endif\n\n\n" (#endif) "" (}) "e" (#endif) "dif /*" (#endif) "_TASK_" (comment) "IST_H_ */\n"
187
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.93, "nodes": 145, "errors": 0, "source_hash": "9ac47ba8dadb8f20cc6d89ae9f8f100f2a25ddf97631847720d17f261e4c01ae", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "_LIST_H_\n#define TASK_LIST_H_\n\n#include \"task.h\"\n\nstruct task_list {\n\tstruct task_entry *head;\n\tstruct task_entry *tail;\n};\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#endif /* OS_TASK_", "parent": null, "children": [1, 2, 3, 6, 9, 26, 144], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 35, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "_LIST_H", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "identifier", "text": "\n#define TAS", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "_LIST_H_\n\n#include \"t", "parent": 0, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#define", "text": "_LIST_H", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 5, "type": "identifier", "text": "\n\n#include \"", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "sk.h\"\n\nstruct task", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "sk.h\"\n\ns", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "string_literal", "text": "ruct tas", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 9, "type": "struct_specifier", "text": "list {\n\tstruct task_entry *head;\n\tstruct task_entry *tail;\n};\n\n\n#ifdef _", "parent": 0, "children": [10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 10, "type": "struct", "text": "list {", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "\tstruct t", "parent": 9, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 16}}, {"id": 12, "type": "field_declaration", "text": "entry *head;\n\tstruct tas", "parent": 9, "children": [13, 16], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 25}}, {"id": 13, "type": "struct_specifier", "text": "entry *head;\n\tstr", "parent": 12, "children": [14, 15], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 18}}, {"id": 14, "type": "struct", "text": "entry ", "parent": 13, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 7}}, {"id": 15, "type": "type_identifier", "text": "head;\n\tstr", "parent": 13, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 18}}, {"id": 16, "type": "pointer_declarator", "text": "ct ta", "parent": 12, "children": [17, 18], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 24}}, {"id": 17, "type": "*", "text": "c", "parent": 16, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 20}}, {"id": 18, "type": "field_identifier", "text": "t ta", "parent": 16, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 24}}, {"id": 19, "type": "field_declaration", "text": "entry *tail;\n};\n\n\n#ifdef", "parent": 9, "children": [20, 23], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 25}}, {"id": 20, "type": "struct_specifier", "text": "entry *tail;\n};\n\n", "parent": 19, "children": [21, 22], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 18}}, {"id": 21, "type": "struct", "text": "entry ", "parent": 20, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 7}}, {"id": 22, "type": "type_identifier", "text": "tail;\n};\n\n", "parent": 20, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 18}}, {"id": 23, "type": "pointer_declarator", "text": "#ifde", "parent": 19, "children": [24, 25], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 24}}, {"id": 24, "type": "*", "text": "#", "parent": 23, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 25, "type": "field_identifier", "text": "ifde", "parent": 23, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 24}}, {"id": 26, "type": "preproc_ifdef", "text": "usplus\nextern \"C\" {\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#endif /*", "parent": 0, "children": [27, 28, 29, 143], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 27, "type": "#ifdef", "text": "usplus", "parent": 26, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 28, "type": "identifier", "text": "extern \"C\" ", "parent": 26, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 18}}, {"id": 29, "type": "linkage_specification", "text": "\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#e", "parent": 26, "children": [30, 31], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 30, "type": "extern", "text": "\n#endi", "parent": 29, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 31, "type": "string_literal", "text": "\n\nv", "parent": 29, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 10}}, {"id": 32, "type": "preproc_call", "text": " task_l", "parent": 29, "children": [33], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 33, "type": "preproc_directive", "text": " task_", "parent": 32, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 34, "type": "declaration", "text": "st_init(struct task_list *list);\nvoid task_l", "parent": 29, "children": [35, 36], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 44}}, {"id": 35, "type": "primitive_type", "text": "st_i", "parent": 34, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 36, "type": "function_declarator", "text": "it(struct task_list *list);\nvoid task_", "parent": 34, "children": [37, 38], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 43}}, {"id": 37, "type": "identifier", "text": "it(struct task", "parent": 36, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 19}}, {"id": 38, "type": "parameter_list", "text": "_list *list);\nvoid task_", "parent": 36, "children": [39], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 43}}, {"id": 39, "type": "parameter_declaration", "text": "list *list);\nvoid task", "parent": 38, "children": [40, 43], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 42}}, {"id": 40, "type": "struct_specifier", "text": "list *list);\nvoi", "parent": 39, "children": [41, 42], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 36}}, {"id": 41, "type": "struct", "text": "list *", "parent": 40, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 26}}, {"id": 42, "type": "type_identifier", "text": "ist);\nvoi", "parent": 40, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 36}}, {"id": 43, "type": "pointer_declarator", "text": " task", "parent": 39, "children": [44, 45], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 42}}, {"id": 44, "type": "*", "text": " ", "parent": 43, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 38}}, {"id": 45, "type": "identifier", "text": "task", "parent": 43, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 42}}, {"id": 46, "type": "declaration", "text": "st_destroy(struct task_list *list);\n\nvoid task_", "parent": 29, "children": [47, 48], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 47}}, {"id": 47, "type": "primitive_type", "text": "st_d", "parent": 46, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 48, "type": "function_declarator", "text": "stroy(struct task_list *list);\n\nvoid task", "parent": 46, "children": [49, 50], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 46}}, {"id": 49, "type": "identifier", "text": "stroy(struct task", "parent": 48, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 22}}, {"id": 50, "type": "parameter_list", "text": "_list *list);\n\nvoid task", "parent": 48, "children": [51], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 46}}, {"id": 51, "type": "parameter_declaration", "text": "list *list);\n\nvoid tas", "parent": 50, "children": [52, 55], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 45}}, {"id": 52, "type": "struct_specifier", "text": "list *list);\n\nvo", "parent": 51, "children": [53, 54], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 39}}, {"id": 53, "type": "struct", "text": "list *", "parent": 52, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 29}}, {"id": 54, "type": "type_identifier", "text": "ist);\n\nvo", "parent": 52, "children": [], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 39}}, {"id": 55, "type": "pointer_declarator", "text": "d tas", "parent": 51, "children": [56, 57], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 45}}, {"id": 56, "type": "*", "text": "d", "parent": 55, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 41}}, {"id": 57, "type": "identifier", "text": " tas", "parent": 55, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 45}}, {"id": 58, "type": "declaration", "text": "st_add(struct task_list *list, struct task_entry *entry);\nstruct task", "parent": 29, "children": [59, 60], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 69}}, {"id": 59, "type": "primitive_type", "text": "st_a", "parent": 58, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 60, "type": "function_declarator", "text": "d(struct task_list *list, struct task_entry *entry);\nstruct tas", "parent": 58, "children": [61, 62], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 68}}, {"id": 61, "type": "identifier", "text": "d(struct task", "parent": 60, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 18}}, {"id": 62, "type": "parameter_list", "text": "_list *list, struct task_entry *entry);\nstruct tas", "parent": 60, "children": [63, 70], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 68}}, {"id": 63, "type": "parameter_declaration", "text": "list *list, struct tas", "parent": 62, "children": [64, 67], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 41}}, {"id": 64, "type": "struct_specifier", "text": "list *list, stru", "parent": 63, "children": [65, 66], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 35}}, {"id": 65, "type": "struct", "text": "list *", "parent": 64, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 25}}, {"id": 66, "type": "type_identifier", "text": "ist, stru", "parent": 64, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 35}}, {"id": 67, "type": "pointer_declarator", "text": "t tas", "parent": 63, "children": [68, 69], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 41}}, {"id": 68, "type": "*", "text": "t", "parent": 67, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 37}}, {"id": 69, "type": "identifier", "text": " tas", "parent": 67, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 41}}, {"id": 70, "type": "parameter_declaration", "text": "entry *entry);\nstruct ta", "parent": 62, "children": [71, 74], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 67}}, {"id": 71, "type": "struct_specifier", "text": "entry *entry);\nst", "parent": 70, "children": [72, 73], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 60}}, {"id": 72, "type": "struct", "text": "entry ", "parent": 71, "children": [], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 49}}, {"id": 73, "type": "type_identifier", "text": "entry);\nst", "parent": 71, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 60}}, {"id": 74, "type": "pointer_declarator", "text": "uct ta", "parent": 70, "children": [75, 76], "start_point": {"row": 23, "column": 61}, "end_point": {"row": 23, "column": 67}}, {"id": 75, "type": "*", "text": "u", "parent": 74, "children": [], "start_point": {"row": 23, "column": 61}, "end_point": {"row": 23, "column": 62}}, {"id": 76, "type": "identifier", "text": "ct ta", "parent": 74, "children": [], "start_point": {"row": 23, "column": 62}, "end_point": {"row": 23, "column": 67}}, {"id": 77, "type": "declaration", "text": "entry* task_list_pop(struct task_list *list);\nstruct task", "parent": 29, "children": [78, 81], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 57}}, {"id": 78, "type": "struct_specifier", "text": "entry* task_list_", "parent": 77, "children": [79, 80], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 17}}, {"id": 79, "type": "struct", "text": "entry*", "parent": 78, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 80, "type": "type_identifier", "text": "task_list_", "parent": 78, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 17}}, {"id": 81, "type": "pointer_declarator", "text": "pop(struct task_list *list);\nstruct tas", "parent": 77, "children": [82, 83], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 56}}, {"id": 82, "type": "*", "text": "p", "parent": 81, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 18}}, {"id": 83, "type": "function_declarator", "text": "p(struct task_list *list);\nstruct tas", "parent": 81, "children": [84, 85], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 56}}, {"id": 84, "type": "identifier", "text": "p(struct task", "parent": 83, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 32}}, {"id": 85, "type": "parameter_list", "text": "_list *list);\nstruct tas", "parent": 83, "children": [86], "start_point": {"row": 24, "column": 32}, "end_point": {"row": 24, "column": 56}}, {"id": 86, "type": "parameter_declaration", "text": "list *list);\nstruct ta", "parent": 85, "children": [87, 90], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 55}}, {"id": 87, "type": "struct_specifier", "text": "list *list);\nstr", "parent": 86, "children": [88, 89], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 49}}, {"id": 88, "type": "struct", "text": "list *", "parent": 87, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 39}}, {"id": 89, "type": "type_identifier", "text": "ist);\nstr", "parent": 87, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 49}}, {"id": 90, "type": "pointer_declarator", "text": "ct ta", "parent": 86, "children": [91, 92], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 55}}, {"id": 91, "type": "*", "text": "c", "parent": 90, "children": [], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 51}}, {"id": 92, "type": "identifier", "text": "t ta", "parent": 90, "children": [], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 55}}, {"id": 93, "type": "declaration", "text": "entry* task_list_head(struct task_list* list);\nvoid task_l", "parent": 29, "children": [94, 97], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 58}}, {"id": 94, "type": "struct_specifier", "text": "entry* task_list_", "parent": 93, "children": [95, 96], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 17}}, {"id": 95, "type": "struct", "text": "entry*", "parent": 94, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 96, "type": "type_identifier", "text": "task_list_", "parent": 94, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 17}}, {"id": 97, "type": "pointer_declarator", "text": "head(struct task_list* list);\nvoid task_", "parent": 93, "children": [98, 99], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 57}}, {"id": 98, "type": "*", "text": "h", "parent": 97, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 18}}, {"id": 99, "type": "function_declarator", "text": "ad(struct task_list* list);\nvoid task_", "parent": 97, "children": [100, 101], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 57}}, {"id": 100, "type": "identifier", "text": "ad(struct task", "parent": 99, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 33}}, {"id": 101, "type": "parameter_list", "text": "_list* list);\nvoid task_", "parent": 99, "children": [102], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 57}}, {"id": 102, "type": "parameter_declaration", "text": "list* list);\nvoid task", "parent": 101, "children": [103, 106], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 56}}, {"id": 103, "type": "struct_specifier", "text": "list* list);\nvoi", "parent": 102, "children": [104, 105], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 50}}, {"id": 104, "type": "struct", "text": "list* ", "parent": 103, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 40}}, {"id": 105, "type": "type_identifier", "text": "ist);\nvoi", "parent": 103, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 50}}, {"id": 106, "type": "pointer_declarator", "text": "d task", "parent": 102, "children": [107, 108], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 56}}, {"id": 107, "type": "*", "text": "d", "parent": 106, "children": [], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 51}}, {"id": 108, "type": "identifier", "text": "task", "parent": 106, "children": [], "start_point": {"row": 25, "column": 52}, "end_point": {"row": 25, "column": 56}}, {"id": 109, "type": "declaration", "text": "st_remove(struct task_list *list, struct task_entry *entry);\nint task_li", "parent": 29, "children": [110, 111], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 72}}, {"id": 110, "type": "primitive_type", "text": "st_r", "parent": 109, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 111, "type": "function_declarator", "text": "move(struct task_list *list, struct task_entry *entry);\nint task_l", "parent": 109, "children": [112, 113], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 71}}, {"id": 112, "type": "identifier", "text": "move(struct task", "parent": 111, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 21}}, {"id": 113, "type": "parameter_list", "text": "_list *list, struct task_entry *entry);\nint task_l", "parent": 111, "children": [114, 121], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 71}}, {"id": 114, "type": "parameter_declaration", "text": "list *list, struct tas", "parent": 113, "children": [115, 118], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 44}}, {"id": 115, "type": "struct_specifier", "text": "list *list, stru", "parent": 114, "children": [116, 117], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 38}}, {"id": 116, "type": "struct", "text": "list *", "parent": 115, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 28}}, {"id": 117, "type": "type_identifier", "text": "ist, stru", "parent": 115, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 38}}, {"id": 118, "type": "pointer_declarator", "text": "t tas", "parent": 114, "children": [119, 120], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 44}}, {"id": 119, "type": "*", "text": "t", "parent": 118, "children": [], "start_point": {"row": 26, "column": 39}, "end_point": {"row": 26, "column": 40}}, {"id": 120, "type": "identifier", "text": " tas", "parent": 118, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 44}}, {"id": 121, "type": "parameter_declaration", "text": "entry *entry);\nint task_", "parent": 113, "children": [122, 125], "start_point": {"row": 26, "column": 46}, "end_point": {"row": 26, "column": 70}}, {"id": 122, "type": "struct_specifier", "text": "entry *entry);\nin", "parent": 121, "children": [123, 124], "start_point": {"row": 26, "column": 46}, "end_point": {"row": 26, "column": 63}}, {"id": 123, "type": "struct", "text": "entry ", "parent": 122, "children": [], "start_point": {"row": 26, "column": 46}, "end_point": {"row": 26, "column": 52}}, {"id": 124, "type": "type_identifier", "text": "entry);\nin", "parent": 122, "children": [], "start_point": {"row": 26, "column": 53}, "end_point": {"row": 26, "column": 63}}, {"id": 125, "type": "pointer_declarator", "text": " task_", "parent": 121, "children": [126, 127], "start_point": {"row": 26, "column": 64}, "end_point": {"row": 26, "column": 70}}, {"id": 126, "type": "*", "text": " ", "parent": 125, "children": [], "start_point": {"row": 26, "column": 64}, "end_point": {"row": 26, "column": 65}}, {"id": 127, "type": "identifier", "text": "task_", "parent": 125, "children": [], "start_point": {"row": 26, "column": 65}, "end_point": {"row": 26, "column": 70}}, {"id": 128, "type": "declaration", "text": "t_is_empty(struct task_list *list);\n\n\n#ifdef __", "parent": 29, "children": [129, 130], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 47}}, {"id": 129, "type": "primitive_type", "text": "t_i", "parent": 128, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 130, "type": "function_declarator", "text": "_empty(struct task_list *list);\n\n\n#ifdef _", "parent": 128, "children": [131, 132], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 46}}, {"id": 131, "type": "identifier", "text": "_empty(struct task", "parent": 130, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 22}}, {"id": 132, "type": "parameter_list", "text": "_list *list);\n\n\n#ifdef _", "parent": 130, "children": [133], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 46}}, {"id": 133, "type": "parameter_declaration", "text": "list *list);\n\n\n#ifdef ", "parent": 132, "children": [134, 137], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 45}}, {"id": 134, "type": "struct_specifier", "text": "list *list);\n\n\n#", "parent": 133, "children": [135, 136], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 39}}, {"id": 135, "type": "struct", "text": "list *", "parent": 134, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 29}}, {"id": 136, "type": "type_identifier", "text": "ist);\n\n\n#", "parent": 134, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 39}}, {"id": 137, "type": "pointer_declarator", "text": "fdef ", "parent": 133, "children": [138], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 45}}, {"id": 138, "type": "*", "text": "f", "parent": 137, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 41}}, {"id": 139, "type": "preproc_ifdef", "text": "usplus\n}\n#endif\n\n\n", "parent": 29, "children": [140, 141, 142], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 18}}, {"id": 140, "type": "#ifdef", "text": "usplus", "parent": 139, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 141, "type": "identifier", "text": "}\n#endif\n\n\n", "parent": 139, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 18}}, {"id": 142, "type": "#endif", "text": "", "parent": 139, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 18}}, {"id": 143, "type": "#endif", "text": "dif /*", "parent": 26, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 144, "type": "#endif", "text": "_TASK_", "parent": 0, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 6}}]}, "node_categories": {"declarations": {"functions": [36, 48, 60, 83, 99, 111, 130], "variables": [12, 19, 34, 39, 46, 51, 58, 63, 70, 77, 86, 93, 102, 109, 114, 121, 128, 133], "classes": [9, 10, 13, 14, 20, 21, 40, 41, 52, 53, 64, 65, 71, 72, 78, 79, 87, 88, 94, 95, 103, 104, 115, 116, 122, 123, 134, 135], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 15, 18, 22, 25, 26, 27, 28, 29, 37, 42, 45, 49, 54, 57, 61, 66, 69, 73, 76, 80, 84, 89, 92, 96, 100, 105, 108, 112, 117, 120, 124, 127, 131, 136, 139, 140, 141, 142, 143, 144], "returns": [], "exceptions": []}, "expressions": {"calls": [32], "literals": [8, 31], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "task_", "text_snippet": "it(struct task_list *list);\nvoid task_"}, {"node_id": 48, "universal_type": "function", "name": "task", "text_snippet": "stroy(struct task_list *list);\n\nvoid task"}, {"node_id": 60, "universal_type": "function", "name": "task_entry", "text_snippet": "d(struct task_list *list, struct task_entry *entry);\nstruct tas"}, {"node_id": 83, "universal_type": "function", "name": "tas", "text_snippet": "p(struct task_list *list);\nstruct tas"}, {"node_id": 99, "universal_type": "function", "name": "task_", "text_snippet": "ad(struct task_list* list);\nvoid task_"}, {"node_id": 111, "universal_type": "function", "name": "task_entry", "text_snippet": "move(struct task_list *list, struct task_entry *entry);\nint task_l"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "_empty(struct task_list *list);\n\n\n#ifdef _"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "task_entry", "text_snippet": "list {\n\tstruct task_entry *head;\n\tstruct task_entry *tail;\n};\n\n\n#ifdef _"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "list {"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "entry *head;\n\tstr"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "entry "}, {"node_id": 20, "universal_type": "class", "name": "unknown", "text_snippet": "entry *tail;\n};\n\n"}, {"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "entry "}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "list *list);\nvoi"}, {"node_id": 41, "universal_type": "class", "name": "unknown", "text_snippet": "list *"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "list *list);\n\nvo"}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "list *"}, {"node_id": 64, "universal_type": "class", "name": "unknown", "text_snippet": "list *list, stru"}, {"node_id": 65, "universal_type": "class", "name": "unknown", "text_snippet": "list *"}, {"node_id": 71, "universal_type": "class", "name": "unknown", "text_snippet": "entry *entry);\nst"}, {"node_id": 72, "universal_type": "class", "name": "unknown", "text_snippet": "entry "}, {"node_id": 78, "universal_type": "class", "name": "unknown", "text_snippet": "entry* task_list_"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "entry*"}, {"node_id": 87, "universal_type": "class", "name": "unknown", "text_snippet": "list *list);\nstr"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "list *"}, {"node_id": 94, "universal_type": "class", "name": "unknown", "text_snippet": "entry* task_list_"}, {"node_id": 95, "universal_type": "class", "name": "unknown", "text_snippet": "entry*"}, {"node_id": 103, "universal_type": "class", "name": "unknown", "text_snippet": "list* list);\nvoi"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "list* "}, {"node_id": 115, "universal_type": "class", "name": "unknown", "text_snippet": "list *list, stru"}, {"node_id": 116, "universal_type": "class", "name": "unknown", "text_snippet": "list *"}, {"node_id": 122, "universal_type": "class", "name": "unknown", "text_snippet": "entry *entry);\nin"}, {"node_id": 123, "universal_type": "class", "name": "unknown", "text_snippet": "entry "}, {"node_id": 134, "universal_type": "class", "name": "unknown", "text_snippet": "list *list);\n\n\n#"}, {"node_id": 135, "universal_type": "class", "name": "unknown", "text_snippet": "list *"}], "import_statements": [{"node_id": 6, "text": "sk.h\"\n\nstruct task"}, {"node_id": 7, "text": "sk.h\"\n\ns"}]}, "original_source_code": "/**\n * @file \u30bf\u30b9\u30af\u30ea\u30b9\u30c8\n * @author \n */\n\n#ifndef TASK_LIST_H_\n#define TASK_LIST_H_\n\n#include \"task.h\"\n\nstruct task_list {\n\tstruct task_entry *head;\n\tstruct task_entry *tail;\n};\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nvoid task_list_init(struct task_list *list);\nvoid task_list_destroy(struct task_list *list);\n\nvoid task_list_add(struct task_list *list, struct task_entry *entry);\nstruct task_entry* task_list_pop(struct task_list *list);\nstruct task_entry* task_list_head(struct task_list* list);\nvoid task_list_remove(struct task_list *list, struct task_entry *entry);\nint task_list_is_empty(struct task_list *list);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#endif /* OS_TASK_LIST_H_ */\n"}
80,897
c
/* * Colibri JSON dictionary API * * Copyright (c) 2018-2021 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <colibri/data/json-dict.h> #define json_bool json_bool_impl #define json_type json_type_impl #include <json-c/json.h> #undef json_bool #undef json_type int json_dict_exists (struct json *o, const char *key) { return json_object_object_get_ex ((void *) o, key, NULL); } struct json *json_dict_get (struct json *o, const char *key) { struct json_object *node = NULL; json_object_object_get_ex ((void *) o, key, &node); return (void *) node; } int json_dict_set (struct json *o, const char *key, struct json *value) { json_object_object_add ((void *) o, key, (void *) value); return 1; } void json_dict_remove (struct json *o, const char *key) { json_object_object_del ((void *) o, key); }
25.06
32
(translation_unit) "/*\n * Colibri JSON dictionary API\n *\n * Copyright (c) 2018-2021 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#include <colibri/data/json-dict.h>\n\n#define json_bool json_bool_impl\n#define json_type json_type_impl\n\n#include <json-c/json.h>\n\n#undef json_bool\n#undef json_type\n\nint json_dict_exists (struct json *o, const char *key)\n{\n return json_object_object_get_ex ((void *) o, key, NULL);\n}\n\nstruct json *json_dict_get (struct json *o, const char *key)\n{\n struct json_object *node = NULL;\n\n json_object_object_get_ex ((void *) o, key, &node);\n\n return (void *) node;\n}\n\nint json_dict_set (struct json *o, const char *key, struct json *value)\n{\n json_object_object_add ((void *) o, key, (void *) value);\n return 1;\n}\n\nvoid json_dict_remove (struct json *o, const char *key)\n{\n json_object_object_del ((void *) o, key);\n}\n" (comment) "/*\n * Colibri JSON dictionary API\n *\n * Copyright (c) 2018-2021 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */" (preproc_include) "#include <colibri/data/json-dict.h>\n" (#include) "#include" (system_lib_string) "<colibri/data/json-dict.h>" (preproc_def) "#define json_bool json_bool_impl\n" (#define) "#define" (identifier) "json_bool" (preproc_arg) "json_bool_impl" (preproc_def) "#define json_type json_type_impl\n" (#define) "#define" (identifier) "json_type" (preproc_arg) "json_type_impl" (preproc_include) "#include <json-c/json.h>\n" (#include) "#include" (system_lib_string) "<json-c/json.h>" (preproc_call) "#undef json_bool\n" (preproc_directive) "#undef" (preproc_arg) "json_bool" (preproc_call) "#undef json_type\n" (preproc_directive) "#undef" (preproc_arg) "json_type" (function_definition) "int json_dict_exists (struct json *o, const char *key)\n{\n return json_object_object_get_ex ((void *) o, key, NULL);\n}" (primitive_type) "int" (function_declarator) "json_dict_exists (struct json *o, const char *key)" (identifier) "json_dict_exists" (parameter_list) "(struct json *o, const char *key)" (() "(" (parameter_declaration) "struct json *o" (struct_specifier) "struct json" (struct) "struct" (type_identifier) "json" (pointer_declarator) "*o" (*) "*" (identifier) "o" (,) "," (parameter_declaration) "const char *key" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*key" (*) "*" (identifier) "key" ()) ")" (compound_statement) "{\n return json_object_object_get_ex ((void *) o, key, NULL);\n}" ({) "{" (return_statement) "return json_object_object_get_ex ((void *) o, key, NULL);" (return) "return" (call_expression) "json_object_object_get_ex ((void *) o, key, NULL)" (identifier) "json_object_object_get_ex" (argument_list) "((void *) o, key, NULL)" (() "(" (cast_expression) "(void *) o" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "o" (,) "," (identifier) "key" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (}) "}" (function_definition) "struct json *json_dict_get (struct json *o, const char *key)\n{\n struct json_object *node = NULL;\n\n json_object_object_get_ex ((void *) o, key, &node);\n\n return (void *) node;\n}" (struct_specifier) "struct json" (struct) "struct" (type_identifier) "json" (pointer_declarator) "*json_dict_get (struct json *o, const char *key)" (*) "*" (function_declarator) "json_dict_get (struct json *o, const char *key)" (identifier) "json_dict_get" (parameter_list) "(struct json *o, const char *key)" (() "(" (parameter_declaration) "struct json *o" (struct_specifier) "struct json" (struct) "struct" (type_identifier) "json" (pointer_declarator) "*o" (*) "*" (identifier) "o" (,) "," (parameter_declaration) "const char *key" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*key" (*) "*" (identifier) "key" ()) ")" (compound_statement) "{\n struct json_object *node = NULL;\n\n json_object_object_get_ex ((void *) o, key, &node);\n\n return (void *) node;\n}" ({) "{" (declaration) "struct json_object *node = NULL;" (struct_specifier) "struct json_object" (struct) "struct" (type_identifier) "json_object" (init_declarator) "*node = NULL" (pointer_declarator) "*node" (*) "*" (identifier) "node" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "json_object_object_get_ex ((void *) o, key, &node);" (call_expression) "json_object_object_get_ex ((void *) o, key, &node)" (identifier) "json_object_object_get_ex" (argument_list) "((void *) o, key, &node)" (() "(" (cast_expression) "(void *) o" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "o" (,) "," (identifier) "key" (,) "," (pointer_expression) "&node" (&) "&" (identifier) "node" ()) ")" (;) ";" (return_statement) "return (void *) node;" (return) "return" (cast_expression) "(void *) node" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "node" (;) ";" (}) "}" (function_definition) "int json_dict_set (struct json *o, const char *key, struct json *value)\n{\n json_object_object_add ((void *) o, key, (void *) value);\n return 1;\n}" (primitive_type) "int" (function_declarator) "json_dict_set (struct json *o, const char *key, struct json *value)" (identifier) "json_dict_set" (parameter_list) "(struct json *o, const char *key, struct json *value)" (() "(" (parameter_declaration) "struct json *o" (struct_specifier) "struct json" (struct) "struct" (type_identifier) "json" (pointer_declarator) "*o" (*) "*" (identifier) "o" (,) "," (parameter_declaration) "const char *key" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*key" (*) "*" (identifier) "key" (,) "," (parameter_declaration) "struct json *value" (struct_specifier) "struct json" (struct) "struct" (type_identifier) "json" (pointer_declarator) "*value" (*) "*" (identifier) "value" ()) ")" (compound_statement) "{\n json_object_object_add ((void *) o, key, (void *) value);\n return 1;\n}" ({) "{" (expression_statement) "json_object_object_add ((void *) o, key, (void *) value);" (call_expression) "json_object_object_add ((void *) o, key, (void *) value)" (identifier) "json_object_object_add" (argument_list) "((void *) o, key, (void *) value)" (() "(" (cast_expression) "(void *) o" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "o" (,) "," (identifier) "key" (,) "," (cast_expression) "(void *) value" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "value" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "void json_dict_remove (struct json *o, const char *key)\n{\n json_object_object_del ((void *) o, key);\n}" (primitive_type) "void" (function_declarator) "json_dict_remove (struct json *o, const char *key)" (identifier) "json_dict_remove" (parameter_list) "(struct json *o, const char *key)" (() "(" (parameter_declaration) "struct json *o" (struct_specifier) "struct json" (struct) "struct" (type_identifier) "json" (pointer_declarator) "*o" (*) "*" (identifier) "o" (,) "," (parameter_declaration) "const char *key" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*key" (*) "*" (identifier) "key" ()) ")" (compound_statement) "{\n json_object_object_del ((void *) o, key);\n}" ({) "{" (expression_statement) "json_object_object_del ((void *) o, key);" (call_expression) "json_object_object_del ((void *) o, key)" (identifier) "json_object_object_del" (argument_list) "((void *) o, key)" (() "(" (cast_expression) "(void *) o" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "o" (,) "," (identifier) "key" ()) ")" (;) ";" (}) "}"
246
0
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 25.06, "nodes": 170, "errors": 0, "source_hash": "6158fd25d532464df9576c41807108800b576e4ae8ad135bf6a1cb8d91e9b96d", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <colibri/data/json-dict.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<colibri/data/json-dict.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 35}}, {"id": 3, "type": "preproc_def", "text": "#define json_bool json_bool_impl\n", "parent": null, "children": [4, 5, 6], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 5, "type": "identifier", "text": "json_bool", "parent": 3, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 17}}, {"id": 6, "type": "preproc_arg", "text": "json_bool_impl", "parent": 3, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 33}}, {"id": 7, "type": "preproc_def", "text": "#define json_type json_type_impl\n", "parent": null, "children": [8, 9, 10], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 8, "type": "#define", "text": "#define", "parent": 7, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 9, "type": "identifier", "text": "json_type", "parent": 7, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 17}}, {"id": 10, "type": "preproc_arg", "text": "json_type_impl", "parent": 7, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 33}}, {"id": 11, "type": "preproc_include", "text": "#include <json-c/json.h>\n", "parent": null, "children": [12, 13], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 13, "type": "system_lib_string", "text": "<json-c/json.h>", "parent": 11, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 24}}, {"id": 14, "type": "preproc_call", "text": "#undef json_bool\n", "parent": null, "children": [15, 16], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 15, "type": "preproc_directive", "text": "#undef", "parent": 14, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 16, "type": "preproc_arg", "text": "json_bool", "parent": 14, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 16}}, {"id": 17, "type": "preproc_call", "text": "#undef json_type\n", "parent": null, "children": [18, 19], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 18, "type": "preproc_directive", "text": "#undef", "parent": 17, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 19, "type": "preproc_arg", "text": "json_type", "parent": 17, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 16}}, {"id": 20, "type": "function_definition", "text": "int json_dict_exists (struct json *o, const char *key)\n{\n\treturn json_object_object_get_ex ((void *) o, key, NULL);\n}", "parent": null, "children": [21, 22], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 3}}, {"id": 22, "type": "function_declarator", "text": "json_dict_exists (struct json *o, const char *key)", "parent": 20, "children": [23, 24], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 54}}, {"id": 23, "type": "identifier", "text": "json_dict_exists", "parent": 22, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 20}}, {"id": 24, "type": "parameter_list", "text": "(struct json *o, const char *key)", "parent": 22, "children": [25, 32], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 54}}, {"id": 25, "type": "parameter_declaration", "text": "struct json *o", "parent": 24, "children": [26, 29], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 36}}, {"id": 26, "type": "struct_specifier", "text": "struct json", "parent": 25, "children": [27, 28], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 33}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 28}}, {"id": 28, "type": "type_identifier", "text": "json", "parent": 26, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 33}}, {"id": 29, "type": "pointer_declarator", "text": "*o", "parent": 25, "children": [30, 31], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 36}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 35}}, {"id": 31, "type": "identifier", "text": "o", "parent": 29, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 36}}, {"id": 32, "type": "parameter_declaration", "text": "const char *key", "parent": 24, "children": [33, 34], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 53}}, {"id": 33, "type": "primitive_type", "text": "char", "parent": 32, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 48}}, {"id": 34, "type": "pointer_declarator", "text": "*key", "parent": 32, "children": [35, 36], "start_point": {"row": 18, "column": 49}, "end_point": {"row": 18, "column": 53}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 18, "column": 49}, "end_point": {"row": 18, "column": 50}}, {"id": 36, "type": "identifier", "text": "key", "parent": 34, "children": [], "start_point": {"row": 18, "column": 50}, "end_point": {"row": 18, "column": 53}}, {"id": 37, "type": "return_statement", "text": "return json_object_object_get_ex ((void *) o, key, NULL);", "parent": 20, "children": [38], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 58}}, {"id": 38, "type": "call_expression", "text": "json_object_object_get_ex ((void *) o, key, NULL)", "parent": 37, "children": [39, 40], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 57}}, {"id": 39, "type": "identifier", "text": "json_object_object_get_ex", "parent": 38, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 33}}, {"id": 40, "type": "argument_list", "text": "((void *) o, key, NULL)", "parent": 38, "children": [41, 47, 48], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 57}}, {"id": 41, "type": "cast_expression", "text": "(void *) o", "parent": 40, "children": [42, 46], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 45}}, {"id": 42, "type": "type_descriptor", "text": "void *", "parent": 41, "children": [43, 44], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 42}}, {"id": 43, "type": "primitive_type", "text": "void", "parent": 42, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 40}}, {"id": 44, "type": "abstract_pointer_declarator", "text": "*", "parent": 42, "children": [45], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 42}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 42}}, {"id": 46, "type": "identifier", "text": "o", "parent": 41, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 45}}, {"id": 47, "type": "identifier", "text": "key", "parent": 40, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 50}}, {"id": 48, "type": "null", "text": "NULL", "parent": 40, "children": [49], "start_point": {"row": 20, "column": 52}, "end_point": {"row": 20, "column": 56}}, {"id": 49, "type": "NULL", "text": "NULL", "parent": 48, "children": [], "start_point": {"row": 20, "column": 52}, "end_point": {"row": 20, "column": 56}}, {"id": 50, "type": "function_definition", "text": "struct json *json_dict_get (struct json *o, const char *key)\n{\n\tstruct json_object *node = NULL;\n\n\tjson_object_object_get_ex ((void *) o, key, &node);\n\n\treturn (void *) node;\n}", "parent": null, "children": [51, 54], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 51, "type": "struct_specifier", "text": "struct json", "parent": 50, "children": [52, 53], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 11}}, {"id": 52, "type": "struct", "text": "struct", "parent": 51, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 53, "type": "type_identifier", "text": "json", "parent": 51, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 11}}, {"id": 54, "type": "pointer_declarator", "text": "*json_dict_get (struct json *o, const char *key)", "parent": 50, "children": [55, 56], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 60}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 13}}, {"id": 56, "type": "function_declarator", "text": "json_dict_get (struct json *o, const char *key)", "parent": 54, "children": [57, 58], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 60}}, {"id": 57, "type": "identifier", "text": "json_dict_get", "parent": 56, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 26}}, {"id": 58, "type": "parameter_list", "text": "(struct json *o, const char *key)", "parent": 56, "children": [59, 66], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 60}}, {"id": 59, "type": "parameter_declaration", "text": "struct json *o", "parent": 58, "children": [60, 63], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 42}}, {"id": 60, "type": "struct_specifier", "text": "struct json", "parent": 59, "children": [61, 62], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 39}}, {"id": 61, "type": "struct", "text": "struct", "parent": 60, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 34}}, {"id": 62, "type": "type_identifier", "text": "json", "parent": 60, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 39}}, {"id": 63, "type": "pointer_declarator", "text": "*o", "parent": 59, "children": [64, 65], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 42}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 41}}, {"id": 65, "type": "identifier", "text": "o", "parent": 63, "children": [], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 42}}, {"id": 66, "type": "parameter_declaration", "text": "const char *key", "parent": 58, "children": [67, 68], "start_point": {"row": 23, "column": 44}, "end_point": {"row": 23, "column": 59}}, {"id": 67, "type": "primitive_type", "text": "char", "parent": 66, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 54}}, {"id": 68, "type": "pointer_declarator", "text": "*key", "parent": 66, "children": [69, 70], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 59}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 56}}, {"id": 70, "type": "identifier", "text": "key", "parent": 68, "children": [], "start_point": {"row": 23, "column": 56}, "end_point": {"row": 23, "column": 59}}, {"id": 71, "type": "declaration", "text": "struct json_object *node = NULL;", "parent": 50, "children": [72, 75], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 33}}, {"id": 72, "type": "struct_specifier", "text": "struct json_object", "parent": 71, "children": [73, 74], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 19}}, {"id": 73, "type": "struct", "text": "struct", "parent": 72, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 7}}, {"id": 74, "type": "type_identifier", "text": "json_object", "parent": 72, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 19}}, {"id": 75, "type": "init_declarator", "text": "*node = NULL", "parent": 71, "children": [76, 79, 80], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 32}}, {"id": 76, "type": "pointer_declarator", "text": "*node", "parent": 75, "children": [77, 78], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 25}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 21}}, {"id": 78, "type": "identifier", "text": "node", "parent": 76, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 25}}, {"id": 79, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 27}}, {"id": 80, "type": "null", "text": "NULL", "parent": 75, "children": [81], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 81, "type": "NULL", "text": "NULL", "parent": 80, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 82, "type": "call_expression", "text": "json_object_object_get_ex ((void *) o, key, &node)", "parent": 50, "children": [83, 84], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 51}}, {"id": 83, "type": "identifier", "text": "json_object_object_get_ex", "parent": 82, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 26}}, {"id": 84, "type": "argument_list", "text": "((void *) o, key, &node)", "parent": 82, "children": [85, 91, 92], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 51}}, {"id": 85, "type": "cast_expression", "text": "(void *) o", "parent": 84, "children": [86, 90], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 38}}, {"id": 86, "type": "type_descriptor", "text": "void *", "parent": 85, "children": [87, 88], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 35}}, {"id": 87, "type": "primitive_type", "text": "void", "parent": 86, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 33}}, {"id": 88, "type": "abstract_pointer_declarator", "text": "*", "parent": 86, "children": [89], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 35}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 35}}, {"id": 90, "type": "identifier", "text": "o", "parent": 85, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 38}}, {"id": 91, "type": "identifier", "text": "key", "parent": 84, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 43}}, {"id": 92, "type": "pointer_expression", "text": "&node", "parent": 84, "children": [93], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 50}}, {"id": 93, "type": "identifier", "text": "node", "parent": 92, "children": [], "start_point": {"row": 27, "column": 46}, "end_point": {"row": 27, "column": 50}}, {"id": 94, "type": "return_statement", "text": "return (void *) node;", "parent": 50, "children": [95], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 22}}, {"id": 95, "type": "cast_expression", "text": "(void *) node", "parent": 94, "children": [96, 100], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 21}}, {"id": 96, "type": "type_descriptor", "text": "void *", "parent": 95, "children": [97, 98], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 15}}, {"id": 97, "type": "primitive_type", "text": "void", "parent": 96, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 13}}, {"id": 98, "type": "abstract_pointer_declarator", "text": "*", "parent": 96, "children": [99], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 100, "type": "identifier", "text": "node", "parent": 95, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 21}}, {"id": 101, "type": "function_definition", "text": "int json_dict_set (struct json *o, const char *key, struct json *value)\n{\n\tjson_object_object_add ((void *) o, key, (void *) value);\n\treturn 1;\n}", "parent": null, "children": [102, 103], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 102, "type": "primitive_type", "text": "int", "parent": 101, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 3}}, {"id": 103, "type": "function_declarator", "text": "json_dict_set (struct json *o, const char *key, struct json *value)", "parent": 101, "children": [104, 105], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 71}}, {"id": 104, "type": "identifier", "text": "json_dict_set", "parent": 103, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 17}}, {"id": 105, "type": "parameter_list", "text": "(struct json *o, const char *key, struct json *value)", "parent": 103, "children": [106, 113, 118], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 71}}, {"id": 106, "type": "parameter_declaration", "text": "struct json *o", "parent": 105, "children": [107, 110], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 33}}, {"id": 107, "type": "struct_specifier", "text": "struct json", "parent": 106, "children": [108, 109], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 30}}, {"id": 108, "type": "struct", "text": "struct", "parent": 107, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 25}}, {"id": 109, "type": "type_identifier", "text": "json", "parent": 107, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 30}}, {"id": 110, "type": "pointer_declarator", "text": "*o", "parent": 106, "children": [111, 112], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 33}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 32}}, {"id": 112, "type": "identifier", "text": "o", "parent": 110, "children": [], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 33}}, {"id": 113, "type": "parameter_declaration", "text": "const char *key", "parent": 105, "children": [114, 115], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 50}}, {"id": 114, "type": "primitive_type", "text": "char", "parent": 113, "children": [], "start_point": {"row": 32, "column": 41}, "end_point": {"row": 32, "column": 45}}, {"id": 115, "type": "pointer_declarator", "text": "*key", "parent": 113, "children": [116, 117], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 50}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 47}}, {"id": 117, "type": "identifier", "text": "key", "parent": 115, "children": [], "start_point": {"row": 32, "column": 47}, "end_point": {"row": 32, "column": 50}}, {"id": 118, "type": "parameter_declaration", "text": "struct json *value", "parent": 105, "children": [119, 122], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 70}}, {"id": 119, "type": "struct_specifier", "text": "struct json", "parent": 118, "children": [120, 121], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 63}}, {"id": 120, "type": "struct", "text": "struct", "parent": 119, "children": [], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 58}}, {"id": 121, "type": "type_identifier", "text": "json", "parent": 119, "children": [], "start_point": {"row": 32, "column": 59}, "end_point": {"row": 32, "column": 63}}, {"id": 122, "type": "pointer_declarator", "text": "*value", "parent": 118, "children": [123, 124], "start_point": {"row": 32, "column": 64}, "end_point": {"row": 32, "column": 70}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 32, "column": 64}, "end_point": {"row": 32, "column": 65}}, {"id": 124, "type": "identifier", "text": "value", "parent": 122, "children": [], "start_point": {"row": 32, "column": 65}, "end_point": {"row": 32, "column": 70}}, {"id": 125, "type": "call_expression", "text": "json_object_object_add ((void *) o, key, (void *) value)", "parent": 101, "children": [126, 127], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 57}}, {"id": 126, "type": "identifier", "text": "json_object_object_add", "parent": 125, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 23}}, {"id": 127, "type": "argument_list", "text": "((void *) o, key, (void *) value)", "parent": 125, "children": [128, 134, 135], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 57}}, {"id": 128, "type": "cast_expression", "text": "(void *) o", "parent": 127, "children": [129, 133], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 35}}, {"id": 129, "type": "type_descriptor", "text": "void *", "parent": 128, "children": [130, 131], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 32}}, {"id": 130, "type": "primitive_type", "text": "void", "parent": 129, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 30}}, {"id": 131, "type": "abstract_pointer_declarator", "text": "*", "parent": 129, "children": [132], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 32}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 32}}, {"id": 133, "type": "identifier", "text": "o", "parent": 128, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 35}}, {"id": 134, "type": "identifier", "text": "key", "parent": 127, "children": [], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 40}}, {"id": 135, "type": "cast_expression", "text": "(void *) value", "parent": 127, "children": [136, 140], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 56}}, {"id": 136, "type": "type_descriptor", "text": "void *", "parent": 135, "children": [137, 138], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 49}}, {"id": 137, "type": "primitive_type", "text": "void", "parent": 136, "children": [], "start_point": {"row": 34, "column": 43}, "end_point": {"row": 34, "column": 47}}, {"id": 138, "type": "abstract_pointer_declarator", "text": "*", "parent": 136, "children": [139], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 49}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 49}}, {"id": 140, "type": "identifier", "text": "value", "parent": 135, "children": [], "start_point": {"row": 34, "column": 51}, "end_point": {"row": 34, "column": 56}}, {"id": 141, "type": "return_statement", "text": "return 1;", "parent": 101, "children": [142], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 10}}, {"id": 142, "type": "number_literal", "text": "1", "parent": 141, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 9}}, {"id": 143, "type": "function_definition", "text": "void json_dict_remove (struct json *o, const char *key)\n{\n\tjson_object_object_del ((void *) o, key);\n}", "parent": null, "children": [144, 145], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 144, "type": "primitive_type", "text": "void", "parent": 143, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 4}}, {"id": 145, "type": "function_declarator", "text": "json_dict_remove (struct json *o, const char *key)", "parent": 143, "children": [146, 147], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 55}}, {"id": 146, "type": "identifier", "text": "json_dict_remove", "parent": 145, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 21}}, {"id": 147, "type": "parameter_list", "text": "(struct json *o, const char *key)", "parent": 145, "children": [148, 155], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 55}}, {"id": 148, "type": "parameter_declaration", "text": "struct json *o", "parent": 147, "children": [149, 152], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 37}}, {"id": 149, "type": "struct_specifier", "text": "struct json", "parent": 148, "children": [150, 151], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 34}}, {"id": 150, "type": "struct", "text": "struct", "parent": 149, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 29}}, {"id": 151, "type": "type_identifier", "text": "json", "parent": 149, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 34}}, {"id": 152, "type": "pointer_declarator", "text": "*o", "parent": 148, "children": [153, 154], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 37}}, {"id": 153, "type": "*", "text": "*", "parent": 152, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 36}}, {"id": 154, "type": "identifier", "text": "o", "parent": 152, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 37}}, {"id": 155, "type": "parameter_declaration", "text": "const char *key", "parent": 147, "children": [156, 157], "start_point": {"row": 38, "column": 39}, "end_point": {"row": 38, "column": 54}}, {"id": 156, "type": "primitive_type", "text": "char", "parent": 155, "children": [], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 49}}, {"id": 157, "type": "pointer_declarator", "text": "*key", "parent": 155, "children": [158, 159], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 54}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 51}}, {"id": 159, "type": "identifier", "text": "key", "parent": 157, "children": [], "start_point": {"row": 38, "column": 51}, "end_point": {"row": 38, "column": 54}}, {"id": 160, "type": "call_expression", "text": "json_object_object_del ((void *) o, key)", "parent": 143, "children": [161, 162], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 41}}, {"id": 161, "type": "identifier", "text": "json_object_object_del", "parent": 160, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 23}}, {"id": 162, "type": "argument_list", "text": "((void *) o, key)", "parent": 160, "children": [163, 169], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 41}}, {"id": 163, "type": "cast_expression", "text": "(void *) o", "parent": 162, "children": [164, 168], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 35}}, {"id": 164, "type": "type_descriptor", "text": "void *", "parent": 163, "children": [165, 166], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 32}}, {"id": 165, "type": "primitive_type", "text": "void", "parent": 164, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 30}}, {"id": 166, "type": "abstract_pointer_declarator", "text": "*", "parent": 164, "children": [167], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 168, "type": "identifier", "text": "o", "parent": 163, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 35}}, {"id": 169, "type": "identifier", "text": "key", "parent": 162, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 40}}]}, "node_categories": {"declarations": {"functions": [20, 22, 50, 56, 101, 103, 143, 145], "variables": [25, 32, 59, 66, 71, 106, 113, 118, 148, 155], "classes": [26, 27, 51, 52, 60, 61, 72, 73, 107, 108, 119, 120, 149, 150], "imports": [0, 1, 11, 12], "modules": [], "enums": []}, "statements": {"expressions": [38, 41, 82, 85, 92, 95, 125, 128, 135, 160, 163], "assignments": [], "loops": [], "conditionals": [5, 9, 23, 28, 31, 36, 39, 46, 47, 53, 57, 62, 65, 70, 74, 78, 83, 90, 91, 93, 100, 104, 109, 112, 117, 121, 124, 126, 133, 134, 140, 146, 151, 154, 159, 161, 168, 169], "returns": [37, 94, 141], "exceptions": []}, "expressions": {"calls": [14, 17], "literals": [2, 13, 142], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "json_dict_exists", "text_snippet": "int json_dict_exists (struct json *o, const char *key)\n{\n\treturn json_object_object_get_ex ((void *)"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "json_dict_exists (struct json *o, const char *key)"}, {"node_id": 50, "universal_type": "function", "name": "json", "text_snippet": "struct json *json_dict_get (struct json *o, const char *key)\n{\n\tstruct json_object *node = NULL;\n\n\tj"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "json_dict_get (struct json *o, const char *key)"}, {"node_id": 101, "universal_type": "function", "name": "json_dict_set", "text_snippet": "int json_dict_set (struct json *o, const char *key, struct json *value)\n{\n\tjson_object_object_add (("}, {"node_id": 103, "universal_type": "function", "name": "json", "text_snippet": "json_dict_set (struct json *o, const char *key, struct json *value)"}, {"node_id": 143, "universal_type": "function", "name": "json_dict_remove", "text_snippet": "void json_dict_remove (struct json *o, const char *key)\n{\n\tjson_object_object_del ((void *) o, key);"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "json_dict_remove (struct json *o, const char *key)"}], "class_declarations": [{"node_id": 26, "universal_type": "class", "name": "json", "text_snippet": "struct json"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 51, "universal_type": "class", "name": "json", "text_snippet": "struct json"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 60, "universal_type": "class", "name": "json", "text_snippet": "struct json"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 72, "universal_type": "class", "name": "json_object", "text_snippet": "struct json_object"}, {"node_id": 73, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 107, "universal_type": "class", "name": "json", "text_snippet": "struct json"}, {"node_id": 108, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 119, "universal_type": "class", "name": "json", "text_snippet": "struct json"}, {"node_id": 120, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 149, "universal_type": "class", "name": "json", "text_snippet": "struct json"}, {"node_id": 150, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <colibri/data/json-dict.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 11, "text": "#include <json-c/json.h>\n"}, {"node_id": 12, "text": "#include"}]}, "original_source_code": "/*\n * Colibri JSON dictionary API\n *\n * Copyright (c) 2018-2021 <NAME> <<EMAIL>>\n *\n * SPDX-License-Identifier: BSD-2-Clause\n */\n\n#include <colibri/data/json-dict.h>\n\n#define json_bool json_bool_impl\n#define json_type json_type_impl\n\n#include <json-c/json.h>\n\n#undef json_bool\n#undef json_type\n\nint json_dict_exists (struct json *o, const char *key)\n{\n\treturn json_object_object_get_ex ((void *) o, key, NULL);\n}\n\nstruct json *json_dict_get (struct json *o, const char *key)\n{\n\tstruct json_object *node = NULL;\n\n\tjson_object_object_get_ex ((void *) o, key, &node);\n\n\treturn (void *) node;\n}\n\nint json_dict_set (struct json *o, const char *key, struct json *value)\n{\n\tjson_object_object_add ((void *) o, key, (void *) value);\n\treturn 1;\n}\n\nvoid json_dict_remove (struct json *o, const char *key)\n{\n\tjson_object_object_del ((void *) o, key);\n}\n"}
80,898
c
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Copyright 2019, Blender Foundation. */ #pragma once #include "COM_SingleThreadedOperation.h" #include "DNA_node_types.h" namespace blender::compositor { class DenoiseOperation : public SingleThreadedOperation { private: /** * \brief Cached reference to the input programs */ SocketReader *m_inputProgramColor; SocketReader *m_inputProgramAlbedo; SocketReader *m_inputProgramNormal; /** * \brief settings of the denoise node. */ NodeDenoise *m_settings; public: DenoiseOperation(); /** * Initialize the execution */ void initExecution() override; /** * Deinitialize the execution */ void deinitExecution() override; void setDenoiseSettings(NodeDenoise *settings) { this->m_settings = settings; } bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) override; protected: void generateDenoise(float *data, MemoryBuffer *inputTileColor, MemoryBuffer *inputTileNormal, MemoryBuffer *inputTileAlbedo, NodeDenoise *settings); MemoryBuffer *createMemoryBuffer(rcti *rect) override; }; } // namespace blender::compositor
33.34
59
(translation_unit) "/*\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\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, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * Copyright 2019, Blender Foundation.\n */\n\n#pragma once\n\n#include "COM_SingleThreadedOperation.h"\n#include "DNA_node_types.h"\n\nnamespace blender::compositor {\n\nclass DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n};\n\n} // namespace blender::compositor\n" (comment) "/*\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\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, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * Copyright 2019, Blender Foundation.\n */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "COM_SingleThreadedOperation.h"\n" (#include) "#include" (string_literal) ""COM_SingleThreadedOperation.h"" (") """ (string_content) "COM_SingleThreadedOperation.h" (") """ (preproc_include) "#include "DNA_node_types.h"\n" (#include) "#include" (string_literal) ""DNA_node_types.h"" (") """ (string_content) "DNA_node_types.h" (") """ (function_definition) "namespace blender::compositor {\n\nclass DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n};\n\n}" (type_identifier) "namespace" (ERROR) "blender::" (identifier) "blender" (:) ":" (:) ":" (identifier) "compositor" (compound_statement) "{\n\nclass DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n};\n\n}" ({) "{" (function_definition) "class DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n}" (type_identifier) "class" (ERROR) "DenoiseOperation : public" (identifier) "DenoiseOperation" (:) ":" (identifier) "public" (identifier) "SingleThreadedOperation" (compound_statement) "{\n private:\n /**\n * \brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n}" ({) "{" (labeled_statement) "private:\n /**\n * \brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;" (statement_identifier) "private" (:) ":" (comment) "/**\n * \brief Cached reference to the input programs\n */" (declaration) "SocketReader *m_inputProgramColor;" (type_identifier) "SocketReader" (pointer_declarator) "*m_inputProgramColor" (*) "*" (identifier) "m_inputProgramColor" (;) ";" (declaration) "SocketReader *m_inputProgramAlbedo;" (type_identifier) "SocketReader" (pointer_declarator) "*m_inputProgramAlbedo" (*) "*" (identifier) "m_inputProgramAlbedo" (;) ";" (declaration) "SocketReader *m_inputProgramNormal;" (type_identifier) "SocketReader" (pointer_declarator) "*m_inputProgramNormal" (*) "*" (identifier) "m_inputProgramNormal" (;) ";" (comment) "/**\n * \brief settings of the denoise node.\n */" (declaration) "NodeDenoise *m_settings;" (type_identifier) "NodeDenoise" (pointer_declarator) "*m_settings" (*) "*" (identifier) "m_settings" (;) ";" (labeled_statement) "public:\n DenoiseOperation();" (statement_identifier) "public" (:) ":" (expression_statement) "DenoiseOperation();" (call_expression) "DenoiseOperation()" (identifier) "DenoiseOperation" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/**\n * Initialize the execution\n */" (function_definition) "void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }" (primitive_type) "void" (function_declarator) "initExecution()" (identifier) "initExecution" (parameter_list) "()" (() "(" ()) ")" (declaration) "override;" (type_identifier) "override" (identifier) "" (;) ";" (comment) "/**\n * Deinitialize the execution\n */" (ERROR) "void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)" (primitive_type) "void" (function_declarator) "deinitExecution() override" (identifier) "deinitExecution" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (;) ";" (primitive_type) "void" (function_declarator) "setDenoiseSettings(NodeDenoise *settings)" (identifier) "setDenoiseSettings" (parameter_list) "(NodeDenoise *settings)" (() "(" (parameter_declaration) "NodeDenoise *settings" (type_identifier) "NodeDenoise" (pointer_declarator) "*settings" (*) "*" (identifier) "settings" ()) ")" (compound_statement) "{\n this->m_settings = settings;\n }" ({) "{" (expression_statement) "this->m_settings = settings;" (assignment_expression) "this->m_settings = settings" (field_expression) "this->m_settings" (identifier) "this" (->) "->" (field_identifier) "m_settings" (=) "=" (identifier) "settings" (;) ";" (}) "}" (ERROR) "bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override" (primitive_type) "bool" (function_declarator) "determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override" (identifier) "determineDependingAreaOfInterest" (parameter_list) "(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output)" (() "(" (parameter_declaration) "rcti *input" (type_identifier) "rcti" (pointer_declarator) "*input" (*) "*" (identifier) "input" (,) "," (parameter_declaration) "ReadBufferOperation *readOperation" (type_identifier) "ReadBufferOperation" (pointer_declarator) "*readOperation" (*) "*" (identifier) "readOperation" (,) "," (parameter_declaration) "rcti *output" (type_identifier) "rcti" (pointer_declarator) "*output" (*) "*" (identifier) "output" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);" (statement_identifier) "protected" (:) ":" (declaration) "void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);" (primitive_type) "void" (function_declarator) "generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings)" (identifier) "generateDenoise" (parameter_list) "(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings)" (() "(" (parameter_declaration) "float *data" (primitive_type) "float" (pointer_declarator) "*data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "MemoryBuffer *inputTileColor" (type_identifier) "MemoryBuffer" (pointer_declarator) "*inputTileColor" (*) "*" (identifier) "inputTileColor" (,) "," (parameter_declaration) "MemoryBuffer *inputTileNormal" (type_identifier) "MemoryBuffer" (pointer_declarator) "*inputTileNormal" (*) "*" (identifier) "inputTileNormal" (,) "," (parameter_declaration) "MemoryBuffer *inputTileAlbedo" (type_identifier) "MemoryBuffer" (pointer_declarator) "*inputTileAlbedo" (*) "*" (identifier) "inputTileAlbedo" (,) "," (parameter_declaration) "NodeDenoise *settings" (type_identifier) "NodeDenoise" (pointer_declarator) "*settings" (*) "*" (identifier) "settings" ()) ")" (;) ";" (declaration) "MemoryBuffer *createMemoryBuffer(rcti *rect) override;" (type_identifier) "MemoryBuffer" (pointer_declarator) "*createMemoryBuffer(rcti *rect) override" (*) "*" (function_declarator) "createMemoryBuffer(rcti *rect) override" (identifier) "createMemoryBuffer" (parameter_list) "(rcti *rect)" (() "(" (parameter_declaration) "rcti *rect" (type_identifier) "rcti" (pointer_declarator) "*rect" (*) "*" (identifier) "rect" ()) ")" (identifier) "override" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace blender::compositor"
207
4
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 33.34, "nodes": 137, "errors": 0, "source_hash": "1c98d43bccf1f47e39c17355425e8e32bf0fe52bd7b309bfe463902d3a081f5e", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"COM_SingleThreadedOperation.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"COM_SingleThreadedOperation.h\"", "parent": 3, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 40}}, {"id": 6, "type": "preproc_include", "text": "#include \"DNA_node_types.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"DNA_node_types.h\"", "parent": 6, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 27}}, {"id": 9, "type": "function_definition", "text": "namespace blender::compositor {\n\nclass DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \\brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \\brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n};\n\n}", "parent": null, "children": [10, 11, 13], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 9}}, {"id": 11, "type": "ERROR", "text": "blender::", "parent": 9, "children": [12], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 19}}, {"id": 12, "type": "identifier", "text": "blender", "parent": 11, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 17}}, {"id": 13, "type": "identifier", "text": "compositor", "parent": 9, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 29}}, {"id": 14, "type": "function_definition", "text": "class DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \\brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \\brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n}", "parent": 9, "children": [15, 17], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 15, "type": "ERROR", "text": "DenoiseOperation : public", "parent": 14, "children": [16], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 31}}, {"id": 16, "type": "identifier", "text": "DenoiseOperation", "parent": 15, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 22}}, {"id": 17, "type": "identifier", "text": "SingleThreadedOperation", "parent": 14, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 55}}, {"id": 18, "type": "labeled_statement", "text": "private:\n /**\n * \\brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;", "parent": 14, "children": [19], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 30, "column": 36}}, {"id": 19, "type": "declaration", "text": "SocketReader *m_inputProgramColor;", "parent": 18, "children": [20, 21], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 36}}, {"id": 20, "type": "type_identifier", "text": "SocketReader", "parent": 19, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 14}}, {"id": 21, "type": "pointer_declarator", "text": "*m_inputProgramColor", "parent": 19, "children": [22, 23], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 35}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 16}}, {"id": 23, "type": "identifier", "text": "m_inputProgramColor", "parent": 21, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 35}}, {"id": 24, "type": "declaration", "text": "SocketReader *m_inputProgramAlbedo;", "parent": 14, "children": [25, 26], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 37}}, {"id": 25, "type": "type_identifier", "text": "SocketReader", "parent": 24, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 14}}, {"id": 26, "type": "pointer_declarator", "text": "*m_inputProgramAlbedo", "parent": 24, "children": [27, 28], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 36}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 16}}, {"id": 28, "type": "identifier", "text": "m_inputProgramAlbedo", "parent": 26, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 36}}, {"id": 29, "type": "declaration", "text": "SocketReader *m_inputProgramNormal;", "parent": 14, "children": [30, 31], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 37}}, {"id": 30, "type": "type_identifier", "text": "SocketReader", "parent": 29, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 14}}, {"id": 31, "type": "pointer_declarator", "text": "*m_inputProgramNormal", "parent": 29, "children": [32, 33], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 36}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 16}}, {"id": 33, "type": "identifier", "text": "m_inputProgramNormal", "parent": 31, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 36}}, {"id": 34, "type": "declaration", "text": "NodeDenoise *m_settings;", "parent": 14, "children": [35, 36], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 26}}, {"id": 35, "type": "type_identifier", "text": "NodeDenoise", "parent": 34, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 13}}, {"id": 36, "type": "pointer_declarator", "text": "*m_settings", "parent": 34, "children": [37, 38], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 25}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 15}}, {"id": 38, "type": "identifier", "text": "m_settings", "parent": 36, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 25}}, {"id": 39, "type": "labeled_statement", "text": "public:\n DenoiseOperation();", "parent": 14, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 40, "column": 21}}, {"id": 40, "type": "call_expression", "text": "DenoiseOperation()", "parent": 39, "children": [41, 42], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 20}}, {"id": 41, "type": "identifier", "text": "DenoiseOperation", "parent": 40, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 18}}, {"id": 42, "type": "argument_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 20}}, {"id": 43, "type": "function_definition", "text": "void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }", "parent": 14, "children": [44, 45, 48, 51], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 54, "column": 3}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 6}}, {"id": 45, "type": "function_declarator", "text": "initExecution()", "parent": 43, "children": [46, 47], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 22}}, {"id": 46, "type": "identifier", "text": "initExecution", "parent": 45, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 20}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 22}}, {"id": 48, "type": "declaration", "text": "override;", "parent": 43, "children": [49, 50], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 32}}, {"id": 49, "type": "type_identifier", "text": "override", "parent": 48, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 31}}, {"id": 50, "type": "identifier", "text": "", "parent": 48, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 31}}, {"id": 51, "type": "ERROR", "text": "void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)", "parent": 43, "children": [52, 53, 57, 58], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 51, "column": 48}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 6}}, {"id": 53, "type": "function_declarator", "text": "deinitExecution() override", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 33}}, {"id": 54, "type": "identifier", "text": "deinitExecution", "parent": 53, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 22}}, {"id": 55, "type": "parameter_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 24}}, {"id": 56, "type": "identifier", "text": "override", "parent": 53, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 33}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 6}}, {"id": 58, "type": "function_declarator", "text": "setDenoiseSettings(NodeDenoise *settings)", "parent": 51, "children": [59, 60], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 48}}, {"id": 59, "type": "identifier", "text": "setDenoiseSettings", "parent": 58, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 25}}, {"id": 60, "type": "parameter_list", "text": "(NodeDenoise *settings)", "parent": 58, "children": [61], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 48}}, {"id": 61, "type": "parameter_declaration", "text": "NodeDenoise *settings", "parent": 60, "children": [62, 63], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 47}}, {"id": 62, "type": "type_identifier", "text": "NodeDenoise", "parent": 61, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 37}}, {"id": 63, "type": "pointer_declarator", "text": "*settings", "parent": 61, "children": [64, 65], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 47}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 39}}, {"id": 65, "type": "identifier", "text": "settings", "parent": 63, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 47}}, {"id": 66, "type": "assignment_expression", "text": "this->m_settings = settings", "parent": 43, "children": [67, 70, 71], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 31}}, {"id": 67, "type": "field_expression", "text": "this->m_settings", "parent": 66, "children": [68, 69], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 20}}, {"id": 68, "type": "identifier", "text": "this", "parent": 67, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 69, "type": "field_identifier", "text": "m_settings", "parent": 67, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 20}}, {"id": 70, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 22}}, {"id": 71, "type": "identifier", "text": "settings", "parent": 66, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 31}}, {"id": 72, "type": "ERROR", "text": "bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override", "parent": 14, "children": [73, 74], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 57, "column": 62}}, {"id": 73, "type": "primitive_type", "text": "bool", "parent": 72, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 6}}, {"id": 74, "type": "function_declarator", "text": "determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override", "parent": 72, "children": [75, 76, 92], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 57, "column": 62}}, {"id": 75, "type": "identifier", "text": "determineDependingAreaOfInterest", "parent": 74, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 39}}, {"id": 76, "type": "parameter_list", "text": "(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output)", "parent": 74, "children": [77, 82, 87], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 57, "column": 53}}, {"id": 77, "type": "parameter_declaration", "text": "rcti *input", "parent": 76, "children": [78, 79], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 51}}, {"id": 78, "type": "type_identifier", "text": "rcti", "parent": 77, "children": [], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 44}}, {"id": 79, "type": "pointer_declarator", "text": "*input", "parent": 77, "children": [80, 81], "start_point": {"row": 55, "column": 45}, "end_point": {"row": 55, "column": 51}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 55, "column": 45}, "end_point": {"row": 55, "column": 46}}, {"id": 81, "type": "identifier", "text": "input", "parent": 79, "children": [], "start_point": {"row": 55, "column": 46}, "end_point": {"row": 55, "column": 51}}, {"id": 82, "type": "parameter_declaration", "text": "ReadBufferOperation *readOperation", "parent": 76, "children": [83, 84], "start_point": {"row": 56, "column": 40}, "end_point": {"row": 56, "column": 74}}, {"id": 83, "type": "type_identifier", "text": "ReadBufferOperation", "parent": 82, "children": [], "start_point": {"row": 56, "column": 40}, "end_point": {"row": 56, "column": 59}}, {"id": 84, "type": "pointer_declarator", "text": "*readOperation", "parent": 82, "children": [85, 86], "start_point": {"row": 56, "column": 60}, "end_point": {"row": 56, "column": 74}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 56, "column": 60}, "end_point": {"row": 56, "column": 61}}, {"id": 86, "type": "identifier", "text": "readOperation", "parent": 84, "children": [], "start_point": {"row": 56, "column": 61}, "end_point": {"row": 56, "column": 74}}, {"id": 87, "type": "parameter_declaration", "text": "rcti *output", "parent": 76, "children": [88, 89], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 52}}, {"id": 88, "type": "type_identifier", "text": "rcti", "parent": 87, "children": [], "start_point": {"row": 57, "column": 40}, "end_point": {"row": 57, "column": 44}}, {"id": 89, "type": "pointer_declarator", "text": "*output", "parent": 87, "children": [90, 91], "start_point": {"row": 57, "column": 45}, "end_point": {"row": 57, "column": 52}}, {"id": 90, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 57, "column": 45}, "end_point": {"row": 57, "column": 46}}, {"id": 91, "type": "identifier", "text": "output", "parent": 89, "children": [], "start_point": {"row": 57, "column": 46}, "end_point": {"row": 57, "column": 52}}, {"id": 92, "type": "identifier", "text": "override", "parent": 74, "children": [], "start_point": {"row": 57, "column": 54}, "end_point": {"row": 57, "column": 62}}, {"id": 93, "type": "labeled_statement", "text": "protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);", "parent": 14, "children": [94], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 64, "column": 46}}, {"id": 94, "type": "declaration", "text": "void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);", "parent": 93, "children": [95, 96], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 64, "column": 46}}, {"id": 95, "type": "primitive_type", "text": "void", "parent": 94, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 6}}, {"id": 96, "type": "function_declarator", "text": "generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings)", "parent": 94, "children": [97, 98], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 64, "column": 45}}, {"id": 97, "type": "identifier", "text": "generateDenoise", "parent": 96, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 22}}, {"id": 98, "type": "parameter_list", "text": "(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings)", "parent": 96, "children": [99, 104, 109, 114, 119], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 64, "column": 45}}, {"id": 99, "type": "parameter_declaration", "text": "float *data", "parent": 98, "children": [100, 101], "start_point": {"row": 60, "column": 23}, "end_point": {"row": 60, "column": 34}}, {"id": 100, "type": "primitive_type", "text": "float", "parent": 99, "children": [], "start_point": {"row": 60, "column": 23}, "end_point": {"row": 60, "column": 28}}, {"id": 101, "type": "pointer_declarator", "text": "*data", "parent": 99, "children": [102, 103], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 34}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 60, "column": 29}, "end_point": {"row": 60, "column": 30}}, {"id": 103, "type": "identifier", "text": "data", "parent": 101, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 34}}, {"id": 104, "type": "parameter_declaration", "text": "MemoryBuffer *inputTileColor", "parent": 98, "children": [105, 106], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 51}}, {"id": 105, "type": "type_identifier", "text": "MemoryBuffer", "parent": 104, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 35}}, {"id": 106, "type": "pointer_declarator", "text": "*inputTileColor", "parent": 104, "children": [107, 108], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 51}}, {"id": 107, "type": "*", "text": "*", "parent": 106, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 37}}, {"id": 108, "type": "identifier", "text": "inputTileColor", "parent": 106, "children": [], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 51}}, {"id": 109, "type": "parameter_declaration", "text": "MemoryBuffer *inputTileNormal", "parent": 98, "children": [110, 111], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 52}}, {"id": 110, "type": "type_identifier", "text": "MemoryBuffer", "parent": 109, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 35}}, {"id": 111, "type": "pointer_declarator", "text": "*inputTileNormal", "parent": 109, "children": [112, 113], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 52}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 37}}, {"id": 113, "type": "identifier", "text": "inputTileNormal", "parent": 111, "children": [], "start_point": {"row": 62, "column": 37}, "end_point": {"row": 62, "column": 52}}, {"id": 114, "type": "parameter_declaration", "text": "MemoryBuffer *inputTileAlbedo", "parent": 98, "children": [115, 116], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 52}}, {"id": 115, "type": "type_identifier", "text": "MemoryBuffer", "parent": 114, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 35}}, {"id": 116, "type": "pointer_declarator", "text": "*inputTileAlbedo", "parent": 114, "children": [117, 118], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 52}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 37}}, {"id": 118, "type": "identifier", "text": "inputTileAlbedo", "parent": 116, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 52}}, {"id": 119, "type": "parameter_declaration", "text": "NodeDenoise *settings", "parent": 98, "children": [120, 121], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 44}}, {"id": 120, "type": "type_identifier", "text": "NodeDenoise", "parent": 119, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 34}}, {"id": 121, "type": "pointer_declarator", "text": "*settings", "parent": 119, "children": [122, 123], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 44}}, {"id": 122, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 36}}, {"id": 123, "type": "identifier", "text": "settings", "parent": 121, "children": [], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 44}}, {"id": 124, "type": "declaration", "text": "MemoryBuffer *createMemoryBuffer(rcti *rect) override;", "parent": 14, "children": [125, 126], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 56}}, {"id": 125, "type": "type_identifier", "text": "MemoryBuffer", "parent": 124, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 14}}, {"id": 126, "type": "pointer_declarator", "text": "*createMemoryBuffer(rcti *rect) override", "parent": 124, "children": [127, 128], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 55}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 16}}, {"id": 128, "type": "function_declarator", "text": "createMemoryBuffer(rcti *rect) override", "parent": 126, "children": [129, 130, 136], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 55}}, {"id": 129, "type": "identifier", "text": "createMemoryBuffer", "parent": 128, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 34}}, {"id": 130, "type": "parameter_list", "text": "(rcti *rect)", "parent": 128, "children": [131], "start_point": {"row": 66, "column": 34}, "end_point": {"row": 66, "column": 46}}, {"id": 131, "type": "parameter_declaration", "text": "rcti *rect", "parent": 130, "children": [132, 133], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 45}}, {"id": 132, "type": "type_identifier", "text": "rcti", "parent": 131, "children": [], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 39}}, {"id": 133, "type": "pointer_declarator", "text": "*rect", "parent": 131, "children": [134, 135], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 45}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 66, "column": 40}, "end_point": {"row": 66, "column": 41}}, {"id": 135, "type": "identifier", "text": "rect", "parent": 133, "children": [], "start_point": {"row": 66, "column": 41}, "end_point": {"row": 66, "column": 45}}, {"id": 136, "type": "identifier", "text": "override", "parent": 128, "children": [], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 55}}]}, "node_categories": {"declarations": {"functions": [9, 14, 43, 45, 53, 58, 74, 96, 128], "variables": [19, 24, 29, 34, 48, 61, 77, 82, 87, 94, 99, 104, 109, 114, 119, 124, 131], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [40, 67], "assignments": [66], "loops": [], "conditionals": [10, 12, 13, 16, 17, 20, 23, 25, 28, 30, 33, 35, 38, 41, 46, 49, 50, 54, 56, 59, 62, 65, 68, 69, 71, 75, 78, 81, 83, 86, 88, 91, 92, 97, 103, 105, 108, 110, 113, 115, 118, 120, 123, 125, 129, 132, 135, 136], "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": "DenoiseOperation", "text_snippet": "namespace blender::compositor {\n\nclass DenoiseOperation : public SingleThreadedOperation {\n private:"}, {"node_id": 14, "universal_type": "function", "name": "DenoiseOperation", "text_snippet": "class DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \\brief Cached referen"}, {"node_id": 43, "universal_type": "function", "name": "initExecution", "text_snippet": "void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution()"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "initExecution()"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "deinitExecution() override"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "setDenoiseSettings(NodeDenoise *settings)"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "determineDependingAreaOfInterest(rcti *input,\n ReadBufferOper"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n "}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "createMemoryBuffer(rcti *rect) override"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"COM_SingleThreadedOperation.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"DNA_node_types.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\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, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * Copyright 2019, Blender Foundation.\n */\n\n#pragma once\n\n#include \"COM_SingleThreadedOperation.h\"\n#include \"DNA_node_types.h\"\n\nnamespace blender::compositor {\n\nclass DenoiseOperation : public SingleThreadedOperation {\n private:\n /**\n * \\brief Cached reference to the input programs\n */\n SocketReader *m_inputProgramColor;\n SocketReader *m_inputProgramAlbedo;\n SocketReader *m_inputProgramNormal;\n\n /**\n * \\brief settings of the denoise node.\n */\n NodeDenoise *m_settings;\n\n public:\n DenoiseOperation();\n /**\n * Initialize the execution\n */\n void initExecution() override;\n\n /**\n * Deinitialize the execution\n */\n void deinitExecution() override;\n\n void setDenoiseSettings(NodeDenoise *settings)\n {\n this->m_settings = settings;\n }\n bool determineDependingAreaOfInterest(rcti *input,\n ReadBufferOperation *readOperation,\n rcti *output) override;\n\n protected:\n void generateDenoise(float *data,\n MemoryBuffer *inputTileColor,\n MemoryBuffer *inputTileNormal,\n MemoryBuffer *inputTileAlbedo,\n NodeDenoise *settings);\n\n MemoryBuffer *createMemoryBuffer(rcti *rect) override;\n};\n\n} // namespace blender::compositor\n"}
80,899